]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
0085ce49 | 3 | * Version 1.3.29 |
d14a1e28 RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
0085ce49 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d14a1e28 RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 27 | }; |
d14a1e28 RD |
28 | #endif |
29 | ||
0085ce49 | 30 | /* ----------------------------------------------------------------------------- |
32fe5131 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
0085ce49 | 33 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 34 | |
32fe5131 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
0085ce49 RD |
37 | # if defined(__SUNPRO_CC) |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
093d3ff1 | 46 | #endif |
d14a1e28 | 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 | |
0085ce49 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 | ||
0085ce49 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 | ||
0085ce49 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 | |
0085ce49 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 | ||
0085ce49 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 | |
c9c7117a | 127 | |
0085ce49 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
d14a1e28 | 130 | |
0085ce49 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
d14a1e28 | 133 | * |
0085ce49 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 137 | |
093d3ff1 RD |
138 | /* This should only be incremented when either the layout of swig_type_info changes, |
139 | or for whatever reason, the runtime changes incompatibly */ | |
32fe5131 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d14a1e28 | 141 | |
093d3ff1 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) | |
d14a1e28 | 147 | #else |
32fe5131 | 148 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
149 | #endif |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
32fe5131 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
32fe5131 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
32fe5131 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
32fe5131 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d14a1e28 RD |
166 | #endif |
167 | ||
0085ce49 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 | ||
d14a1e28 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 */ |
d14a1e28 | 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 */ | |
0085ce49 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d14a1e28 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 | ||
093d3ff1 RD |
348 | /* |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
0085ce49 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
093d3ff1 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
32fe5131 | 368 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
369 | */ |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
32fe5131 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 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 | |
093d3ff1 | 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; | |
093d3ff1 | 397 | } |
32fe5131 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
32fe5131 | 401 | return equiv; |
093d3ff1 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 | ||
093d3ff1 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
32fe5131 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 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); | |
093d3ff1 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) { |
093d3ff1 RD |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
0085ce49 | 481 | if (!type) return NULL; |
093d3ff1 RD |
482 | if (type->str != NULL) { |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
093d3ff1 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
32fe5131 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
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); | |
093d3ff1 | 507 | } |
32fe5131 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
0085ce49 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); | |
093d3ff1 | 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); | |
093d3ff1 | 591 | } |
32fe5131 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
093d3ff1 RD |
595 | } |
596 | ||
597 | /* | |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
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; | |
093d3ff1 | 605 | for (; u != eu; ++u) { |
32fe5131 | 606 | register unsigned char uu = *u; |
093d3ff1 RD |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
32fe5131 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
32fe5131 | 621 | register char d = *(c++); |
0085ce49 | 622 | register unsigned char uu; |
093d3ff1 RD |
623 | if ((d >= '0') && (d <= '9')) |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
093d3ff1 RD |
641 | /* |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
d14a1e28 | 682 | |
093d3ff1 RD |
683 | SWIGRUNTIME const char * |
684 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
685 | if (*c != '_') { | |
686 | if (strcmp(c,"NULL") == 0) { | |
687 | memset(ptr,0,sz); | |
688 | return name; | |
689 | } else { | |
690 | return 0; | |
691 | } | |
692 | } | |
693 | return SWIG_UnpackData(++c,ptr,sz); | |
694 | } | |
d14a1e28 RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
0085ce49 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 | |
d14a1e28 | 714 | |
0085ce49 RD |
715 | |
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
093d3ff1 | 764 | #endif |
0085ce49 RD |
765 | /* Py_NotImplemented is defined in 2.1 and up. */ |
766 | #if PY_VERSION_HEX < 0x02010000 | |
767 | # ifndef Py_NotImplemented | |
768 | # define Py_NotImplemented PyExc_RuntimeError | |
769 | # endif | |
770 | #endif | |
771 | ||
772 | ||
773 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ | |
774 | #if PY_VERSION_HEX < 0x02010000 | |
775 | # ifndef PyString_AsStringAndSize | |
776 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} | |
777 | # endif | |
778 | #endif | |
779 | ||
780 | /* PySequence_Size for old Pythons */ | |
781 | #if PY_VERSION_HEX < 0x02000000 | |
782 | # ifndef PySequence_Size | |
783 | # define PySequence_Size PySequence_Length | |
784 | # endif | |
785 | #endif | |
786 | ||
787 | ||
788 | /* PyBool_FromLong for old Pythons */ | |
789 | #if PY_VERSION_HEX < 0x02030000 | |
790 | static | |
791 | PyObject *PyBool_FromLong(long ok) | |
792 | { | |
793 | PyObject *result = ok ? Py_True : Py_False; | |
794 | Py_INCREF(result); | |
795 | return result; | |
796 | } | |
797 | #endif | |
798 | ||
c32bde28 | 799 | |
093d3ff1 | 800 | /* ----------------------------------------------------------------------------- |
0085ce49 | 801 | * error manipulation |
093d3ff1 | 802 | * ----------------------------------------------------------------------------- */ |
d14a1e28 | 803 | |
0085ce49 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 | } | |
d14a1e28 | 846 | |
0085ce49 RD |
847 | |
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
093d3ff1 | 935 | #endif |
d14a1e28 | 936 | |
0085ce49 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
0085ce49 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
093d3ff1 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
d14a1e28 | 951 | |
093d3ff1 | 952 | /* Constant Types */ |
093d3ff1 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
0085ce49 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
093d3ff1 | 964 | } swig_const_info; |
d14a1e28 | 965 | |
994141e6 | 966 | #ifdef __cplusplus |
0085ce49 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
994141e6 | 972 | |
15afbcd0 | 973 | |
0085ce49 RD |
974 | /* ----------------------------------------------------------------------------- |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
093d3ff1 RD |
978 | * pyrun.swg |
979 | * | |
0085ce49 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
093d3ff1 | 983 | * |
0085ce49 | 984 | * ----------------------------------------------------------------------------- */ |
15afbcd0 | 985 | |
093d3ff1 | 986 | /* Common SWIG API */ |
994141e6 | 987 | |
d1a49b78 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
0085ce49 RD |
992 | /* for raw pointers */ |
993 | #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0) | |
994 | #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags) | |
995 | #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own) | |
996 | #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags) | |
997 | #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty) | |
998 | #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src) | |
999 | #define swig_owntype int | |
994141e6 | 1000 | |
0085ce49 RD |
1001 | /* for raw packed data */ |
1002 | #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1003 | #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
994141e6 | 1004 | |
0085ce49 RD |
1005 | /* for class or struct pointers */ |
1006 | #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags) | |
1007 | #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags) | |
d14a1e28 | 1008 | |
0085ce49 RD |
1009 | /* for C or C++ function pointers */ |
1010 | #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type) | |
1011 | #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0) | |
994141e6 | 1012 | |
0085ce49 RD |
1013 | /* for C++ member pointers, ie, member methods */ |
1014 | #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty) | |
1015 | #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type) | |
32fe5131 | 1016 | |
c32bde28 | 1017 | |
0085ce49 | 1018 | /* Runtime API */ |
994141e6 | 1019 | |
0085ce49 RD |
1020 | #define SWIG_GetModule(clientdata) SWIG_Python_GetModule() |
1021 | #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer) | |
1022 | #define SWIG_NewClientData(obj) PySwigClientData_New(obj) | |
32fe5131 | 1023 | |
0085ce49 RD |
1024 | #define SWIG_SetErrorObj SWIG_Python_SetErrorObj |
1025 | #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg | |
1026 | #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code) | |
1027 | #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) | |
1028 | #define SWIG_fail goto fail | |
32fe5131 | 1029 | |
994141e6 | 1030 | |
0085ce49 | 1031 | /* Runtime API implementation */ |
c32bde28 | 1032 | |
0085ce49 | 1033 | /* Error manipulation */ |
c32bde28 | 1034 | |
0085ce49 RD |
1035 | SWIGINTERN void |
1036 | SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) { | |
1037 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1038 | PyErr_SetObject(errtype, obj); | |
1039 | Py_DECREF(obj); | |
1040 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c32bde28 | 1041 | } |
15afbcd0 | 1042 | |
0085ce49 RD |
1043 | SWIGINTERN void |
1044 | SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) { | |
1045 | SWIG_PYTHON_THREAD_BEGIN_BLOCK; | |
1046 | PyErr_SetString(errtype, (char *) msg); | |
1047 | SWIG_PYTHON_THREAD_END_BLOCK; | |
c32bde28 | 1048 | } |
15afbcd0 | 1049 | |
0085ce49 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
32fe5131 | 1051 | |
0085ce49 | 1052 | /* Set a constant value */ |
c32bde28 | 1053 | |
0085ce49 RD |
1054 | SWIGINTERN void |
1055 | SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) { | |
1056 | PyDict_SetItemString(d, (char*) name, obj); | |
1057 | Py_DECREF(obj); | |
15afbcd0 RD |
1058 | } |
1059 | ||
0085ce49 | 1060 | /* Append a value to the result obj */ |
69223c70 | 1061 | |
0085ce49 RD |
1062 | SWIGINTERN PyObject* |
1063 | SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) { | |
1064 | #if !defined(SWIG_PYTHON_OUTPUT_TUPLE) | |
1065 | if (!result) { | |
1066 | result = obj; | |
1067 | } else if (result == Py_None) { | |
1068 | Py_DECREF(result); | |
1069 | result = obj; | |
1070 | } else { | |
1071 | if (!PyList_Check(result)) { | |
1072 | PyObject *o2 = result; | |
1073 | result = PyList_New(1); | |
1074 | PyList_SetItem(result, 0, o2); | |
1075 | } | |
1076 | PyList_Append(result,obj); | |
1077 | Py_DECREF(obj); | |
1078 | } | |
1079 | return result; | |
1080 | #else | |
1081 | PyObject* o2; | |
1082 | PyObject* o3; | |
1083 | if (!result) { | |
1084 | result = obj; | |
1085 | } else if (result == Py_None) { | |
1086 | Py_DECREF(result); | |
1087 | result = obj; | |
093d3ff1 | 1088 | } else { |
0085ce49 RD |
1089 | if (!PyTuple_Check(result)) { |
1090 | o2 = result; | |
1091 | result = PyTuple_New(1); | |
1092 | PyTuple_SET_ITEM(result, 0, o2); | |
1093 | } | |
1094 | o3 = PyTuple_New(1); | |
1095 | PyTuple_SET_ITEM(o3, 0, obj); | |
1096 | o2 = result; | |
1097 | result = PySequence_Concat(o2, o3); | |
1098 | Py_DECREF(o2); | |
1099 | Py_DECREF(o3); | |
15afbcd0 | 1100 | } |
0085ce49 RD |
1101 | return result; |
1102 | #endif | |
093d3ff1 | 1103 | } |
15afbcd0 | 1104 | |
0085ce49 | 1105 | /* Unpack the argument tuple */ |
15afbcd0 | 1106 | |
0085ce49 RD |
1107 | SWIGINTERN int |
1108 | SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs) | |
1109 | { | |
1110 | if (!args) { | |
1111 | if (!min && !max) { | |
1112 | return 1; | |
1113 | } else { | |
1114 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", | |
1115 | name, (min == max ? "" : "at least "), min); | |
1116 | return 0; | |
1117 | } | |
1118 | } | |
1119 | if (!PyTuple_Check(args)) { | |
1120 | PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple"); | |
1121 | return 0; | |
1122 | } else { | |
1123 | register int l = PyTuple_GET_SIZE(args); | |
1124 | if (l < min) { | |
1125 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1126 | name, (min == max ? "" : "at least "), min, l); | |
1127 | return 0; | |
1128 | } else if (l > max) { | |
1129 | PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", | |
1130 | name, (min == max ? "" : "at most "), max, l); | |
1131 | return 0; | |
1132 | } else { | |
1133 | register int i; | |
1134 | for (i = 0; i < l; ++i) { | |
1135 | objs[i] = PyTuple_GET_ITEM(args, i); | |
1136 | } | |
1137 | for (; l < max; ++l) { | |
1138 | objs[l] = 0; | |
1139 | } | |
1140 | return i + 1; | |
1141 | } | |
1142 | } | |
1143 | } | |
1144 | ||
1145 | /* A functor is a function object with one single object argument */ | |
1146 | #if PY_VERSION_HEX >= 0x02020000 | |
1147 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL); | |
1148 | #else | |
1149 | #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj); | |
1150 | #endif | |
1151 | ||
1152 | /* | |
1153 | Helper for static pointer initialization for both C and C++ code, for example | |
1154 | static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...); | |
1155 | */ | |
1156 | #ifdef __cplusplus | |
1157 | #define SWIG_STATIC_POINTER(var) var | |
1158 | #else | |
1159 | #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var | |
1160 | #endif | |
1161 | ||
1162 | /* ----------------------------------------------------------------------------- | |
1163 | * Pointer declarations | |
1164 | * ----------------------------------------------------------------------------- */ | |
1165 | ||
1166 | /* Flags for new pointer objects */ | |
1167 | #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1) | |
1168 | #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN) | |
1169 | ||
1170 | #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1) | |
1171 | ||
1172 | #ifdef __cplusplus | |
1173 | extern "C" { | |
1174 | #if 0 | |
1175 | } /* cc-mode */ | |
1176 | #endif | |
1177 | #endif | |
1178 | ||
1179 | /* How to access Py_None */ | |
1180 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
1181 | # ifndef SWIG_PYTHON_NO_BUILD_NONE | |
1182 | # ifndef SWIG_PYTHON_BUILD_NONE | |
1183 | # define SWIG_PYTHON_BUILD_NONE | |
1184 | # endif | |
1185 | # endif | |
1186 | #endif | |
1187 | ||
1188 | #ifdef SWIG_PYTHON_BUILD_NONE | |
1189 | # ifdef Py_None | |
1190 | # undef Py_None | |
1191 | # define Py_None SWIG_Py_None() | |
1192 | # endif | |
1193 | SWIGRUNTIMEINLINE PyObject * | |
1194 | _SWIG_Py_None(void) | |
1195 | { | |
1196 | PyObject *none = Py_BuildValue(""); | |
1197 | Py_DECREF(none); | |
1198 | return none; | |
1199 | } | |
1200 | SWIGRUNTIME PyObject * | |
1201 | SWIG_Py_None(void) | |
1202 | { | |
1203 | static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None(); | |
1204 | return none; | |
1205 | } | |
1206 | #endif | |
1207 | ||
1208 | /* The python void return value */ | |
1209 | ||
1210 | SWIGRUNTIMEINLINE PyObject * | |
1211 | SWIG_Py_Void(void) | |
1212 | { | |
1213 | PyObject *none = Py_None; | |
1214 | Py_INCREF(none); | |
1215 | return none; | |
1216 | } | |
1217 | ||
1218 | /* PySwigClientData */ | |
1219 | ||
1220 | typedef struct { | |
1221 | PyObject *klass; | |
1222 | PyObject *newraw; | |
1223 | PyObject *newargs; | |
1224 | PyObject *destroy; | |
1225 | int delargs; | |
1226 | int implicitconv; | |
1227 | } PySwigClientData; | |
1228 | ||
1229 | SWIGRUNTIMEINLINE int | |
1230 | SWIG_Python_CheckImplicit(swig_type_info *ty) | |
1231 | { | |
1232 | PySwigClientData *data = (PySwigClientData *)ty->clientdata; | |
1233 | return data ? data->implicitconv : 0; | |
1234 | } | |
1235 | ||
1236 | SWIGRUNTIMEINLINE PyObject * | |
1237 | SWIG_Python_ExceptionType(swig_type_info *desc) { | |
1238 | PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0; | |
1239 | PyObject *klass = data ? data->klass : 0; | |
1240 | return (klass ? klass : PyExc_RuntimeError); | |
1241 | } | |
1242 | ||
1243 | ||
1244 | SWIGRUNTIME PySwigClientData * | |
1245 | PySwigClientData_New(PyObject* obj) | |
1246 | { | |
1247 | if (!obj) { | |
1248 | return 0; | |
1249 | } else { | |
1250 | PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData)); | |
1251 | /* the klass element */ | |
1252 | data->klass = obj; | |
1253 | Py_INCREF(data->klass); | |
1254 | /* the newraw method and newargs arguments used to create a new raw instance */ | |
1255 | if (PyClass_Check(obj)) { | |
1256 | data->newraw = 0; | |
1257 | data->newargs = obj; | |
1258 | Py_INCREF(obj); | |
1259 | } else { | |
1260 | #if (PY_VERSION_HEX < 0x02020000) | |
1261 | data->newraw = 0; | |
1262 | #else | |
1263 | data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__"); | |
1264 | #endif | |
1265 | if (data->newraw) { | |
1266 | Py_INCREF(data->newraw); | |
1267 | data->newargs = PyTuple_New(1); | |
1268 | PyTuple_SetItem(data->newargs, 0, obj); | |
1269 | } else { | |
1270 | data->newargs = obj; | |
1271 | } | |
1272 | Py_INCREF(data->newargs); | |
1273 | } | |
1274 | /* the destroy method, aka as the C++ delete method */ | |
1275 | data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__"); | |
1276 | if (PyErr_Occurred()) { | |
1277 | PyErr_Clear(); | |
1278 | data->destroy = 0; | |
1279 | } | |
1280 | if (data->destroy) { | |
1281 | int flags; | |
1282 | Py_INCREF(data->destroy); | |
1283 | flags = PyCFunction_GET_FLAGS(data->destroy); | |
1284 | #ifdef METH_O | |
1285 | data->delargs = !(flags & (METH_O)); | |
1286 | #else | |
1287 | data->delargs = 0; | |
1288 | #endif | |
1289 | } else { | |
1290 | data->delargs = 0; | |
1291 | } | |
1292 | data->implicitconv = 0; | |
1293 | return data; | |
1294 | } | |
1295 | } | |
1296 | ||
1297 | SWIGRUNTIME void | |
1298 | PySwigClientData_Del(PySwigClientData* data) | |
1299 | { | |
1300 | Py_XDECREF(data->newraw); | |
1301 | Py_XDECREF(data->newargs); | |
1302 | Py_XDECREF(data->destroy); | |
1303 | } | |
1304 | ||
1305 | /* =============== PySwigObject =====================*/ | |
1306 | ||
1307 | typedef struct { | |
1308 | PyObject_HEAD | |
1309 | void *ptr; | |
1310 | swig_type_info *ty; | |
1311 | int own; | |
1312 | PyObject *next; | |
1313 | } PySwigObject; | |
1314 | ||
1315 | SWIGRUNTIME PyObject * | |
1316 | PySwigObject_long(PySwigObject *v) | |
1317 | { | |
1318 | return PyLong_FromVoidPtr(v->ptr); | |
1319 | } | |
1320 | ||
1321 | SWIGRUNTIME PyObject * | |
1322 | PySwigObject_format(const char* fmt, PySwigObject *v) | |
1323 | { | |
1324 | PyObject *res = NULL; | |
1325 | PyObject *args = PyTuple_New(1); | |
1326 | if (args) { | |
1327 | if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) { | |
1328 | PyObject *ofmt = PyString_FromString(fmt); | |
1329 | if (ofmt) { | |
1330 | res = PyString_Format(ofmt,args); | |
1331 | Py_DECREF(ofmt); | |
1332 | } | |
1333 | Py_DECREF(args); | |
1334 | } | |
1335 | } | |
1336 | return res; | |
1337 | } | |
1338 | ||
1339 | SWIGRUNTIME PyObject * | |
1340 | PySwigObject_oct(PySwigObject *v) | |
1341 | { | |
1342 | return PySwigObject_format("%o",v); | |
1343 | } | |
1344 | ||
1345 | SWIGRUNTIME PyObject * | |
1346 | PySwigObject_hex(PySwigObject *v) | |
1347 | { | |
1348 | return PySwigObject_format("%x",v); | |
1349 | } | |
1350 | ||
1351 | SWIGRUNTIME PyObject * | |
1352 | #ifdef METH_NOARGS | |
1353 | PySwigObject_repr(PySwigObject *v) | |
1354 | #else | |
1355 | PySwigObject_repr(PySwigObject *v, PyObject *args) | |
1356 | #endif | |
1357 | { | |
1358 | const char *name = SWIG_TypePrettyName(v->ty); | |
1359 | PyObject *hex = PySwigObject_hex(v); | |
1360 | PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex)); | |
1361 | Py_DECREF(hex); | |
1362 | if (v->next) { | |
1363 | #ifdef METH_NOARGS | |
1364 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next); | |
1365 | #else | |
1366 | PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args); | |
1367 | #endif | |
1368 | PyString_ConcatAndDel(&repr,nrep); | |
1369 | } | |
1370 | return repr; | |
1371 | } | |
1372 | ||
1373 | SWIGRUNTIME int | |
1374 | PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) | |
1375 | { | |
1376 | #ifdef METH_NOARGS | |
1377 | PyObject *repr = PySwigObject_repr(v); | |
1378 | #else | |
1379 | PyObject *repr = PySwigObject_repr(v, NULL); | |
1380 | #endif | |
1381 | if (repr) { | |
1382 | fputs(PyString_AsString(repr), fp); | |
1383 | Py_DECREF(repr); | |
1384 | return 0; | |
1385 | } else { | |
1386 | return 1; | |
1387 | } | |
1388 | } | |
1389 | ||
1390 | SWIGRUNTIME PyObject * | |
1391 | PySwigObject_str(PySwigObject *v) | |
1392 | { | |
1393 | char result[SWIG_BUFFER_SIZE]; | |
1394 | return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ? | |
1395 | PyString_FromString(result) : 0; | |
1396 | } | |
1397 | ||
1398 | SWIGRUNTIME int | |
1399 | PySwigObject_compare(PySwigObject *v, PySwigObject *w) | |
1400 | { | |
1401 | void *i = v->ptr; | |
1402 | void *j = w->ptr; | |
1403 | return (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1404 | } | |
1405 | ||
1406 | SWIGRUNTIME PyTypeObject* _PySwigObject_type(void); | |
1407 | ||
1408 | SWIGRUNTIME PyTypeObject* | |
1409 | PySwigObject_type(void) { | |
1410 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type(); | |
1411 | return type; | |
1412 | } | |
1413 | ||
1414 | SWIGRUNTIMEINLINE int | |
1415 | PySwigObject_Check(PyObject *op) { | |
1416 | return ((op)->ob_type == PySwigObject_type()) | |
1417 | || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0); | |
1418 | } | |
1419 | ||
1420 | SWIGRUNTIME PyObject * | |
1421 | PySwigObject_New(void *ptr, swig_type_info *ty, int own); | |
1422 | ||
1423 | SWIGRUNTIME void | |
1424 | PySwigObject_dealloc(PyObject *v) | |
1425 | { | |
1426 | PySwigObject *sobj = (PySwigObject *) v; | |
1427 | PyObject *next = sobj->next; | |
1428 | if (sobj->own) { | |
1429 | swig_type_info *ty = sobj->ty; | |
1430 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
1431 | PyObject *destroy = data ? data->destroy : 0; | |
1432 | if (destroy) { | |
1433 | /* destroy is always a VARARGS method */ | |
1434 | PyObject *res; | |
1435 | if (data->delargs) { | |
1436 | /* we need to create a temporal object to carry the destroy operation */ | |
1437 | PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0); | |
1438 | res = SWIG_Python_CallFunctor(destroy, tmp); | |
1439 | Py_DECREF(tmp); | |
1440 | } else { | |
1441 | PyCFunction meth = PyCFunction_GET_FUNCTION(destroy); | |
1442 | PyObject *mself = PyCFunction_GET_SELF(destroy); | |
1443 | res = ((*meth)(mself, v)); | |
1444 | } | |
1445 | Py_XDECREF(res); | |
1446 | } else { | |
1447 | const char *name = SWIG_TypePrettyName(ty); | |
1448 | #if !defined(SWIG_PYTHON_SILENT_MEMLEAK) | |
1449 | printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name); | |
1450 | #endif | |
1451 | } | |
1452 | } | |
1453 | Py_XDECREF(next); | |
1454 | PyObject_DEL(v); | |
1455 | } | |
1456 | ||
1457 | SWIGRUNTIME PyObject* | |
1458 | PySwigObject_append(PyObject* v, PyObject* next) | |
1459 | { | |
1460 | PySwigObject *sobj = (PySwigObject *) v; | |
1461 | #ifndef METH_O | |
1462 | PyObject *tmp = 0; | |
1463 | if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL; | |
1464 | next = tmp; | |
1465 | #endif | |
1466 | if (!PySwigObject_Check(next)) { | |
1467 | return NULL; | |
1468 | } | |
1469 | sobj->next = next; | |
1470 | Py_INCREF(next); | |
1471 | return SWIG_Py_Void(); | |
1472 | } | |
1473 | ||
1474 | SWIGRUNTIME PyObject* | |
1475 | #ifdef METH_NOARGS | |
1476 | PySwigObject_next(PyObject* v) | |
1477 | #else | |
1478 | PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1479 | #endif | |
1480 | { | |
1481 | PySwigObject *sobj = (PySwigObject *) v; | |
1482 | if (sobj->next) { | |
1483 | Py_INCREF(sobj->next); | |
1484 | return sobj->next; | |
1485 | } else { | |
1486 | return SWIG_Py_Void(); | |
1487 | } | |
1488 | } | |
1489 | ||
1490 | SWIGINTERN PyObject* | |
1491 | #ifdef METH_NOARGS | |
1492 | PySwigObject_disown(PyObject *v) | |
1493 | #else | |
1494 | PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1495 | #endif | |
1496 | { | |
1497 | PySwigObject *sobj = (PySwigObject *)v; | |
1498 | sobj->own = 0; | |
1499 | return SWIG_Py_Void(); | |
1500 | } | |
1501 | ||
1502 | SWIGINTERN PyObject* | |
1503 | #ifdef METH_NOARGS | |
1504 | PySwigObject_acquire(PyObject *v) | |
1505 | #else | |
1506 | PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args)) | |
1507 | #endif | |
1508 | { | |
1509 | PySwigObject *sobj = (PySwigObject *)v; | |
1510 | sobj->own = SWIG_POINTER_OWN; | |
1511 | return SWIG_Py_Void(); | |
1512 | } | |
1513 | ||
1514 | SWIGINTERN PyObject* | |
1515 | PySwigObject_own(PyObject *v, PyObject *args) | |
1516 | { | |
1517 | PyObject *val = 0; | |
1518 | #if (PY_VERSION_HEX < 0x02020000) | |
1519 | if (!PyArg_ParseTuple(args,(char *)"|O:own",&val)) | |
1520 | #else | |
1521 | if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val)) | |
1522 | #endif | |
1523 | { | |
1524 | return NULL; | |
1525 | } | |
1526 | else | |
1527 | { | |
1528 | PySwigObject *sobj = (PySwigObject *)v; | |
1529 | PyObject *obj = PyBool_FromLong(sobj->own); | |
1530 | if (val) { | |
1531 | #ifdef METH_NOARGS | |
1532 | if (PyObject_IsTrue(val)) { | |
1533 | PySwigObject_acquire(v); | |
1534 | } else { | |
1535 | PySwigObject_disown(v); | |
1536 | } | |
1537 | #else | |
1538 | if (PyObject_IsTrue(val)) { | |
1539 | PySwigObject_acquire(v,args); | |
1540 | } else { | |
1541 | PySwigObject_disown(v,args); | |
1542 | } | |
1543 | #endif | |
1544 | } | |
1545 | return obj; | |
1546 | } | |
1547 | } | |
1548 | ||
1549 | #ifdef METH_O | |
1550 | static PyMethodDef | |
1551 | swigobject_methods[] = { | |
1552 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"}, | |
1553 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"}, | |
1554 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1555 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"}, | |
1556 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"}, | |
1557 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"}, | |
1558 | {0, 0, 0, 0} | |
1559 | }; | |
1560 | #else | |
1561 | static PyMethodDef | |
1562 | swigobject_methods[] = { | |
1563 | {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"}, | |
1564 | {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"}, | |
1565 | {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"}, | |
1566 | {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"}, | |
1567 | {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"}, | |
1568 | {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"}, | |
1569 | {0, 0, 0, 0} | |
1570 | }; | |
1571 | #endif | |
1572 | ||
1573 | #if PY_VERSION_HEX < 0x02020000 | |
1574 | SWIGINTERN PyObject * | |
1575 | PySwigObject_getattr(PySwigObject *sobj,char *name) | |
1576 | { | |
1577 | return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name); | |
1578 | } | |
1579 | #endif | |
1580 | ||
1581 | SWIGRUNTIME PyTypeObject* | |
1582 | _PySwigObject_type(void) { | |
1583 | static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1584 | ||
1585 | static PyNumberMethods PySwigObject_as_number = { | |
1586 | (binaryfunc)0, /*nb_add*/ | |
1587 | (binaryfunc)0, /*nb_subtract*/ | |
1588 | (binaryfunc)0, /*nb_multiply*/ | |
1589 | (binaryfunc)0, /*nb_divide*/ | |
1590 | (binaryfunc)0, /*nb_remainder*/ | |
093d3ff1 RD |
1591 | (binaryfunc)0, /*nb_divmod*/ |
1592 | (ternaryfunc)0,/*nb_power*/ | |
1593 | (unaryfunc)0, /*nb_negative*/ | |
1594 | (unaryfunc)0, /*nb_positive*/ | |
1595 | (unaryfunc)0, /*nb_absolute*/ | |
1596 | (inquiry)0, /*nb_nonzero*/ | |
1597 | 0, /*nb_invert*/ | |
1598 | 0, /*nb_lshift*/ | |
1599 | 0, /*nb_rshift*/ | |
1600 | 0, /*nb_and*/ | |
1601 | 0, /*nb_xor*/ | |
1602 | 0, /*nb_or*/ | |
1603 | (coercion)0, /*nb_coerce*/ | |
1604 | (unaryfunc)PySwigObject_long, /*nb_int*/ | |
1605 | (unaryfunc)PySwigObject_long, /*nb_long*/ | |
1606 | (unaryfunc)0, /*nb_float*/ | |
1607 | (unaryfunc)PySwigObject_oct, /*nb_oct*/ | |
1608 | (unaryfunc)PySwigObject_hex, /*nb_hex*/ | |
32fe5131 | 1609 | #if PY_VERSION_HEX >= 0x02020000 |
093d3ff1 | 1610 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */ |
32fe5131 RD |
1611 | #elif PY_VERSION_HEX >= 0x02000000 |
1612 | 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */ | |
093d3ff1 RD |
1613 | #endif |
1614 | }; | |
1615 | ||
0085ce49 | 1616 | static PyTypeObject pyswigobject_type; |
32fe5131 | 1617 | static int type_init = 0; |
093d3ff1 | 1618 | if (!type_init) { |
0085ce49 RD |
1619 | const PyTypeObject tmp |
1620 | = { | |
1621 | PyObject_HEAD_INIT(NULL) | |
1622 | 0, /* ob_size */ | |
1623 | (char *)"PySwigObject", /* tp_name */ | |
1624 | sizeof(PySwigObject), /* tp_basicsize */ | |
1625 | 0, /* tp_itemsize */ | |
1626 | (destructor)PySwigObject_dealloc, /* tp_dealloc */ | |
1627 | (printfunc)PySwigObject_print, /* tp_print */ | |
1628 | #if PY_VERSION_HEX < 0x02020000 | |
1629 | (getattrfunc)PySwigObject_getattr, /* tp_getattr */ | |
1630 | #else | |
1631 | (getattrfunc)0, /* tp_getattr */ | |
093d3ff1 | 1632 | #endif |
0085ce49 RD |
1633 | (setattrfunc)0, /* tp_setattr */ |
1634 | (cmpfunc)PySwigObject_compare, /* tp_compare */ | |
1635 | (reprfunc)PySwigObject_repr, /* tp_repr */ | |
1636 | &PySwigObject_as_number, /* tp_as_number */ | |
1637 | 0, /* tp_as_sequence */ | |
1638 | 0, /* tp_as_mapping */ | |
1639 | (hashfunc)0, /* tp_hash */ | |
1640 | (ternaryfunc)0, /* tp_call */ | |
1641 | (reprfunc)PySwigObject_str, /* tp_str */ | |
1642 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1643 | 0, /* tp_setattro */ | |
1644 | 0, /* tp_as_buffer */ | |
1645 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1646 | swigobject_doc, /* tp_doc */ | |
1647 | 0, /* tp_traverse */ | |
1648 | 0, /* tp_clear */ | |
1649 | 0, /* tp_richcompare */ | |
1650 | 0, /* tp_weaklistoffset */ | |
093d3ff1 | 1651 | #if PY_VERSION_HEX >= 0x02020000 |
0085ce49 RD |
1652 | 0, /* tp_iter */ |
1653 | 0, /* tp_iternext */ | |
1654 | swigobject_methods, /* tp_methods */ | |
1655 | 0, /* tp_members */ | |
1656 | 0, /* tp_getset */ | |
1657 | 0, /* tp_base */ | |
1658 | 0, /* tp_dict */ | |
1659 | 0, /* tp_descr_get */ | |
1660 | 0, /* tp_descr_set */ | |
1661 | 0, /* tp_dictoffset */ | |
1662 | 0, /* tp_init */ | |
1663 | 0, /* tp_alloc */ | |
1664 | 0, /* tp_new */ | |
1665 | 0, /* tp_free */ | |
1666 | 0, /* tp_is_gc */ | |
1667 | 0, /* tp_bases */ | |
1668 | 0, /* tp_mro */ | |
1669 | 0, /* tp_cache */ | |
1670 | 0, /* tp_subclasses */ | |
1671 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1672 | #endif |
1673 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1674 | 0, /* tp_del */ |
093d3ff1 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1678 | #endif |
0085ce49 | 1679 | }; |
32fe5131 | 1680 | pyswigobject_type = tmp; |
0085ce49 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 | 1682 | type_init = 1; |
c32bde28 | 1683 | } |
32fe5131 | 1684 | return &pyswigobject_type; |
15afbcd0 RD |
1685 | } |
1686 | ||
093d3ff1 | 1687 | SWIGRUNTIME PyObject * |
0085ce49 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
093d3ff1 | 1689 | { |
0085ce49 RD |
1690 | PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type()); |
1691 | if (sobj) { | |
1692 | sobj->ptr = ptr; | |
1693 | sobj->ty = ty; | |
1694 | sobj->own = own; | |
1695 | sobj->next = 0; | |
32fe5131 | 1696 | } |
0085ce49 | 1697 | return (PyObject *)sobj; |
15afbcd0 RD |
1698 | } |
1699 | ||
093d3ff1 RD |
1700 | /* ----------------------------------------------------------------------------- |
1701 | * Implements a simple Swig Packed type, and use it instead of string | |
1702 | * ----------------------------------------------------------------------------- */ | |
1703 | ||
1704 | typedef struct { | |
1705 | PyObject_HEAD | |
1706 | void *pack; | |
0085ce49 | 1707 | swig_type_info *ty; |
093d3ff1 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
1710 | ||
1711 | SWIGRUNTIME int | |
0085ce49 | 1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
093d3ff1 RD |
1713 | { |
1714 | char result[SWIG_BUFFER_SIZE]; | |
1715 | fputs("<Swig Packed ", fp); | |
1716 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
1717 | fputs("at ", fp); | |
1718 | fputs(result, fp); | |
1719 | } | |
0085ce49 | 1720 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
1723 | } | |
c32bde28 | 1724 | |
093d3ff1 RD |
1725 | SWIGRUNTIME PyObject * |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
15afbcd0 | 1727 | { |
093d3ff1 RD |
1728 | char result[SWIG_BUFFER_SIZE]; |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
0085ce49 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1731 | } else { |
0085ce49 | 1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 | 1733 | } |
c32bde28 RD |
1734 | } |
1735 | ||
093d3ff1 RD |
1736 | SWIGRUNTIME PyObject * |
1737 | PySwigPacked_str(PySwigPacked *v) | |
1738 | { | |
1739 | char result[SWIG_BUFFER_SIZE]; | |
1740 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
0085ce49 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1742 | } else { |
0085ce49 | 1743 | return PyString_FromString(v->ty->name); |
093d3ff1 RD |
1744 | } |
1745 | } | |
c32bde28 | 1746 | |
093d3ff1 RD |
1747 | SWIGRUNTIME int |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
c32bde28 | 1749 | { |
0085ce49 RD |
1750 | size_t i = v->size; |
1751 | size_t j = w->size; | |
1752 | int s = (i < j) ? -1 : ((i > j) ? 1 : 0); | |
1753 | return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size); | |
c32bde28 RD |
1754 | } |
1755 | ||
0085ce49 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
093d3ff1 RD |
1757 | |
1758 | SWIGRUNTIME PyTypeObject* | |
32fe5131 | 1759 | PySwigPacked_type(void) { |
0085ce49 RD |
1760 | static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type(); |
1761 | return type; | |
1762 | } | |
1763 | ||
1764 | SWIGRUNTIMEINLINE int | |
1765 | PySwigPacked_Check(PyObject *op) { | |
1766 | return ((op)->ob_type == _PySwigPacked_type()) | |
1767 | || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0); | |
1768 | } | |
1769 | ||
1770 | SWIGRUNTIME void | |
1771 | PySwigPacked_dealloc(PyObject *v) | |
1772 | { | |
1773 | if (PySwigPacked_Check(v)) { | |
1774 | PySwigPacked *sobj = (PySwigPacked *) v; | |
1775 | free(sobj->pack); | |
1776 | } | |
1777 | PyObject_DEL(v); | |
1778 | } | |
1779 | ||
1780 | SWIGRUNTIME PyTypeObject* | |
1781 | _PySwigPacked_type(void) { | |
1782 | static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer"; | |
1783 | static PyTypeObject pyswigpacked_type; | |
1784 | static int type_init = 0; | |
1785 | if (!type_init) { | |
1786 | const PyTypeObject tmp | |
1787 | = { | |
1788 | PyObject_HEAD_INIT(NULL) | |
1789 | 0, /* ob_size */ | |
1790 | (char *)"PySwigPacked", /* tp_name */ | |
1791 | sizeof(PySwigPacked), /* tp_basicsize */ | |
1792 | 0, /* tp_itemsize */ | |
1793 | (destructor)PySwigPacked_dealloc, /* tp_dealloc */ | |
1794 | (printfunc)PySwigPacked_print, /* tp_print */ | |
1795 | (getattrfunc)0, /* tp_getattr */ | |
1796 | (setattrfunc)0, /* tp_setattr */ | |
1797 | (cmpfunc)PySwigPacked_compare, /* tp_compare */ | |
1798 | (reprfunc)PySwigPacked_repr, /* tp_repr */ | |
1799 | 0, /* tp_as_number */ | |
1800 | 0, /* tp_as_sequence */ | |
1801 | 0, /* tp_as_mapping */ | |
1802 | (hashfunc)0, /* tp_hash */ | |
1803 | (ternaryfunc)0, /* tp_call */ | |
1804 | (reprfunc)PySwigPacked_str, /* tp_str */ | |
1805 | PyObject_GenericGetAttr, /* tp_getattro */ | |
1806 | 0, /* tp_setattro */ | |
1807 | 0, /* tp_as_buffer */ | |
1808 | Py_TPFLAGS_DEFAULT, /* tp_flags */ | |
1809 | swigpacked_doc, /* tp_doc */ | |
1810 | 0, /* tp_traverse */ | |
1811 | 0, /* tp_clear */ | |
1812 | 0, /* tp_richcompare */ | |
1813 | 0, /* tp_weaklistoffset */ | |
1814 | #if PY_VERSION_HEX >= 0x02020000 | |
1815 | 0, /* tp_iter */ | |
1816 | 0, /* tp_iternext */ | |
1817 | 0, /* tp_methods */ | |
1818 | 0, /* tp_members */ | |
1819 | 0, /* tp_getset */ | |
1820 | 0, /* tp_base */ | |
1821 | 0, /* tp_dict */ | |
1822 | 0, /* tp_descr_get */ | |
1823 | 0, /* tp_descr_set */ | |
1824 | 0, /* tp_dictoffset */ | |
1825 | 0, /* tp_init */ | |
1826 | 0, /* tp_alloc */ | |
1827 | 0, /* tp_new */ | |
1828 | 0, /* tp_free */ | |
1829 | 0, /* tp_is_gc */ | |
1830 | 0, /* tp_bases */ | |
1831 | 0, /* tp_mro */ | |
1832 | 0, /* tp_cache */ | |
1833 | 0, /* tp_subclasses */ | |
1834 | 0, /* tp_weaklist */ | |
093d3ff1 RD |
1835 | #endif |
1836 | #if PY_VERSION_HEX >= 0x02030000 | |
0085ce49 | 1837 | 0, /* tp_del */ |
093d3ff1 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
0085ce49 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1841 | #endif |
0085ce49 | 1842 | }; |
32fe5131 | 1843 | pyswigpacked_type = tmp; |
0085ce49 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1845 | type_init = 1; |
1846 | } | |
32fe5131 | 1847 | return &pyswigpacked_type; |
093d3ff1 RD |
1848 | } |
1849 | ||
1850 | SWIGRUNTIME PyObject * | |
0085ce49 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
c32bde28 | 1852 | { |
0085ce49 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
093d3ff1 | 1855 | void *pack = malloc(size); |
32fe5131 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
0085ce49 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
32fe5131 | 1864 | } |
093d3ff1 | 1865 | } |
0085ce49 | 1866 | return (PyObject *) sobj; |
994141e6 RD |
1867 | } |
1868 | ||
0085ce49 | 1869 | SWIGRUNTIME swig_type_info * |
093d3ff1 RD |
1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1871 | { | |
0085ce49 RD |
1872 | if (PySwigPacked_Check(obj)) { |
1873 | PySwigPacked *sobj = (PySwigPacked *)obj; | |
1874 | if (sobj->size != size) return 0; | |
1875 | memcpy(ptr, sobj->pack, size); | |
1876 | return sobj->ty; | |
1877 | } else { | |
1878 | return 0; | |
1879 | } | |
093d3ff1 | 1880 | } |
15afbcd0 | 1881 | |
093d3ff1 | 1882 | /* ----------------------------------------------------------------------------- |
0085ce49 | 1883 | * pointers/data manipulation |
093d3ff1 RD |
1884 | * ----------------------------------------------------------------------------- */ |
1885 | ||
0085ce49 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
093d3ff1 | 1891 | |
0085ce49 RD |
1892 | SWIGRUNTIME PyObject * |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
093d3ff1 | 1898 | |
0085ce49 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
093d3ff1 | 1900 | |
0085ce49 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
15afbcd0 | 1903 | { |
0085ce49 RD |
1904 | if (PySwigObject_Check(pyobj)) { |
1905 | return (PySwigObject *) pyobj; | |
1906 | } else { | |
1907 | PyObject *obj = 0; | |
1908 | #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000)) | |
1909 | if (PyInstance_Check(pyobj)) { | |
1910 | obj = _PyInstance_Lookup(pyobj, SWIG_This()); | |
1911 | } else { | |
1912 | PyObject **dictptr = _PyObject_GetDictPtr(pyobj); | |
1913 | if (dictptr != NULL) { | |
1914 | PyObject *dict = *dictptr; | |
1915 | obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0; | |
1916 | } else { | |
1917 | #ifdef PyWeakref_CheckProxy | |
1918 | if (PyWeakref_CheckProxy(pyobj)) { | |
1919 | PyObject *wobj = PyWeakref_GET_OBJECT(pyobj); | |
1920 | return wobj ? SWIG_Python_GetSwigThis(wobj) : 0; | |
1921 | } | |
1922 | #endif | |
1923 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1924 | if (obj) { | |
1925 | Py_DECREF(obj); | |
093d3ff1 | 1926 | } else { |
0085ce49 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
093d3ff1 | 1929 | } |
093d3ff1 | 1930 | } |
0085ce49 RD |
1931 | } |
1932 | #else | |
1933 | obj = PyObject_GetAttr(pyobj,SWIG_This()); | |
1934 | if (obj) { | |
1935 | Py_DECREF(obj); | |
1936 | } else { | |
1937 | if (PyErr_Occurred()) PyErr_Clear(); | |
1938 | return 0; | |
1939 | } | |
1940 | #endif | |
1941 | if (obj && !PySwigObject_Check(obj)) { | |
1942 | /* a PyObject is called 'this', try to get the 'real this' | |
1943 | PySwigObject from it */ | |
1944 | return SWIG_Python_GetSwigThis(obj); | |
1945 | } | |
1946 | return (PySwigObject *)obj; | |
15afbcd0 | 1947 | } |
15afbcd0 RD |
1948 | } |
1949 | ||
0085ce49 RD |
1950 | /* Acquire a pointer value */ |
1951 | ||
1952 | SWIGRUNTIME int | |
1953 | SWIG_Python_AcquirePtr(PyObject *obj, int own) { | |
1954 | if (own) { | |
1955 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1956 | if (sobj) { | |
1957 | int oldown = sobj->own; | |
1958 | sobj->own = own; | |
1959 | return oldown; | |
1960 | } | |
093d3ff1 | 1961 | } |
0085ce49 | 1962 | return 0; |
994141e6 RD |
1963 | } |
1964 | ||
0085ce49 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
093d3ff1 | 1967 | SWIGRUNTIME int |
0085ce49 RD |
1968 | SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) { |
1969 | if (!obj) return SWIG_ERROR; | |
1970 | if (obj == Py_None) { | |
1971 | if (ptr) *ptr = 0; | |
1972 | return SWIG_OK; | |
1973 | } else { | |
1974 | PySwigObject *sobj = SWIG_Python_GetSwigThis(obj); | |
1975 | while (sobj) { | |
1976 | void *vptr = sobj->ptr; | |
1977 | if (ty) { | |
1978 | swig_type_info *to = sobj->ty; | |
1979 | if (to == ty) { | |
1980 | /* no type cast needed */ | |
1981 | if (ptr) *ptr = vptr; | |
1982 | break; | |
1983 | } else { | |
1984 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
1985 | if (!tc) { | |
1986 | sobj = (PySwigObject *)sobj->next; | |
1987 | } else { | |
1988 | if (ptr) *ptr = SWIG_TypeCast(tc,vptr); | |
1989 | break; | |
1990 | } | |
1991 | } | |
093d3ff1 | 1992 | } else { |
0085ce49 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
093d3ff1 | 1995 | } |
093d3ff1 | 1996 | } |
0085ce49 RD |
1997 | if (sobj) { |
1998 | if (own) *own = sobj->own; | |
1999 | if (flags & SWIG_POINTER_DISOWN) { | |
2000 | sobj->own = 0; | |
2001 | } | |
2002 | return SWIG_OK; | |
2003 | } else { | |
2004 | int res = SWIG_ERROR; | |
2005 | if (flags & SWIG_POINTER_IMPLICIT_CONV) { | |
2006 | PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0; | |
2007 | if (data && !data->implicitconv) { | |
2008 | PyObject *klass = data->klass; | |
2009 | if (klass) { | |
2010 | PyObject *impconv; | |
2011 | data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/ | |
2012 | impconv = SWIG_Python_CallFunctor(klass, obj); | |
2013 | data->implicitconv = 0; | |
2014 | if (PyErr_Occurred()) { | |
2015 | PyErr_Clear(); | |
2016 | impconv = 0; | |
2017 | } | |
2018 | if (impconv) { | |
2019 | PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv); | |
2020 | if (iobj) { | |
2021 | void *vptr; | |
2022 | res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0); | |
2023 | if (SWIG_IsOK(res)) { | |
2024 | if (ptr) { | |
2025 | *ptr = vptr; | |
2026 | /* transfer the ownership to 'ptr' */ | |
2027 | iobj->own = 0; | |
2028 | res = SWIG_AddCast(res); | |
2029 | res = SWIG_AddNewMask(res); | |
2030 | } else { | |
2031 | res = SWIG_AddCast(res); | |
2032 | } | |
2033 | } | |
2034 | } | |
2035 | Py_DECREF(impconv); | |
2036 | } | |
2037 | } | |
2038 | } | |
2039 | } | |
2040 | return res; | |
2041 | } | |
093d3ff1 RD |
2042 | } |
2043 | } | |
994141e6 | 2044 | |
0085ce49 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
093d3ff1 | 2047 | SWIGRUNTIME int |
0085ce49 RD |
2048 | SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) { |
2049 | if (!PyCFunction_Check(obj)) { | |
2050 | return SWIG_ConvertPtr(obj, ptr, ty, 0); | |
093d3ff1 | 2051 | } else { |
0085ce49 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
d1a49b78 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
0085ce49 RD |
2056 | const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0; |
2057 | if (desc) { | |
2058 | desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0; | |
2059 | if (!desc) return SWIG_ERROR; | |
2060 | } | |
2061 | if (ty) { | |
2062 | swig_cast_info *tc = SWIG_TypeCheck(desc,ty); | |
2063 | if (!tc) return SWIG_ERROR; | |
2064 | *ptr = SWIG_TypeCast(tc,vptr); | |
2065 | } else { | |
2066 | *ptr = vptr; | |
2067 | } | |
2068 | return SWIG_OK; | |
093d3ff1 RD |
2069 | } |
2070 | } | |
d14a1e28 | 2071 | |
0085ce49 | 2072 | /* Convert a packed value value */ |
093d3ff1 | 2073 | |
093d3ff1 | 2074 | SWIGRUNTIME int |
0085ce49 RD |
2075 | SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) { |
2076 | swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz); | |
2077 | if (!to) return SWIG_ERROR; | |
2078 | if (ty) { | |
2079 | if (to != ty) { | |
2080 | /* check type cast? */ | |
2081 | swig_cast_info *tc = SWIG_TypeCheck(to->name,ty); | |
2082 | if (!tc) return SWIG_ERROR; | |
2083 | } | |
7e63a440 | 2084 | } |
0085ce49 RD |
2085 | return SWIG_OK; |
2086 | } | |
d14a1e28 | 2087 | |
0085ce49 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
c32bde28 | 2091 | |
0085ce49 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
d14a1e28 | 2096 | |
0085ce49 RD |
2097 | SWIGRUNTIME PyObject* |
2098 | SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this) | |
2099 | { | |
2100 | #if (PY_VERSION_HEX >= 0x02020000) | |
2101 | PyObject *inst = 0; | |
2102 | PyObject *newraw = data->newraw; | |
2103 | if (newraw) { | |
2104 | inst = PyObject_Call(newraw, data->newargs, NULL); | |
2105 | if (inst) { | |
2106 | #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2107 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2108 | if (dictptr != NULL) { | |
2109 | PyObject *dict = *dictptr; | |
2110 | if (dict == NULL) { | |
2111 | dict = PyDict_New(); | |
2112 | *dictptr = dict; | |
2113 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2114 | } | |
093d3ff1 | 2115 | } |
0085ce49 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
093d3ff1 | 2120 | } |
0085ce49 RD |
2121 | } else { |
2122 | PyObject *dict = PyDict_New(); | |
2123 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2124 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2125 | Py_DECREF(dict); | |
093d3ff1 | 2126 | } |
0085ce49 RD |
2127 | return inst; |
2128 | #else | |
2129 | #if (PY_VERSION_HEX >= 0x02010000) | |
2130 | PyObject *inst; | |
2131 | PyObject *dict = PyDict_New(); | |
2132 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2133 | inst = PyInstance_NewRaw(data->newargs, dict); | |
2134 | Py_DECREF(dict); | |
2135 | return (PyObject *) inst; | |
2136 | #else | |
2137 | PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type); | |
2138 | if (inst == NULL) { | |
2139 | return NULL; | |
093d3ff1 | 2140 | } |
0085ce49 RD |
2141 | inst->in_class = (PyClassObject *)data->newargs; |
2142 | Py_INCREF(inst->in_class); | |
2143 | inst->in_dict = PyDict_New(); | |
2144 | if (inst->in_dict == NULL) { | |
2145 | Py_DECREF(inst); | |
2146 | return NULL; | |
093d3ff1 | 2147 | } |
0085ce49 RD |
2148 | #ifdef Py_TPFLAGS_HAVE_WEAKREFS |
2149 | inst->in_weakreflist = NULL; | |
2150 | #endif | |
2151 | #ifdef Py_TPFLAGS_GC | |
2152 | PyObject_GC_Init(inst); | |
2153 | #endif | |
2154 | PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this); | |
2155 | return (PyObject *) inst; | |
2156 | #endif | |
2157 | #endif | |
093d3ff1 | 2158 | } |
d14a1e28 | 2159 | |
0085ce49 RD |
2160 | SWIGRUNTIME void |
2161 | SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this) | |
2162 | { | |
2163 | PyObject *dict; | |
2164 | #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS) | |
2165 | PyObject **dictptr = _PyObject_GetDictPtr(inst); | |
2166 | if (dictptr != NULL) { | |
2167 | dict = *dictptr; | |
2168 | if (dict == NULL) { | |
2169 | dict = PyDict_New(); | |
2170 | *dictptr = dict; | |
2171 | } | |
2172 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2173 | return; | |
2174 | } | |
093d3ff1 | 2175 | #endif |
0085ce49 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
d14a1e28 | 2180 | |
0085ce49 RD |
2181 | |
2182 | SWIGINTERN PyObject * | |
2183 | SWIG_Python_InitShadowInstance(PyObject *args) { | |
2184 | PyObject *obj[2]; | |
2185 | if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) { | |
2186 | return NULL; | |
2187 | } else { | |
2188 | PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]); | |
2189 | if (sthis) { | |
2190 | PySwigObject_append((PyObject*) sthis, obj[1]); | |
093d3ff1 | 2191 | } else { |
0085ce49 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2193 | } |
0085ce49 | 2194 | return SWIG_Py_Void(); |
15afbcd0 | 2195 | } |
0085ce49 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
093d3ff1 | 2199 | |
093d3ff1 | 2200 | SWIGRUNTIME PyObject * |
0085ce49 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2202 | if (!ptr) { |
0085ce49 RD |
2203 | return SWIG_Py_Void(); |
2204 | } else { | |
2205 | int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0; | |
2206 | PyObject *robj = PySwigObject_New(ptr, type, own); | |
2207 | PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0; | |
2208 | if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) { | |
2209 | PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj); | |
2210 | if (inst) { | |
2211 | Py_DECREF(robj); | |
2212 | robj = inst; | |
093d3ff1 | 2213 | } |
093d3ff1 | 2214 | } |
0085ce49 | 2215 | return robj; |
093d3ff1 | 2216 | } |
c32bde28 RD |
2217 | } |
2218 | ||
0085ce49 RD |
2219 | /* Create a new packed object */ |
2220 | ||
2221 | SWIGRUNTIMEINLINE PyObject * | |
093d3ff1 | 2222 | SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) { |
0085ce49 | 2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
994141e6 RD |
2224 | } |
2225 | ||
093d3ff1 RD |
2226 | /* -----------------------------------------------------------------------------* |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
2229 | ||
2230 | #ifdef SWIG_LINK_RUNTIME | |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
2233 | ||
32fe5131 RD |
2234 | SWIGRUNTIME swig_module_info * |
2235 | SWIG_Python_GetModule(void) { | |
093d3ff1 RD |
2236 | static void *type_pointer = (void *)0; |
2237 | /* first check if module already created */ | |
2238 | if (!type_pointer) { | |
2239 | #ifdef SWIG_LINK_RUNTIME | |
2240 | type_pointer = SWIG_ReturnGlobalTypeList((void *)0); | |
15afbcd0 | 2241 | #else |
093d3ff1 RD |
2242 | type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, |
2243 | (char*)"type_pointer" SWIG_TYPE_TABLE_NAME); | |
2244 | if (PyErr_Occurred()) { | |
2245 | PyErr_Clear(); | |
2246 | type_pointer = (void *)0; | |
2247 | } | |
15afbcd0 | 2248 | #endif |
32fe5131 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
093d3ff1 | 2251 | } |
d14a1e28 | 2252 | |
32fe5131 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
0085ce49 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
32fe5131 RD |
2256 | SWIGINTERN int |
2257 | PyModule_AddObject(PyObject *m, char *name, PyObject *o) | |
2258 | { | |
2259 | PyObject *dict; | |
2260 | if (!PyModule_Check(m)) { | |
2261 | PyErr_SetString(PyExc_TypeError, | |
2262 | "PyModule_AddObject() needs module as first arg"); | |
0085ce49 | 2263 | return SWIG_ERROR; |
32fe5131 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
0085ce49 | 2268 | return SWIG_ERROR; |
32fe5131 RD |
2269 | } |
2270 | ||
2271 | dict = PyModule_GetDict(m); | |
2272 | if (dict == NULL) { | |
2273 | /* Internal error -- modules must have a dict! */ | |
2274 | PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__", | |
2275 | PyModule_GetName(m)); | |
0085ce49 | 2276 | return SWIG_ERROR; |
32fe5131 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
0085ce49 | 2279 | return SWIG_ERROR; |
32fe5131 | 2280 | Py_DECREF(o); |
0085ce49 | 2281 | return SWIG_OK; |
093d3ff1 | 2282 | } |
32fe5131 | 2283 | #endif |
d14a1e28 | 2284 | |
0085ce49 RD |
2285 | SWIGRUNTIME void |
2286 | SWIG_Python_DestroyModule(void *vptr) | |
2287 | { | |
2288 | swig_module_info *swig_module = (swig_module_info *) vptr; | |
2289 | swig_type_info **types = swig_module->types; | |
2290 | size_t i; | |
2291 | for (i =0; i < swig_module->size; ++i) { | |
2292 | swig_type_info *ty = types[i]; | |
2293 | if (ty->owndata) { | |
2294 | PySwigClientData *data = (PySwigClientData *) ty->clientdata; | |
2295 | if (data) PySwigClientData_Del(data); | |
2296 | } | |
2297 | } | |
2298 | Py_DECREF(SWIG_This()); | |
2299 | } | |
2300 | ||
32fe5131 RD |
2301 | SWIGRUNTIME void |
2302 | SWIG_Python_SetModule(swig_module_info *swig_module) { | |
2303 | static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */ | |
2304 | ||
2305 | PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION, | |
2306 | swig_empty_runtime_method_table); | |
0085ce49 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
32fe5131 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
0085ce49 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
32fe5131 RD |
2312 | } |
2313 | } | |
d14a1e28 | 2314 | |
0085ce49 RD |
2315 | /* The python cached type query */ |
2316 | SWIGRUNTIME PyObject * | |
2317 | SWIG_Python_TypeCache() { | |
2318 | static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New(); | |
2319 | return cache; | |
093d3ff1 | 2320 | } |
d14a1e28 | 2321 | |
0085ce49 RD |
2322 | SWIGRUNTIME swig_type_info * |
2323 | SWIG_Python_TypeQuery(const char *type) | |
2324 | { | |
2325 | PyObject *cache = SWIG_Python_TypeCache(); | |
2326 | PyObject *key = PyString_FromString(type); | |
2327 | PyObject *obj = PyDict_GetItem(cache, key); | |
2328 | swig_type_info *descriptor; | |
2329 | if (obj) { | |
2330 | descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj); | |
2331 | } else { | |
2332 | swig_module_info *swig_module = SWIG_Python_GetModule(); | |
2333 | descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type); | |
2334 | if (descriptor) { | |
2335 | obj = PyCObject_FromVoidPtr(descriptor, NULL); | |
2336 | PyDict_SetItem(cache, key, obj); | |
2337 | Py_DECREF(obj); | |
2338 | } | |
2339 | } | |
2340 | Py_DECREF(key); | |
2341 | return descriptor; | |
2342 | } | |
2343 | ||
2344 | /* | |
2345 | For backward compatibility only | |
2346 | */ | |
2347 | #define SWIG_POINTER_EXCEPTION 0 | |
2348 | #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg) | |
2349 | #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
2350 | ||
2351 | SWIGRUNTIME int | |
2352 | SWIG_Python_AddErrMesg(const char* mesg, int infront) | |
2353 | { | |
2354 | if (PyErr_Occurred()) { | |
2355 | PyObject *type = 0; | |
2356 | PyObject *value = 0; | |
2357 | PyObject *traceback = 0; | |
2358 | PyErr_Fetch(&type, &value, &traceback); | |
2359 | if (value) { | |
2360 | PyObject *old_str = PyObject_Str(value); | |
2361 | Py_XINCREF(type); | |
2362 | PyErr_Clear(); | |
2363 | if (infront) { | |
2364 | PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str)); | |
2365 | } else { | |
2366 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
2367 | } | |
2368 | Py_DECREF(old_str); | |
2369 | } | |
2370 | return 1; | |
2371 | } else { | |
2372 | return 0; | |
2373 | } | |
2374 | } | |
2375 | ||
2376 | SWIGRUNTIME int | |
2377 | SWIG_Python_ArgFail(int argnum) | |
2378 | { | |
2379 | if (PyErr_Occurred()) { | |
2380 | /* add information about failing argument */ | |
2381 | char mesg[256]; | |
2382 | PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum); | |
2383 | return SWIG_Python_AddErrMesg(mesg, 1); | |
2384 | } else { | |
2385 | return 0; | |
2386 | } | |
2387 | } | |
2388 | ||
2389 | SWIGRUNTIMEINLINE const char * | |
2390 | PySwigObject_GetDesc(PyObject *self) | |
2391 | { | |
2392 | PySwigObject *v = (PySwigObject *)self; | |
2393 | swig_type_info *ty = v ? v->ty : 0; | |
2394 | return ty ? ty->str : (char*)""; | |
2395 | } | |
2396 | ||
2397 | SWIGRUNTIME void | |
2398 | SWIG_Python_TypeError(const char *type, PyObject *obj) | |
2399 | { | |
2400 | if (type) { | |
2401 | #if defined(SWIG_COBJECT_TYPES) | |
2402 | if (obj && PySwigObject_Check(obj)) { | |
2403 | const char *otype = (const char *) PySwigObject_GetDesc(obj); | |
2404 | if (otype) { | |
2405 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received", | |
2406 | type, otype); | |
2407 | return; | |
2408 | } | |
2409 | } else | |
2410 | #endif | |
2411 | { | |
2412 | const char *otype = (obj ? obj->ob_type->tp_name : 0); | |
2413 | if (otype) { | |
2414 | PyObject *str = PyObject_Str(obj); | |
2415 | const char *cstr = str ? PyString_AsString(str) : 0; | |
2416 | if (cstr) { | |
2417 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received", | |
2418 | type, otype, cstr); | |
2419 | } else { | |
2420 | PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received", | |
2421 | type, otype); | |
2422 | } | |
2423 | Py_XDECREF(str); | |
2424 | return; | |
2425 | } | |
2426 | } | |
2427 | PyErr_Format(PyExc_TypeError, "a '%s' is expected", type); | |
2428 | } else { | |
2429 | PyErr_Format(PyExc_TypeError, "unexpected type is received"); | |
2430 | } | |
2431 | } | |
2432 | ||
2433 | ||
2434 | /* Convert a pointer value, signal an exception on a type mismatch */ | |
2435 | SWIGRUNTIME void * | |
2436 | SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) { | |
2437 | void *result; | |
2438 | if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) { | |
2439 | PyErr_Clear(); | |
2440 | if (flags & SWIG_POINTER_EXCEPTION) { | |
2441 | SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj); | |
2442 | SWIG_Python_ArgFail(argnum); | |
2443 | } | |
2444 | } | |
2445 | return result; | |
2446 | } | |
2447 | ||
2448 | ||
2449 | #ifdef __cplusplus | |
2450 | #if 0 | |
2451 | { /* cc-mode */ | |
2452 | #endif | |
2453 | } | |
2454 | #endif | |
2455 | ||
2456 | ||
2457 | ||
2458 | #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) | |
2459 | ||
2460 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else | |
2461 | ||
2462 | ||
2463 | ||
2464 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
2465 | ||
fc46b7f3 RD |
2466 | #define SWIGTYPE_p_buffer swig_types[0] |
2467 | #define SWIGTYPE_p_char swig_types[1] | |
2468 | #define SWIGTYPE_p_double swig_types[2] | |
2469 | #define SWIGTYPE_p_form_ops_t swig_types[3] | |
2470 | #define SWIGTYPE_p_int swig_types[4] | |
2471 | #define SWIGTYPE_p_unsigned_char swig_types[5] | |
2472 | #define SWIGTYPE_p_unsigned_int swig_types[6] | |
2473 | #define SWIGTYPE_p_unsigned_long swig_types[7] | |
2474 | #define SWIGTYPE_p_wxANIHandler swig_types[8] | |
2475 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[9] | |
2476 | #define SWIGTYPE_p_wxActivateEvent swig_types[10] | |
2477 | #define SWIGTYPE_p_wxAlphaPixelData swig_types[11] | |
2478 | #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[12] | |
2479 | #define SWIGTYPE_p_wxBMPHandler swig_types[13] | |
2480 | #define SWIGTYPE_p_wxBitmap swig_types[14] | |
2481 | #define SWIGTYPE_p_wxBoxSizer swig_types[15] | |
2482 | #define SWIGTYPE_p_wxBrush swig_types[16] | |
2483 | #define SWIGTYPE_p_wxBrushList swig_types[17] | |
2484 | #define SWIGTYPE_p_wxBufferedDC swig_types[18] | |
2485 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[19] | |
2486 | #define SWIGTYPE_p_wxCURHandler swig_types[20] | |
2487 | #define SWIGTYPE_p_wxChar swig_types[21] | |
2488 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[22] | |
2489 | #define SWIGTYPE_p_wxClientDC swig_types[23] | |
2490 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[24] | |
2491 | #define SWIGTYPE_p_wxCloseEvent swig_types[25] | |
2492 | #define SWIGTYPE_p_wxColour swig_types[26] | |
2493 | #define SWIGTYPE_p_wxColourDatabase swig_types[27] | |
2494 | #define SWIGTYPE_p_wxCommandEvent swig_types[28] | |
2495 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[29] | |
2496 | #define SWIGTYPE_p_wxControl swig_types[30] | |
2497 | #define SWIGTYPE_p_wxControlWithItems swig_types[31] | |
2498 | #define SWIGTYPE_p_wxCursor swig_types[32] | |
2499 | #define SWIGTYPE_p_wxDC swig_types[33] | |
2500 | #define SWIGTYPE_p_wxDash swig_types[34] | |
2501 | #define SWIGTYPE_p_wxDateEvent swig_types[35] | |
2502 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[36] | |
2503 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[37] | |
2504 | #define SWIGTYPE_p_wxDuplexMode swig_types[38] | |
2505 | #define SWIGTYPE_p_wxEffects swig_types[39] | |
2506 | #define SWIGTYPE_p_wxEncodingConverter swig_types[40] | |
2507 | #define SWIGTYPE_p_wxEraseEvent swig_types[41] | |
2508 | #define SWIGTYPE_p_wxEvent swig_types[42] | |
2509 | #define SWIGTYPE_p_wxEvtHandler swig_types[43] | |
2510 | #define SWIGTYPE_p_wxFSFile swig_types[44] | |
2511 | #define SWIGTYPE_p_wxFileSystem swig_types[45] | |
2512 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[46] | |
2513 | #define SWIGTYPE_p_wxFocusEvent swig_types[47] | |
2514 | #define SWIGTYPE_p_wxFont swig_types[48] | |
2515 | #define SWIGTYPE_p_wxFontList swig_types[49] | |
2516 | #define SWIGTYPE_p_wxFontMapper swig_types[50] | |
2517 | #define SWIGTYPE_p_wxGBSizerItem swig_types[51] | |
2518 | #define SWIGTYPE_p_wxGDIObjListBase swig_types[52] | |
2519 | #define SWIGTYPE_p_wxGDIObject swig_types[53] | |
2520 | #define SWIGTYPE_p_wxGIFHandler swig_types[54] | |
2521 | #define SWIGTYPE_p_wxGridBagSizer swig_types[55] | |
2522 | #define SWIGTYPE_p_wxGridSizer swig_types[56] | |
33d6fd3b RD |
2523 | #define SWIGTYPE_p_wxHeaderButtonParams swig_types[57] |
2524 | #define SWIGTYPE_p_wxICOHandler swig_types[58] | |
2525 | #define SWIGTYPE_p_wxIcon swig_types[59] | |
2526 | #define SWIGTYPE_p_wxIconBundle swig_types[60] | |
2527 | #define SWIGTYPE_p_wxIconLocation swig_types[61] | |
2528 | #define SWIGTYPE_p_wxIconizeEvent swig_types[62] | |
2529 | #define SWIGTYPE_p_wxIdleEvent swig_types[63] | |
2530 | #define SWIGTYPE_p_wxImage swig_types[64] | |
2531 | #define SWIGTYPE_p_wxImageHandler swig_types[65] | |
2532 | #define SWIGTYPE_p_wxImageList swig_types[66] | |
2533 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[67] | |
2534 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[68] | |
2535 | #define SWIGTYPE_p_wxJPEGHandler swig_types[69] | |
2536 | #define SWIGTYPE_p_wxKeyEvent swig_types[70] | |
2537 | #define SWIGTYPE_p_wxLanguageInfo swig_types[71] | |
2538 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[72] | |
2539 | #define SWIGTYPE_p_wxLocale swig_types[73] | |
2540 | #define SWIGTYPE_p_wxMask swig_types[74] | |
2541 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[75] | |
2542 | #define SWIGTYPE_p_wxMemoryDC swig_types[76] | |
2543 | #define SWIGTYPE_p_wxMenu swig_types[77] | |
2544 | #define SWIGTYPE_p_wxMenuBar swig_types[78] | |
2545 | #define SWIGTYPE_p_wxMenuEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxMenuItem swig_types[80] | |
2547 | #define SWIGTYPE_p_wxMetaFile swig_types[81] | |
2548 | #define SWIGTYPE_p_wxMetaFileDC swig_types[82] | |
2549 | #define SWIGTYPE_p_wxMirrorDC swig_types[83] | |
2550 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[84] | |
2551 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[85] | |
2552 | #define SWIGTYPE_p_wxMouseEvent swig_types[86] | |
2553 | #define SWIGTYPE_p_wxMoveEvent swig_types[87] | |
2554 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[88] | |
2555 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[89] | |
2556 | #define SWIGTYPE_p_wxNativePixelData swig_types[90] | |
2557 | #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[91] | |
2558 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[92] | |
2559 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[93] | |
2560 | #define SWIGTYPE_p_wxNotifyEvent swig_types[94] | |
2561 | #define SWIGTYPE_p_wxObject swig_types[95] | |
2562 | #define SWIGTYPE_p_wxPCXHandler swig_types[96] | |
2563 | #define SWIGTYPE_p_wxPNGHandler swig_types[97] | |
2564 | #define SWIGTYPE_p_wxPNMHandler swig_types[98] | |
2565 | #define SWIGTYPE_p_wxPaintDC swig_types[99] | |
2566 | #define SWIGTYPE_p_wxPaintEvent swig_types[100] | |
2567 | #define SWIGTYPE_p_wxPalette swig_types[101] | |
2568 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[102] | |
2569 | #define SWIGTYPE_p_wxPaperSize swig_types[103] | |
2570 | #define SWIGTYPE_p_wxPen swig_types[104] | |
2571 | #define SWIGTYPE_p_wxPenList swig_types[105] | |
2572 | #define SWIGTYPE_p_wxPixelDataBase swig_types[106] | |
2573 | #define SWIGTYPE_p_wxPoint swig_types[107] | |
2574 | #define SWIGTYPE_p_wxPostScriptDC swig_types[108] | |
2575 | #define SWIGTYPE_p_wxPrintData swig_types[109] | |
2576 | #define SWIGTYPE_p_wxPrinterDC swig_types[110] | |
2577 | #define SWIGTYPE_p_wxPseudoDC swig_types[111] | |
2578 | #define SWIGTYPE_p_wxPyApp swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPyEvent swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPyImageHandler swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPyLocale swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPySizer swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPyValidator swig_types[119] | |
2586 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[120] | |
2587 | #define SWIGTYPE_p_wxRect swig_types[121] | |
2588 | #define SWIGTYPE_p_wxRegion swig_types[122] | |
2589 | #define SWIGTYPE_p_wxRegionIterator swig_types[123] | |
2590 | #define SWIGTYPE_p_wxRendererNative swig_types[124] | |
2591 | #define SWIGTYPE_p_wxRendererVersion swig_types[125] | |
2592 | #define SWIGTYPE_p_wxScreenDC swig_types[126] | |
2593 | #define SWIGTYPE_p_wxScrollEvent swig_types[127] | |
2594 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[128] | |
2595 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[129] | |
2596 | #define SWIGTYPE_p_wxShowEvent swig_types[130] | |
2597 | #define SWIGTYPE_p_wxSize swig_types[131] | |
2598 | #define SWIGTYPE_p_wxSizeEvent swig_types[132] | |
2599 | #define SWIGTYPE_p_wxSizer swig_types[133] | |
2600 | #define SWIGTYPE_p_wxSizerItem swig_types[134] | |
2601 | #define SWIGTYPE_p_wxSplitterRenderParams swig_types[135] | |
2602 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[136] | |
2603 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[137] | |
2604 | #define SWIGTYPE_p_wxStockGDI swig_types[138] | |
2605 | #define SWIGTYPE_p_wxString swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[140] | |
2607 | #define SWIGTYPE_p_wxTIFFHandler swig_types[141] | |
2608 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[142] | |
2609 | #define SWIGTYPE_p_wxValidator swig_types[143] | |
2610 | #define SWIGTYPE_p_wxWindow swig_types[144] | |
2611 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[145] | |
2612 | #define SWIGTYPE_p_wxWindowDC swig_types[146] | |
2613 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[147] | |
2614 | #define SWIGTYPE_p_wxXPMHandler swig_types[148] | |
2615 | static swig_type_info *swig_types[150]; | |
2616 | static swig_module_info swig_module = {swig_types, 149, 0, 0, 0, 0}; | |
32fe5131 RD |
2617 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2618 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
d14a1e28 | 2619 | |
093d3ff1 | 2620 | /* -------- TYPES TABLE (END) -------- */ |
d14a1e28 | 2621 | |
0085ce49 RD |
2622 | #if (PY_VERSION_HEX <= 0x02000000) |
2623 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2624 | # error "This python version requires to use swig with the '-classic' option" | |
2625 | # endif | |
2626 | #endif | |
2627 | #if (PY_VERSION_HEX <= 0x02020000) | |
2628 | # error "This python version requires to use swig with the '-nomodern' option" | |
2629 | #endif | |
2630 | #if (PY_VERSION_HEX <= 0x02020000) | |
2631 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2632 | #endif | |
2633 | #ifndef METH_O | |
2634 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2635 | #endif | |
d14a1e28 | 2636 | |
093d3ff1 RD |
2637 | /*----------------------------------------------- |
2638 | @(target):= _gdi_.so | |
2639 | ------------------------------------------------*/ | |
2640 | #define SWIG_init init_gdi_ | |
d14a1e28 | 2641 | |
093d3ff1 | 2642 | #define SWIG_name "_gdi_" |
d14a1e28 | 2643 | |
0085ce49 | 2644 | #define SWIGVERSION 0x010329 |
d14a1e28 | 2645 | |
d14a1e28 | 2646 | |
0085ce49 RD |
2647 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2648 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
d14a1e28 RD |
2649 | |
2650 | ||
0085ce49 RD |
2651 | #include <stdexcept> |
2652 | ||
2653 | ||
2654 | namespace swig { | |
2655 | class PyObject_ptr { | |
2656 | protected: | |
2657 | PyObject *_obj; | |
2658 | ||
2659 | public: | |
2660 | PyObject_ptr() :_obj(0) | |
2661 | { | |
093d3ff1 | 2662 | } |
0085ce49 RD |
2663 | |
2664 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2665 | { | |
2666 | Py_XINCREF(_obj); | |
093d3ff1 | 2667 | } |
0085ce49 RD |
2668 | |
2669 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2670 | { | |
2671 | if (initial_ref) Py_XINCREF(_obj); | |
2672 | } | |
2673 | ||
2674 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2675 | { | |
2676 | Py_XINCREF(item._obj); | |
2677 | Py_XDECREF(_obj); | |
2678 | _obj = item._obj; | |
2679 | return *this; | |
2680 | } | |
2681 | ||
2682 | ~PyObject_ptr() | |
2683 | { | |
2684 | Py_XDECREF(_obj); | |
2685 | } | |
2686 | ||
2687 | operator PyObject *() const | |
2688 | { | |
2689 | return _obj; | |
2690 | } | |
2691 | ||
2692 | PyObject *operator->() const | |
2693 | { | |
2694 | return _obj; | |
2695 | } | |
2696 | }; | |
093d3ff1 | 2697 | } |
d14a1e28 | 2698 | |
994141e6 | 2699 | |
0085ce49 RD |
2700 | namespace swig { |
2701 | struct PyObject_var : PyObject_ptr { | |
2702 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2703 | ||
2704 | PyObject_var & operator = (PyObject* obj) | |
2705 | { | |
2706 | Py_XDECREF(_obj); | |
2707 | _obj = obj; | |
2708 | return *this; | |
69223c70 | 2709 | } |
0085ce49 | 2710 | }; |
15afbcd0 RD |
2711 | } |
2712 | ||
2713 | ||
0085ce49 RD |
2714 | #include "wx/wxPython/wxPython.h" |
2715 | #include "wx/wxPython/pyclasses.h" | |
2716 | ||
2717 | ||
2718 | static const wxString wxPyEmptyString(wxEmptyString); | |
2719 | ||
01f6b6d3 RD |
2720 | #define SWIG_From_long PyInt_FromLong |
2721 | ||
2722 | ||
2723 | SWIGINTERNINLINE PyObject * | |
2724 | SWIG_From_int (int value) | |
2725 | { | |
2726 | return SWIG_From_long (value); | |
2727 | } | |
2728 | ||
2729 | ||
0085ce49 RD |
2730 | #include <limits.h> |
2731 | #ifndef LLONG_MIN | |
2732 | # define LLONG_MIN LONG_LONG_MIN | |
2733 | #endif | |
2734 | #ifndef LLONG_MAX | |
2735 | # define LLONG_MAX LONG_LONG_MAX | |
2736 | #endif | |
2737 | #ifndef ULLONG_MAX | |
2738 | # define ULLONG_MAX ULONG_LONG_MAX | |
2739 | #endif | |
b88bce5f | 2740 | |
b88bce5f | 2741 | |
50efceee RD |
2742 | SWIGINTERN int |
2743 | SWIG_AsVal_long (PyObject* obj, long* val) | |
2744 | { | |
2745 | if (PyNumber_Check(obj)) { | |
2746 | if (val) *val = PyInt_AsLong(obj); | |
2747 | return SWIG_OK; | |
2748 | } | |
2749 | return SWIG_TypeError; | |
2750 | } | |
2751 | ||
2752 | ||
093d3ff1 | 2753 | SWIGINTERN int |
0085ce49 | 2754 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) |
093d3ff1 RD |
2755 | { |
2756 | long v = 0; | |
2757 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
0085ce49 | 2758 | return SWIG_TypeError; |
093d3ff1 RD |
2759 | } |
2760 | else if (val) | |
2761 | *val = (unsigned long)v; | |
0085ce49 | 2762 | return SWIG_OK; |
093d3ff1 | 2763 | } |
d14a1e28 RD |
2764 | |
2765 | ||
093d3ff1 | 2766 | SWIGINTERN int |
0085ce49 RD |
2767 | SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) |
2768 | { | |
093d3ff1 | 2769 | unsigned long v; |
0085ce49 RD |
2770 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); |
2771 | if (SWIG_IsOK(res)) { | |
2772 | if ((v > UCHAR_MAX)) { | |
2773 | return SWIG_OverflowError; | |
093d3ff1 | 2774 | } else { |
0085ce49 | 2775 | if (val) *val = static_cast< unsigned char >(v); |
093d3ff1 | 2776 | } |
0085ce49 RD |
2777 | } |
2778 | return res; | |
093d3ff1 | 2779 | } |
33b885b9 | 2780 | |
d14a1e28 | 2781 | |
0085ce49 RD |
2782 | SWIGINTERNINLINE PyObject* |
2783 | SWIG_From_unsigned_SS_long (unsigned long value) | |
093d3ff1 | 2784 | { |
0085ce49 RD |
2785 | return (value > LONG_MAX) ? |
2786 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
093d3ff1 | 2787 | } |
d14a1e28 | 2788 | |
d14a1e28 | 2789 | |
0085ce49 RD |
2790 | SWIGINTERNINLINE PyObject * |
2791 | SWIG_From_unsigned_SS_char (unsigned char value) | |
2792 | { | |
2793 | return SWIG_From_unsigned_SS_long (value); | |
2794 | } | |
d14a1e28 | 2795 | |
e9d6f3a4 RD |
2796 | SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){ |
2797 | wxColour temp, *obj = &temp; | |
2798 | if ( other == Py_None ) return false; | |
2799 | if ( ! wxColour_helper(other, &obj) ) { | |
2800 | PyErr_Clear(); | |
2801 | return false; | |
2802 | } | |
2803 | return self->operator==(*obj); | |
2804 | } | |
2805 | SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){ | |
2806 | wxColour temp, *obj = &temp; | |
2807 | if ( other == Py_None ) return true; | |
2808 | if ( ! wxColour_helper(other, &obj)) { | |
2809 | PyErr_Clear(); | |
2810 | return true; | |
2811 | } | |
2812 | return self->operator!=(*obj); | |
2813 | } | |
fc46b7f3 RD |
2814 | |
2815 | SWIGINTERN int | |
2816 | SWIG_AsVal_bool (PyObject *obj, bool *val) | |
2817 | { | |
2818 | if (obj == Py_True) { | |
2819 | if (val) *val = true; | |
2820 | return SWIG_OK; | |
2821 | } else if (obj == Py_False) { | |
2822 | if (val) *val = false; | |
2823 | return SWIG_OK; | |
2824 | } else { | |
2825 | long v = 0; | |
2826 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2827 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2828 | return res; | |
2829 | } | |
2830 | } | |
2831 | ||
2832 | SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){ | |
2833 | PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3); | |
093d3ff1 RD |
2834 | int red = -1; |
2835 | int green = -1; | |
2836 | int blue = -1; | |
fc46b7f3 | 2837 | int alpha = wxALPHA_OPAQUE; |
093d3ff1 RD |
2838 | if (self->Ok()) { |
2839 | red = self->Red(); | |
2840 | green = self->Green(); | |
2841 | blue = self->Blue(); | |
fc46b7f3 | 2842 | alpha = self->Alpha(); |
093d3ff1 RD |
2843 | } |
2844 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
2845 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
2846 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
fc46b7f3 RD |
2847 | if (includeAlpha) |
2848 | PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha)); | |
093d3ff1 RD |
2849 | return rv; |
2850 | } | |
0085ce49 | 2851 | SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){ |
093d3ff1 RD |
2852 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); |
2853 | } | |
d14a1e28 | 2854 | |
0085ce49 RD |
2855 | SWIGINTERN int |
2856 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2857 | { |
0085ce49 RD |
2858 | long v; |
2859 | int res = SWIG_AsVal_long (obj, &v); | |
2860 | if (SWIG_IsOK(res)) { | |
2861 | if ((v < INT_MIN || v > INT_MAX)) { | |
2862 | return SWIG_OverflowError; | |
2863 | } else { | |
2864 | if (val) *val = static_cast< int >(v); | |
2865 | } | |
2866 | } | |
2867 | return res; | |
d14a1e28 RD |
2868 | } |
2869 | ||
0085ce49 | 2870 | SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){ |
093d3ff1 RD |
2871 | wxDash* dashes; |
2872 | int count = self->GetDashes(&dashes); | |
5a446332 | 2873 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2874 | PyObject* retval = PyList_New(0); |
2875 | for (int x=0; x<count; x++) { | |
2876 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
2877 | PyList_Append(retval, pyint); | |
2878 | Py_DECREF(pyint); | |
2879 | } | |
2880 | wxPyEndBlockThreads(blocked); | |
2881 | return retval; | |
2882 | } | |
0085ce49 | 2883 | SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
5a446332 | 2884 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2885 | int size = PyList_Size(pyDashes); |
2886 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
d14a1e28 | 2887 | |
093d3ff1 RD |
2888 | // black magic warning! The array of wxDashes needs to exist as |
2889 | // long as the pen does because wxPen does not copy the array. So | |
2890 | // stick a copy in a Python string object and attach it to _self, | |
2891 | // and then call SetDashes with a pointer to that array. Then | |
2892 | // when the Python pen object is destroyed the array will be | |
2893 | // cleaned up too. | |
2894 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
2895 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
2896 | ||
2897 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
2898 | delete [] dashes; | |
2899 | Py_DECREF(strDashes); | |
2900 | wxPyEndBlockThreads(blocked); | |
2901 | } | |
0085ce49 RD |
2902 | SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } |
2903 | SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d14a1e28 | 2904 | |
fc46b7f3 RD |
2905 | #include <wx/rawbmp.h> |
2906 | ||
2907 | ||
093d3ff1 | 2908 | #include <wx/image.h> |
b88bce5f | 2909 | |
093d3ff1 RD |
2910 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
2911 | char** cArray = NULL; | |
2912 | int count; | |
2913 | ||
2914 | if (!PyList_Check(listOfStrings)) { | |
2915 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
2916 | return NULL; | |
2917 | } | |
2918 | count = PyList_Size(listOfStrings); | |
2919 | cArray = new char*[count]; | |
2920 | ||
2921 | for(int x=0; x<count; x++) { | |
2922 | // TODO: Need some validation and error checking here | |
2923 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
2924 | } | |
2925 | return cArray; | |
b88bce5f | 2926 | } |
b88bce5f RD |
2927 | |
2928 | ||
0085ce49 | 2929 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
fc46b7f3 RD |
2930 | char** cArray = NULL; |
2931 | wxBitmap* bmp; | |
2932 | ||
2933 | cArray = ConvertListOfStrings(listOfStrings); | |
2934 | if (! cArray) | |
2935 | return NULL; | |
2936 | bmp = new wxBitmap(cArray); | |
2937 | delete [] cArray; | |
2938 | return bmp; | |
2939 | } | |
0085ce49 | 2940 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ |
fc46b7f3 RD |
2941 | char* buf; |
2942 | Py_ssize_t length; | |
2943 | PyString_AsStringAndSize(bits, &buf, &length); | |
2944 | return new wxBitmap(buf, width, height, depth); | |
2945 | } | |
0085ce49 | 2946 | SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){ |
093d3ff1 RD |
2947 | wxSize size(self->GetWidth(), self->GetHeight()); |
2948 | return size; | |
2949 | } | |
0085ce49 | 2950 | SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
093d3ff1 RD |
2951 | wxMask *mask = new wxMask(*self, colour); |
2952 | self->SetMask(mask); | |
2953 | } | |
0085ce49 | 2954 | SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
093d3ff1 RD |
2955 | self->SetWidth(size.x); |
2956 | self->SetHeight(size.y); | |
2957 | } | |
0085ce49 RD |
2958 | SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; } |
2959 | SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; } | |
fc46b7f3 RD |
2960 | |
2961 | // See http://tinyurl.com/e5adr for what premultiplying alpha means. It | |
2962 | // appears to me that the other platforms are already doing it, so I'll just | |
2963 | // automatically do it for wxMSW here. | |
2964 | #ifdef __WXMSW__ | |
195a89b4 RD |
2965 | #define wxPy_premultiply(p, a) ((p) * (a) / 0xff) |
2966 | #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p)) | |
fc46b7f3 RD |
2967 | #else |
2968 | #define wxPy_premultiply(p, a) (p) | |
2969 | #define wxPy_unpremultiply(p, a) (p) | |
2970 | #endif | |
2971 | ||
2972 | ||
2973 | wxBitmap* _BitmapFromBufferAlpha(int width, int height, | |
2974 | buffer data, int DATASIZE, | |
2975 | buffer alpha, int ALPHASIZE) | |
2976 | { | |
2977 | if (DATASIZE != width*height*3) { | |
2978 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
2979 | return NULL; | |
2980 | } | |
2981 | ||
2982 | if (ALPHASIZE != width*height) { | |
2983 | wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size."); | |
2984 | return NULL; | |
2985 | } | |
2986 | ||
2987 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
2988 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
2989 | if (! pixData) { | |
2990 | // raise an exception... | |
2991 | wxPyErr_SetString(PyExc_RuntimeError, | |
2992 | "Failed to gain raw access to bitmap data."); | |
2993 | return NULL; | |
2994 | } | |
2995 | ||
2996 | pixData.UseAlpha(); | |
2997 | wxAlphaPixelData::Iterator p(pixData); | |
2998 | for (int y=0; y<height; y++) { | |
2999 | wxAlphaPixelData::Iterator rowStart = p; | |
3000 | for (int x=0; x<width; x++) { | |
3001 | byte a = *(alpha++); | |
3002 | p.Red() = wxPy_premultiply(*(data++), a); | |
3003 | p.Green() = wxPy_premultiply(*(data++), a); | |
3004 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3005 | p.Alpha() = a; | |
3006 | ++p; | |
3007 | } | |
3008 | p = rowStart; | |
3009 | p.OffsetY(pixData, 1); | |
3010 | } | |
3011 | return bmp; | |
3012 | } | |
3013 | ||
3014 | wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE) | |
3015 | { | |
3016 | if (DATASIZE != width*height*3) { | |
3017 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3018 | return NULL; | |
3019 | } | |
3020 | ||
3021 | wxBitmap* bmp = new wxBitmap(width, height, 24); | |
3022 | wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3023 | if (! pixData) { | |
3024 | // raise an exception... | |
3025 | wxPyErr_SetString(PyExc_RuntimeError, | |
3026 | "Failed to gain raw access to bitmap data."); | |
3027 | return NULL; | |
3028 | } | |
3029 | ||
3030 | wxNativePixelData::Iterator p(pixData); | |
3031 | for (int y=0; y<height; y++) { | |
3032 | wxNativePixelData::Iterator rowStart = p; | |
3033 | for (int x=0; x<width; x++) { | |
3034 | p.Red() = *(data++); | |
3035 | p.Green() = *(data++); | |
3036 | p.Blue() = *(data++); | |
3037 | ++p; | |
3038 | } | |
3039 | p = rowStart; | |
3040 | p.OffsetY(pixData, 1); | |
3041 | } | |
3042 | return bmp; | |
3043 | } | |
3044 | ||
3045 | ||
3046 | wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE) | |
3047 | { | |
3048 | if (DATASIZE != width*height*4) { | |
3049 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3050 | return NULL; | |
3051 | } | |
3052 | ||
3053 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3054 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3055 | if (! pixData) { | |
3056 | // raise an exception... | |
3057 | wxPyErr_SetString(PyExc_RuntimeError, | |
3058 | "Failed to gain raw access to bitmap data."); | |
3059 | return NULL; | |
3060 | } | |
3061 | ||
3062 | pixData.UseAlpha(); | |
3063 | wxAlphaPixelData::Iterator p(pixData); | |
3064 | for (int y=0; y<height; y++) { | |
3065 | wxAlphaPixelData::Iterator rowStart = p; | |
3066 | for (int x=0; x<width; x++) { | |
3067 | byte a = data[3]; | |
3068 | p.Red() = wxPy_premultiply(*(data++), a); | |
3069 | p.Green() = wxPy_premultiply(*(data++), a); | |
3070 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3071 | p.Alpha() = a; data++; | |
3072 | ++p; | |
3073 | } | |
3074 | p = rowStart; | |
3075 | p.OffsetY(pixData, 1); | |
3076 | } | |
3077 | return bmp; | |
3078 | } | |
3079 | ||
3080 | ||
3081 | typedef wxNativePixelData::Iterator wxNativePixelData_Accessor; | |
3082 | ||
3083 | SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); } | |
3084 | SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); } | |
3085 | SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){ | |
3086 | self->Red() = red; | |
3087 | self->Green() = green; | |
3088 | self->Blue() = blue; | |
3089 | } | |
3090 | SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){ | |
3091 | PyObject* rv = PyTuple_New(3); | |
3092 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
3093 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
3094 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
3095 | return rv; | |
3096 | } | |
3097 | ||
3098 | typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor; | |
3099 | ||
3100 | SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); } | |
3101 | SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); } | |
3102 | SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){ | |
3103 | self->Red() = wxPy_premultiply(red, alpha); | |
3104 | self->Green() = wxPy_premultiply(green, alpha); | |
3105 | self->Blue() = wxPy_premultiply(blue, alpha); | |
3106 | self->Alpha() = alpha; | |
3107 | } | |
3108 | SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){ | |
3109 | PyObject* rv = PyTuple_New(4); | |
3110 | int red = self->Red(); | |
3111 | int green = self->Green(); | |
3112 | int blue = self->Blue(); | |
3113 | int alpha = self->Alpha(); | |
3114 | ||
3115 | PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) )); | |
3116 | PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) )); | |
3117 | PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) )); | |
3118 | PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha )); | |
3119 | return rv; | |
3120 | } | |
0085ce49 | 3121 | SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ |
093d3ff1 RD |
3122 | if ( !colour.Ok() ) |
3123 | return new wxMask(bitmap, *wxBLACK); | |
3124 | else | |
3125 | return new wxMask(bitmap, colour); | |
3126 | } | |
d14a1e28 | 3127 | |
093d3ff1 | 3128 | #include <wx/iconbndl.h> |
d14a1e28 | 3129 | |
0085ce49 | 3130 | SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){ |
093d3ff1 RD |
3131 | wxIcon* icon = new wxIcon(); |
3132 | icon->CopyFromBitmap(bmp); | |
3133 | return icon; | |
3134 | } | |
0085ce49 | 3135 | SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){ |
093d3ff1 RD |
3136 | char** cArray = NULL; |
3137 | wxIcon* icon; | |
d14a1e28 | 3138 | |
093d3ff1 RD |
3139 | cArray = ConvertListOfStrings(listOfStrings); |
3140 | if (! cArray) | |
3141 | return NULL; | |
3142 | icon = new wxIcon(cArray); | |
3143 | delete [] cArray; | |
3144 | return icon; | |
3145 | } | |
0085ce49 | 3146 | SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ |
d14a1e28 RD |
3147 | |
3148 | ||
d14a1e28 | 3149 | |
093d3ff1 | 3150 | return new wxIconLocation(*filename); |
d14a1e28 | 3151 | |
093d3ff1 | 3152 | } |
0085ce49 | 3153 | SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){ |
d14a1e28 RD |
3154 | |
3155 | ||
d14a1e28 | 3156 | |
093d3ff1 | 3157 | // do nothing |
d14a1e28 | 3158 | |
093d3ff1 | 3159 | } |
0085ce49 | 3160 | SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){ |
b88bce5f RD |
3161 | |
3162 | ||
093d3ff1 RD |
3163 | |
3164 | return -1; | |
3165 | ||
3166 | } | |
0085ce49 | 3167 | SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 3168 | #ifdef __WXGTK__ |
7557b9b5 RD |
3169 | wxImage img(cursorName, type); |
3170 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
3171 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
3172 | return new wxCursor(img); | |
093d3ff1 | 3173 | #else |
7557b9b5 | 3174 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
3175 | #endif |
3176 | } | |
3177 | ||
3178 | ||
0085ce49 | 3179 | SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){ |
093d3ff1 RD |
3180 | (*self) ++; |
3181 | } | |
0085ce49 | 3182 | SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){ |
093d3ff1 RD |
3183 | return self->operator bool(); |
3184 | } | |
3185 | ||
3186 | #include <wx/fontutil.h> | |
3187 | #include <wx/fontmap.h> | |
3188 | #include <wx/fontenum.h> | |
3189 | ||
0085ce49 | 3190 | SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
093d3ff1 RD |
3191 | return self->ToString(); |
3192 | } | |
3193 | ||
3194 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) { | |
3195 | static wxNativeEncodingInfo info; | |
3196 | if ( wxGetNativeFontEncoding(encoding, &info) ) | |
3197 | return &info; | |
3198 | else | |
3199 | return NULL; | |
3200 | } | |
3201 | ||
0085ce49 RD |
3202 | |
3203 | SWIGINTERNINLINE PyObject * | |
3204 | SWIG_From_size_t (size_t value) | |
3205 | { | |
3206 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
3207 | } | |
3208 | ||
3209 | ||
3210 | SWIGINTERNINLINE int | |
3211 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) | |
3212 | { | |
3213 | unsigned long v; | |
3214 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
3215 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
3216 | return res; | |
3217 | } | |
3218 | ||
3219 | SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
093d3ff1 RD |
3220 | wxFontEncoding alt_enc; |
3221 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3222 | return PyInt_FromLong(alt_enc); | |
3223 | else { | |
3224 | Py_INCREF(Py_None); | |
3225 | return Py_None; | |
3226 | } | |
3227 | } | |
0085ce49 | 3228 | SWIGINTERN wxFont *new_wxFont(wxString const &info){ |
a97cefba RD |
3229 | wxNativeFontInfo nfi; |
3230 | nfi.FromString(info); | |
3231 | return new wxFont(nfi); | |
3232 | } | |
0085ce49 | 3233 | SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3234 | return wxFont::New(pointSize, family, flags, face, encoding); |
3235 | } | |
0085ce49 | 3236 | 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 |
3237 | return wxFontBase::New(pixelSize, family, |
3238 | style, weight, underlined, | |
3239 | face, encoding); | |
3240 | } | |
0085ce49 | 3241 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3242 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
3243 | } | |
0085ce49 RD |
3244 | SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
3245 | SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
093d3ff1 RD |
3246 | |
3247 | class wxPyFontEnumerator : public wxFontEnumerator { | |
3248 | public: | |
3249 | wxPyFontEnumerator() {} | |
3250 | ~wxPyFontEnumerator() {} | |
3251 | ||
3252 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
3253 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
3254 | ||
3255 | PYPRIVATE; | |
3256 | }; | |
3257 | ||
3258 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
3259 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
3260 | ||
3261 | ||
704eda0c | 3262 | SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){ |
e9d6f3a4 | 3263 | PyObject* ret; |
704eda0c | 3264 | wxArrayString arr = wxFontEnumerator::GetEncodings(); |
e9d6f3a4 | 3265 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3266 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3267 | wxPyEndBlockThreads(blocked); |
3268 | return ret; | |
093d3ff1 | 3269 | } |
704eda0c | 3270 | SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){ |
e9d6f3a4 | 3271 | PyObject* ret; |
704eda0c | 3272 | wxArrayString arr = wxFontEnumerator::GetFacenames(); |
e9d6f3a4 | 3273 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3274 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3275 | wxPyEndBlockThreads(blocked); |
3276 | return ret; | |
093d3ff1 RD |
3277 | } |
3278 | ||
3279 | #include <locale.h> | |
3280 | ||
0085ce49 | 3281 | SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3282 | wxLocale* loc; |
3283 | if (language == -1) | |
3284 | loc = new wxLocale(); | |
3285 | else | |
3286 | loc = new wxLocale(language, flags); | |
3287 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3288 | // for the floating point conversions and such to work right. | |
3289 | #if PY_VERSION_HEX < 0x02040000 | |
3290 | setlocale(LC_NUMERIC, "C"); | |
3291 | #endif | |
3292 | return loc; | |
3293 | } | |
0085ce49 | 3294 | SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){ |
093d3ff1 RD |
3295 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); |
3296 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3297 | // for the floating point conversions and such to work right. | |
3298 | #if PY_VERSION_HEX < 0x02040000 | |
3299 | setlocale(LC_NUMERIC, "C"); | |
3300 | #endif | |
3301 | return rc; | |
3302 | } | |
0085ce49 | 3303 | SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3304 | bool rc = self->Init(language, flags); |
3305 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3306 | // for the floating point conversions and such to work right. | |
3307 | #if PY_VERSION_HEX < 0x02040000 | |
3308 | setlocale(LC_NUMERIC, "C"); | |
3309 | #endif | |
3310 | return rc; | |
3311 | } | |
3312 | ||
fc46b7f3 RD |
3313 | class wxPyLocale : public wxLocale |
3314 | { | |
3315 | public: | |
3316 | wxPyLocale(); | |
3317 | ||
3318 | wxPyLocale(const wxChar *szName, // name (for messages) | |
3319 | const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files) | |
3320 | const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale) | |
3321 | bool bLoadDefault = true, // preload wxstd.mo? | |
3322 | bool bConvertEncoding = false); // convert Win<->Unix if necessary? | |
3323 | ||
3324 | wxPyLocale(int language, // wxLanguage id or custom language | |
3325 | int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); | |
3326 | ||
3327 | ~wxPyLocale(); | |
3328 | ||
3329 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3330 | const wxChar *szDomain = NULL) const; | |
3331 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3332 | const wxChar *szOrigString2, size_t n, | |
3333 | const wxChar *szDomain = NULL) const; | |
3334 | ||
3335 | virtual wxChar *GetSingularString(const wxChar *szOrigString, | |
3336 | const wxChar *szDomain = NULL) const; | |
3337 | virtual wxChar *GetPluralString(const wxChar *szOrigString, | |
3338 | const wxChar *szOrigString2, size_t n, | |
3339 | const wxChar *szDomain = NULL) const; | |
3340 | ||
3341 | PYPRIVATE; | |
3342 | private: | |
3343 | DECLARE_NO_COPY_CLASS(wxPyLocale) | |
3344 | }; | |
3345 | ||
3346 | wxPyLocale::wxPyLocale() : wxLocale() | |
3347 | { | |
3348 | } | |
3349 | ||
3350 | wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages) | |
3351 | const wxChar *szShort, // dir prefix (for msg files) | |
3352 | const wxChar *szLocale, // locale (for setlocale) | |
3353 | bool bLoadDefault, // preload wxstd.mo? | |
3354 | bool bConvertEncoding) // convert Win<->Unix if necessary? | |
3355 | : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding) | |
3356 | { | |
3357 | } | |
3358 | ||
3359 | wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language | |
3360 | int flags) : wxLocale(language, flags) | |
3361 | { | |
3362 | } | |
3363 | ||
3364 | wxPyLocale::~wxPyLocale() | |
3365 | { | |
3366 | } | |
3367 | ||
3368 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3369 | const wxChar *szDomain) const | |
3370 | { | |
3371 | wxChar *str = GetSingularString(szOrigString, szDomain); | |
3372 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain); | |
3373 | } | |
3374 | ||
3375 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3376 | const wxChar *szOrigString2, size_t n, | |
3377 | const wxChar *szDomain) const | |
3378 | { | |
3379 | wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain); | |
3380 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain); | |
3381 | } | |
3382 | ||
3383 | wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString, | |
3384 | const wxChar *szDomain) const | |
3385 | { | |
3386 | bool found; | |
3387 | static wxString str; | |
3388 | str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string. | |
3389 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3390 | if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) { | |
3391 | PyObject* param1 = wx2PyString(szOrigString); | |
3392 | PyObject* param2 = wx2PyString(szDomain); | |
3393 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2)); | |
3394 | Py_DECREF(param1); | |
3395 | Py_DECREF(param2); | |
3396 | if (ret) { | |
3397 | str = Py2wxString(ret); | |
3398 | Py_DECREF(ret); | |
3399 | } | |
3400 | } | |
3401 | wxPyEndBlockThreads(blocked); | |
3402 | return (found ? (wxChar*)str.c_str() : NULL); | |
3403 | } | |
3404 | ||
3405 | wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString, | |
3406 | const wxChar *szOrigString2, size_t n, | |
3407 | const wxChar *szDomain) const | |
3408 | { | |
3409 | bool found; | |
3410 | static wxString str; | |
3411 | str = _T("error in translation"); // when the first if condition is true but the second if condition is not we do not want to return the previously queried string. | |
3412 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3413 | if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) { | |
3414 | PyObject* param1 = wx2PyString(szOrigString); | |
3415 | PyObject* param2 = wx2PyString(szOrigString2); | |
3416 | PyObject* param4 = wx2PyString(szDomain); | |
3417 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4)); | |
3418 | Py_DECREF(param1); | |
3419 | Py_DECREF(param2); | |
3420 | Py_DECREF(param4); | |
3421 | if( ret) { | |
3422 | str = Py2wxString(ret); | |
3423 | Py_DECREF(ret); | |
3424 | } | |
3425 | } | |
3426 | wxPyEndBlockThreads(blocked); | |
3427 | return (found ? (wxChar*)str.c_str() : NULL); | |
3428 | } | |
3429 | ||
3430 | SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
3431 | wxPyLocale* loc; | |
3432 | if (language == -1) | |
3433 | loc = new wxPyLocale(); | |
3434 | else | |
3435 | loc = new wxPyLocale(language, flags); | |
3436 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3437 | // for the floating point conversions and such to work right. | |
3438 | #if PY_VERSION_HEX < 0x02040000 | |
3439 | setlocale(LC_NUMERIC, "C"); | |
3440 | #endif | |
3441 | return loc; | |
3442 | } | |
3443 | ||
093d3ff1 RD |
3444 | #include "wx/wxPython/pydrawxxx.h" |
3445 | ||
0085ce49 | 3446 | SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
093d3ff1 RD |
3447 | wxColour col; |
3448 | self->GetPixel(x, y, &col); | |
3449 | return col; | |
3450 | } | |
0085ce49 | 3451 | SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
093d3ff1 RD |
3452 | wxColour col; |
3453 | self->GetPixel(pt, &col); | |
3454 | return col; | |
3455 | } | |
3456 | ||
3457 | SWIGINTERN int | |
0085ce49 | 3458 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
3459 | { |
3460 | if (PyNumber_Check(obj)) { | |
3461 | if (val) *val = PyFloat_AsDouble(obj); | |
0085ce49 | 3462 | return SWIG_OK; |
093d3ff1 | 3463 | } |
0085ce49 | 3464 | return SWIG_TypeError; |
093d3ff1 RD |
3465 | } |
3466 | ||
0085ce49 | 3467 | SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){ |
093d3ff1 RD |
3468 | wxRect rv; |
3469 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
3470 | return rv; | |
3471 | } | |
0085ce49 | 3472 | SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){ |
093d3ff1 RD |
3473 | wxRect rect; |
3474 | self->GetClippingBox(rect); | |
3475 | return rect; | |
3476 | } | |
0085ce49 | 3477 | SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
093d3ff1 RD |
3478 | wxArrayInt widths; |
3479 | self->GetPartialTextExtents(text, widths); | |
3480 | return widths; | |
3481 | } | |
3482 | ||
0085ce49 | 3483 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 | 3484 | |
0085ce49 | 3485 | SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3486 | self->SetLogicalOrigin(point.x, point.y); |
3487 | } | |
0085ce49 | 3488 | SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3489 | self->SetDeviceOrigin(point.x, point.y); |
3490 | } | |
0085ce49 | 3491 | SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3492 | self->CalcBoundingBox(point.x, point.y); |
3493 | } | |
0085ce49 | 3494 | SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3495 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); |
3496 | } | |
0085ce49 | 3497 | SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3498 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); |
3499 | } | |
0085ce49 | 3500 | SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3501 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); |
3502 | } | |
0085ce49 | 3503 | SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3504 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); |
3505 | } | |
0085ce49 | 3506 | SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3507 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); |
3508 | } | |
0085ce49 | 3509 | SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ |
093d3ff1 RD |
3510 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); |
3511 | } | |
3512 | ||
3513 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
3514 | *x1 = dc->MinX(); | |
3515 | *y1 = dc->MinY(); | |
3516 | *x2 = dc->MaxX(); | |
3517 | *y2 = dc->MaxY(); | |
3518 | } | |
3519 | ||
3520 | ||
3521 | #include <wx/dcbuffer.h> | |
3522 | ||
3523 | ||
3524 | #include <wx/dcps.h> | |
3525 | ||
3526 | ||
3527 | class wxMetaFile : public wxObject { | |
3528 | public: | |
3529 | wxMetaFile(const wxString&) | |
3530 | { wxPyRaiseNotImplemented(); } | |
3531 | }; | |
3532 | ||
3533 | class wxMetaFileDC : public wxClientDC { | |
3534 | public: | |
3535 | wxMetaFileDC(const wxString&, int, int, const wxString&) | |
3536 | { wxPyRaiseNotImplemented(); } | |
3537 | }; | |
3538 | ||
3539 | ||
3540 | ||
3541 | class wxPrinterDC : public wxClientDC { | |
3542 | public: | |
3543 | wxPrinterDC(const wxPrintData&) | |
3544 | { wxPyRaiseNotImplemented(); } | |
3545 | ||
3546 | }; | |
3547 | ||
3548 | ||
3549 | ||
0085ce49 | 3550 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
093d3ff1 RD |
3551 | self->AddColour(name, wxColour(red, green, blue)); |
3552 | } | |
3553 | ||
50efceee RD |
3554 | wxFontList* _wxPyInitTheFontList() { return wxTheFontList; } |
3555 | wxPenList* _wxPyInitThePenList() { return wxThePenList; } | |
3556 | wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; } | |
3557 | wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; } | |
3558 | ||
3559 | ||
093d3ff1 RD |
3560 | #include <wx/effects.h> |
3561 | ||
8d38bd1d RD |
3562 | |
3563 | #include "wx/renderer.h" | |
3564 | ||
3565 | ||
32fe5131 | 3566 | SWIGINTERNINLINE PyObject* |
0085ce49 | 3567 | SWIG_From_bool (bool value) |
8d38bd1d | 3568 | { |
0085ce49 | 3569 | return PyBool_FromLong(value ? 1 : 0); |
8d38bd1d RD |
3570 | } |
3571 | ||
27e45892 RD |
3572 | |
3573 | #include "wx/wxPython/pseudodc.h" | |
3574 | ||
3575 | SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){ | |
3576 | wxRect rect; | |
3577 | self->GetIdBounds(id, rect); | |
3578 | return rect; | |
3579 | } | |
093d3ff1 RD |
3580 | #ifdef __cplusplus |
3581 | extern "C" { | |
3582 | #endif | |
0085ce49 RD |
3583 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3584 | PyObject *resultobj = 0; | |
3585 | wxGDIObject *result = 0 ; | |
3586 | ||
3587 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
3588 | { | |
3589 | if (!wxPyCheckForApp()) SWIG_fail; | |
3590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3591 | result = (wxGDIObject *)new wxGDIObject(); | |
3592 | wxPyEndAllowThreads(__tstate); | |
3593 | if (PyErr_Occurred()) SWIG_fail; | |
3594 | } | |
3595 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
3596 | return resultobj; | |
3597 | fail: | |
3598 | return NULL; | |
093d3ff1 RD |
3599 | } |
3600 | ||
3601 | ||
0085ce49 RD |
3602 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3603 | PyObject *resultobj = 0; | |
3604 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3605 | void *argp1 = 0 ; | |
3606 | int res1 = 0 ; | |
3607 | PyObject *swig_obj[1] ; | |
3608 | ||
3609 | if (!args) SWIG_fail; | |
3610 | swig_obj[0] = args; | |
3611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
3612 | if (!SWIG_IsOK(res1)) { | |
3613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3614 | } | |
3615 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3616 | { | |
3617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3618 | delete arg1; | |
093d3ff1 | 3619 | |
0085ce49 RD |
3620 | wxPyEndAllowThreads(__tstate); |
3621 | if (PyErr_Occurred()) SWIG_fail; | |
3622 | } | |
3623 | resultobj = SWIG_Py_Void(); | |
3624 | return resultobj; | |
3625 | fail: | |
3626 | return NULL; | |
d14a1e28 RD |
3627 | } |
3628 | ||
3629 | ||
0085ce49 RD |
3630 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3631 | PyObject *resultobj = 0; | |
3632 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3633 | bool result; | |
3634 | void *argp1 = 0 ; | |
3635 | int res1 = 0 ; | |
3636 | PyObject *swig_obj[1] ; | |
3637 | ||
3638 | if (!args) SWIG_fail; | |
3639 | swig_obj[0] = args; | |
3640 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
3641 | if (!SWIG_IsOK(res1)) { | |
3642 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3643 | } | |
3644 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3645 | { | |
3646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3647 | result = (bool)(arg1)->IsNull(); | |
3648 | wxPyEndAllowThreads(__tstate); | |
3649 | if (PyErr_Occurred()) SWIG_fail; | |
3650 | } | |
3651 | { | |
3652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3653 | } | |
3654 | return resultobj; | |
3655 | fail: | |
3656 | return NULL; | |
3657 | } | |
3658 | ||
3659 | ||
3660 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3661 | PyObject *obj; | |
3662 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3663 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
3664 | return SWIG_Py_Void(); | |
3665 | } | |
3666 | ||
3667 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3668 | return SWIG_Python_InitShadowInstance(args); | |
3669 | } | |
3670 | ||
3671 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3672 | PyObject *resultobj = 0; | |
3673 | byte arg1 = (byte) 0 ; | |
3674 | byte arg2 = (byte) 0 ; | |
3675 | byte arg3 = (byte) 0 ; | |
fc46b7f3 | 3676 | byte arg4 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
3677 | wxColour *result = 0 ; |
3678 | unsigned char val1 ; | |
3679 | int ecode1 = 0 ; | |
3680 | unsigned char val2 ; | |
3681 | int ecode2 = 0 ; | |
3682 | unsigned char val3 ; | |
3683 | int ecode3 = 0 ; | |
fc46b7f3 RD |
3684 | unsigned char val4 ; |
3685 | int ecode4 = 0 ; | |
0085ce49 RD |
3686 | PyObject * obj0 = 0 ; |
3687 | PyObject * obj1 = 0 ; | |
3688 | PyObject * obj2 = 0 ; | |
fc46b7f3 | 3689 | PyObject * obj3 = 0 ; |
0085ce49 | 3690 | char * kwnames[] = { |
fc46b7f3 | 3691 | (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
3692 | }; |
3693 | ||
fc46b7f3 | 3694 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
3695 | if (obj0) { |
3696 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
3697 | if (!SWIG_IsOK(ecode1)) { | |
3698 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
3699 | } | |
3700 | arg1 = static_cast< byte >(val1); | |
3701 | } | |
3702 | if (obj1) { | |
3703 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
3704 | if (!SWIG_IsOK(ecode2)) { | |
3705 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
3706 | } | |
3707 | arg2 = static_cast< byte >(val2); | |
3708 | } | |
3709 | if (obj2) { | |
3710 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
3711 | if (!SWIG_IsOK(ecode3)) { | |
3712 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
3713 | } | |
3714 | arg3 = static_cast< byte >(val3); | |
3715 | } | |
fc46b7f3 RD |
3716 | if (obj3) { |
3717 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
3718 | if (!SWIG_IsOK(ecode4)) { | |
3719 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'"); | |
3720 | } | |
3721 | arg4 = static_cast< byte >(val4); | |
3722 | } | |
0085ce49 RD |
3723 | { |
3724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 3725 | result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4); |
0085ce49 RD |
3726 | wxPyEndAllowThreads(__tstate); |
3727 | if (PyErr_Occurred()) SWIG_fail; | |
3728 | } | |
3729 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
3730 | return resultobj; | |
3731 | fail: | |
3732 | return NULL; | |
d14a1e28 RD |
3733 | } |
3734 | ||
3735 | ||
0085ce49 RD |
3736 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3737 | PyObject *resultobj = 0; | |
3738 | wxString *arg1 = 0 ; | |
3739 | wxColour *result = 0 ; | |
3740 | bool temp1 = false ; | |
3741 | PyObject * obj0 = 0 ; | |
3742 | char * kwnames[] = { | |
3743 | (char *) "colorName", NULL | |
3744 | }; | |
3745 | ||
3746 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
3747 | { | |
3748 | arg1 = wxString_in_helper(obj0); | |
3749 | if (arg1 == NULL) SWIG_fail; | |
3750 | temp1 = true; | |
3751 | } | |
3752 | { | |
3753 | if (!wxPyCheckForApp()) SWIG_fail; | |
3754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3755 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
3756 | wxPyEndAllowThreads(__tstate); | |
3757 | if (PyErr_Occurred()) SWIG_fail; | |
3758 | } | |
3759 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
3760 | { | |
3761 | if (temp1) | |
3762 | delete arg1; | |
3763 | } | |
3764 | return resultobj; | |
3765 | fail: | |
3766 | { | |
3767 | if (temp1) | |
3768 | delete arg1; | |
3769 | } | |
3770 | return NULL; | |
d14a1e28 RD |
3771 | } |
3772 | ||
3773 | ||
0085ce49 RD |
3774 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3775 | PyObject *resultobj = 0; | |
3776 | unsigned long arg1 ; | |
3777 | wxColour *result = 0 ; | |
3778 | unsigned long val1 ; | |
3779 | int ecode1 = 0 ; | |
3780 | PyObject * obj0 = 0 ; | |
3781 | char * kwnames[] = { | |
3782 | (char *) "colRGB", NULL | |
3783 | }; | |
3784 | ||
3785 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
3786 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
3787 | if (!SWIG_IsOK(ecode1)) { | |
3788 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
3789 | } | |
3790 | arg1 = static_cast< unsigned long >(val1); | |
3791 | { | |
3792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3793 | result = (wxColour *)new wxColour(arg1); | |
3794 | wxPyEndAllowThreads(__tstate); | |
3795 | if (PyErr_Occurred()) SWIG_fail; | |
3796 | } | |
3797 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
3798 | return resultobj; | |
3799 | fail: | |
3800 | return NULL; | |
d14a1e28 RD |
3801 | } |
3802 | ||
3803 | ||
0085ce49 RD |
3804 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3805 | PyObject *resultobj = 0; | |
3806 | wxColour *arg1 = (wxColour *) 0 ; | |
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, SWIG_POINTER_DISOWN | 0 ); | |
3814 | if (!SWIG_IsOK(res1)) { | |
3815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3816 | } | |
3817 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3818 | { | |
3819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3820 | delete arg1; | |
d14a1e28 | 3821 | |
0085ce49 RD |
3822 | wxPyEndAllowThreads(__tstate); |
3823 | if (PyErr_Occurred()) SWIG_fail; | |
3824 | } | |
3825 | resultobj = SWIG_Py_Void(); | |
3826 | return resultobj; | |
3827 | fail: | |
3828 | return NULL; | |
d14a1e28 RD |
3829 | } |
3830 | ||
3831 | ||
0085ce49 RD |
3832 | SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3833 | PyObject *resultobj = 0; | |
3834 | wxColour *arg1 = (wxColour *) 0 ; | |
3835 | byte result; | |
3836 | void *argp1 = 0 ; | |
3837 | int res1 = 0 ; | |
3838 | PyObject *swig_obj[1] ; | |
3839 | ||
3840 | if (!args) SWIG_fail; | |
3841 | swig_obj[0] = args; | |
3842 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3843 | if (!SWIG_IsOK(res1)) { | |
3844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3845 | } | |
3846 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3847 | { | |
3848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3849 | result = (byte)(arg1)->Red(); | |
3850 | wxPyEndAllowThreads(__tstate); | |
3851 | if (PyErr_Occurred()) SWIG_fail; | |
3852 | } | |
3853 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
3854 | return resultobj; | |
3855 | fail: | |
3856 | return NULL; | |
d14a1e28 RD |
3857 | } |
3858 | ||
3859 | ||
0085ce49 RD |
3860 | SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3861 | PyObject *resultobj = 0; | |
3862 | wxColour *arg1 = (wxColour *) 0 ; | |
3863 | byte result; | |
3864 | void *argp1 = 0 ; | |
3865 | int res1 = 0 ; | |
3866 | PyObject *swig_obj[1] ; | |
3867 | ||
3868 | if (!args) SWIG_fail; | |
3869 | swig_obj[0] = args; | |
3870 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3871 | if (!SWIG_IsOK(res1)) { | |
3872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3873 | } | |
3874 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3875 | { | |
3876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3877 | result = (byte)(arg1)->Green(); | |
3878 | wxPyEndAllowThreads(__tstate); | |
3879 | if (PyErr_Occurred()) SWIG_fail; | |
3880 | } | |
3881 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
3882 | return resultobj; | |
3883 | fail: | |
3884 | return NULL; | |
5cbf236d RD |
3885 | } |
3886 | ||
3887 | ||
0085ce49 RD |
3888 | SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3889 | PyObject *resultobj = 0; | |
3890 | wxColour *arg1 = (wxColour *) 0 ; | |
3891 | byte result; | |
3892 | void *argp1 = 0 ; | |
3893 | int res1 = 0 ; | |
3894 | PyObject *swig_obj[1] ; | |
3895 | ||
3896 | if (!args) SWIG_fail; | |
3897 | swig_obj[0] = args; | |
3898 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3899 | if (!SWIG_IsOK(res1)) { | |
3900 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3901 | } | |
3902 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3903 | { | |
3904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3905 | result = (byte)(arg1)->Blue(); | |
3906 | wxPyEndAllowThreads(__tstate); | |
3907 | if (PyErr_Occurred()) SWIG_fail; | |
3908 | } | |
3909 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
3910 | return resultobj; | |
3911 | fail: | |
3912 | return NULL; | |
d14a1e28 RD |
3913 | } |
3914 | ||
3915 | ||
fc46b7f3 RD |
3916 | SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3917 | PyObject *resultobj = 0; | |
3918 | wxColour *arg1 = (wxColour *) 0 ; | |
3919 | byte result; | |
3920 | void *argp1 = 0 ; | |
3921 | int res1 = 0 ; | |
3922 | PyObject *swig_obj[1] ; | |
3923 | ||
3924 | if (!args) SWIG_fail; | |
3925 | swig_obj[0] = args; | |
3926 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3927 | if (!SWIG_IsOK(res1)) { | |
3928 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3929 | } | |
3930 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3931 | { | |
3932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3933 | result = (byte)(arg1)->Alpha(); | |
3934 | wxPyEndAllowThreads(__tstate); | |
3935 | if (PyErr_Occurred()) SWIG_fail; | |
3936 | } | |
3937 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
3938 | return resultobj; | |
3939 | fail: | |
3940 | return NULL; | |
3941 | } | |
3942 | ||
3943 | ||
0085ce49 RD |
3944 | SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3945 | PyObject *resultobj = 0; | |
3946 | wxColour *arg1 = (wxColour *) 0 ; | |
3947 | bool result; | |
3948 | void *argp1 = 0 ; | |
3949 | int res1 = 0 ; | |
3950 | PyObject *swig_obj[1] ; | |
3951 | ||
3952 | if (!args) SWIG_fail; | |
3953 | swig_obj[0] = args; | |
3954 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3955 | if (!SWIG_IsOK(res1)) { | |
3956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3957 | } | |
3958 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3959 | { | |
3960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3961 | result = (bool)(arg1)->Ok(); | |
3962 | wxPyEndAllowThreads(__tstate); | |
3963 | if (PyErr_Occurred()) SWIG_fail; | |
3964 | } | |
3965 | { | |
3966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3967 | } | |
3968 | return resultobj; | |
3969 | fail: | |
3970 | return NULL; | |
3971 | } | |
3972 | ||
3973 | ||
3974 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3975 | PyObject *resultobj = 0; | |
3976 | wxColour *arg1 = (wxColour *) 0 ; | |
3977 | byte arg2 ; | |
3978 | byte arg3 ; | |
3979 | byte arg4 ; | |
fc46b7f3 | 3980 | byte arg5 = (byte) wxALPHA_OPAQUE ; |
0085ce49 RD |
3981 | void *argp1 = 0 ; |
3982 | int res1 = 0 ; | |
3983 | unsigned char val2 ; | |
3984 | int ecode2 = 0 ; | |
3985 | unsigned char val3 ; | |
3986 | int ecode3 = 0 ; | |
3987 | unsigned char val4 ; | |
3988 | int ecode4 = 0 ; | |
fc46b7f3 RD |
3989 | unsigned char val5 ; |
3990 | int ecode5 = 0 ; | |
0085ce49 RD |
3991 | PyObject * obj0 = 0 ; |
3992 | PyObject * obj1 = 0 ; | |
3993 | PyObject * obj2 = 0 ; | |
3994 | PyObject * obj3 = 0 ; | |
fc46b7f3 | 3995 | PyObject * obj4 = 0 ; |
0085ce49 | 3996 | char * kwnames[] = { |
fc46b7f3 | 3997 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
0085ce49 RD |
3998 | }; |
3999 | ||
fc46b7f3 | 4000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
0085ce49 RD |
4001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); |
4002 | if (!SWIG_IsOK(res1)) { | |
4003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4004 | } | |
4005 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4006 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4007 | if (!SWIG_IsOK(ecode2)) { | |
4008 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
4009 | } | |
4010 | arg2 = static_cast< byte >(val2); | |
4011 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4012 | if (!SWIG_IsOK(ecode3)) { | |
4013 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
4014 | } | |
4015 | arg3 = static_cast< byte >(val3); | |
4016 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4017 | if (!SWIG_IsOK(ecode4)) { | |
4018 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
4019 | } | |
4020 | arg4 = static_cast< byte >(val4); | |
fc46b7f3 RD |
4021 | if (obj4) { |
4022 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
4023 | if (!SWIG_IsOK(ecode5)) { | |
4024 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'"); | |
4025 | } | |
4026 | arg5 = static_cast< byte >(val5); | |
4027 | } | |
0085ce49 RD |
4028 | { |
4029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4030 | (arg1)->Set(arg2,arg3,arg4,arg5); |
0085ce49 RD |
4031 | wxPyEndAllowThreads(__tstate); |
4032 | if (PyErr_Occurred()) SWIG_fail; | |
4033 | } | |
4034 | resultobj = SWIG_Py_Void(); | |
4035 | return resultobj; | |
4036 | fail: | |
4037 | return NULL; | |
4038 | } | |
4039 | ||
4040 | ||
4041 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4042 | PyObject *resultobj = 0; | |
4043 | wxColour *arg1 = (wxColour *) 0 ; | |
4044 | unsigned long arg2 ; | |
4045 | void *argp1 = 0 ; | |
4046 | int res1 = 0 ; | |
4047 | unsigned long val2 ; | |
4048 | int ecode2 = 0 ; | |
4049 | PyObject * obj0 = 0 ; | |
4050 | PyObject * obj1 = 0 ; | |
4051 | char * kwnames[] = { | |
4052 | (char *) "self",(char *) "colRGB", NULL | |
4053 | }; | |
4054 | ||
4055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4057 | if (!SWIG_IsOK(res1)) { | |
4058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4059 | } | |
4060 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4061 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
4062 | if (!SWIG_IsOK(ecode2)) { | |
4063 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
4064 | } | |
4065 | arg2 = static_cast< unsigned long >(val2); | |
4066 | { | |
4067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4068 | (arg1)->Set(arg2); | |
4069 | wxPyEndAllowThreads(__tstate); | |
4070 | if (PyErr_Occurred()) SWIG_fail; | |
4071 | } | |
4072 | resultobj = SWIG_Py_Void(); | |
4073 | return resultobj; | |
4074 | fail: | |
4075 | return NULL; | |
4076 | } | |
4077 | ||
4078 | ||
4079 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4080 | PyObject *resultobj = 0; | |
4081 | wxColour *arg1 = (wxColour *) 0 ; | |
4082 | wxString *arg2 = 0 ; | |
4083 | void *argp1 = 0 ; | |
4084 | int res1 = 0 ; | |
4085 | bool temp2 = false ; | |
4086 | PyObject * obj0 = 0 ; | |
4087 | PyObject * obj1 = 0 ; | |
4088 | char * kwnames[] = { | |
4089 | (char *) "self",(char *) "colourName", NULL | |
4090 | }; | |
4091 | ||
4092 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4093 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4094 | if (!SWIG_IsOK(res1)) { | |
4095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4096 | } | |
4097 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4098 | { | |
4099 | arg2 = wxString_in_helper(obj1); | |
4100 | if (arg2 == NULL) SWIG_fail; | |
4101 | temp2 = true; | |
4102 | } | |
4103 | { | |
4104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4105 | (arg1)->InitFromName((wxString const &)*arg2); | |
4106 | wxPyEndAllowThreads(__tstate); | |
4107 | if (PyErr_Occurred()) SWIG_fail; | |
4108 | } | |
4109 | resultobj = SWIG_Py_Void(); | |
4110 | { | |
4111 | if (temp2) | |
4112 | delete arg2; | |
4113 | } | |
4114 | return resultobj; | |
4115 | fail: | |
4116 | { | |
4117 | if (temp2) | |
4118 | delete arg2; | |
4119 | } | |
4120 | return NULL; | |
d14a1e28 RD |
4121 | } |
4122 | ||
4123 | ||
01f6b6d3 RD |
4124 | SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4125 | PyObject *resultobj = 0; | |
4126 | wxColour *arg1 = (wxColour *) 0 ; | |
4127 | long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ; | |
4128 | wxString result; | |
4129 | void *argp1 = 0 ; | |
4130 | int res1 = 0 ; | |
4131 | long val2 ; | |
4132 | int ecode2 = 0 ; | |
4133 | PyObject * obj0 = 0 ; | |
4134 | PyObject * obj1 = 0 ; | |
4135 | char * kwnames[] = { | |
4136 | (char *) "self",(char *) "flags", NULL | |
4137 | }; | |
4138 | ||
4139 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail; | |
4140 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4141 | if (!SWIG_IsOK(res1)) { | |
4142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4143 | } | |
4144 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4145 | if (obj1) { | |
4146 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4147 | if (!SWIG_IsOK(ecode2)) { | |
4148 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'"); | |
4149 | } | |
4150 | arg2 = static_cast< long >(val2); | |
4151 | } | |
4152 | { | |
4153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4154 | result = ((wxColour const *)arg1)->GetAsString(arg2); | |
4155 | wxPyEndAllowThreads(__tstate); | |
4156 | if (PyErr_Occurred()) SWIG_fail; | |
4157 | } | |
4158 | { | |
4159 | #if wxUSE_UNICODE | |
4160 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4161 | #else | |
4162 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4163 | #endif | |
4164 | } | |
4165 | return resultobj; | |
4166 | fail: | |
4167 | return NULL; | |
4168 | } | |
4169 | ||
4170 | ||
0085ce49 RD |
4171 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4172 | PyObject *resultobj = 0; | |
4173 | wxColour *arg1 = (wxColour *) 0 ; | |
4174 | long result; | |
4175 | void *argp1 = 0 ; | |
4176 | int res1 = 0 ; | |
4177 | PyObject *swig_obj[1] ; | |
4178 | ||
4179 | if (!args) SWIG_fail; | |
4180 | swig_obj[0] = args; | |
4181 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4182 | if (!SWIG_IsOK(res1)) { | |
4183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4184 | } | |
4185 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4186 | { | |
4187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4188 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
4189 | wxPyEndAllowThreads(__tstate); | |
4190 | if (PyErr_Occurred()) SWIG_fail; | |
4191 | } | |
4192 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4193 | return resultobj; | |
4194 | fail: | |
4195 | return NULL; | |
4196 | } | |
4197 | ||
4198 | ||
4199 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4200 | PyObject *resultobj = 0; | |
4201 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4202 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4203 | bool result; |
4204 | void *argp1 = 0 ; | |
4205 | int res1 = 0 ; | |
0085ce49 RD |
4206 | PyObject * obj0 = 0 ; |
4207 | PyObject * obj1 = 0 ; | |
4208 | char * kwnames[] = { | |
e9d6f3a4 | 4209 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4210 | }; |
4211 | ||
4212 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4214 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4216 | } |
4217 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4218 | arg2 = obj1; |
0085ce49 | 4219 | { |
e9d6f3a4 | 4220 | result = (bool)wxColour___eq__(arg1,arg2); |
0085ce49 RD |
4221 | if (PyErr_Occurred()) SWIG_fail; |
4222 | } | |
4223 | { | |
4224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4225 | } | |
4226 | return resultobj; | |
4227 | fail: | |
4228 | return NULL; | |
4229 | } | |
4230 | ||
4231 | ||
4232 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4233 | PyObject *resultobj = 0; | |
4234 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4235 | PyObject *arg2 = (PyObject *) 0 ; |
0085ce49 RD |
4236 | bool result; |
4237 | void *argp1 = 0 ; | |
4238 | int res1 = 0 ; | |
0085ce49 RD |
4239 | PyObject * obj0 = 0 ; |
4240 | PyObject * obj1 = 0 ; | |
4241 | char * kwnames[] = { | |
e9d6f3a4 | 4242 | (char *) "self",(char *) "other", NULL |
0085ce49 RD |
4243 | }; |
4244 | ||
4245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4247 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'"); |
0085ce49 RD |
4249 | } |
4250 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4251 | arg2 = obj1; |
0085ce49 | 4252 | { |
e9d6f3a4 | 4253 | result = (bool)wxColour___ne__(arg1,arg2); |
0085ce49 RD |
4254 | if (PyErr_Occurred()) SWIG_fail; |
4255 | } | |
4256 | { | |
4257 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4258 | } | |
4259 | return resultobj; | |
4260 | fail: | |
4261 | return NULL; | |
d14a1e28 RD |
4262 | } |
4263 | ||
4264 | ||
fc46b7f3 | 4265 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
4266 | PyObject *resultobj = 0; |
4267 | wxColour *arg1 = (wxColour *) 0 ; | |
fc46b7f3 | 4268 | bool arg2 = (bool) false ; |
0085ce49 RD |
4269 | PyObject *result = 0 ; |
4270 | void *argp1 = 0 ; | |
4271 | int res1 = 0 ; | |
fc46b7f3 RD |
4272 | bool val2 ; |
4273 | int ecode2 = 0 ; | |
4274 | PyObject * obj0 = 0 ; | |
4275 | PyObject * obj1 = 0 ; | |
4276 | char * kwnames[] = { | |
4277 | (char *) "self",(char *) "includeAlpha", NULL | |
4278 | }; | |
0085ce49 | 4279 | |
fc46b7f3 RD |
4280 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail; |
4281 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
0085ce49 RD |
4282 | if (!SWIG_IsOK(res1)) { |
4283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4284 | } | |
4285 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
fc46b7f3 RD |
4286 | if (obj1) { |
4287 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4288 | if (!SWIG_IsOK(ecode2)) { | |
4289 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'"); | |
4290 | } | |
4291 | arg2 = static_cast< bool >(val2); | |
4292 | } | |
0085ce49 | 4293 | { |
fc46b7f3 | 4294 | result = (PyObject *)wxColour_Get(arg1,arg2); |
0085ce49 RD |
4295 | if (PyErr_Occurred()) SWIG_fail; |
4296 | } | |
4297 | resultobj = result; | |
4298 | return resultobj; | |
4299 | fail: | |
4300 | return NULL; | |
d14a1e28 RD |
4301 | } |
4302 | ||
4303 | ||
0085ce49 RD |
4304 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4305 | PyObject *resultobj = 0; | |
4306 | wxColour *arg1 = (wxColour *) 0 ; | |
4307 | unsigned long result; | |
4308 | void *argp1 = 0 ; | |
4309 | int res1 = 0 ; | |
4310 | PyObject *swig_obj[1] ; | |
4311 | ||
4312 | if (!args) SWIG_fail; | |
4313 | swig_obj[0] = args; | |
4314 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4315 | if (!SWIG_IsOK(res1)) { | |
4316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4317 | } | |
4318 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4319 | { | |
0085ce49 | 4320 | result = (unsigned long)wxColour_GetRGB(arg1); |
0085ce49 RD |
4321 | if (PyErr_Occurred()) SWIG_fail; |
4322 | } | |
4323 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
4324 | return resultobj; | |
4325 | fail: | |
4326 | return NULL; | |
4327 | } | |
4328 | ||
4329 | ||
4330 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4331 | PyObject *obj; | |
4332 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4333 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
4334 | return SWIG_Py_Void(); | |
4335 | } | |
4336 | ||
4337 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4338 | return SWIG_Python_InitShadowInstance(args); | |
4339 | } | |
4340 | ||
4341 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4342 | PyObject *resultobj = 0; | |
4343 | int arg1 ; | |
4344 | unsigned char *arg2 = (unsigned char *) 0 ; | |
4345 | unsigned char *arg3 = (unsigned char *) 0 ; | |
4346 | unsigned char *arg4 = (unsigned char *) 0 ; | |
4347 | wxPalette *result = 0 ; | |
4348 | int val1 ; | |
4349 | int ecode1 = 0 ; | |
4350 | void *argp2 = 0 ; | |
4351 | int res2 = 0 ; | |
4352 | void *argp3 = 0 ; | |
4353 | int res3 = 0 ; | |
4354 | void *argp4 = 0 ; | |
4355 | int res4 = 0 ; | |
4356 | PyObject * obj0 = 0 ; | |
4357 | PyObject * obj1 = 0 ; | |
4358 | PyObject * obj2 = 0 ; | |
4359 | PyObject * obj3 = 0 ; | |
4360 | char * kwnames[] = { | |
4361 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4362 | }; | |
4363 | ||
4364 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4365 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4366 | if (!SWIG_IsOK(ecode1)) { | |
4367 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
4368 | } | |
4369 | arg1 = static_cast< int >(val1); | |
4370 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4371 | if (!SWIG_IsOK(res2)) { | |
4372 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
4373 | } | |
4374 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
4375 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4376 | if (!SWIG_IsOK(res3)) { | |
4377 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
4378 | } | |
4379 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
4380 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4381 | if (!SWIG_IsOK(res4)) { | |
4382 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
4383 | } | |
4384 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
4385 | { | |
4386 | if (!wxPyCheckForApp()) SWIG_fail; | |
4387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4388 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
4389 | wxPyEndAllowThreads(__tstate); | |
4390 | if (PyErr_Occurred()) SWIG_fail; | |
4391 | } | |
4392 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
4393 | return resultobj; | |
4394 | fail: | |
4395 | return NULL; | |
d14a1e28 RD |
4396 | } |
4397 | ||
4398 | ||
0085ce49 RD |
4399 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4400 | PyObject *resultobj = 0; | |
4401 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4402 | void *argp1 = 0 ; | |
4403 | int res1 = 0 ; | |
4404 | PyObject *swig_obj[1] ; | |
4405 | ||
4406 | if (!args) SWIG_fail; | |
4407 | swig_obj[0] = args; | |
4408 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4409 | if (!SWIG_IsOK(res1)) { | |
4410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4411 | } | |
4412 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4413 | { | |
4414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4415 | delete arg1; | |
d14a1e28 | 4416 | |
0085ce49 RD |
4417 | wxPyEndAllowThreads(__tstate); |
4418 | if (PyErr_Occurred()) SWIG_fail; | |
4419 | } | |
4420 | resultobj = SWIG_Py_Void(); | |
4421 | return resultobj; | |
4422 | fail: | |
4423 | return NULL; | |
4424 | } | |
4425 | ||
4426 | ||
4427 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4428 | PyObject *resultobj = 0; | |
4429 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4430 | byte arg2 ; | |
4431 | byte arg3 ; | |
4432 | byte arg4 ; | |
4433 | int result; | |
4434 | void *argp1 = 0 ; | |
4435 | int res1 = 0 ; | |
4436 | unsigned char val2 ; | |
4437 | int ecode2 = 0 ; | |
4438 | unsigned char val3 ; | |
4439 | int ecode3 = 0 ; | |
4440 | unsigned char val4 ; | |
4441 | int ecode4 = 0 ; | |
4442 | PyObject * obj0 = 0 ; | |
4443 | PyObject * obj1 = 0 ; | |
4444 | PyObject * obj2 = 0 ; | |
4445 | PyObject * obj3 = 0 ; | |
4446 | char * kwnames[] = { | |
4447 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4448 | }; | |
4449 | ||
4450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4451 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4452 | if (!SWIG_IsOK(res1)) { | |
4453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4454 | } | |
4455 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4456 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4457 | if (!SWIG_IsOK(ecode2)) { | |
4458 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4459 | } | |
4460 | arg2 = static_cast< byte >(val2); | |
4461 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4462 | if (!SWIG_IsOK(ecode3)) { | |
4463 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4464 | } | |
4465 | arg3 = static_cast< byte >(val3); | |
4466 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4467 | if (!SWIG_IsOK(ecode4)) { | |
4468 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4469 | } | |
4470 | arg4 = static_cast< byte >(val4); | |
4471 | { | |
4472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4473 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4474 | wxPyEndAllowThreads(__tstate); | |
4475 | if (PyErr_Occurred()) SWIG_fail; | |
4476 | } | |
4477 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4478 | return resultobj; | |
4479 | fail: | |
4480 | return NULL; | |
4481 | } | |
4482 | ||
4483 | ||
4484 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4485 | PyObject *resultobj = 0; | |
4486 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4487 | int arg2 ; | |
4488 | byte *arg3 = (byte *) 0 ; | |
4489 | byte *arg4 = (byte *) 0 ; | |
4490 | byte *arg5 = (byte *) 0 ; | |
4491 | bool result; | |
4492 | void *argp1 = 0 ; | |
4493 | int res1 = 0 ; | |
4494 | int val2 ; | |
4495 | int ecode2 = 0 ; | |
4496 | byte temp3 ; | |
4497 | int res3 = SWIG_TMPOBJ ; | |
4498 | byte temp4 ; | |
4499 | int res4 = SWIG_TMPOBJ ; | |
4500 | byte temp5 ; | |
4501 | int res5 = SWIG_TMPOBJ ; | |
4502 | PyObject * obj0 = 0 ; | |
4503 | PyObject * obj1 = 0 ; | |
4504 | char * kwnames[] = { | |
4505 | (char *) "self",(char *) "pixel", NULL | |
4506 | }; | |
4507 | ||
4508 | arg3 = &temp3; | |
4509 | arg4 = &temp4; | |
4510 | arg5 = &temp5; | |
4511 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4512 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4513 | if (!SWIG_IsOK(res1)) { | |
4514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4515 | } | |
4516 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4517 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4518 | if (!SWIG_IsOK(ecode2)) { | |
4519 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4520 | } | |
4521 | arg2 = static_cast< int >(val2); | |
4522 | { | |
4523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4524 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4525 | wxPyEndAllowThreads(__tstate); | |
4526 | if (PyErr_Occurred()) SWIG_fail; | |
4527 | } | |
4528 | { | |
4529 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4530 | } | |
4531 | if (SWIG_IsTmpObj(res3)) { | |
4532 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4533 | } else { | |
4534 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4535 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4536 | } | |
4537 | if (SWIG_IsTmpObj(res4)) { | |
4538 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4539 | } else { | |
4540 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4541 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4542 | } | |
4543 | if (SWIG_IsTmpObj(res5)) { | |
4544 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4545 | } else { | |
4546 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4547 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4548 | } | |
4549 | return resultobj; | |
4550 | fail: | |
4551 | return NULL; | |
d14a1e28 RD |
4552 | } |
4553 | ||
4554 | ||
0085ce49 RD |
4555 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4556 | PyObject *resultobj = 0; | |
4557 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4558 | int result; | |
4559 | void *argp1 = 0 ; | |
4560 | int res1 = 0 ; | |
4561 | PyObject *swig_obj[1] ; | |
4562 | ||
4563 | if (!args) SWIG_fail; | |
4564 | swig_obj[0] = args; | |
4565 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4566 | if (!SWIG_IsOK(res1)) { | |
4567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
4568 | } | |
4569 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4570 | { | |
4571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4572 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
4573 | wxPyEndAllowThreads(__tstate); | |
4574 | if (PyErr_Occurred()) SWIG_fail; | |
4575 | } | |
4576 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4577 | return resultobj; | |
4578 | fail: | |
4579 | return NULL; | |
d14a1e28 RD |
4580 | } |
4581 | ||
4582 | ||
0085ce49 RD |
4583 | SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4584 | PyObject *resultobj = 0; | |
4585 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4586 | bool result; | |
4587 | void *argp1 = 0 ; | |
4588 | int res1 = 0 ; | |
4589 | PyObject *swig_obj[1] ; | |
4590 | ||
4591 | if (!args) SWIG_fail; | |
4592 | swig_obj[0] = args; | |
4593 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4594 | if (!SWIG_IsOK(res1)) { | |
4595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4596 | } | |
4597 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4598 | { | |
4599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4600 | result = (bool)(arg1)->Ok(); | |
4601 | wxPyEndAllowThreads(__tstate); | |
4602 | if (PyErr_Occurred()) SWIG_fail; | |
4603 | } | |
4604 | { | |
4605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4606 | } | |
4607 | return resultobj; | |
4608 | fail: | |
4609 | return NULL; | |
4610 | } | |
4611 | ||
4612 | ||
4613 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4614 | PyObject *obj; | |
4615 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4616 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
4617 | return SWIG_Py_Void(); | |
4618 | } | |
4619 | ||
4620 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4621 | return SWIG_Python_InitShadowInstance(args); | |
4622 | } | |
4623 | ||
4624 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4625 | PyObject *resultobj = 0; | |
4626 | wxColour *arg1 = 0 ; | |
4627 | int arg2 = (int) 1 ; | |
4628 | int arg3 = (int) wxSOLID ; | |
4629 | wxPen *result = 0 ; | |
4630 | wxColour temp1 ; | |
4631 | int val2 ; | |
4632 | int ecode2 = 0 ; | |
4633 | int val3 ; | |
4634 | int ecode3 = 0 ; | |
4635 | PyObject * obj0 = 0 ; | |
4636 | PyObject * obj1 = 0 ; | |
4637 | PyObject * obj2 = 0 ; | |
4638 | char * kwnames[] = { | |
4639 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
4640 | }; | |
4641 | ||
4642 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4643 | { | |
4644 | arg1 = &temp1; | |
4645 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
4646 | } | |
4647 | if (obj1) { | |
4648 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4649 | if (!SWIG_IsOK(ecode2)) { | |
4650 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
4651 | } | |
4652 | arg2 = static_cast< int >(val2); | |
4653 | } | |
4654 | if (obj2) { | |
4655 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4656 | if (!SWIG_IsOK(ecode3)) { | |
4657 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
4658 | } | |
4659 | arg3 = static_cast< int >(val3); | |
4660 | } | |
4661 | { | |
4662 | if (!wxPyCheckForApp()) SWIG_fail; | |
4663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4664 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
4665 | wxPyEndAllowThreads(__tstate); | |
4666 | if (PyErr_Occurred()) SWIG_fail; | |
4667 | } | |
4668 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
4669 | return resultobj; | |
4670 | fail: | |
4671 | return NULL; | |
d14a1e28 RD |
4672 | } |
4673 | ||
4674 | ||
0085ce49 RD |
4675 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4676 | PyObject *resultobj = 0; | |
4677 | wxPen *arg1 = (wxPen *) 0 ; | |
4678 | void *argp1 = 0 ; | |
4679 | int res1 = 0 ; | |
4680 | PyObject *swig_obj[1] ; | |
4681 | ||
4682 | if (!args) SWIG_fail; | |
4683 | swig_obj[0] = args; | |
4684 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
4685 | if (!SWIG_IsOK(res1)) { | |
4686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4687 | } | |
4688 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4689 | { | |
4690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4691 | delete arg1; | |
d14a1e28 | 4692 | |
0085ce49 RD |
4693 | wxPyEndAllowThreads(__tstate); |
4694 | if (PyErr_Occurred()) SWIG_fail; | |
4695 | } | |
4696 | resultobj = SWIG_Py_Void(); | |
4697 | return resultobj; | |
4698 | fail: | |
4699 | return NULL; | |
d14a1e28 RD |
4700 | } |
4701 | ||
4702 | ||
0085ce49 RD |
4703 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4704 | PyObject *resultobj = 0; | |
4705 | wxPen *arg1 = (wxPen *) 0 ; | |
4706 | int result; | |
4707 | void *argp1 = 0 ; | |
4708 | int res1 = 0 ; | |
4709 | PyObject *swig_obj[1] ; | |
4710 | ||
4711 | if (!args) SWIG_fail; | |
4712 | swig_obj[0] = args; | |
4713 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4714 | if (!SWIG_IsOK(res1)) { | |
4715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4716 | } | |
4717 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4718 | { | |
4719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4720 | result = (int)(arg1)->GetCap(); | |
4721 | wxPyEndAllowThreads(__tstate); | |
4722 | if (PyErr_Occurred()) SWIG_fail; | |
4723 | } | |
4724 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4725 | return resultobj; | |
4726 | fail: | |
4727 | return NULL; | |
d14a1e28 RD |
4728 | } |
4729 | ||
4730 | ||
0085ce49 RD |
4731 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4732 | PyObject *resultobj = 0; | |
4733 | wxPen *arg1 = (wxPen *) 0 ; | |
4734 | wxColour result; | |
4735 | void *argp1 = 0 ; | |
4736 | int res1 = 0 ; | |
4737 | PyObject *swig_obj[1] ; | |
4738 | ||
4739 | if (!args) SWIG_fail; | |
4740 | swig_obj[0] = args; | |
4741 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4742 | if (!SWIG_IsOK(res1)) { | |
4743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4744 | } | |
4745 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4746 | { | |
4747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4748 | result = (arg1)->GetColour(); | |
4749 | wxPyEndAllowThreads(__tstate); | |
4750 | if (PyErr_Occurred()) SWIG_fail; | |
4751 | } | |
4752 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4753 | return resultobj; | |
4754 | fail: | |
4755 | return NULL; | |
d14a1e28 RD |
4756 | } |
4757 | ||
4758 | ||
0085ce49 RD |
4759 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4760 | PyObject *resultobj = 0; | |
4761 | wxPen *arg1 = (wxPen *) 0 ; | |
4762 | int result; | |
4763 | void *argp1 = 0 ; | |
4764 | int res1 = 0 ; | |
4765 | PyObject *swig_obj[1] ; | |
4766 | ||
4767 | if (!args) SWIG_fail; | |
4768 | swig_obj[0] = args; | |
4769 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4770 | if (!SWIG_IsOK(res1)) { | |
4771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4772 | } | |
4773 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4774 | { | |
4775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4776 | result = (int)(arg1)->GetJoin(); | |
4777 | wxPyEndAllowThreads(__tstate); | |
4778 | if (PyErr_Occurred()) SWIG_fail; | |
4779 | } | |
4780 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4781 | return resultobj; | |
4782 | fail: | |
4783 | return NULL; | |
d14a1e28 RD |
4784 | } |
4785 | ||
4786 | ||
0085ce49 RD |
4787 | SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4788 | PyObject *resultobj = 0; | |
4789 | wxPen *arg1 = (wxPen *) 0 ; | |
4790 | int result; | |
4791 | void *argp1 = 0 ; | |
4792 | int res1 = 0 ; | |
4793 | PyObject *swig_obj[1] ; | |
4794 | ||
4795 | if (!args) SWIG_fail; | |
4796 | swig_obj[0] = args; | |
4797 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4798 | if (!SWIG_IsOK(res1)) { | |
4799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4800 | } | |
4801 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4802 | { | |
4803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4804 | result = (int)(arg1)->GetStyle(); | |
4805 | wxPyEndAllowThreads(__tstate); | |
4806 | if (PyErr_Occurred()) SWIG_fail; | |
4807 | } | |
4808 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4809 | return resultobj; | |
4810 | fail: | |
4811 | return NULL; | |
3adfb63b RD |
4812 | } |
4813 | ||
4814 | ||
0085ce49 RD |
4815 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4816 | PyObject *resultobj = 0; | |
4817 | wxPen *arg1 = (wxPen *) 0 ; | |
4818 | int result; | |
4819 | void *argp1 = 0 ; | |
4820 | int res1 = 0 ; | |
4821 | PyObject *swig_obj[1] ; | |
4822 | ||
4823 | if (!args) SWIG_fail; | |
4824 | swig_obj[0] = args; | |
4825 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4826 | if (!SWIG_IsOK(res1)) { | |
4827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4828 | } | |
4829 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4830 | { | |
4831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4832 | result = (int)(arg1)->GetWidth(); | |
4833 | wxPyEndAllowThreads(__tstate); | |
4834 | if (PyErr_Occurred()) SWIG_fail; | |
4835 | } | |
4836 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4837 | return resultobj; | |
4838 | fail: | |
4839 | return NULL; | |
d14a1e28 RD |
4840 | } |
4841 | ||
4842 | ||
0085ce49 RD |
4843 | SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4844 | PyObject *resultobj = 0; | |
4845 | wxPen *arg1 = (wxPen *) 0 ; | |
4846 | bool result; | |
4847 | void *argp1 = 0 ; | |
4848 | int res1 = 0 ; | |
4849 | PyObject *swig_obj[1] ; | |
4850 | ||
4851 | if (!args) SWIG_fail; | |
4852 | swig_obj[0] = args; | |
4853 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4854 | if (!SWIG_IsOK(res1)) { | |
4855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4856 | } | |
4857 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4858 | { | |
4859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4860 | result = (bool)(arg1)->Ok(); | |
4861 | wxPyEndAllowThreads(__tstate); | |
4862 | if (PyErr_Occurred()) SWIG_fail; | |
4863 | } | |
4864 | { | |
4865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4866 | } | |
4867 | return resultobj; | |
4868 | fail: | |
4869 | return NULL; | |
4870 | } | |
4871 | ||
4872 | ||
4873 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4874 | PyObject *resultobj = 0; | |
4875 | wxPen *arg1 = (wxPen *) 0 ; | |
4876 | int arg2 ; | |
4877 | void *argp1 = 0 ; | |
4878 | int res1 = 0 ; | |
4879 | int val2 ; | |
4880 | int ecode2 = 0 ; | |
4881 | PyObject * obj0 = 0 ; | |
4882 | PyObject * obj1 = 0 ; | |
4883 | char * kwnames[] = { | |
4884 | (char *) "self",(char *) "cap_style", NULL | |
4885 | }; | |
4886 | ||
4887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
4888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4889 | if (!SWIG_IsOK(res1)) { | |
4890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4891 | } | |
4892 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4893 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4894 | if (!SWIG_IsOK(ecode2)) { | |
4895 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
4896 | } | |
4897 | arg2 = static_cast< int >(val2); | |
4898 | { | |
4899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4900 | (arg1)->SetCap(arg2); | |
4901 | wxPyEndAllowThreads(__tstate); | |
4902 | if (PyErr_Occurred()) SWIG_fail; | |
4903 | } | |
4904 | resultobj = SWIG_Py_Void(); | |
4905 | return resultobj; | |
4906 | fail: | |
4907 | return NULL; | |
4908 | } | |
4909 | ||
4910 | ||
4911 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4912 | PyObject *resultobj = 0; | |
4913 | wxPen *arg1 = (wxPen *) 0 ; | |
4914 | wxColour *arg2 = 0 ; | |
4915 | void *argp1 = 0 ; | |
4916 | int res1 = 0 ; | |
4917 | wxColour temp2 ; | |
4918 | PyObject * obj0 = 0 ; | |
4919 | PyObject * obj1 = 0 ; | |
4920 | char * kwnames[] = { | |
4921 | (char *) "self",(char *) "colour", NULL | |
4922 | }; | |
4923 | ||
4924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
4925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4926 | if (!SWIG_IsOK(res1)) { | |
4927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4928 | } | |
4929 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4930 | { | |
4931 | arg2 = &temp2; | |
4932 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
4933 | } | |
4934 | { | |
4935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4936 | (arg1)->SetColour(*arg2); | |
4937 | wxPyEndAllowThreads(__tstate); | |
4938 | if (PyErr_Occurred()) SWIG_fail; | |
4939 | } | |
4940 | resultobj = SWIG_Py_Void(); | |
4941 | return resultobj; | |
4942 | fail: | |
4943 | return NULL; | |
4944 | } | |
4945 | ||
4946 | ||
4947 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4948 | PyObject *resultobj = 0; | |
4949 | wxPen *arg1 = (wxPen *) 0 ; | |
4950 | int arg2 ; | |
4951 | void *argp1 = 0 ; | |
4952 | int res1 = 0 ; | |
4953 | int val2 ; | |
4954 | int ecode2 = 0 ; | |
4955 | PyObject * obj0 = 0 ; | |
4956 | PyObject * obj1 = 0 ; | |
4957 | char * kwnames[] = { | |
4958 | (char *) "self",(char *) "join_style", NULL | |
4959 | }; | |
4960 | ||
4961 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
4962 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4963 | if (!SWIG_IsOK(res1)) { | |
4964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4965 | } | |
4966 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4967 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4968 | if (!SWIG_IsOK(ecode2)) { | |
4969 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
4970 | } | |
4971 | arg2 = static_cast< int >(val2); | |
4972 | { | |
4973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4974 | (arg1)->SetJoin(arg2); | |
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_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4986 | PyObject *resultobj = 0; | |
4987 | wxPen *arg1 = (wxPen *) 0 ; | |
4988 | int arg2 ; | |
4989 | void *argp1 = 0 ; | |
4990 | int res1 = 0 ; | |
4991 | int val2 ; | |
4992 | int ecode2 = 0 ; | |
4993 | PyObject * obj0 = 0 ; | |
4994 | PyObject * obj1 = 0 ; | |
4995 | char * kwnames[] = { | |
4996 | (char *) "self",(char *) "style", NULL | |
4997 | }; | |
4998 | ||
4999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5000 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5001 | if (!SWIG_IsOK(res1)) { | |
5002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5003 | } | |
5004 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5005 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5006 | if (!SWIG_IsOK(ecode2)) { | |
5007 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5008 | } | |
5009 | arg2 = static_cast< int >(val2); | |
5010 | { | |
5011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5012 | (arg1)->SetStyle(arg2); | |
5013 | wxPyEndAllowThreads(__tstate); | |
5014 | if (PyErr_Occurred()) SWIG_fail; | |
5015 | } | |
5016 | resultobj = SWIG_Py_Void(); | |
5017 | return resultobj; | |
5018 | fail: | |
5019 | return NULL; | |
5020 | } | |
5021 | ||
5022 | ||
5023 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5024 | PyObject *resultobj = 0; | |
5025 | wxPen *arg1 = (wxPen *) 0 ; | |
5026 | int arg2 ; | |
5027 | void *argp1 = 0 ; | |
5028 | int res1 = 0 ; | |
5029 | int val2 ; | |
5030 | int ecode2 = 0 ; | |
5031 | PyObject * obj0 = 0 ; | |
5032 | PyObject * obj1 = 0 ; | |
5033 | char * kwnames[] = { | |
5034 | (char *) "self",(char *) "width", NULL | |
5035 | }; | |
5036 | ||
5037 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
5038 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5039 | if (!SWIG_IsOK(res1)) { | |
5040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5041 | } | |
5042 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5043 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5044 | if (!SWIG_IsOK(ecode2)) { | |
5045 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
5046 | } | |
5047 | arg2 = static_cast< int >(val2); | |
5048 | { | |
5049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5050 | (arg1)->SetWidth(arg2); | |
5051 | wxPyEndAllowThreads(__tstate); | |
5052 | if (PyErr_Occurred()) SWIG_fail; | |
5053 | } | |
5054 | resultobj = SWIG_Py_Void(); | |
5055 | return resultobj; | |
5056 | fail: | |
5057 | return NULL; | |
5058 | } | |
5059 | ||
5060 | ||
5061 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5062 | PyObject *resultobj = 0; | |
5063 | wxPen *arg1 = (wxPen *) 0 ; | |
5064 | int arg2 ; | |
5065 | wxDash *arg3 = (wxDash *) 0 ; | |
5066 | void *argp1 = 0 ; | |
5067 | int res1 = 0 ; | |
5068 | PyObject * obj0 = 0 ; | |
5069 | PyObject * obj1 = 0 ; | |
5070 | char * kwnames[] = { | |
5071 | (char *) "self",(char *) "dashes", NULL | |
5072 | }; | |
5073 | ||
5074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
5075 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5076 | if (!SWIG_IsOK(res1)) { | |
5077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5078 | } | |
5079 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5080 | { | |
5081 | arg2 = PyList_Size(obj1); | |
5082 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
5083 | if (arg3 == NULL) SWIG_fail; | |
5084 | } | |
5085 | { | |
5086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5087 | (arg1)->SetDashes(arg2,arg3); | |
5088 | wxPyEndAllowThreads(__tstate); | |
5089 | if (PyErr_Occurred()) SWIG_fail; | |
5090 | } | |
5091 | resultobj = SWIG_Py_Void(); | |
5092 | { | |
5093 | if (arg3) delete [] arg3; | |
5094 | } | |
5095 | return resultobj; | |
5096 | fail: | |
5097 | { | |
5098 | if (arg3) delete [] arg3; | |
5099 | } | |
5100 | return NULL; | |
d14a1e28 RD |
5101 | } |
5102 | ||
5103 | ||
0085ce49 RD |
5104 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5105 | PyObject *resultobj = 0; | |
5106 | wxPen *arg1 = (wxPen *) 0 ; | |
5107 | PyObject *result = 0 ; | |
5108 | void *argp1 = 0 ; | |
5109 | int res1 = 0 ; | |
5110 | PyObject *swig_obj[1] ; | |
5111 | ||
5112 | if (!args) SWIG_fail; | |
5113 | swig_obj[0] = args; | |
5114 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5115 | if (!SWIG_IsOK(res1)) { | |
5116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5117 | } | |
5118 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5119 | { | |
5120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5121 | result = (PyObject *)wxPen_GetDashes(arg1); | |
5122 | wxPyEndAllowThreads(__tstate); | |
5123 | if (PyErr_Occurred()) SWIG_fail; | |
5124 | } | |
5125 | resultobj = result; | |
5126 | return resultobj; | |
5127 | fail: | |
5128 | return NULL; | |
5129 | } | |
5130 | ||
5131 | ||
5132 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5133 | PyObject *resultobj = 0; | |
5134 | wxPen *arg1 = (wxPen *) 0 ; | |
5135 | PyObject *arg2 = (PyObject *) 0 ; | |
5136 | PyObject *arg3 = (PyObject *) 0 ; | |
5137 | void *argp1 = 0 ; | |
5138 | int res1 = 0 ; | |
5139 | PyObject * obj0 = 0 ; | |
5140 | PyObject * obj1 = 0 ; | |
5141 | PyObject * obj2 = 0 ; | |
5142 | char * kwnames[] = { | |
5143 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
5144 | }; | |
5145 | ||
5146 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5147 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5148 | if (!SWIG_IsOK(res1)) { | |
5149 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5150 | } | |
5151 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5152 | arg2 = obj1; | |
5153 | arg3 = obj2; | |
5154 | { | |
5155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5156 | wxPen__SetDashes(arg1,arg2,arg3); | |
5157 | wxPyEndAllowThreads(__tstate); | |
5158 | if (PyErr_Occurred()) SWIG_fail; | |
5159 | } | |
5160 | resultobj = SWIG_Py_Void(); | |
5161 | return resultobj; | |
5162 | fail: | |
5163 | return NULL; | |
d14a1e28 RD |
5164 | } |
5165 | ||
5166 | ||
0085ce49 RD |
5167 | SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5168 | PyObject *resultobj = 0; | |
5169 | wxPen *arg1 = (wxPen *) 0 ; | |
5170 | int result; | |
5171 | void *argp1 = 0 ; | |
5172 | int res1 = 0 ; | |
5173 | PyObject *swig_obj[1] ; | |
5174 | ||
5175 | if (!args) SWIG_fail; | |
5176 | swig_obj[0] = args; | |
5177 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5178 | if (!SWIG_IsOK(res1)) { | |
5179 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'"); | |
5180 | } | |
5181 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5182 | { | |
5183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5184 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
5185 | wxPyEndAllowThreads(__tstate); | |
5186 | if (PyErr_Occurred()) SWIG_fail; | |
5187 | } | |
5188 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5189 | return resultobj; | |
5190 | fail: | |
5191 | return NULL; | |
5192 | } | |
5193 | ||
5194 | ||
5195 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5196 | PyObject *resultobj = 0; | |
5197 | wxPen *arg1 = (wxPen *) 0 ; | |
5198 | wxPen *arg2 = (wxPen *) 0 ; | |
5199 | bool result; | |
5200 | void *argp1 = 0 ; | |
5201 | int res1 = 0 ; | |
5202 | void *argp2 = 0 ; | |
5203 | int res2 = 0 ; | |
5204 | PyObject * obj0 = 0 ; | |
5205 | PyObject * obj1 = 0 ; | |
5206 | char * kwnames[] = { | |
5207 | (char *) "self",(char *) "other", NULL | |
5208 | }; | |
5209 | ||
5210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5212 | if (!SWIG_IsOK(res1)) { | |
5213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5214 | } | |
5215 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5216 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5217 | if (!SWIG_IsOK(res2)) { | |
5218 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5219 | } | |
5220 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5221 | { | |
5222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5223 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
5224 | wxPyEndAllowThreads(__tstate); | |
5225 | if (PyErr_Occurred()) SWIG_fail; | |
5226 | } | |
5227 | { | |
5228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5229 | } | |
5230 | return resultobj; | |
5231 | fail: | |
5232 | return NULL; | |
5233 | } | |
5234 | ||
5235 | ||
5236 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5237 | PyObject *resultobj = 0; | |
5238 | wxPen *arg1 = (wxPen *) 0 ; | |
5239 | wxPen *arg2 = (wxPen *) 0 ; | |
5240 | bool result; | |
5241 | void *argp1 = 0 ; | |
5242 | int res1 = 0 ; | |
5243 | void *argp2 = 0 ; | |
5244 | int res2 = 0 ; | |
5245 | PyObject * obj0 = 0 ; | |
5246 | PyObject * obj1 = 0 ; | |
5247 | char * kwnames[] = { | |
5248 | (char *) "self",(char *) "other", NULL | |
5249 | }; | |
5250 | ||
5251 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5252 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5253 | if (!SWIG_IsOK(res1)) { | |
5254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5255 | } | |
5256 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5257 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5258 | if (!SWIG_IsOK(res2)) { | |
5259 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5260 | } | |
5261 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5262 | { | |
5263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5264 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
5265 | wxPyEndAllowThreads(__tstate); | |
5266 | if (PyErr_Occurred()) SWIG_fail; | |
5267 | } | |
5268 | { | |
5269 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5270 | } | |
5271 | return resultobj; | |
5272 | fail: | |
5273 | return NULL; | |
d14a1e28 RD |
5274 | } |
5275 | ||
5276 | ||
0085ce49 RD |
5277 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5278 | PyObject *obj; | |
5279 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5280 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
5281 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5282 | } |
5283 | ||
0085ce49 RD |
5284 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5285 | return SWIG_Python_InitShadowInstance(args); | |
5286 | } | |
d14a1e28 | 5287 | |
0085ce49 RD |
5288 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5289 | PyObject *resultobj = 0; | |
5290 | wxColour *arg1 = 0 ; | |
5291 | int arg2 = (int) wxSOLID ; | |
5292 | wxBrush *result = 0 ; | |
5293 | wxColour temp1 ; | |
5294 | int val2 ; | |
5295 | int ecode2 = 0 ; | |
5296 | PyObject * obj0 = 0 ; | |
5297 | PyObject * obj1 = 0 ; | |
5298 | char * kwnames[] = { | |
5299 | (char *) "colour",(char *) "style", NULL | |
5300 | }; | |
5301 | ||
5302 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
5303 | { | |
5304 | arg1 = &temp1; | |
5305 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5306 | } | |
5307 | if (obj1) { | |
5308 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5309 | if (!SWIG_IsOK(ecode2)) { | |
5310 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
5311 | } | |
5312 | arg2 = static_cast< int >(val2); | |
5313 | } | |
5314 | { | |
5315 | if (!wxPyCheckForApp()) SWIG_fail; | |
5316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5317 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
5318 | wxPyEndAllowThreads(__tstate); | |
5319 | if (PyErr_Occurred()) SWIG_fail; | |
5320 | } | |
5321 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
5322 | return resultobj; | |
5323 | fail: | |
5324 | return NULL; | |
5325 | } | |
5326 | ||
5327 | ||
5328 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5329 | PyObject *resultobj = 0; | |
5330 | wxBitmap *arg1 = 0 ; | |
5331 | wxBrush *result = 0 ; | |
5332 | void *argp1 = 0 ; | |
5333 | int res1 = 0 ; | |
5334 | PyObject * obj0 = 0 ; | |
5335 | char * kwnames[] = { | |
5336 | (char *) "stippleBitmap", NULL | |
5337 | }; | |
5338 | ||
5339 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
5340 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5341 | if (!SWIG_IsOK(res1)) { | |
5342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5343 | } | |
5344 | if (!argp1) { | |
5345 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5346 | } | |
5347 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5348 | { | |
5349 | if (!wxPyCheckForApp()) SWIG_fail; | |
5350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5351 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
5352 | wxPyEndAllowThreads(__tstate); | |
5353 | if (PyErr_Occurred()) SWIG_fail; | |
5354 | } | |
5355 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
5356 | return resultobj; | |
5357 | fail: | |
5358 | return NULL; | |
d14a1e28 RD |
5359 | } |
5360 | ||
5361 | ||
0085ce49 RD |
5362 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5363 | PyObject *resultobj = 0; | |
5364 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5365 | void *argp1 = 0 ; | |
5366 | int res1 = 0 ; | |
5367 | PyObject *swig_obj[1] ; | |
5368 | ||
5369 | if (!args) SWIG_fail; | |
5370 | swig_obj[0] = args; | |
5371 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
5372 | if (!SWIG_IsOK(res1)) { | |
5373 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5374 | } | |
5375 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5376 | { | |
5377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5378 | delete arg1; | |
d14a1e28 | 5379 | |
0085ce49 RD |
5380 | wxPyEndAllowThreads(__tstate); |
5381 | if (PyErr_Occurred()) SWIG_fail; | |
5382 | } | |
5383 | resultobj = SWIG_Py_Void(); | |
5384 | return resultobj; | |
5385 | fail: | |
5386 | return NULL; | |
5387 | } | |
5388 | ||
5389 | ||
5390 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5391 | PyObject *resultobj = 0; | |
5392 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5393 | wxColour *arg2 = 0 ; | |
5394 | void *argp1 = 0 ; | |
5395 | int res1 = 0 ; | |
5396 | wxColour temp2 ; | |
5397 | PyObject * obj0 = 0 ; | |
5398 | PyObject * obj1 = 0 ; | |
5399 | char * kwnames[] = { | |
5400 | (char *) "self",(char *) "col", NULL | |
5401 | }; | |
5402 | ||
5403 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5404 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5405 | if (!SWIG_IsOK(res1)) { | |
5406 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5407 | } | |
5408 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5409 | { | |
5410 | arg2 = &temp2; | |
5411 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5412 | } | |
5413 | { | |
5414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5415 | (arg1)->SetColour((wxColour const &)*arg2); | |
5416 | wxPyEndAllowThreads(__tstate); | |
5417 | if (PyErr_Occurred()) SWIG_fail; | |
5418 | } | |
5419 | resultobj = SWIG_Py_Void(); | |
5420 | return resultobj; | |
5421 | fail: | |
5422 | return NULL; | |
5423 | } | |
5424 | ||
5425 | ||
5426 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5427 | PyObject *resultobj = 0; | |
5428 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5429 | int arg2 ; | |
5430 | void *argp1 = 0 ; | |
5431 | int res1 = 0 ; | |
5432 | int val2 ; | |
5433 | int ecode2 = 0 ; | |
5434 | PyObject * obj0 = 0 ; | |
5435 | PyObject * obj1 = 0 ; | |
5436 | char * kwnames[] = { | |
5437 | (char *) "self",(char *) "style", NULL | |
5438 | }; | |
5439 | ||
5440 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5441 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5442 | if (!SWIG_IsOK(res1)) { | |
5443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5444 | } | |
5445 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5446 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5447 | if (!SWIG_IsOK(ecode2)) { | |
5448 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5449 | } | |
5450 | arg2 = static_cast< int >(val2); | |
5451 | { | |
5452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5453 | (arg1)->SetStyle(arg2); | |
5454 | wxPyEndAllowThreads(__tstate); | |
5455 | if (PyErr_Occurred()) SWIG_fail; | |
5456 | } | |
5457 | resultobj = SWIG_Py_Void(); | |
5458 | return resultobj; | |
5459 | fail: | |
5460 | return NULL; | |
5461 | } | |
5462 | ||
5463 | ||
5464 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5465 | PyObject *resultobj = 0; | |
5466 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5467 | wxBitmap *arg2 = 0 ; | |
5468 | void *argp1 = 0 ; | |
5469 | int res1 = 0 ; | |
5470 | void *argp2 = 0 ; | |
5471 | int res2 = 0 ; | |
5472 | PyObject * obj0 = 0 ; | |
5473 | PyObject * obj1 = 0 ; | |
5474 | char * kwnames[] = { | |
5475 | (char *) "self",(char *) "stipple", NULL | |
5476 | }; | |
5477 | ||
5478 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5479 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5480 | if (!SWIG_IsOK(res1)) { | |
5481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5482 | } | |
5483 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5484 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5485 | if (!SWIG_IsOK(res2)) { | |
5486 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5487 | } | |
5488 | if (!argp2) { | |
5489 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5490 | } | |
5491 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5492 | { | |
5493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5494 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
5495 | wxPyEndAllowThreads(__tstate); | |
5496 | if (PyErr_Occurred()) SWIG_fail; | |
5497 | } | |
5498 | resultobj = SWIG_Py_Void(); | |
5499 | return resultobj; | |
5500 | fail: | |
5501 | return NULL; | |
d14a1e28 RD |
5502 | } |
5503 | ||
5504 | ||
0085ce49 RD |
5505 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5506 | PyObject *resultobj = 0; | |
5507 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5508 | wxColour result; | |
5509 | void *argp1 = 0 ; | |
5510 | int res1 = 0 ; | |
5511 | PyObject *swig_obj[1] ; | |
5512 | ||
5513 | if (!args) SWIG_fail; | |
5514 | swig_obj[0] = args; | |
5515 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5516 | if (!SWIG_IsOK(res1)) { | |
5517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5518 | } | |
5519 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5520 | { | |
5521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5522 | result = ((wxBrush const *)arg1)->GetColour(); | |
5523 | wxPyEndAllowThreads(__tstate); | |
5524 | if (PyErr_Occurred()) SWIG_fail; | |
5525 | } | |
5526 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5527 | return resultobj; | |
5528 | fail: | |
5529 | return NULL; | |
d14a1e28 RD |
5530 | } |
5531 | ||
5532 | ||
0085ce49 RD |
5533 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5534 | PyObject *resultobj = 0; | |
5535 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5536 | int result; | |
5537 | void *argp1 = 0 ; | |
5538 | int res1 = 0 ; | |
5539 | PyObject *swig_obj[1] ; | |
5540 | ||
5541 | if (!args) SWIG_fail; | |
5542 | swig_obj[0] = args; | |
5543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5544 | if (!SWIG_IsOK(res1)) { | |
5545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5546 | } | |
5547 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5548 | { | |
5549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5550 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
5551 | wxPyEndAllowThreads(__tstate); | |
5552 | if (PyErr_Occurred()) SWIG_fail; | |
5553 | } | |
5554 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5555 | return resultobj; | |
5556 | fail: | |
5557 | return NULL; | |
d14a1e28 RD |
5558 | } |
5559 | ||
5560 | ||
0085ce49 RD |
5561 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5562 | PyObject *resultobj = 0; | |
5563 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5564 | wxBitmap *result = 0 ; | |
5565 | void *argp1 = 0 ; | |
5566 | int res1 = 0 ; | |
5567 | PyObject *swig_obj[1] ; | |
5568 | ||
5569 | if (!args) SWIG_fail; | |
5570 | swig_obj[0] = args; | |
5571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5572 | if (!SWIG_IsOK(res1)) { | |
5573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5574 | } | |
5575 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5576 | { | |
5577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5578 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
5579 | wxPyEndAllowThreads(__tstate); | |
5580 | if (PyErr_Occurred()) SWIG_fail; | |
5581 | } | |
5582 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5583 | return resultobj; | |
5584 | fail: | |
5585 | return NULL; | |
d14a1e28 RD |
5586 | } |
5587 | ||
5588 | ||
0085ce49 RD |
5589 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5590 | PyObject *resultobj = 0; | |
5591 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5592 | bool result; | |
5593 | void *argp1 = 0 ; | |
5594 | int res1 = 0 ; | |
5595 | PyObject *swig_obj[1] ; | |
5596 | ||
5597 | if (!args) SWIG_fail; | |
5598 | swig_obj[0] = args; | |
5599 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5600 | if (!SWIG_IsOK(res1)) { | |
5601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5602 | } | |
5603 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5604 | { | |
5605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5606 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
5607 | wxPyEndAllowThreads(__tstate); | |
5608 | if (PyErr_Occurred()) SWIG_fail; | |
5609 | } | |
5610 | { | |
5611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5612 | } | |
5613 | return resultobj; | |
5614 | fail: | |
5615 | return NULL; | |
f78cc896 RD |
5616 | } |
5617 | ||
5618 | ||
0085ce49 RD |
5619 | SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5620 | PyObject *resultobj = 0; | |
5621 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5622 | bool result; | |
5623 | void *argp1 = 0 ; | |
5624 | int res1 = 0 ; | |
5625 | PyObject *swig_obj[1] ; | |
5626 | ||
5627 | if (!args) SWIG_fail; | |
5628 | swig_obj[0] = args; | |
5629 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5630 | if (!SWIG_IsOK(res1)) { | |
5631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5632 | } | |
5633 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5634 | { | |
5635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5636 | result = (bool)(arg1)->Ok(); | |
5637 | wxPyEndAllowThreads(__tstate); | |
5638 | if (PyErr_Occurred()) SWIG_fail; | |
5639 | } | |
5640 | { | |
5641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5642 | } | |
5643 | return resultobj; | |
5644 | fail: | |
5645 | return NULL; | |
d14a1e28 RD |
5646 | } |
5647 | ||
5648 | ||
0085ce49 RD |
5649 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5650 | PyObject *obj; | |
5651 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5652 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
5653 | return SWIG_Py_Void(); | |
d14a1e28 RD |
5654 | } |
5655 | ||
0085ce49 RD |
5656 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5657 | return SWIG_Python_InitShadowInstance(args); | |
5658 | } | |
d14a1e28 | 5659 | |
0085ce49 RD |
5660 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5661 | PyObject *resultobj = 0; | |
5662 | wxString *arg1 = 0 ; | |
5663 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
5664 | wxBitmap *result = 0 ; | |
5665 | bool temp1 = false ; | |
5666 | int val2 ; | |
5667 | int ecode2 = 0 ; | |
5668 | PyObject * obj0 = 0 ; | |
5669 | PyObject * obj1 = 0 ; | |
5670 | char * kwnames[] = { | |
5671 | (char *) "name",(char *) "type", NULL | |
5672 | }; | |
5673 | ||
5674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5675 | { | |
5676 | arg1 = wxString_in_helper(obj0); | |
5677 | if (arg1 == NULL) SWIG_fail; | |
5678 | temp1 = true; | |
5679 | } | |
5680 | if (obj1) { | |
5681 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5682 | if (!SWIG_IsOK(ecode2)) { | |
5683 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
5684 | } | |
5685 | arg2 = static_cast< wxBitmapType >(val2); | |
5686 | } | |
5687 | { | |
5688 | if (!wxPyCheckForApp()) SWIG_fail; | |
5689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5690 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
5691 | wxPyEndAllowThreads(__tstate); | |
5692 | if (PyErr_Occurred()) SWIG_fail; | |
5693 | } | |
5694 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
5695 | { | |
5696 | if (temp1) | |
5697 | delete arg1; | |
5698 | } | |
5699 | return resultobj; | |
5700 | fail: | |
5701 | { | |
5702 | if (temp1) | |
5703 | delete arg1; | |
5704 | } | |
5705 | return NULL; | |
d14a1e28 RD |
5706 | } |
5707 | ||
5708 | ||
0085ce49 RD |
5709 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5710 | PyObject *resultobj = 0; | |
5711 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5712 | void *argp1 = 0 ; | |
5713 | int res1 = 0 ; | |
5714 | PyObject *swig_obj[1] ; | |
5715 | ||
5716 | if (!args) SWIG_fail; | |
5717 | swig_obj[0] = args; | |
5718 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
5719 | if (!SWIG_IsOK(res1)) { | |
5720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5721 | } | |
5722 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5723 | { | |
0085ce49 | 5724 | delete arg1; |
66c033b4 | 5725 | |
0085ce49 RD |
5726 | if (PyErr_Occurred()) SWIG_fail; |
5727 | } | |
5728 | resultobj = SWIG_Py_Void(); | |
5729 | return resultobj; | |
5730 | fail: | |
5731 | return NULL; | |
5732 | } | |
5733 | ||
5734 | ||
5735 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5736 | PyObject *resultobj = 0; | |
5737 | int arg1 ; | |
5738 | int arg2 ; | |
5739 | int arg3 = (int) -1 ; | |
5740 | wxBitmap *result = 0 ; | |
5741 | int val1 ; | |
5742 | int ecode1 = 0 ; | |
5743 | int val2 ; | |
5744 | int ecode2 = 0 ; | |
5745 | int val3 ; | |
5746 | int ecode3 = 0 ; | |
5747 | PyObject * obj0 = 0 ; | |
5748 | PyObject * obj1 = 0 ; | |
5749 | PyObject * obj2 = 0 ; | |
5750 | char * kwnames[] = { | |
5751 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
5752 | }; | |
5753 | ||
5754 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5755 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5756 | if (!SWIG_IsOK(ecode1)) { | |
5757 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
5758 | } | |
5759 | arg1 = static_cast< int >(val1); | |
5760 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5761 | if (!SWIG_IsOK(ecode2)) { | |
5762 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
5763 | } | |
5764 | arg2 = static_cast< int >(val2); | |
5765 | if (obj2) { | |
5766 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5767 | if (!SWIG_IsOK(ecode3)) { | |
5768 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
5769 | } | |
5770 | arg3 = static_cast< int >(val3); | |
5771 | } | |
5772 | { | |
5773 | if (!wxPyCheckForApp()) SWIG_fail; | |
5774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5775 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
5776 | wxPyEndAllowThreads(__tstate); | |
5777 | if (PyErr_Occurred()) SWIG_fail; | |
5778 | } | |
5779 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5780 | return resultobj; | |
5781 | fail: | |
5782 | return NULL; | |
5783 | } | |
5784 | ||
5785 | ||
5786 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5787 | PyObject *resultobj = 0; | |
5788 | wxIcon *arg1 = 0 ; | |
5789 | wxBitmap *result = 0 ; | |
5790 | void *argp1 = 0 ; | |
5791 | int res1 = 0 ; | |
5792 | PyObject * obj0 = 0 ; | |
5793 | char * kwnames[] = { | |
5794 | (char *) "icon", NULL | |
5795 | }; | |
5796 | ||
5797 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
5798 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
5799 | if (!SWIG_IsOK(res1)) { | |
5800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
5801 | } | |
5802 | if (!argp1) { | |
5803 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
5804 | } | |
5805 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
5806 | { | |
5807 | if (!wxPyCheckForApp()) SWIG_fail; | |
5808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5809 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
5810 | wxPyEndAllowThreads(__tstate); | |
5811 | if (PyErr_Occurred()) SWIG_fail; | |
5812 | } | |
5813 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5814 | return resultobj; | |
5815 | fail: | |
5816 | return NULL; | |
5817 | } | |
5818 | ||
5819 | ||
5820 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5821 | PyObject *resultobj = 0; | |
5822 | wxImage *arg1 = 0 ; | |
5823 | int arg2 = (int) -1 ; | |
5824 | wxBitmap *result = 0 ; | |
5825 | void *argp1 = 0 ; | |
5826 | int res1 = 0 ; | |
5827 | int val2 ; | |
5828 | int ecode2 = 0 ; | |
5829 | PyObject * obj0 = 0 ; | |
5830 | PyObject * obj1 = 0 ; | |
5831 | char * kwnames[] = { | |
5832 | (char *) "image",(char *) "depth", NULL | |
5833 | }; | |
5834 | ||
5835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
5836 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
5837 | if (!SWIG_IsOK(res1)) { | |
5838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
5839 | } | |
5840 | if (!argp1) { | |
5841 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
5842 | } | |
5843 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
5844 | if (obj1) { | |
5845 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5846 | if (!SWIG_IsOK(ecode2)) { | |
5847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
5848 | } | |
5849 | arg2 = static_cast< int >(val2); | |
5850 | } | |
5851 | { | |
5852 | if (!wxPyCheckForApp()) SWIG_fail; | |
5853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5854 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
5855 | wxPyEndAllowThreads(__tstate); | |
5856 | if (PyErr_Occurred()) SWIG_fail; | |
5857 | } | |
5858 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5859 | return resultobj; | |
5860 | fail: | |
5861 | return NULL; | |
66c033b4 RD |
5862 | } |
5863 | ||
5864 | ||
0085ce49 RD |
5865 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5866 | PyObject *resultobj = 0; | |
5867 | PyObject *arg1 = (PyObject *) 0 ; | |
5868 | wxBitmap *result = 0 ; | |
5869 | PyObject * obj0 = 0 ; | |
5870 | char * kwnames[] = { | |
5871 | (char *) "listOfStrings", NULL | |
5872 | }; | |
5873 | ||
5874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
5875 | arg1 = obj0; | |
5876 | { | |
5877 | if (!wxPyCheckForApp()) SWIG_fail; | |
5878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5879 | result = (wxBitmap *)new_wxBitmap(arg1); | |
5880 | wxPyEndAllowThreads(__tstate); | |
5881 | if (PyErr_Occurred()) SWIG_fail; | |
5882 | } | |
5883 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5884 | return resultobj; | |
5885 | fail: | |
5886 | return NULL; | |
5887 | } | |
5888 | ||
5889 | ||
5890 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5891 | PyObject *resultobj = 0; | |
5892 | PyObject *arg1 = (PyObject *) 0 ; | |
5893 | int arg2 ; | |
5894 | int arg3 ; | |
5895 | int arg4 = (int) 1 ; | |
5896 | wxBitmap *result = 0 ; | |
5897 | int val2 ; | |
5898 | int ecode2 = 0 ; | |
5899 | int val3 ; | |
5900 | int ecode3 = 0 ; | |
5901 | int val4 ; | |
5902 | int ecode4 = 0 ; | |
5903 | PyObject * obj0 = 0 ; | |
5904 | PyObject * obj1 = 0 ; | |
5905 | PyObject * obj2 = 0 ; | |
5906 | PyObject * obj3 = 0 ; | |
5907 | char * kwnames[] = { | |
5908 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
5909 | }; | |
5910 | ||
5911 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
5912 | arg1 = obj0; | |
5913 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5914 | if (!SWIG_IsOK(ecode2)) { | |
5915 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
5916 | } | |
5917 | arg2 = static_cast< int >(val2); | |
5918 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5919 | if (!SWIG_IsOK(ecode3)) { | |
5920 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
5921 | } | |
5922 | arg3 = static_cast< int >(val3); | |
5923 | if (obj3) { | |
5924 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
5925 | if (!SWIG_IsOK(ecode4)) { | |
5926 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
5927 | } | |
5928 | arg4 = static_cast< int >(val4); | |
5929 | } | |
5930 | { | |
5931 | if (!wxPyCheckForApp()) SWIG_fail; | |
5932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5933 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
5934 | wxPyEndAllowThreads(__tstate); | |
5935 | if (PyErr_Occurred()) SWIG_fail; | |
5936 | } | |
5937 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
5938 | return resultobj; | |
5939 | fail: | |
5940 | return NULL; | |
d14a1e28 RD |
5941 | } |
5942 | ||
5943 | ||
0085ce49 RD |
5944 | SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5945 | PyObject *resultobj = 0; | |
5946 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5947 | bool result; | |
5948 | void *argp1 = 0 ; | |
5949 | int res1 = 0 ; | |
5950 | PyObject *swig_obj[1] ; | |
5951 | ||
5952 | if (!args) SWIG_fail; | |
5953 | swig_obj[0] = args; | |
5954 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5955 | if (!SWIG_IsOK(res1)) { | |
5956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5957 | } | |
5958 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5959 | { | |
0085ce49 | 5960 | result = (bool)(arg1)->Ok(); |
0085ce49 RD |
5961 | if (PyErr_Occurred()) SWIG_fail; |
5962 | } | |
5963 | { | |
5964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5965 | } | |
5966 | return resultobj; | |
5967 | fail: | |
5968 | return NULL; | |
d14a1e28 RD |
5969 | } |
5970 | ||
5971 | ||
0085ce49 RD |
5972 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5973 | PyObject *resultobj = 0; | |
5974 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5975 | int result; | |
5976 | void *argp1 = 0 ; | |
5977 | int res1 = 0 ; | |
5978 | PyObject *swig_obj[1] ; | |
5979 | ||
5980 | if (!args) SWIG_fail; | |
5981 | swig_obj[0] = args; | |
5982 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5983 | if (!SWIG_IsOK(res1)) { | |
5984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5985 | } | |
5986 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5987 | { | |
0085ce49 | 5988 | result = (int)(arg1)->GetWidth(); |
0085ce49 RD |
5989 | if (PyErr_Occurred()) SWIG_fail; |
5990 | } | |
5991 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5992 | return resultobj; | |
5993 | fail: | |
5994 | return NULL; | |
d14a1e28 RD |
5995 | } |
5996 | ||
5997 | ||
0085ce49 RD |
5998 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5999 | PyObject *resultobj = 0; | |
6000 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6001 | int result; | |
6002 | void *argp1 = 0 ; | |
6003 | int res1 = 0 ; | |
6004 | PyObject *swig_obj[1] ; | |
6005 | ||
6006 | if (!args) SWIG_fail; | |
6007 | swig_obj[0] = args; | |
6008 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6009 | if (!SWIG_IsOK(res1)) { | |
6010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6011 | } | |
6012 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6013 | { | |
0085ce49 | 6014 | result = (int)(arg1)->GetHeight(); |
0085ce49 RD |
6015 | if (PyErr_Occurred()) SWIG_fail; |
6016 | } | |
6017 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6018 | return resultobj; | |
6019 | fail: | |
6020 | return NULL; | |
d14a1e28 RD |
6021 | } |
6022 | ||
6023 | ||
0085ce49 RD |
6024 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6025 | PyObject *resultobj = 0; | |
6026 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6027 | int result; | |
6028 | void *argp1 = 0 ; | |
6029 | int res1 = 0 ; | |
6030 | PyObject *swig_obj[1] ; | |
6031 | ||
6032 | if (!args) SWIG_fail; | |
6033 | swig_obj[0] = args; | |
6034 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6035 | if (!SWIG_IsOK(res1)) { | |
6036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6037 | } | |
6038 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6039 | { | |
0085ce49 | 6040 | result = (int)(arg1)->GetDepth(); |
0085ce49 RD |
6041 | if (PyErr_Occurred()) SWIG_fail; |
6042 | } | |
6043 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6044 | return resultobj; | |
6045 | fail: | |
6046 | return NULL; | |
d14a1e28 RD |
6047 | } |
6048 | ||
6049 | ||
0085ce49 RD |
6050 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6051 | PyObject *resultobj = 0; | |
6052 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6053 | wxSize result; | |
6054 | void *argp1 = 0 ; | |
6055 | int res1 = 0 ; | |
6056 | PyObject *swig_obj[1] ; | |
6057 | ||
6058 | if (!args) SWIG_fail; | |
6059 | swig_obj[0] = args; | |
6060 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6061 | if (!SWIG_IsOK(res1)) { | |
6062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6063 | } | |
6064 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6065 | { | |
0085ce49 | 6066 | result = wxBitmap_GetSize(arg1); |
0085ce49 RD |
6067 | if (PyErr_Occurred()) SWIG_fail; |
6068 | } | |
6069 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
6070 | return resultobj; | |
6071 | fail: | |
6072 | return NULL; | |
d14a1e28 RD |
6073 | } |
6074 | ||
6075 | ||
0085ce49 RD |
6076 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6077 | PyObject *resultobj = 0; | |
6078 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6079 | SwigValueWrapper<wxImage > result; | |
6080 | void *argp1 = 0 ; | |
6081 | int res1 = 0 ; | |
6082 | PyObject *swig_obj[1] ; | |
6083 | ||
6084 | if (!args) SWIG_fail; | |
6085 | swig_obj[0] = args; | |
6086 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6087 | if (!SWIG_IsOK(res1)) { | |
6088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6089 | } | |
6090 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6091 | { | |
0085ce49 | 6092 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
0085ce49 RD |
6093 | if (PyErr_Occurred()) SWIG_fail; |
6094 | } | |
6095 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
6096 | return resultobj; | |
6097 | fail: | |
6098 | return NULL; | |
d14a1e28 RD |
6099 | } |
6100 | ||
6101 | ||
0085ce49 RD |
6102 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6103 | PyObject *resultobj = 0; | |
6104 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6105 | wxMask *result = 0 ; | |
6106 | void *argp1 = 0 ; | |
6107 | int res1 = 0 ; | |
6108 | PyObject *swig_obj[1] ; | |
6109 | ||
6110 | if (!args) SWIG_fail; | |
6111 | swig_obj[0] = args; | |
6112 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6113 | if (!SWIG_IsOK(res1)) { | |
6114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6115 | } | |
6116 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6117 | { | |
0085ce49 | 6118 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
0085ce49 RD |
6119 | if (PyErr_Occurred()) SWIG_fail; |
6120 | } | |
6121 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
6122 | return resultobj; | |
6123 | fail: | |
6124 | return NULL; | |
6125 | } | |
6126 | ||
6127 | ||
6128 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6129 | PyObject *resultobj = 0; | |
6130 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6131 | wxMask *arg2 = (wxMask *) 0 ; | |
6132 | void *argp1 = 0 ; | |
6133 | int res1 = 0 ; | |
6134 | int res2 = 0 ; | |
6135 | PyObject * obj0 = 0 ; | |
6136 | PyObject * obj1 = 0 ; | |
6137 | char * kwnames[] = { | |
6138 | (char *) "self",(char *) "mask", NULL | |
6139 | }; | |
6140 | ||
6141 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6142 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6143 | if (!SWIG_IsOK(res1)) { | |
6144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6145 | } | |
6146 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6147 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6148 | if (!SWIG_IsOK(res2)) { | |
6149 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
6150 | } | |
6151 | { | |
0085ce49 | 6152 | (arg1)->SetMask(arg2); |
0085ce49 RD |
6153 | if (PyErr_Occurred()) SWIG_fail; |
6154 | } | |
6155 | resultobj = SWIG_Py_Void(); | |
6156 | return resultobj; | |
6157 | fail: | |
6158 | return NULL; | |
6159 | } | |
6160 | ||
6161 | ||
6162 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6163 | PyObject *resultobj = 0; | |
6164 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6165 | wxColour *arg2 = 0 ; | |
6166 | void *argp1 = 0 ; | |
6167 | int res1 = 0 ; | |
6168 | wxColour temp2 ; | |
6169 | PyObject * obj0 = 0 ; | |
6170 | PyObject * obj1 = 0 ; | |
6171 | char * kwnames[] = { | |
6172 | (char *) "self",(char *) "colour", NULL | |
6173 | }; | |
6174 | ||
6175 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
6176 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6177 | if (!SWIG_IsOK(res1)) { | |
6178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6179 | } | |
6180 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6181 | { | |
6182 | arg2 = &temp2; | |
6183 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6184 | } | |
6185 | { | |
0085ce49 | 6186 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); |
0085ce49 RD |
6187 | if (PyErr_Occurred()) SWIG_fail; |
6188 | } | |
6189 | resultobj = SWIG_Py_Void(); | |
6190 | return resultobj; | |
6191 | fail: | |
6192 | return NULL; | |
6193 | } | |
6194 | ||
6195 | ||
6196 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6197 | PyObject *resultobj = 0; | |
6198 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6199 | wxRect *arg2 = 0 ; | |
6200 | SwigValueWrapper<wxBitmap > result; | |
6201 | void *argp1 = 0 ; | |
6202 | int res1 = 0 ; | |
6203 | wxRect temp2 ; | |
6204 | PyObject * obj0 = 0 ; | |
6205 | PyObject * obj1 = 0 ; | |
6206 | char * kwnames[] = { | |
6207 | (char *) "self",(char *) "rect", NULL | |
6208 | }; | |
6209 | ||
6210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6212 | if (!SWIG_IsOK(res1)) { | |
6213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6214 | } | |
6215 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6216 | { | |
6217 | arg2 = &temp2; | |
6218 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6219 | } | |
6220 | { | |
0085ce49 | 6221 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); |
0085ce49 RD |
6222 | if (PyErr_Occurred()) SWIG_fail; |
6223 | } | |
6224 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6225 | return resultobj; | |
6226 | fail: | |
6227 | return NULL; | |
6228 | } | |
6229 | ||
6230 | ||
6231 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6232 | PyObject *resultobj = 0; | |
6233 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6234 | wxString *arg2 = 0 ; | |
6235 | wxBitmapType arg3 ; | |
6236 | wxPalette *arg4 = (wxPalette *) NULL ; | |
6237 | bool result; | |
6238 | void *argp1 = 0 ; | |
6239 | int res1 = 0 ; | |
6240 | bool temp2 = false ; | |
6241 | int val3 ; | |
6242 | int ecode3 = 0 ; | |
6243 | void *argp4 = 0 ; | |
6244 | int res4 = 0 ; | |
6245 | PyObject * obj0 = 0 ; | |
6246 | PyObject * obj1 = 0 ; | |
6247 | PyObject * obj2 = 0 ; | |
6248 | PyObject * obj3 = 0 ; | |
6249 | char * kwnames[] = { | |
6250 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
6251 | }; | |
6252 | ||
6253 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6254 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6255 | if (!SWIG_IsOK(res1)) { | |
6256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6257 | } | |
6258 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6259 | { | |
6260 | arg2 = wxString_in_helper(obj1); | |
6261 | if (arg2 == NULL) SWIG_fail; | |
6262 | temp2 = true; | |
6263 | } | |
6264 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6265 | if (!SWIG_IsOK(ecode3)) { | |
6266 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6267 | } | |
6268 | arg3 = static_cast< wxBitmapType >(val3); | |
6269 | if (obj3) { | |
6270 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6271 | if (!SWIG_IsOK(res4)) { | |
6272 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 6273 | } |
0085ce49 RD |
6274 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
6275 | } | |
6276 | { | |
0085ce49 | 6277 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); |
0085ce49 RD |
6278 | if (PyErr_Occurred()) SWIG_fail; |
6279 | } | |
6280 | { | |
6281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6282 | } | |
6283 | { | |
6284 | if (temp2) | |
6285 | delete arg2; | |
6286 | } | |
6287 | return resultobj; | |
6288 | fail: | |
6289 | { | |
6290 | if (temp2) | |
6291 | delete arg2; | |
6292 | } | |
6293 | return NULL; | |
6294 | } | |
6295 | ||
6296 | ||
6297 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6298 | PyObject *resultobj = 0; | |
6299 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6300 | wxString *arg2 = 0 ; | |
6301 | wxBitmapType arg3 ; | |
6302 | bool result; | |
6303 | void *argp1 = 0 ; | |
6304 | int res1 = 0 ; | |
6305 | bool temp2 = false ; | |
6306 | int val3 ; | |
6307 | int ecode3 = 0 ; | |
6308 | PyObject * obj0 = 0 ; | |
6309 | PyObject * obj1 = 0 ; | |
6310 | PyObject * obj2 = 0 ; | |
6311 | char * kwnames[] = { | |
6312 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6313 | }; | |
6314 | ||
6315 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6316 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6317 | if (!SWIG_IsOK(res1)) { | |
6318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6319 | } | |
6320 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6321 | { | |
6322 | arg2 = wxString_in_helper(obj1); | |
6323 | if (arg2 == NULL) SWIG_fail; | |
6324 | temp2 = true; | |
6325 | } | |
6326 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6327 | if (!SWIG_IsOK(ecode3)) { | |
6328 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6329 | } | |
6330 | arg3 = static_cast< wxBitmapType >(val3); | |
6331 | { | |
0085ce49 | 6332 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
0085ce49 RD |
6333 | if (PyErr_Occurred()) SWIG_fail; |
6334 | } | |
6335 | { | |
6336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6337 | } | |
6338 | { | |
6339 | if (temp2) | |
6340 | delete arg2; | |
6341 | } | |
6342 | return resultobj; | |
6343 | fail: | |
6344 | { | |
6345 | if (temp2) | |
6346 | delete arg2; | |
6347 | } | |
6348 | return NULL; | |
d04418a7 RD |
6349 | } |
6350 | ||
6351 | ||
0085ce49 RD |
6352 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6353 | PyObject *resultobj = 0; | |
6354 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6355 | wxPalette *result = 0 ; | |
6356 | void *argp1 = 0 ; | |
6357 | int res1 = 0 ; | |
6358 | PyObject *swig_obj[1] ; | |
6359 | ||
6360 | if (!args) SWIG_fail; | |
6361 | swig_obj[0] = args; | |
6362 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6363 | if (!SWIG_IsOK(res1)) { | |
6364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6365 | } | |
6366 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6367 | { | |
0085ce49 | 6368 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
0085ce49 RD |
6369 | if (PyErr_Occurred()) SWIG_fail; |
6370 | } | |
6371 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6372 | return resultobj; | |
6373 | fail: | |
6374 | return NULL; | |
6375 | } | |
6376 | ||
6377 | ||
6378 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6379 | PyObject *resultobj = 0; | |
6380 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6381 | wxIcon *arg2 = 0 ; | |
6382 | bool result; | |
6383 | void *argp1 = 0 ; | |
6384 | int res1 = 0 ; | |
6385 | void *argp2 = 0 ; | |
6386 | int res2 = 0 ; | |
6387 | PyObject * obj0 = 0 ; | |
6388 | PyObject * obj1 = 0 ; | |
6389 | char * kwnames[] = { | |
6390 | (char *) "self",(char *) "icon", NULL | |
6391 | }; | |
6392 | ||
6393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6395 | if (!SWIG_IsOK(res1)) { | |
6396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6397 | } | |
6398 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6399 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6400 | if (!SWIG_IsOK(res2)) { | |
6401 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6402 | } | |
6403 | if (!argp2) { | |
6404 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6405 | } | |
6406 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6407 | { | |
0085ce49 | 6408 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
0085ce49 RD |
6409 | if (PyErr_Occurred()) SWIG_fail; |
6410 | } | |
6411 | { | |
6412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6413 | } | |
6414 | return resultobj; | |
6415 | fail: | |
6416 | return NULL; | |
6417 | } | |
6418 | ||
6419 | ||
6420 | SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6421 | PyObject *resultobj = 0; | |
6422 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6423 | int arg2 ; | |
6424 | void *argp1 = 0 ; | |
6425 | int res1 = 0 ; | |
6426 | int val2 ; | |
6427 | int ecode2 = 0 ; | |
6428 | PyObject * obj0 = 0 ; | |
6429 | PyObject * obj1 = 0 ; | |
6430 | char * kwnames[] = { | |
6431 | (char *) "self",(char *) "height", NULL | |
6432 | }; | |
6433 | ||
6434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
6435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6436 | if (!SWIG_IsOK(res1)) { | |
6437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6438 | } | |
6439 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6440 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6441 | if (!SWIG_IsOK(ecode2)) { | |
6442 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
6443 | } | |
6444 | arg2 = static_cast< int >(val2); | |
6445 | { | |
0085ce49 | 6446 | (arg1)->SetHeight(arg2); |
0085ce49 RD |
6447 | if (PyErr_Occurred()) SWIG_fail; |
6448 | } | |
6449 | resultobj = SWIG_Py_Void(); | |
6450 | return resultobj; | |
6451 | fail: | |
6452 | return NULL; | |
6453 | } | |
6454 | ||
6455 | ||
6456 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6457 | PyObject *resultobj = 0; | |
6458 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6459 | int arg2 ; | |
6460 | void *argp1 = 0 ; | |
6461 | int res1 = 0 ; | |
6462 | int val2 ; | |
6463 | int ecode2 = 0 ; | |
6464 | PyObject * obj0 = 0 ; | |
6465 | PyObject * obj1 = 0 ; | |
6466 | char * kwnames[] = { | |
6467 | (char *) "self",(char *) "width", NULL | |
6468 | }; | |
6469 | ||
6470 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6471 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6472 | if (!SWIG_IsOK(res1)) { | |
6473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6474 | } | |
6475 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6476 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6477 | if (!SWIG_IsOK(ecode2)) { | |
6478 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
6479 | } | |
6480 | arg2 = static_cast< int >(val2); | |
6481 | { | |
0085ce49 | 6482 | (arg1)->SetWidth(arg2); |
0085ce49 RD |
6483 | if (PyErr_Occurred()) SWIG_fail; |
6484 | } | |
6485 | resultobj = SWIG_Py_Void(); | |
6486 | return resultobj; | |
6487 | fail: | |
6488 | return NULL; | |
6489 | } | |
6490 | ||
6491 | ||
6492 | SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6493 | PyObject *resultobj = 0; | |
6494 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6495 | int arg2 ; | |
6496 | void *argp1 = 0 ; | |
6497 | int res1 = 0 ; | |
6498 | int val2 ; | |
6499 | int ecode2 = 0 ; | |
6500 | PyObject * obj0 = 0 ; | |
6501 | PyObject * obj1 = 0 ; | |
6502 | char * kwnames[] = { | |
6503 | (char *) "self",(char *) "depth", NULL | |
6504 | }; | |
6505 | ||
6506 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6507 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6508 | if (!SWIG_IsOK(res1)) { | |
6509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6510 | } | |
6511 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6512 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6513 | if (!SWIG_IsOK(ecode2)) { | |
6514 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
6515 | } | |
6516 | arg2 = static_cast< int >(val2); | |
6517 | { | |
0085ce49 | 6518 | (arg1)->SetDepth(arg2); |
0085ce49 RD |
6519 | if (PyErr_Occurred()) SWIG_fail; |
6520 | } | |
6521 | resultobj = SWIG_Py_Void(); | |
6522 | return resultobj; | |
6523 | fail: | |
6524 | return NULL; | |
6525 | } | |
6526 | ||
6527 | ||
6528 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6529 | PyObject *resultobj = 0; | |
6530 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6531 | wxSize *arg2 = 0 ; | |
6532 | void *argp1 = 0 ; | |
6533 | int res1 = 0 ; | |
6534 | wxSize temp2 ; | |
6535 | PyObject * obj0 = 0 ; | |
6536 | PyObject * obj1 = 0 ; | |
6537 | char * kwnames[] = { | |
6538 | (char *) "self",(char *) "size", NULL | |
6539 | }; | |
6540 | ||
6541 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
6542 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6543 | if (!SWIG_IsOK(res1)) { | |
6544 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6545 | } | |
6546 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6547 | { | |
6548 | arg2 = &temp2; | |
6549 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6550 | } | |
6551 | { | |
0085ce49 | 6552 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
0085ce49 RD |
6553 | if (PyErr_Occurred()) SWIG_fail; |
6554 | } | |
6555 | resultobj = SWIG_Py_Void(); | |
6556 | return resultobj; | |
6557 | fail: | |
6558 | return NULL; | |
6559 | } | |
6560 | ||
6561 | ||
6562 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6563 | PyObject *resultobj = 0; | |
6564 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6565 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
6566 | bool result; | |
6567 | void *argp1 = 0 ; | |
6568 | int res1 = 0 ; | |
6569 | void *argp2 = 0 ; | |
6570 | int res2 = 0 ; | |
6571 | PyObject * obj0 = 0 ; | |
6572 | PyObject * obj1 = 0 ; | |
6573 | char * kwnames[] = { | |
6574 | (char *) "self",(char *) "other", NULL | |
6575 | }; | |
6576 | ||
6577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
6578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6579 | if (!SWIG_IsOK(res1)) { | |
6580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6581 | } | |
6582 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6583 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6584 | if (!SWIG_IsOK(res2)) { | |
6585 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
6586 | } | |
6587 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
6588 | { | |
0085ce49 | 6589 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
0085ce49 RD |
6590 | if (PyErr_Occurred()) SWIG_fail; |
6591 | } | |
6592 | { | |
fc46b7f3 RD |
6593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
6594 | } | |
6595 | return resultobj; | |
6596 | fail: | |
6597 | return NULL; | |
6598 | } | |
6599 | ||
6600 | ||
6601 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6602 | PyObject *resultobj = 0; | |
6603 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6604 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
6605 | bool result; | |
6606 | void *argp1 = 0 ; | |
6607 | int res1 = 0 ; | |
6608 | void *argp2 = 0 ; | |
6609 | int res2 = 0 ; | |
6610 | PyObject * obj0 = 0 ; | |
6611 | PyObject * obj1 = 0 ; | |
6612 | char * kwnames[] = { | |
6613 | (char *) "self",(char *) "other", NULL | |
6614 | }; | |
6615 | ||
6616 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
6617 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6618 | if (!SWIG_IsOK(res1)) { | |
6619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6620 | } | |
6621 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6622 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6623 | if (!SWIG_IsOK(res2)) { | |
6624 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
6625 | } | |
6626 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
6627 | { | |
6628 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
6629 | if (PyErr_Occurred()) SWIG_fail; | |
6630 | } | |
6631 | { | |
6632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6633 | } | |
6634 | return resultobj; | |
6635 | fail: | |
6636 | return NULL; | |
6637 | } | |
6638 | ||
6639 | ||
6640 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6641 | PyObject *obj; | |
6642 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6643 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
6644 | return SWIG_Py_Void(); | |
6645 | } | |
6646 | ||
6647 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6648 | return SWIG_Python_InitShadowInstance(args); | |
6649 | } | |
6650 | ||
6651 | SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6652 | PyObject *resultobj = 0; | |
6653 | int arg1 ; | |
6654 | int arg2 ; | |
6655 | buffer arg3 ; | |
6656 | int arg4 ; | |
6657 | buffer arg5 ; | |
6658 | int arg6 ; | |
6659 | wxBitmap *result = 0 ; | |
6660 | int val1 ; | |
6661 | int ecode1 = 0 ; | |
6662 | int val2 ; | |
6663 | int ecode2 = 0 ; | |
c79fdf86 RD |
6664 | Py_ssize_t temp3 ; |
6665 | Py_ssize_t temp5 ; | |
fc46b7f3 RD |
6666 | PyObject * obj0 = 0 ; |
6667 | PyObject * obj1 = 0 ; | |
6668 | PyObject * obj2 = 0 ; | |
6669 | PyObject * obj3 = 0 ; | |
6670 | char * kwnames[] = { | |
6671 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
6672 | }; | |
6673 | ||
6674 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6675 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6676 | if (!SWIG_IsOK(ecode1)) { | |
6677 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'"); | |
6678 | } | |
6679 | arg1 = static_cast< int >(val1); | |
6680 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6681 | if (!SWIG_IsOK(ecode2)) { | |
6682 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'"); | |
6683 | } | |
6684 | arg2 = static_cast< int >(val2); | |
6685 | { | |
c79fdf86 RD |
6686 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
6687 | arg4 = (int)temp3; | |
fc46b7f3 RD |
6688 | } |
6689 | { | |
6690 | if (obj3 != Py_None) { | |
c79fdf86 RD |
6691 | if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail; |
6692 | arg6 = (int)temp5; | |
fc46b7f3 RD |
6693 | } |
6694 | } | |
6695 | { | |
6696 | result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6); | |
6697 | if (PyErr_Occurred()) SWIG_fail; | |
6698 | } | |
6699 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6700 | return resultobj; | |
6701 | fail: | |
6702 | return NULL; | |
6703 | } | |
6704 | ||
6705 | ||
6706 | SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6707 | PyObject *resultobj = 0; | |
6708 | int arg1 ; | |
6709 | int arg2 ; | |
6710 | buffer arg3 ; | |
6711 | int arg4 ; | |
6712 | wxBitmap *result = 0 ; | |
6713 | int val1 ; | |
6714 | int ecode1 = 0 ; | |
6715 | int val2 ; | |
6716 | int ecode2 = 0 ; | |
c79fdf86 | 6717 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
6718 | PyObject * obj0 = 0 ; |
6719 | PyObject * obj1 = 0 ; | |
6720 | PyObject * obj2 = 0 ; | |
6721 | char * kwnames[] = { | |
6722 | (char *) "width",(char *) "height",(char *) "data", NULL | |
6723 | }; | |
6724 | ||
6725 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6726 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6727 | if (!SWIG_IsOK(ecode1)) { | |
6728 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'"); | |
6729 | } | |
6730 | arg1 = static_cast< int >(val1); | |
6731 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6732 | if (!SWIG_IsOK(ecode2)) { | |
6733 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'"); | |
6734 | } | |
6735 | arg2 = static_cast< int >(val2); | |
6736 | { | |
c79fdf86 RD |
6737 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
6738 | arg4 = (int)temp3; | |
fc46b7f3 RD |
6739 | } |
6740 | { | |
6741 | result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4); | |
6742 | if (PyErr_Occurred()) SWIG_fail; | |
6743 | } | |
6744 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6745 | return resultobj; | |
6746 | fail: | |
6747 | return NULL; | |
6748 | } | |
6749 | ||
6750 | ||
6751 | SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6752 | PyObject *resultobj = 0; | |
6753 | int arg1 ; | |
6754 | int arg2 ; | |
6755 | buffer arg3 ; | |
6756 | int arg4 ; | |
6757 | wxBitmap *result = 0 ; | |
6758 | int val1 ; | |
6759 | int ecode1 = 0 ; | |
6760 | int val2 ; | |
6761 | int ecode2 = 0 ; | |
c79fdf86 | 6762 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
6763 | PyObject * obj0 = 0 ; |
6764 | PyObject * obj1 = 0 ; | |
6765 | PyObject * obj2 = 0 ; | |
6766 | char * kwnames[] = { | |
6767 | (char *) "width",(char *) "height",(char *) "data", NULL | |
6768 | }; | |
6769 | ||
6770 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6771 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6772 | if (!SWIG_IsOK(ecode1)) { | |
6773 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'"); | |
6774 | } | |
6775 | arg1 = static_cast< int >(val1); | |
6776 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6777 | if (!SWIG_IsOK(ecode2)) { | |
6778 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'"); | |
6779 | } | |
6780 | arg2 = static_cast< int >(val2); | |
6781 | { | |
c79fdf86 RD |
6782 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
6783 | arg4 = (int)temp3; | |
fc46b7f3 RD |
6784 | } |
6785 | { | |
6786 | result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4); | |
6787 | if (PyErr_Occurred()) SWIG_fail; | |
6788 | } | |
6789 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6790 | return resultobj; | |
6791 | fail: | |
6792 | return NULL; | |
6793 | } | |
6794 | ||
6795 | ||
6796 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6797 | PyObject *resultobj = 0; | |
6798 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
6799 | wxPoint result; | |
6800 | void *argp1 = 0 ; | |
6801 | int res1 = 0 ; | |
6802 | PyObject *swig_obj[1] ; | |
6803 | ||
6804 | if (!args) SWIG_fail; | |
6805 | swig_obj[0] = args; | |
6806 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
6807 | if (!SWIG_IsOK(res1)) { | |
6808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
6809 | } | |
6810 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
6811 | { | |
6812 | result = ((wxPixelDataBase const *)arg1)->GetOrigin(); | |
6813 | if (PyErr_Occurred()) SWIG_fail; | |
6814 | } | |
6815 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
6816 | return resultobj; | |
6817 | fail: | |
6818 | return NULL; | |
6819 | } | |
6820 | ||
6821 | ||
6822 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6823 | PyObject *resultobj = 0; | |
6824 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
6825 | int result; | |
6826 | void *argp1 = 0 ; | |
6827 | int res1 = 0 ; | |
6828 | PyObject *swig_obj[1] ; | |
6829 | ||
6830 | if (!args) SWIG_fail; | |
6831 | swig_obj[0] = args; | |
6832 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
6833 | if (!SWIG_IsOK(res1)) { | |
6834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
6835 | } | |
6836 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
6837 | { | |
6838 | result = (int)((wxPixelDataBase const *)arg1)->GetWidth(); | |
6839 | if (PyErr_Occurred()) SWIG_fail; | |
6840 | } | |
6841 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6842 | return resultobj; | |
6843 | fail: | |
6844 | return NULL; | |
6845 | } | |
6846 | ||
6847 | ||
6848 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6849 | PyObject *resultobj = 0; | |
6850 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
6851 | int result; | |
6852 | void *argp1 = 0 ; | |
6853 | int res1 = 0 ; | |
6854 | PyObject *swig_obj[1] ; | |
6855 | ||
6856 | if (!args) SWIG_fail; | |
6857 | swig_obj[0] = args; | |
6858 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
6859 | if (!SWIG_IsOK(res1)) { | |
6860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
6861 | } | |
6862 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
6863 | { | |
6864 | result = (int)((wxPixelDataBase const *)arg1)->GetHeight(); | |
6865 | if (PyErr_Occurred()) SWIG_fail; | |
6866 | } | |
6867 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6868 | return resultobj; | |
6869 | fail: | |
6870 | return NULL; | |
6871 | } | |
6872 | ||
6873 | ||
6874 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6875 | PyObject *resultobj = 0; | |
6876 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
6877 | wxSize result; | |
6878 | void *argp1 = 0 ; | |
6879 | int res1 = 0 ; | |
6880 | PyObject *swig_obj[1] ; | |
6881 | ||
6882 | if (!args) SWIG_fail; | |
6883 | swig_obj[0] = args; | |
6884 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
6885 | if (!SWIG_IsOK(res1)) { | |
6886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
6887 | } | |
6888 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
6889 | { | |
6890 | result = ((wxPixelDataBase const *)arg1)->GetSize(); | |
6891 | if (PyErr_Occurred()) SWIG_fail; | |
6892 | } | |
6893 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
6894 | return resultobj; | |
6895 | fail: | |
6896 | return NULL; | |
6897 | } | |
6898 | ||
6899 | ||
6900 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6901 | PyObject *resultobj = 0; | |
6902 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
6903 | int result; | |
6904 | void *argp1 = 0 ; | |
6905 | int res1 = 0 ; | |
6906 | PyObject *swig_obj[1] ; | |
6907 | ||
6908 | if (!args) SWIG_fail; | |
6909 | swig_obj[0] = args; | |
6910 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
6911 | if (!SWIG_IsOK(res1)) { | |
6912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
6913 | } | |
6914 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
6915 | { | |
6916 | result = (int)((wxPixelDataBase const *)arg1)->GetRowStride(); | |
6917 | if (PyErr_Occurred()) SWIG_fail; | |
6918 | } | |
6919 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6920 | return resultobj; | |
6921 | fail: | |
6922 | return NULL; | |
6923 | } | |
6924 | ||
6925 | ||
6926 | SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
6927 | PyObject *obj; | |
6928 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6929 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj)); | |
6930 | return SWIG_Py_Void(); | |
6931 | } | |
6932 | ||
6933 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
6934 | PyObject *resultobj = 0; | |
6935 | wxBitmap *arg1 = 0 ; | |
6936 | wxNativePixelData *result = 0 ; | |
6937 | void *argp1 = 0 ; | |
6938 | int res1 = 0 ; | |
6939 | ||
6940 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
6941 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
6942 | if (!SWIG_IsOK(res1)) { | |
6943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
6944 | } | |
6945 | if (!argp1) { | |
6946 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
6947 | } | |
6948 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6949 | { | |
6950 | result = (wxNativePixelData *)new wxNativePixelData(*arg1); | |
6951 | if (PyErr_Occurred()) SWIG_fail; | |
6952 | } | |
6953 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
6954 | return resultobj; | |
6955 | fail: | |
6956 | return NULL; | |
6957 | } | |
6958 | ||
6959 | ||
6960 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
6961 | PyObject *resultobj = 0; | |
6962 | wxBitmap *arg1 = 0 ; | |
6963 | wxRect *arg2 = 0 ; | |
6964 | wxNativePixelData *result = 0 ; | |
6965 | void *argp1 = 0 ; | |
6966 | int res1 = 0 ; | |
6967 | wxRect temp2 ; | |
6968 | ||
6969 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
6970 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
6971 | if (!SWIG_IsOK(res1)) { | |
6972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
6973 | } | |
6974 | if (!argp1) { | |
6975 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
6976 | } | |
6977 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6978 | { | |
6979 | arg2 = &temp2; | |
6980 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
6981 | } | |
6982 | { | |
6983 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2); | |
6984 | if (PyErr_Occurred()) SWIG_fail; | |
6985 | } | |
6986 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
6987 | return resultobj; | |
6988 | fail: | |
6989 | return NULL; | |
6990 | } | |
6991 | ||
6992 | ||
6993 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
6994 | PyObject *resultobj = 0; | |
6995 | wxBitmap *arg1 = 0 ; | |
6996 | wxPoint *arg2 = 0 ; | |
6997 | wxSize *arg3 = 0 ; | |
6998 | wxNativePixelData *result = 0 ; | |
6999 | void *argp1 = 0 ; | |
7000 | int res1 = 0 ; | |
7001 | wxPoint temp2 ; | |
7002 | wxSize temp3 ; | |
7003 | ||
7004 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
7005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7006 | if (!SWIG_IsOK(res1)) { | |
7007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7008 | } | |
7009 | if (!argp1) { | |
7010 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7011 | } | |
7012 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7013 | { | |
7014 | arg2 = &temp2; | |
7015 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7016 | } | |
7017 | { | |
7018 | arg3 = &temp3; | |
7019 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
7020 | } | |
7021 | { | |
7022 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
7023 | if (PyErr_Occurred()) SWIG_fail; | |
7024 | } | |
7025 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7026 | return resultobj; | |
7027 | fail: | |
7028 | return NULL; | |
7029 | } | |
7030 | ||
7031 | ||
7032 | SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) { | |
7033 | int argc; | |
7034 | PyObject *argv[4]; | |
7035 | ||
7036 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail; | |
7037 | --argc; | |
7038 | if (argc == 1) { | |
7039 | return _wrap_new_NativePixelData__SWIG_0(self, argc, argv); | |
7040 | } | |
7041 | if (argc == 2) { | |
7042 | return _wrap_new_NativePixelData__SWIG_1(self, argc, argv); | |
7043 | } | |
7044 | if (argc == 3) { | |
7045 | return _wrap_new_NativePixelData__SWIG_2(self, argc, argv); | |
7046 | } | |
7047 | ||
7048 | fail: | |
7049 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'"); | |
7050 | return NULL; | |
7051 | } | |
7052 | ||
7053 | ||
7054 | SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7055 | PyObject *resultobj = 0; | |
7056 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7057 | void *argp1 = 0 ; | |
7058 | int res1 = 0 ; | |
7059 | PyObject *swig_obj[1] ; | |
7060 | ||
7061 | if (!args) SWIG_fail; | |
7062 | swig_obj[0] = args; | |
7063 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 ); | |
7064 | if (!SWIG_IsOK(res1)) { | |
7065 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7066 | } | |
7067 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7068 | { | |
7069 | delete arg1; | |
7070 | ||
7071 | if (PyErr_Occurred()) SWIG_fail; | |
7072 | } | |
7073 | resultobj = SWIG_Py_Void(); | |
7074 | return resultobj; | |
7075 | fail: | |
7076 | return NULL; | |
7077 | } | |
7078 | ||
7079 | ||
7080 | SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7081 | PyObject *resultobj = 0; | |
7082 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7083 | wxNativePixelData_Accessor result; | |
7084 | void *argp1 = 0 ; | |
7085 | int res1 = 0 ; | |
7086 | PyObject *swig_obj[1] ; | |
7087 | ||
7088 | if (!args) SWIG_fail; | |
7089 | swig_obj[0] = args; | |
7090 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7091 | if (!SWIG_IsOK(res1)) { | |
7092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'"); | |
7093 | } | |
7094 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7095 | { | |
7096 | result = ((wxNativePixelData const *)arg1)->GetPixels(); | |
7097 | if (PyErr_Occurred()) SWIG_fail; | |
7098 | } | |
7099 | resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
7100 | return resultobj; | |
7101 | fail: | |
7102 | return NULL; | |
7103 | } | |
7104 | ||
7105 | ||
7106 | SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7107 | PyObject *resultobj = 0; | |
7108 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7109 | void *argp1 = 0 ; | |
7110 | int res1 = 0 ; | |
7111 | PyObject *swig_obj[1] ; | |
7112 | ||
7113 | if (!args) SWIG_fail; | |
7114 | swig_obj[0] = args; | |
7115 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7116 | if (!SWIG_IsOK(res1)) { | |
7117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7118 | } | |
7119 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7120 | { | |
7121 | (arg1)->UseAlpha(); | |
7122 | if (PyErr_Occurred()) SWIG_fail; | |
7123 | } | |
7124 | resultobj = SWIG_Py_Void(); | |
7125 | return resultobj; | |
7126 | fail: | |
7127 | return NULL; | |
7128 | } | |
7129 | ||
7130 | ||
7131 | SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7132 | PyObject *resultobj = 0; | |
7133 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7134 | bool result; | |
7135 | void *argp1 = 0 ; | |
7136 | int res1 = 0 ; | |
7137 | PyObject *swig_obj[1] ; | |
7138 | ||
7139 | if (!args) SWIG_fail; | |
7140 | swig_obj[0] = args; | |
7141 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7142 | if (!SWIG_IsOK(res1)) { | |
7143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7144 | } | |
7145 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7146 | { | |
7147 | result = (bool)wxNativePixelData___nonzero__(arg1); | |
7148 | if (PyErr_Occurred()) SWIG_fail; | |
7149 | } | |
7150 | { | |
7151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7152 | } | |
7153 | return resultobj; | |
7154 | fail: | |
7155 | return NULL; | |
7156 | } | |
7157 | ||
7158 | ||
7159 | SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7160 | PyObject *obj; | |
7161 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7162 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj)); | |
7163 | return SWIG_Py_Void(); | |
7164 | } | |
7165 | ||
7166 | SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7167 | return SWIG_Python_InitShadowInstance(args); | |
7168 | } | |
7169 | ||
7170 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7171 | PyObject *resultobj = 0; | |
7172 | wxNativePixelData *arg1 = 0 ; | |
7173 | wxNativePixelData_Accessor *result = 0 ; | |
7174 | void *argp1 = 0 ; | |
7175 | int res1 = 0 ; | |
7176 | ||
7177 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7178 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7179 | if (!SWIG_IsOK(res1)) { | |
7180 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7181 | } | |
7182 | if (!argp1) { | |
7183 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7184 | } | |
7185 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7186 | { | |
7187 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1); | |
7188 | if (PyErr_Occurred()) SWIG_fail; | |
7189 | } | |
7190 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7191 | return resultobj; | |
7192 | fail: | |
7193 | return NULL; | |
7194 | } | |
7195 | ||
7196 | ||
7197 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7198 | PyObject *resultobj = 0; | |
7199 | wxBitmap *arg1 = 0 ; | |
7200 | wxNativePixelData *arg2 = 0 ; | |
7201 | wxNativePixelData_Accessor *result = 0 ; | |
7202 | void *argp1 = 0 ; | |
7203 | int res1 = 0 ; | |
7204 | void *argp2 = 0 ; | |
7205 | int res2 = 0 ; | |
7206 | ||
7207 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7208 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7209 | if (!SWIG_IsOK(res1)) { | |
7210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7211 | } | |
7212 | if (!argp1) { | |
7213 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7214 | } | |
7215 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7216 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7217 | if (!SWIG_IsOK(res2)) { | |
7218 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7219 | } | |
7220 | if (!argp2) { | |
7221 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7222 | } | |
7223 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7224 | { | |
7225 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2); | |
7226 | if (PyErr_Occurred()) SWIG_fail; | |
7227 | } | |
7228 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7229 | return resultobj; | |
7230 | fail: | |
7231 | return NULL; | |
7232 | } | |
7233 | ||
7234 | ||
7235 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
7236 | PyObject *resultobj = 0; | |
7237 | wxNativePixelData_Accessor *result = 0 ; | |
7238 | ||
7239 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
7240 | { | |
7241 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(); | |
7242 | if (PyErr_Occurred()) SWIG_fail; | |
7243 | } | |
7244 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7245 | return resultobj; | |
7246 | fail: | |
7247 | return NULL; | |
7248 | } | |
7249 | ||
7250 | ||
7251 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) { | |
7252 | int argc; | |
7253 | PyObject *argv[3]; | |
7254 | ||
7255 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail; | |
7256 | --argc; | |
7257 | if (argc == 0) { | |
7258 | return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv); | |
7259 | } | |
7260 | if (argc == 1) { | |
7261 | return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv); | |
7262 | } | |
7263 | if (argc == 2) { | |
7264 | return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv); | |
7265 | } | |
7266 | ||
7267 | fail: | |
7268 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'"); | |
7269 | return NULL; | |
7270 | } | |
7271 | ||
7272 | ||
7273 | SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7274 | PyObject *resultobj = 0; | |
7275 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7276 | void *argp1 = 0 ; | |
7277 | int res1 = 0 ; | |
7278 | PyObject *swig_obj[1] ; | |
7279 | ||
7280 | if (!args) SWIG_fail; | |
7281 | swig_obj[0] = args; | |
7282 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
7283 | if (!SWIG_IsOK(res1)) { | |
7284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7285 | } | |
7286 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7287 | { | |
7288 | delete arg1; | |
7289 | ||
7290 | if (PyErr_Occurred()) SWIG_fail; | |
7291 | } | |
7292 | resultobj = SWIG_Py_Void(); | |
7293 | return resultobj; | |
7294 | fail: | |
7295 | return NULL; | |
7296 | } | |
7297 | ||
7298 | ||
7299 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7300 | PyObject *resultobj = 0; | |
7301 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7302 | wxNativePixelData *arg2 = 0 ; | |
7303 | void *argp1 = 0 ; | |
7304 | int res1 = 0 ; | |
7305 | void *argp2 = 0 ; | |
7306 | int res2 = 0 ; | |
7307 | PyObject * obj0 = 0 ; | |
7308 | PyObject * obj1 = 0 ; | |
7309 | char * kwnames[] = { | |
7310 | (char *) "self",(char *) "data", NULL | |
7311 | }; | |
7312 | ||
7313 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
7314 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7315 | if (!SWIG_IsOK(res1)) { | |
7316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7317 | } | |
7318 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7319 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7320 | if (!SWIG_IsOK(res2)) { | |
7321 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7322 | } | |
7323 | if (!argp2) { | |
7324 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7325 | } | |
7326 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7327 | { | |
7328 | (arg1)->Reset((wxNativePixelData const &)*arg2); | |
7329 | if (PyErr_Occurred()) SWIG_fail; | |
7330 | } | |
7331 | resultobj = SWIG_Py_Void(); | |
7332 | return resultobj; | |
7333 | fail: | |
7334 | return NULL; | |
7335 | } | |
7336 | ||
7337 | ||
7338 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7339 | PyObject *resultobj = 0; | |
7340 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7341 | bool result; | |
7342 | void *argp1 = 0 ; | |
7343 | int res1 = 0 ; | |
7344 | PyObject *swig_obj[1] ; | |
7345 | ||
7346 | if (!args) SWIG_fail; | |
7347 | swig_obj[0] = args; | |
7348 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7349 | if (!SWIG_IsOK(res1)) { | |
7350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'"); | |
7351 | } | |
7352 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7353 | { | |
7354 | result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk(); | |
7355 | if (PyErr_Occurred()) SWIG_fail; | |
7356 | } | |
7357 | { | |
7358 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7359 | } | |
7360 | return resultobj; | |
7361 | fail: | |
7362 | return NULL; | |
7363 | } | |
7364 | ||
7365 | ||
7366 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7367 | PyObject *resultobj = 0; | |
7368 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7369 | void *argp1 = 0 ; | |
7370 | int res1 = 0 ; | |
7371 | PyObject *swig_obj[1] ; | |
7372 | ||
7373 | if (!args) SWIG_fail; | |
7374 | swig_obj[0] = args; | |
7375 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7376 | if (!SWIG_IsOK(res1)) { | |
7377 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7378 | } | |
7379 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7380 | { | |
7381 | wxNativePixelData_Accessor_nextPixel(arg1); | |
7382 | if (PyErr_Occurred()) SWIG_fail; | |
7383 | } | |
7384 | resultobj = SWIG_Py_Void(); | |
7385 | return resultobj; | |
7386 | fail: | |
7387 | return NULL; | |
7388 | } | |
7389 | ||
7390 | ||
7391 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7392 | PyObject *resultobj = 0; | |
7393 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7394 | wxNativePixelData *arg2 = 0 ; | |
7395 | int arg3 ; | |
7396 | int arg4 ; | |
7397 | void *argp1 = 0 ; | |
7398 | int res1 = 0 ; | |
7399 | void *argp2 = 0 ; | |
7400 | int res2 = 0 ; | |
7401 | int val3 ; | |
7402 | int ecode3 = 0 ; | |
7403 | int val4 ; | |
7404 | int ecode4 = 0 ; | |
7405 | PyObject * obj0 = 0 ; | |
7406 | PyObject * obj1 = 0 ; | |
7407 | PyObject * obj2 = 0 ; | |
7408 | PyObject * obj3 = 0 ; | |
7409 | char * kwnames[] = { | |
7410 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
7411 | }; | |
7412 | ||
7413 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7414 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7415 | if (!SWIG_IsOK(res1)) { | |
7416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7417 | } | |
7418 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7419 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7420 | if (!SWIG_IsOK(res2)) { | |
7421 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7422 | } | |
7423 | if (!argp2) { | |
7424 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7425 | } | |
7426 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7427 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7428 | if (!SWIG_IsOK(ecode3)) { | |
7429 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
7430 | } | |
7431 | arg3 = static_cast< int >(val3); | |
7432 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7433 | if (!SWIG_IsOK(ecode4)) { | |
7434 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
7435 | } | |
7436 | arg4 = static_cast< int >(val4); | |
7437 | { | |
7438 | (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4); | |
7439 | if (PyErr_Occurred()) SWIG_fail; | |
7440 | } | |
7441 | resultobj = SWIG_Py_Void(); | |
7442 | return resultobj; | |
7443 | fail: | |
7444 | return NULL; | |
7445 | } | |
7446 | ||
7447 | ||
7448 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7449 | PyObject *resultobj = 0; | |
7450 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7451 | wxNativePixelData *arg2 = 0 ; | |
7452 | int arg3 ; | |
7453 | void *argp1 = 0 ; | |
7454 | int res1 = 0 ; | |
7455 | void *argp2 = 0 ; | |
7456 | int res2 = 0 ; | |
7457 | int val3 ; | |
7458 | int ecode3 = 0 ; | |
7459 | PyObject * obj0 = 0 ; | |
7460 | PyObject * obj1 = 0 ; | |
7461 | PyObject * obj2 = 0 ; | |
7462 | char * kwnames[] = { | |
7463 | (char *) "self",(char *) "data",(char *) "x", NULL | |
7464 | }; | |
7465 | ||
7466 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7467 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7468 | if (!SWIG_IsOK(res1)) { | |
7469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7470 | } | |
7471 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7472 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7473 | if (!SWIG_IsOK(res2)) { | |
7474 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7475 | } | |
7476 | if (!argp2) { | |
7477 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7478 | } | |
7479 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7480 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7481 | if (!SWIG_IsOK(ecode3)) { | |
7482 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
7483 | } | |
7484 | arg3 = static_cast< int >(val3); | |
7485 | { | |
7486 | (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3); | |
7487 | if (PyErr_Occurred()) SWIG_fail; | |
7488 | } | |
7489 | resultobj = SWIG_Py_Void(); | |
7490 | return resultobj; | |
7491 | fail: | |
7492 | return NULL; | |
7493 | } | |
7494 | ||
7495 | ||
7496 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7497 | PyObject *resultobj = 0; | |
7498 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7499 | wxNativePixelData *arg2 = 0 ; | |
7500 | int arg3 ; | |
7501 | void *argp1 = 0 ; | |
7502 | int res1 = 0 ; | |
7503 | void *argp2 = 0 ; | |
7504 | int res2 = 0 ; | |
7505 | int val3 ; | |
7506 | int ecode3 = 0 ; | |
7507 | PyObject * obj0 = 0 ; | |
7508 | PyObject * obj1 = 0 ; | |
7509 | PyObject * obj2 = 0 ; | |
7510 | char * kwnames[] = { | |
7511 | (char *) "self",(char *) "data",(char *) "y", NULL | |
7512 | }; | |
7513 | ||
7514 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7515 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7516 | if (!SWIG_IsOK(res1)) { | |
7517 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7518 | } | |
7519 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7520 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7521 | if (!SWIG_IsOK(res2)) { | |
7522 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7523 | } | |
7524 | if (!argp2) { | |
7525 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7526 | } | |
7527 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7528 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7529 | if (!SWIG_IsOK(ecode3)) { | |
7530 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
7531 | } | |
7532 | arg3 = static_cast< int >(val3); | |
7533 | { | |
7534 | (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3); | |
7535 | if (PyErr_Occurred()) SWIG_fail; | |
7536 | } | |
7537 | resultobj = SWIG_Py_Void(); | |
7538 | return resultobj; | |
7539 | fail: | |
7540 | return NULL; | |
7541 | } | |
7542 | ||
7543 | ||
7544 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7545 | PyObject *resultobj = 0; | |
7546 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7547 | wxNativePixelData *arg2 = 0 ; | |
7548 | int arg3 ; | |
7549 | int arg4 ; | |
7550 | void *argp1 = 0 ; | |
7551 | int res1 = 0 ; | |
7552 | void *argp2 = 0 ; | |
7553 | int res2 = 0 ; | |
7554 | int val3 ; | |
7555 | int ecode3 = 0 ; | |
7556 | int val4 ; | |
7557 | int ecode4 = 0 ; | |
7558 | PyObject * obj0 = 0 ; | |
7559 | PyObject * obj1 = 0 ; | |
7560 | PyObject * obj2 = 0 ; | |
7561 | PyObject * obj3 = 0 ; | |
7562 | char * kwnames[] = { | |
7563 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
7564 | }; | |
7565 | ||
7566 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7567 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7568 | if (!SWIG_IsOK(res1)) { | |
7569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7570 | } | |
7571 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7572 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7573 | if (!SWIG_IsOK(res2)) { | |
7574 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7575 | } | |
7576 | if (!argp2) { | |
7577 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7578 | } | |
7579 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7580 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7581 | if (!SWIG_IsOK(ecode3)) { | |
7582 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
7583 | } | |
7584 | arg3 = static_cast< int >(val3); | |
7585 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7586 | if (!SWIG_IsOK(ecode4)) { | |
7587 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
7588 | } | |
7589 | arg4 = static_cast< int >(val4); | |
7590 | { | |
7591 | (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4); | |
7592 | if (PyErr_Occurred()) SWIG_fail; | |
7593 | } | |
7594 | resultobj = SWIG_Py_Void(); | |
7595 | return resultobj; | |
7596 | fail: | |
7597 | return NULL; | |
7598 | } | |
7599 | ||
7600 | ||
7601 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7602 | PyObject *resultobj = 0; | |
7603 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7604 | byte arg2 ; | |
7605 | byte arg3 ; | |
7606 | byte arg4 ; | |
7607 | void *argp1 = 0 ; | |
7608 | int res1 = 0 ; | |
7609 | unsigned char val2 ; | |
7610 | int ecode2 = 0 ; | |
7611 | unsigned char val3 ; | |
7612 | int ecode3 = 0 ; | |
7613 | unsigned char val4 ; | |
7614 | int ecode4 = 0 ; | |
7615 | PyObject * obj0 = 0 ; | |
7616 | PyObject * obj1 = 0 ; | |
7617 | PyObject * obj2 = 0 ; | |
7618 | PyObject * obj3 = 0 ; | |
7619 | char * kwnames[] = { | |
7620 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
7621 | }; | |
7622 | ||
7623 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7624 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7625 | if (!SWIG_IsOK(res1)) { | |
7626 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7627 | } | |
7628 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7629 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
7630 | if (!SWIG_IsOK(ecode2)) { | |
7631 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
7632 | } | |
7633 | arg2 = static_cast< byte >(val2); | |
7634 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
7635 | if (!SWIG_IsOK(ecode3)) { | |
7636 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
7637 | } | |
7638 | arg3 = static_cast< byte >(val3); | |
7639 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
7640 | if (!SWIG_IsOK(ecode4)) { | |
7641 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
7642 | } | |
7643 | arg4 = static_cast< byte >(val4); | |
7644 | { | |
7645 | wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4); | |
7646 | if (PyErr_Occurred()) SWIG_fail; | |
7647 | } | |
7648 | resultobj = SWIG_Py_Void(); | |
7649 | return resultobj; | |
7650 | fail: | |
7651 | return NULL; | |
7652 | } | |
7653 | ||
7654 | ||
7655 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7656 | PyObject *resultobj = 0; | |
7657 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7658 | PyObject *result = 0 ; | |
7659 | void *argp1 = 0 ; | |
7660 | int res1 = 0 ; | |
7661 | PyObject *swig_obj[1] ; | |
7662 | ||
7663 | if (!args) SWIG_fail; | |
7664 | swig_obj[0] = args; | |
7665 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7666 | if (!SWIG_IsOK(res1)) { | |
7667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7668 | } | |
7669 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7670 | { | |
7671 | result = (PyObject *)wxNativePixelData_Accessor_Get(arg1); | |
7672 | if (PyErr_Occurred()) SWIG_fail; | |
7673 | } | |
7674 | resultobj = result; | |
7675 | return resultobj; | |
7676 | fail: | |
7677 | return NULL; | |
7678 | } | |
7679 | ||
7680 | ||
7681 | SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7682 | PyObject *obj; | |
7683 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7684 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj)); | |
7685 | return SWIG_Py_Void(); | |
7686 | } | |
7687 | ||
7688 | SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7689 | return SWIG_Python_InitShadowInstance(args); | |
7690 | } | |
7691 | ||
7692 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7693 | PyObject *resultobj = 0; | |
7694 | wxBitmap *arg1 = 0 ; | |
7695 | wxAlphaPixelData *result = 0 ; | |
7696 | void *argp1 = 0 ; | |
7697 | int res1 = 0 ; | |
7698 | ||
7699 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7700 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7701 | if (!SWIG_IsOK(res1)) { | |
7702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7703 | } | |
7704 | if (!argp1) { | |
7705 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7706 | } | |
7707 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7708 | { | |
7709 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1); | |
7710 | if (PyErr_Occurred()) SWIG_fail; | |
7711 | } | |
7712 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
7713 | return resultobj; | |
7714 | fail: | |
7715 | return NULL; | |
7716 | } | |
7717 | ||
7718 | ||
7719 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7720 | PyObject *resultobj = 0; | |
7721 | wxBitmap *arg1 = 0 ; | |
7722 | wxRect *arg2 = 0 ; | |
7723 | wxAlphaPixelData *result = 0 ; | |
7724 | void *argp1 = 0 ; | |
7725 | int res1 = 0 ; | |
7726 | wxRect temp2 ; | |
7727 | ||
7728 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7729 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7730 | if (!SWIG_IsOK(res1)) { | |
7731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7732 | } | |
7733 | if (!argp1) { | |
7734 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7735 | } | |
7736 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7737 | { | |
7738 | arg2 = &temp2; | |
7739 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7740 | } | |
7741 | { | |
7742 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2); | |
7743 | if (PyErr_Occurred()) SWIG_fail; | |
7744 | } | |
7745 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
7746 | return resultobj; | |
7747 | fail: | |
7748 | return NULL; | |
7749 | } | |
7750 | ||
7751 | ||
7752 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7753 | PyObject *resultobj = 0; | |
7754 | wxBitmap *arg1 = 0 ; | |
7755 | wxPoint *arg2 = 0 ; | |
7756 | wxSize *arg3 = 0 ; | |
7757 | wxAlphaPixelData *result = 0 ; | |
7758 | void *argp1 = 0 ; | |
7759 | int res1 = 0 ; | |
7760 | wxPoint temp2 ; | |
7761 | wxSize temp3 ; | |
7762 | ||
7763 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
7764 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7765 | if (!SWIG_IsOK(res1)) { | |
7766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7767 | } | |
7768 | if (!argp1) { | |
7769 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7770 | } | |
7771 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7772 | { | |
7773 | arg2 = &temp2; | |
7774 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7775 | } | |
7776 | { | |
7777 | arg3 = &temp3; | |
7778 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
7779 | } | |
7780 | { | |
7781 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
7782 | if (PyErr_Occurred()) SWIG_fail; | |
7783 | } | |
7784 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
7785 | return resultobj; | |
7786 | fail: | |
7787 | return NULL; | |
7788 | } | |
7789 | ||
7790 | ||
7791 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) { | |
7792 | int argc; | |
7793 | PyObject *argv[4]; | |
7794 | ||
7795 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail; | |
7796 | --argc; | |
7797 | if (argc == 1) { | |
7798 | return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv); | |
7799 | } | |
7800 | if (argc == 2) { | |
7801 | return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv); | |
7802 | } | |
7803 | if (argc == 3) { | |
7804 | return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv); | |
7805 | } | |
7806 | ||
7807 | fail: | |
7808 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'"); | |
7809 | return NULL; | |
7810 | } | |
7811 | ||
7812 | ||
7813 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7814 | PyObject *resultobj = 0; | |
7815 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
7816 | void *argp1 = 0 ; | |
7817 | int res1 = 0 ; | |
7818 | PyObject *swig_obj[1] ; | |
7819 | ||
7820 | if (!args) SWIG_fail; | |
7821 | swig_obj[0] = args; | |
7822 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 ); | |
7823 | if (!SWIG_IsOK(res1)) { | |
7824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
7825 | } | |
7826 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
7827 | { | |
7828 | delete arg1; | |
7829 | ||
7830 | if (PyErr_Occurred()) SWIG_fail; | |
7831 | } | |
7832 | resultobj = SWIG_Py_Void(); | |
7833 | return resultobj; | |
7834 | fail: | |
7835 | return NULL; | |
7836 | } | |
7837 | ||
7838 | ||
7839 | SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7840 | PyObject *resultobj = 0; | |
7841 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
7842 | wxAlphaPixelData_Accessor result; | |
7843 | void *argp1 = 0 ; | |
7844 | int res1 = 0 ; | |
7845 | PyObject *swig_obj[1] ; | |
7846 | ||
7847 | if (!args) SWIG_fail; | |
7848 | swig_obj[0] = args; | |
7849 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
7850 | if (!SWIG_IsOK(res1)) { | |
7851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'"); | |
7852 | } | |
7853 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
7854 | { | |
7855 | result = ((wxAlphaPixelData const *)arg1)->GetPixels(); | |
7856 | if (PyErr_Occurred()) SWIG_fail; | |
7857 | } | |
7858 | resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
7859 | return resultobj; | |
7860 | fail: | |
7861 | return NULL; | |
7862 | } | |
7863 | ||
7864 | ||
7865 | SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7866 | PyObject *resultobj = 0; | |
7867 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
7868 | void *argp1 = 0 ; | |
7869 | int res1 = 0 ; | |
7870 | PyObject *swig_obj[1] ; | |
7871 | ||
7872 | if (!args) SWIG_fail; | |
7873 | swig_obj[0] = args; | |
7874 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
7875 | if (!SWIG_IsOK(res1)) { | |
7876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
7877 | } | |
7878 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
7879 | { | |
7880 | (arg1)->UseAlpha(); | |
7881 | if (PyErr_Occurred()) SWIG_fail; | |
7882 | } | |
7883 | resultobj = SWIG_Py_Void(); | |
7884 | return resultobj; | |
7885 | fail: | |
7886 | return NULL; | |
7887 | } | |
7888 | ||
7889 | ||
7890 | SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7891 | PyObject *resultobj = 0; | |
7892 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
7893 | bool result; | |
7894 | void *argp1 = 0 ; | |
7895 | int res1 = 0 ; | |
7896 | PyObject *swig_obj[1] ; | |
7897 | ||
7898 | if (!args) SWIG_fail; | |
7899 | swig_obj[0] = args; | |
7900 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
7901 | if (!SWIG_IsOK(res1)) { | |
7902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
7903 | } | |
7904 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
7905 | { | |
7906 | result = (bool)wxAlphaPixelData___nonzero__(arg1); | |
7907 | if (PyErr_Occurred()) SWIG_fail; | |
7908 | } | |
7909 | { | |
7910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7911 | } | |
7912 | return resultobj; | |
7913 | fail: | |
7914 | return NULL; | |
7915 | } | |
7916 | ||
7917 | ||
7918 | SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7919 | PyObject *obj; | |
7920 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7921 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj)); | |
7922 | return SWIG_Py_Void(); | |
7923 | } | |
7924 | ||
7925 | SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7926 | return SWIG_Python_InitShadowInstance(args); | |
7927 | } | |
7928 | ||
7929 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7930 | PyObject *resultobj = 0; | |
7931 | wxAlphaPixelData *arg1 = 0 ; | |
7932 | wxAlphaPixelData_Accessor *result = 0 ; | |
7933 | void *argp1 = 0 ; | |
7934 | int res1 = 0 ; | |
7935 | ||
7936 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7937 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
7938 | if (!SWIG_IsOK(res1)) { | |
7939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
7940 | } | |
7941 | if (!argp1) { | |
7942 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
7943 | } | |
7944 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
7945 | { | |
7946 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1); | |
7947 | if (PyErr_Occurred()) SWIG_fail; | |
7948 | } | |
7949 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7950 | return resultobj; | |
7951 | fail: | |
7952 | return NULL; | |
7953 | } | |
7954 | ||
7955 | ||
7956 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7957 | PyObject *resultobj = 0; | |
7958 | wxBitmap *arg1 = 0 ; | |
7959 | wxAlphaPixelData *arg2 = 0 ; | |
7960 | wxAlphaPixelData_Accessor *result = 0 ; | |
7961 | void *argp1 = 0 ; | |
7962 | int res1 = 0 ; | |
7963 | void *argp2 = 0 ; | |
7964 | int res2 = 0 ; | |
7965 | ||
7966 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7967 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7968 | if (!SWIG_IsOK(res1)) { | |
7969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7970 | } | |
7971 | if (!argp1) { | |
7972 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7973 | } | |
7974 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7975 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
7976 | if (!SWIG_IsOK(res2)) { | |
7977 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
7978 | } | |
7979 | if (!argp2) { | |
7980 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
7981 | } | |
7982 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
7983 | { | |
7984 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2); | |
7985 | if (PyErr_Occurred()) SWIG_fail; | |
7986 | } | |
7987 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7988 | return resultobj; | |
7989 | fail: | |
7990 | return NULL; | |
7991 | } | |
7992 | ||
7993 | ||
7994 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
7995 | PyObject *resultobj = 0; | |
7996 | wxAlphaPixelData_Accessor *result = 0 ; | |
7997 | ||
7998 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
7999 | { | |
8000 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(); | |
8001 | if (PyErr_Occurred()) SWIG_fail; | |
8002 | } | |
8003 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8004 | return resultobj; | |
8005 | fail: | |
8006 | return NULL; | |
8007 | } | |
8008 | ||
8009 | ||
8010 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) { | |
8011 | int argc; | |
8012 | PyObject *argv[3]; | |
8013 | ||
8014 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail; | |
8015 | --argc; | |
8016 | if (argc == 0) { | |
8017 | return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv); | |
8018 | } | |
8019 | if (argc == 1) { | |
8020 | return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv); | |
8021 | } | |
8022 | if (argc == 2) { | |
8023 | return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv); | |
8024 | } | |
8025 | ||
8026 | fail: | |
8027 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'"); | |
8028 | return NULL; | |
8029 | } | |
8030 | ||
8031 | ||
8032 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8033 | PyObject *resultobj = 0; | |
8034 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8035 | void *argp1 = 0 ; | |
8036 | int res1 = 0 ; | |
8037 | PyObject *swig_obj[1] ; | |
8038 | ||
8039 | if (!args) SWIG_fail; | |
8040 | swig_obj[0] = args; | |
8041 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
8042 | if (!SWIG_IsOK(res1)) { | |
8043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8044 | } | |
8045 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8046 | { | |
8047 | delete arg1; | |
8048 | ||
8049 | if (PyErr_Occurred()) SWIG_fail; | |
8050 | } | |
8051 | resultobj = SWIG_Py_Void(); | |
8052 | return resultobj; | |
8053 | fail: | |
8054 | return NULL; | |
8055 | } | |
8056 | ||
8057 | ||
8058 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8059 | PyObject *resultobj = 0; | |
8060 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8061 | wxAlphaPixelData *arg2 = 0 ; | |
8062 | void *argp1 = 0 ; | |
8063 | int res1 = 0 ; | |
8064 | void *argp2 = 0 ; | |
8065 | int res2 = 0 ; | |
8066 | PyObject * obj0 = 0 ; | |
8067 | PyObject * obj1 = 0 ; | |
8068 | char * kwnames[] = { | |
8069 | (char *) "self",(char *) "data", NULL | |
8070 | }; | |
8071 | ||
8072 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
8073 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8074 | if (!SWIG_IsOK(res1)) { | |
8075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8076 | } | |
8077 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8078 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8079 | if (!SWIG_IsOK(res2)) { | |
8080 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8081 | } | |
8082 | if (!argp2) { | |
8083 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8084 | } | |
8085 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8086 | { | |
8087 | (arg1)->Reset((wxAlphaPixelData const &)*arg2); | |
8088 | if (PyErr_Occurred()) SWIG_fail; | |
8089 | } | |
8090 | resultobj = SWIG_Py_Void(); | |
8091 | return resultobj; | |
8092 | fail: | |
8093 | return NULL; | |
8094 | } | |
8095 | ||
8096 | ||
8097 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8098 | PyObject *resultobj = 0; | |
8099 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8100 | bool result; | |
8101 | void *argp1 = 0 ; | |
8102 | int res1 = 0 ; | |
8103 | PyObject *swig_obj[1] ; | |
8104 | ||
8105 | if (!args) SWIG_fail; | |
8106 | swig_obj[0] = args; | |
8107 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8108 | if (!SWIG_IsOK(res1)) { | |
8109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'"); | |
8110 | } | |
8111 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8112 | { | |
8113 | result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk(); | |
8114 | if (PyErr_Occurred()) SWIG_fail; | |
8115 | } | |
8116 | { | |
8117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8118 | } | |
8119 | return resultobj; | |
8120 | fail: | |
8121 | return NULL; | |
8122 | } | |
8123 | ||
8124 | ||
8125 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8126 | PyObject *resultobj = 0; | |
8127 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8128 | void *argp1 = 0 ; | |
8129 | int res1 = 0 ; | |
8130 | PyObject *swig_obj[1] ; | |
8131 | ||
8132 | if (!args) SWIG_fail; | |
8133 | swig_obj[0] = args; | |
8134 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8135 | if (!SWIG_IsOK(res1)) { | |
8136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8137 | } | |
8138 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8139 | { | |
8140 | wxAlphaPixelData_Accessor_nextPixel(arg1); | |
8141 | if (PyErr_Occurred()) SWIG_fail; | |
8142 | } | |
8143 | resultobj = SWIG_Py_Void(); | |
8144 | return resultobj; | |
8145 | fail: | |
8146 | return NULL; | |
8147 | } | |
8148 | ||
8149 | ||
8150 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8151 | PyObject *resultobj = 0; | |
8152 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8153 | wxAlphaPixelData *arg2 = 0 ; | |
8154 | int arg3 ; | |
8155 | int arg4 ; | |
8156 | void *argp1 = 0 ; | |
8157 | int res1 = 0 ; | |
8158 | void *argp2 = 0 ; | |
8159 | int res2 = 0 ; | |
8160 | int val3 ; | |
8161 | int ecode3 = 0 ; | |
8162 | int val4 ; | |
8163 | int ecode4 = 0 ; | |
8164 | PyObject * obj0 = 0 ; | |
8165 | PyObject * obj1 = 0 ; | |
8166 | PyObject * obj2 = 0 ; | |
8167 | PyObject * obj3 = 0 ; | |
8168 | char * kwnames[] = { | |
8169 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8170 | }; | |
8171 | ||
8172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8174 | if (!SWIG_IsOK(res1)) { | |
8175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8176 | } | |
8177 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8178 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8179 | if (!SWIG_IsOK(res2)) { | |
8180 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8181 | } | |
8182 | if (!argp2) { | |
8183 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8184 | } | |
8185 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8186 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8187 | if (!SWIG_IsOK(ecode3)) { | |
8188 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8189 | } | |
8190 | arg3 = static_cast< int >(val3); | |
8191 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8192 | if (!SWIG_IsOK(ecode4)) { | |
8193 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8194 | } | |
8195 | arg4 = static_cast< int >(val4); | |
8196 | { | |
8197 | (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8198 | if (PyErr_Occurred()) SWIG_fail; | |
8199 | } | |
8200 | resultobj = SWIG_Py_Void(); | |
8201 | return resultobj; | |
8202 | fail: | |
8203 | return NULL; | |
8204 | } | |
8205 | ||
8206 | ||
8207 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8208 | PyObject *resultobj = 0; | |
8209 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8210 | wxAlphaPixelData *arg2 = 0 ; | |
8211 | int arg3 ; | |
8212 | void *argp1 = 0 ; | |
8213 | int res1 = 0 ; | |
8214 | void *argp2 = 0 ; | |
8215 | int res2 = 0 ; | |
8216 | int val3 ; | |
8217 | int ecode3 = 0 ; | |
8218 | PyObject * obj0 = 0 ; | |
8219 | PyObject * obj1 = 0 ; | |
8220 | PyObject * obj2 = 0 ; | |
8221 | char * kwnames[] = { | |
8222 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8223 | }; | |
8224 | ||
8225 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8226 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8227 | if (!SWIG_IsOK(res1)) { | |
8228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8229 | } | |
8230 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8231 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8232 | if (!SWIG_IsOK(res2)) { | |
8233 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8234 | } | |
8235 | if (!argp2) { | |
8236 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8237 | } | |
8238 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8239 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8240 | if (!SWIG_IsOK(ecode3)) { | |
8241 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8242 | } | |
8243 | arg3 = static_cast< int >(val3); | |
8244 | { | |
8245 | (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3); | |
8246 | if (PyErr_Occurred()) SWIG_fail; | |
8247 | } | |
8248 | resultobj = SWIG_Py_Void(); | |
8249 | return resultobj; | |
8250 | fail: | |
8251 | return NULL; | |
8252 | } | |
8253 | ||
8254 | ||
8255 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8256 | PyObject *resultobj = 0; | |
8257 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8258 | wxAlphaPixelData *arg2 = 0 ; | |
8259 | int arg3 ; | |
8260 | void *argp1 = 0 ; | |
8261 | int res1 = 0 ; | |
8262 | void *argp2 = 0 ; | |
8263 | int res2 = 0 ; | |
8264 | int val3 ; | |
8265 | int ecode3 = 0 ; | |
8266 | PyObject * obj0 = 0 ; | |
8267 | PyObject * obj1 = 0 ; | |
8268 | PyObject * obj2 = 0 ; | |
8269 | char * kwnames[] = { | |
8270 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8271 | }; | |
8272 | ||
8273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8274 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8275 | if (!SWIG_IsOK(res1)) { | |
8276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8277 | } | |
8278 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8279 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8280 | if (!SWIG_IsOK(res2)) { | |
8281 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8282 | } | |
8283 | if (!argp2) { | |
8284 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8285 | } | |
8286 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8287 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8288 | if (!SWIG_IsOK(ecode3)) { | |
8289 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8290 | } | |
8291 | arg3 = static_cast< int >(val3); | |
8292 | { | |
8293 | (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3); | |
8294 | if (PyErr_Occurred()) SWIG_fail; | |
8295 | } | |
8296 | resultobj = SWIG_Py_Void(); | |
8297 | return resultobj; | |
8298 | fail: | |
8299 | return NULL; | |
8300 | } | |
8301 | ||
8302 | ||
8303 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8304 | PyObject *resultobj = 0; | |
8305 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8306 | wxAlphaPixelData *arg2 = 0 ; | |
8307 | int arg3 ; | |
8308 | int arg4 ; | |
8309 | void *argp1 = 0 ; | |
8310 | int res1 = 0 ; | |
8311 | void *argp2 = 0 ; | |
8312 | int res2 = 0 ; | |
8313 | int val3 ; | |
8314 | int ecode3 = 0 ; | |
8315 | int val4 ; | |
8316 | int ecode4 = 0 ; | |
8317 | PyObject * obj0 = 0 ; | |
8318 | PyObject * obj1 = 0 ; | |
8319 | PyObject * obj2 = 0 ; | |
8320 | PyObject * obj3 = 0 ; | |
8321 | char * kwnames[] = { | |
8322 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8323 | }; | |
8324 | ||
8325 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8326 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8327 | if (!SWIG_IsOK(res1)) { | |
8328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8329 | } | |
8330 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8331 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8332 | if (!SWIG_IsOK(res2)) { | |
8333 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8334 | } | |
8335 | if (!argp2) { | |
8336 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8337 | } | |
8338 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8339 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8340 | if (!SWIG_IsOK(ecode3)) { | |
8341 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8342 | } | |
8343 | arg3 = static_cast< int >(val3); | |
8344 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8345 | if (!SWIG_IsOK(ecode4)) { | |
8346 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8347 | } | |
8348 | arg4 = static_cast< int >(val4); | |
8349 | { | |
8350 | (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8351 | if (PyErr_Occurred()) SWIG_fail; | |
8352 | } | |
8353 | resultobj = SWIG_Py_Void(); | |
8354 | return resultobj; | |
8355 | fail: | |
8356 | return NULL; | |
8357 | } | |
8358 | ||
8359 | ||
8360 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8361 | PyObject *resultobj = 0; | |
8362 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8363 | byte arg2 ; | |
8364 | byte arg3 ; | |
8365 | byte arg4 ; | |
8366 | byte arg5 ; | |
8367 | void *argp1 = 0 ; | |
8368 | int res1 = 0 ; | |
8369 | unsigned char val2 ; | |
8370 | int ecode2 = 0 ; | |
8371 | unsigned char val3 ; | |
8372 | int ecode3 = 0 ; | |
8373 | unsigned char val4 ; | |
8374 | int ecode4 = 0 ; | |
8375 | unsigned char val5 ; | |
8376 | int ecode5 = 0 ; | |
8377 | PyObject * obj0 = 0 ; | |
8378 | PyObject * obj1 = 0 ; | |
8379 | PyObject * obj2 = 0 ; | |
8380 | PyObject * obj3 = 0 ; | |
8381 | PyObject * obj4 = 0 ; | |
8382 | char * kwnames[] = { | |
8383 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL | |
8384 | }; | |
8385 | ||
8386 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8387 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8388 | if (!SWIG_IsOK(res1)) { | |
8389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8390 | } | |
8391 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8392 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8393 | if (!SWIG_IsOK(ecode2)) { | |
8394 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8395 | } | |
8396 | arg2 = static_cast< byte >(val2); | |
8397 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8398 | if (!SWIG_IsOK(ecode3)) { | |
8399 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8400 | } | |
8401 | arg3 = static_cast< byte >(val3); | |
8402 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8403 | if (!SWIG_IsOK(ecode4)) { | |
8404 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8405 | } | |
8406 | arg4 = static_cast< byte >(val4); | |
8407 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
8408 | if (!SWIG_IsOK(ecode5)) { | |
8409 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'"); | |
8410 | } | |
8411 | arg5 = static_cast< byte >(val5); | |
8412 | { | |
8413 | wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5); | |
8414 | if (PyErr_Occurred()) SWIG_fail; | |
0085ce49 | 8415 | } |
fc46b7f3 | 8416 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
8417 | return resultobj; |
8418 | fail: | |
8419 | return NULL; | |
8420 | } | |
8421 | ||
8422 | ||
fc46b7f3 | 8423 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8424 | PyObject *resultobj = 0; |
fc46b7f3 RD |
8425 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; |
8426 | PyObject *result = 0 ; | |
0085ce49 RD |
8427 | void *argp1 = 0 ; |
8428 | int res1 = 0 ; | |
fc46b7f3 | 8429 | PyObject *swig_obj[1] ; |
0085ce49 | 8430 | |
fc46b7f3 RD |
8431 | if (!args) SWIG_fail; |
8432 | swig_obj[0] = args; | |
8433 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
0085ce49 | 8434 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 8435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); |
0085ce49 | 8436 | } |
fc46b7f3 | 8437 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); |
0085ce49 | 8438 | { |
fc46b7f3 | 8439 | result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1); |
0085ce49 RD |
8440 | if (PyErr_Occurred()) SWIG_fail; |
8441 | } | |
fc46b7f3 | 8442 | resultobj = result; |
0085ce49 RD |
8443 | return resultobj; |
8444 | fail: | |
8445 | return NULL; | |
d14a1e28 RD |
8446 | } |
8447 | ||
8448 | ||
fc46b7f3 | 8449 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
8450 | PyObject *obj; |
8451 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 8452 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj)); |
0085ce49 | 8453 | return SWIG_Py_Void(); |
b2df227b RD |
8454 | } |
8455 | ||
fc46b7f3 | 8456 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 8457 | return SWIG_Python_InitShadowInstance(args); |
d14a1e28 RD |
8458 | } |
8459 | ||
0085ce49 RD |
8460 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8461 | PyObject *resultobj = 0; | |
8462 | wxBitmap *arg1 = 0 ; | |
8463 | wxColour const &arg2_defvalue = wxNullColour ; | |
8464 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8465 | wxMask *result = 0 ; | |
8466 | void *argp1 = 0 ; | |
8467 | int res1 = 0 ; | |
8468 | wxColour temp2 ; | |
8469 | PyObject * obj0 = 0 ; | |
8470 | PyObject * obj1 = 0 ; | |
8471 | char * kwnames[] = { | |
8472 | (char *) "bitmap",(char *) "colour", NULL | |
8473 | }; | |
8474 | ||
8475 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
8476 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8477 | if (!SWIG_IsOK(res1)) { | |
8478 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8479 | } | |
8480 | if (!argp1) { | |
8481 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8482 | } | |
8483 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8484 | if (obj1) { | |
d14a1e28 | 8485 | { |
0085ce49 RD |
8486 | arg2 = &temp2; |
8487 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d14a1e28 | 8488 | } |
0085ce49 RD |
8489 | } |
8490 | { | |
8491 | if (!wxPyCheckForApp()) SWIG_fail; | |
8492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8493 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
8494 | wxPyEndAllowThreads(__tstate); | |
8495 | if (PyErr_Occurred()) SWIG_fail; | |
8496 | } | |
8497 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
8498 | return resultobj; | |
8499 | fail: | |
8500 | return NULL; | |
d14a1e28 RD |
8501 | } |
8502 | ||
8503 | ||
0085ce49 RD |
8504 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8505 | PyObject *resultobj = 0; | |
8506 | wxMask *arg1 = (wxMask *) 0 ; | |
8507 | void *argp1 = 0 ; | |
8508 | int res1 = 0 ; | |
8509 | PyObject *swig_obj[1] ; | |
8510 | ||
8511 | if (!args) SWIG_fail; | |
8512 | swig_obj[0] = args; | |
8513 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
8514 | if (!SWIG_IsOK(res1)) { | |
8515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
8516 | } | |
8517 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
8518 | { | |
0085ce49 | 8519 | delete arg1; |
d14a1e28 | 8520 | |
0085ce49 RD |
8521 | if (PyErr_Occurred()) SWIG_fail; |
8522 | } | |
8523 | resultobj = SWIG_Py_Void(); | |
8524 | return resultobj; | |
8525 | fail: | |
8526 | return NULL; | |
8527 | } | |
8528 | ||
8529 | ||
8530 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8531 | PyObject *obj; | |
8532 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8533 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
8534 | return SWIG_Py_Void(); | |
8535 | } | |
8536 | ||
8537 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8538 | return SWIG_Python_InitShadowInstance(args); | |
8539 | } | |
8540 | ||
8541 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8542 | PyObject *resultobj = 0; | |
8543 | wxString *arg1 = 0 ; | |
8544 | wxBitmapType arg2 ; | |
8545 | int arg3 = (int) -1 ; | |
8546 | int arg4 = (int) -1 ; | |
8547 | wxIcon *result = 0 ; | |
8548 | bool temp1 = false ; | |
8549 | int val2 ; | |
8550 | int ecode2 = 0 ; | |
8551 | int val3 ; | |
8552 | int ecode3 = 0 ; | |
8553 | int val4 ; | |
8554 | int ecode4 = 0 ; | |
8555 | PyObject * obj0 = 0 ; | |
8556 | PyObject * obj1 = 0 ; | |
8557 | PyObject * obj2 = 0 ; | |
8558 | PyObject * obj3 = 0 ; | |
8559 | char * kwnames[] = { | |
8560 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
8561 | }; | |
8562 | ||
8563 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8564 | { | |
8565 | arg1 = wxString_in_helper(obj0); | |
8566 | if (arg1 == NULL) SWIG_fail; | |
8567 | temp1 = true; | |
8568 | } | |
8569 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8570 | if (!SWIG_IsOK(ecode2)) { | |
8571 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
8572 | } | |
8573 | arg2 = static_cast< wxBitmapType >(val2); | |
8574 | if (obj2) { | |
8575 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8576 | if (!SWIG_IsOK(ecode3)) { | |
8577 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
8578 | } | |
8579 | arg3 = static_cast< int >(val3); | |
8580 | } | |
8581 | if (obj3) { | |
8582 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8583 | if (!SWIG_IsOK(ecode4)) { | |
8584 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
8585 | } | |
8586 | arg4 = static_cast< int >(val4); | |
8587 | } | |
8588 | { | |
8589 | if (!wxPyCheckForApp()) SWIG_fail; | |
8590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8591 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
8592 | wxPyEndAllowThreads(__tstate); | |
8593 | if (PyErr_Occurred()) SWIG_fail; | |
8594 | } | |
8595 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
8596 | { | |
8597 | if (temp1) | |
8598 | delete arg1; | |
8599 | } | |
8600 | return resultobj; | |
8601 | fail: | |
8602 | { | |
8603 | if (temp1) | |
8604 | delete arg1; | |
8605 | } | |
8606 | return NULL; | |
d14a1e28 RD |
8607 | } |
8608 | ||
8609 | ||
0085ce49 RD |
8610 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8611 | PyObject *resultobj = 0; | |
8612 | wxIcon *arg1 = (wxIcon *) 0 ; | |
8613 | void *argp1 = 0 ; | |
8614 | int res1 = 0 ; | |
8615 | PyObject *swig_obj[1] ; | |
8616 | ||
8617 | if (!args) SWIG_fail; | |
8618 | swig_obj[0] = args; | |
8619 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
8620 | if (!SWIG_IsOK(res1)) { | |
8621 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
8622 | } | |
8623 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
8624 | { | |
8625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8626 | delete arg1; | |
d14a1e28 | 8627 | |
0085ce49 RD |
8628 | wxPyEndAllowThreads(__tstate); |
8629 | if (PyErr_Occurred()) SWIG_fail; | |
8630 | } | |
8631 | resultobj = SWIG_Py_Void(); | |
8632 | return resultobj; | |
8633 | fail: | |
8634 | return NULL; | |
d14a1e28 RD |
8635 | } |
8636 | ||
8637 | ||
0085ce49 RD |
8638 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8639 | PyObject *resultobj = 0; | |
8640 | wxIcon *result = 0 ; | |
8641 | ||
8642 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
8643 | { | |
8644 | if (!wxPyCheckForApp()) SWIG_fail; | |
8645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8646 | result = (wxIcon *)new wxIcon(); | |
8647 | wxPyEndAllowThreads(__tstate); | |
8648 | if (PyErr_Occurred()) SWIG_fail; | |
8649 | } | |
8650 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
8651 | return resultobj; | |
8652 | fail: | |
8653 | return NULL; | |
8654 | } | |
8655 | ||
8656 | ||
8657 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8658 | PyObject *resultobj = 0; | |
8659 | wxIconLocation *arg1 = 0 ; | |
8660 | wxIcon *result = 0 ; | |
8661 | void *argp1 = 0 ; | |
8662 | int res1 = 0 ; | |
8663 | PyObject * obj0 = 0 ; | |
8664 | char * kwnames[] = { | |
8665 | (char *) "loc", NULL | |
8666 | }; | |
8667 | ||
8668 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
8669 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
8670 | if (!SWIG_IsOK(res1)) { | |
8671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
8672 | } | |
8673 | if (!argp1) { | |
8674 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
8675 | } | |
8676 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
8677 | { | |
8678 | if (!wxPyCheckForApp()) SWIG_fail; | |
8679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8680 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
8681 | wxPyEndAllowThreads(__tstate); | |
8682 | if (PyErr_Occurred()) SWIG_fail; | |
8683 | } | |
8684 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
8685 | return resultobj; | |
8686 | fail: | |
8687 | return NULL; | |
8688 | } | |
8689 | ||
8690 | ||
8691 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8692 | PyObject *resultobj = 0; | |
8693 | wxBitmap *arg1 = 0 ; | |
8694 | wxIcon *result = 0 ; | |
8695 | void *argp1 = 0 ; | |
8696 | int res1 = 0 ; | |
8697 | PyObject * obj0 = 0 ; | |
8698 | char * kwnames[] = { | |
8699 | (char *) "bmp", NULL | |
8700 | }; | |
8701 | ||
8702 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
8703 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8704 | if (!SWIG_IsOK(res1)) { | |
8705 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8706 | } | |
8707 | if (!argp1) { | |
8708 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8709 | } | |
8710 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8711 | { | |
8712 | if (!wxPyCheckForApp()) SWIG_fail; | |
8713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8714 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
8715 | wxPyEndAllowThreads(__tstate); | |
8716 | if (PyErr_Occurred()) SWIG_fail; | |
8717 | } | |
8718 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
8719 | return resultobj; | |
8720 | fail: | |
8721 | return NULL; | |
d14a1e28 RD |
8722 | } |
8723 | ||
8724 | ||
0085ce49 RD |
8725 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8726 | PyObject *resultobj = 0; | |
8727 | PyObject *arg1 = (PyObject *) 0 ; | |
8728 | wxIcon *result = 0 ; | |
8729 | PyObject * obj0 = 0 ; | |
8730 | char * kwnames[] = { | |
8731 | (char *) "listOfStrings", NULL | |
8732 | }; | |
8733 | ||
8734 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
8735 | arg1 = obj0; | |
8736 | { | |
8737 | if (!wxPyCheckForApp()) SWIG_fail; | |
8738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8739 | result = (wxIcon *)new_wxIcon(arg1); | |
8740 | wxPyEndAllowThreads(__tstate); | |
8741 | if (PyErr_Occurred()) SWIG_fail; | |
8742 | } | |
8743 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
8744 | return resultobj; | |
8745 | fail: | |
8746 | return NULL; | |
8747 | } | |
8748 | ||
8749 | ||
8750 | SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8751 | PyObject *resultobj = 0; | |
8752 | wxIcon *arg1 = (wxIcon *) 0 ; | |
8753 | wxString *arg2 = 0 ; | |
8754 | wxBitmapType arg3 ; | |
8755 | bool result; | |
8756 | void *argp1 = 0 ; | |
8757 | int res1 = 0 ; | |
8758 | bool temp2 = false ; | |
8759 | int val3 ; | |
8760 | int ecode3 = 0 ; | |
8761 | PyObject * obj0 = 0 ; | |
8762 | PyObject * obj1 = 0 ; | |
8763 | PyObject * obj2 = 0 ; | |
8764 | char * kwnames[] = { | |
8765 | (char *) "self",(char *) "name",(char *) "type", NULL | |
8766 | }; | |
8767 | ||
8768 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
8770 | if (!SWIG_IsOK(res1)) { | |
8771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
8772 | } | |
8773 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
8774 | { | |
8775 | arg2 = wxString_in_helper(obj1); | |
8776 | if (arg2 == NULL) SWIG_fail; | |
8777 | temp2 = true; | |
8778 | } | |
8779 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8780 | if (!SWIG_IsOK(ecode3)) { | |
8781 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
8782 | } | |
8783 | arg3 = static_cast< wxBitmapType >(val3); | |
8784 | { | |
8785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8786 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
8787 | wxPyEndAllowThreads(__tstate); | |
8788 | if (PyErr_Occurred()) SWIG_fail; | |
8789 | } | |
8790 | { | |
8791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8792 | } | |
8793 | { | |
8794 | if (temp2) | |
8795 | delete arg2; | |
8796 | } | |
8797 | return resultobj; | |
8798 | fail: | |
8799 | { | |
8800 | if (temp2) | |
8801 | delete arg2; | |
8802 | } | |
8803 | return NULL; | |
d14a1e28 RD |
8804 | } |
8805 | ||
8806 | ||
0085ce49 RD |
8807 | SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8808 | PyObject *resultobj = 0; | |
8809 | wxIcon *arg1 = (wxIcon *) 0 ; | |
8810 | bool result; | |
8811 | void *argp1 = 0 ; | |
8812 | int res1 = 0 ; | |
8813 | PyObject *swig_obj[1] ; | |
8814 | ||
8815 | if (!args) SWIG_fail; | |
8816 | swig_obj[0] = args; | |
8817 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
8818 | if (!SWIG_IsOK(res1)) { | |
8819 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
8820 | } | |
8821 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
8822 | { | |
8823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8824 | result = (bool)(arg1)->Ok(); | |
8825 | wxPyEndAllowThreads(__tstate); | |
8826 | if (PyErr_Occurred()) SWIG_fail; | |
8827 | } | |
8828 | { | |
8829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8830 | } | |
8831 | return resultobj; | |
8832 | fail: | |
8833 | return NULL; | |
d14a1e28 RD |
8834 | } |
8835 | ||
8836 | ||
0085ce49 RD |
8837 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8838 | PyObject *resultobj = 0; | |
8839 | wxIcon *arg1 = (wxIcon *) 0 ; | |
8840 | int result; | |
8841 | void *argp1 = 0 ; | |
8842 | int res1 = 0 ; | |
8843 | PyObject *swig_obj[1] ; | |
8844 | ||
8845 | if (!args) SWIG_fail; | |
8846 | swig_obj[0] = args; | |
8847 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
8848 | if (!SWIG_IsOK(res1)) { | |
8849 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
8850 | } | |
8851 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
8852 | { | |
8853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8854 | result = (int)(arg1)->GetWidth(); | |
8855 | wxPyEndAllowThreads(__tstate); | |
8856 | if (PyErr_Occurred()) SWIG_fail; | |
8857 | } | |
8858 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8859 | return resultobj; | |
8860 | fail: | |
8861 | return NULL; | |
d3b6e4ff RD |
8862 | } |
8863 | ||
8864 | ||
0085ce49 RD |
8865 | SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8866 | PyObject *resultobj = 0; | |
8867 | wxIcon *arg1 = (wxIcon *) 0 ; | |
8868 | int result; | |
8869 | void *argp1 = 0 ; | |
8870 | int res1 = 0 ; | |
8871 | PyObject *swig_obj[1] ; | |
8872 | ||
8873 | if (!args) SWIG_fail; | |
8874 | swig_obj[0] = args; | |
8875 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
8876 | if (!SWIG_IsOK(res1)) { | |
8877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
8878 | } | |
8879 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
8880 | { | |
8881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8882 | result = (int)(arg1)->GetHeight(); | |
8883 | wxPyEndAllowThreads(__tstate); | |
8884 | if (PyErr_Occurred()) SWIG_fail; | |
8885 | } | |
8886 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8887 | return resultobj; | |
8888 | fail: | |
8889 | return NULL; | |
d14a1e28 RD |
8890 | } |
8891 | ||
8892 | ||
0085ce49 RD |
8893 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8894 | PyObject *resultobj = 0; | |
8895 | wxIcon *arg1 = (wxIcon *) 0 ; | |
8896 | int result; | |
8897 | void *argp1 = 0 ; | |
8898 | int res1 = 0 ; | |
8899 | PyObject *swig_obj[1] ; | |
8900 | ||
8901 | if (!args) SWIG_fail; | |
8902 | swig_obj[0] = args; | |
8903 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
8904 | if (!SWIG_IsOK(res1)) { | |
8905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
8906 | } | |
8907 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
8908 | { | |
8909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8910 | result = (int)(arg1)->GetDepth(); | |
8911 | wxPyEndAllowThreads(__tstate); | |
8912 | if (PyErr_Occurred()) SWIG_fail; | |
8913 | } | |
8914 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
8915 | return resultobj; | |
8916 | fail: | |
8917 | return NULL; | |
8918 | } | |
8919 | ||
8920 | ||
8921 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8922 | PyObject *resultobj = 0; | |
8923 | wxIcon *arg1 = (wxIcon *) 0 ; | |
8924 | int arg2 ; | |
8925 | void *argp1 = 0 ; | |
8926 | int res1 = 0 ; | |
8927 | int val2 ; | |
8928 | int ecode2 = 0 ; | |
8929 | PyObject * obj0 = 0 ; | |
8930 | PyObject * obj1 = 0 ; | |
8931 | char * kwnames[] = { | |
8932 | (char *) "self",(char *) "w", NULL | |
8933 | }; | |
8934 | ||
8935 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
8936 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
8937 | if (!SWIG_IsOK(res1)) { | |
8938 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
8939 | } | |
8940 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
8941 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8942 | if (!SWIG_IsOK(ecode2)) { | |
8943 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
8944 | } | |
8945 | arg2 = static_cast< int >(val2); | |
8946 | { | |
8947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8948 | (arg1)->SetWidth(arg2); | |
8949 | wxPyEndAllowThreads(__tstate); | |
8950 | if (PyErr_Occurred()) SWIG_fail; | |
8951 | } | |
8952 | resultobj = SWIG_Py_Void(); | |
8953 | return resultobj; | |
8954 | fail: | |
8955 | return NULL; | |
8956 | } | |
8957 | ||
8958 | ||
8959 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8960 | PyObject *resultobj = 0; | |
8961 | wxIcon *arg1 = (wxIcon *) 0 ; | |
8962 | int arg2 ; | |
8963 | void *argp1 = 0 ; | |
8964 | int res1 = 0 ; | |
8965 | int val2 ; | |
8966 | int ecode2 = 0 ; | |
8967 | PyObject * obj0 = 0 ; | |
8968 | PyObject * obj1 = 0 ; | |
8969 | char * kwnames[] = { | |
8970 | (char *) "self",(char *) "h", NULL | |
8971 | }; | |
8972 | ||
8973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
8974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
8975 | if (!SWIG_IsOK(res1)) { | |
8976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
8977 | } | |
8978 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
8979 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8980 | if (!SWIG_IsOK(ecode2)) { | |
8981 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
8982 | } | |
8983 | arg2 = static_cast< int >(val2); | |
8984 | { | |
8985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8986 | (arg1)->SetHeight(arg2); | |
8987 | wxPyEndAllowThreads(__tstate); | |
8988 | if (PyErr_Occurred()) SWIG_fail; | |
8989 | } | |
8990 | resultobj = SWIG_Py_Void(); | |
8991 | return resultobj; | |
8992 | fail: | |
8993 | return NULL; | |
8994 | } | |
8995 | ||
8996 | ||
8997 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8998 | PyObject *resultobj = 0; | |
8999 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9000 | int arg2 ; | |
9001 | void *argp1 = 0 ; | |
9002 | int res1 = 0 ; | |
9003 | int val2 ; | |
9004 | int ecode2 = 0 ; | |
9005 | PyObject * obj0 = 0 ; | |
9006 | PyObject * obj1 = 0 ; | |
9007 | char * kwnames[] = { | |
9008 | (char *) "self",(char *) "d", NULL | |
9009 | }; | |
9010 | ||
9011 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9012 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9013 | if (!SWIG_IsOK(res1)) { | |
9014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9015 | } | |
9016 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9017 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9018 | if (!SWIG_IsOK(ecode2)) { | |
9019 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
9020 | } | |
9021 | arg2 = static_cast< int >(val2); | |
9022 | { | |
9023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9024 | (arg1)->SetDepth(arg2); | |
9025 | wxPyEndAllowThreads(__tstate); | |
9026 | if (PyErr_Occurred()) SWIG_fail; | |
9027 | } | |
9028 | resultobj = SWIG_Py_Void(); | |
9029 | return resultobj; | |
9030 | fail: | |
9031 | return NULL; | |
9032 | } | |
9033 | ||
9034 | ||
9035 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9036 | PyObject *resultobj = 0; | |
9037 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9038 | wxBitmap *arg2 = 0 ; | |
9039 | void *argp1 = 0 ; | |
9040 | int res1 = 0 ; | |
9041 | void *argp2 = 0 ; | |
9042 | int res2 = 0 ; | |
9043 | PyObject * obj0 = 0 ; | |
9044 | PyObject * obj1 = 0 ; | |
9045 | char * kwnames[] = { | |
9046 | (char *) "self",(char *) "bmp", NULL | |
9047 | }; | |
9048 | ||
9049 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
9050 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9051 | if (!SWIG_IsOK(res1)) { | |
9052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9053 | } | |
9054 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9055 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9056 | if (!SWIG_IsOK(res2)) { | |
9057 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9058 | } | |
9059 | if (!argp2) { | |
9060 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9061 | } | |
9062 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9063 | { | |
9064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9065 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
9066 | wxPyEndAllowThreads(__tstate); | |
9067 | if (PyErr_Occurred()) SWIG_fail; | |
9068 | } | |
9069 | resultobj = SWIG_Py_Void(); | |
9070 | return resultobj; | |
9071 | fail: | |
9072 | return NULL; | |
d14a1e28 RD |
9073 | } |
9074 | ||
9075 | ||
0085ce49 RD |
9076 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9077 | PyObject *obj; | |
9078 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9079 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
9080 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9081 | } |
9082 | ||
0085ce49 RD |
9083 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9084 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9085 | } |
9086 | ||
0085ce49 RD |
9087 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9088 | PyObject *resultobj = 0; | |
9089 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
9090 | int arg2 = (int) 0 ; | |
9091 | wxIconLocation *result = 0 ; | |
9092 | bool temp1 = false ; | |
9093 | int val2 ; | |
9094 | int ecode2 = 0 ; | |
9095 | PyObject * obj0 = 0 ; | |
9096 | PyObject * obj1 = 0 ; | |
9097 | char * kwnames[] = { | |
9098 | (char *) "filename",(char *) "num", NULL | |
9099 | }; | |
9100 | ||
9101 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
9102 | if (obj0) { | |
b2df227b | 9103 | { |
0085ce49 RD |
9104 | arg1 = wxString_in_helper(obj0); |
9105 | if (arg1 == NULL) SWIG_fail; | |
9106 | temp1 = true; | |
b2df227b | 9107 | } |
0085ce49 RD |
9108 | } |
9109 | if (obj1) { | |
9110 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9111 | if (!SWIG_IsOK(ecode2)) { | |
9112 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
9113 | } | |
9114 | arg2 = static_cast< int >(val2); | |
9115 | } | |
9116 | { | |
9117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9118 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
9119 | wxPyEndAllowThreads(__tstate); | |
9120 | if (PyErr_Occurred()) SWIG_fail; | |
9121 | } | |
9122 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
9123 | { | |
9124 | if (temp1) | |
9125 | delete arg1; | |
9126 | } | |
9127 | return resultobj; | |
9128 | fail: | |
9129 | { | |
9130 | if (temp1) | |
9131 | delete arg1; | |
9132 | } | |
9133 | return NULL; | |
b2df227b RD |
9134 | } |
9135 | ||
9136 | ||
0085ce49 RD |
9137 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9138 | PyObject *resultobj = 0; | |
9139 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9140 | void *argp1 = 0 ; | |
9141 | int res1 = 0 ; | |
9142 | PyObject *swig_obj[1] ; | |
9143 | ||
9144 | if (!args) SWIG_fail; | |
9145 | swig_obj[0] = args; | |
9146 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
9147 | if (!SWIG_IsOK(res1)) { | |
9148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9149 | } | |
9150 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9151 | { | |
9152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9153 | delete arg1; | |
4276dc52 | 9154 | |
0085ce49 RD |
9155 | wxPyEndAllowThreads(__tstate); |
9156 | if (PyErr_Occurred()) SWIG_fail; | |
9157 | } | |
9158 | resultobj = SWIG_Py_Void(); | |
9159 | return resultobj; | |
9160 | fail: | |
9161 | return NULL; | |
4276dc52 RD |
9162 | } |
9163 | ||
9164 | ||
0085ce49 RD |
9165 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9166 | PyObject *resultobj = 0; | |
9167 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9168 | bool result; | |
9169 | void *argp1 = 0 ; | |
9170 | int res1 = 0 ; | |
9171 | PyObject *swig_obj[1] ; | |
9172 | ||
9173 | if (!args) SWIG_fail; | |
9174 | swig_obj[0] = args; | |
9175 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9176 | if (!SWIG_IsOK(res1)) { | |
9177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9178 | } | |
9179 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9180 | { | |
9181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9182 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
9183 | wxPyEndAllowThreads(__tstate); | |
9184 | if (PyErr_Occurred()) SWIG_fail; | |
9185 | } | |
9186 | { | |
9187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9188 | } | |
9189 | return resultobj; | |
9190 | fail: | |
9191 | return NULL; | |
9192 | } | |
9193 | ||
9194 | ||
9195 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9196 | PyObject *resultobj = 0; | |
9197 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9198 | wxString *arg2 = 0 ; | |
9199 | void *argp1 = 0 ; | |
9200 | int res1 = 0 ; | |
9201 | bool temp2 = false ; | |
9202 | PyObject * obj0 = 0 ; | |
9203 | PyObject * obj1 = 0 ; | |
9204 | char * kwnames[] = { | |
9205 | (char *) "self",(char *) "filename", NULL | |
9206 | }; | |
9207 | ||
9208 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
9209 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9210 | if (!SWIG_IsOK(res1)) { | |
9211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9212 | } | |
9213 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9214 | { | |
9215 | arg2 = wxString_in_helper(obj1); | |
9216 | if (arg2 == NULL) SWIG_fail; | |
9217 | temp2 = true; | |
9218 | } | |
9219 | { | |
9220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9221 | (arg1)->SetFileName((wxString const &)*arg2); | |
9222 | wxPyEndAllowThreads(__tstate); | |
9223 | if (PyErr_Occurred()) SWIG_fail; | |
9224 | } | |
9225 | resultobj = SWIG_Py_Void(); | |
9226 | { | |
9227 | if (temp2) | |
9228 | delete arg2; | |
9229 | } | |
9230 | return resultobj; | |
9231 | fail: | |
9232 | { | |
9233 | if (temp2) | |
9234 | delete arg2; | |
9235 | } | |
9236 | return NULL; | |
4276dc52 RD |
9237 | } |
9238 | ||
9239 | ||
0085ce49 RD |
9240 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9241 | PyObject *resultobj = 0; | |
9242 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9243 | wxString *result = 0 ; | |
9244 | void *argp1 = 0 ; | |
9245 | int res1 = 0 ; | |
9246 | PyObject *swig_obj[1] ; | |
9247 | ||
9248 | if (!args) SWIG_fail; | |
9249 | swig_obj[0] = args; | |
9250 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9251 | if (!SWIG_IsOK(res1)) { | |
9252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9253 | } | |
9254 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9255 | { | |
9256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9257 | { |
0085ce49 RD |
9258 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
9259 | result = (wxString *) &_result_ref; | |
093d3ff1 | 9260 | } |
0085ce49 RD |
9261 | wxPyEndAllowThreads(__tstate); |
9262 | if (PyErr_Occurred()) SWIG_fail; | |
9263 | } | |
9264 | { | |
9265 | #if wxUSE_UNICODE | |
9266 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9267 | #else | |
9268 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9269 | #endif | |
9270 | } | |
9271 | return resultobj; | |
9272 | fail: | |
9273 | return NULL; | |
9274 | } | |
9275 | ||
9276 | ||
9277 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9278 | PyObject *resultobj = 0; | |
9279 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9280 | int arg2 ; | |
9281 | void *argp1 = 0 ; | |
9282 | int res1 = 0 ; | |
9283 | int val2 ; | |
9284 | int ecode2 = 0 ; | |
9285 | PyObject * obj0 = 0 ; | |
9286 | PyObject * obj1 = 0 ; | |
9287 | char * kwnames[] = { | |
9288 | (char *) "self",(char *) "num", NULL | |
9289 | }; | |
9290 | ||
9291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
9292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9293 | if (!SWIG_IsOK(res1)) { | |
9294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9295 | } | |
9296 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9297 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9298 | if (!SWIG_IsOK(ecode2)) { | |
9299 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
9300 | } | |
9301 | arg2 = static_cast< int >(val2); | |
9302 | { | |
9303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9304 | wxIconLocation_SetIndex(arg1,arg2); | |
9305 | wxPyEndAllowThreads(__tstate); | |
9306 | if (PyErr_Occurred()) SWIG_fail; | |
9307 | } | |
9308 | resultobj = SWIG_Py_Void(); | |
9309 | return resultobj; | |
9310 | fail: | |
9311 | return NULL; | |
d14a1e28 RD |
9312 | } |
9313 | ||
9314 | ||
0085ce49 RD |
9315 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9316 | PyObject *resultobj = 0; | |
9317 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9318 | int result; | |
9319 | void *argp1 = 0 ; | |
9320 | int res1 = 0 ; | |
9321 | PyObject *swig_obj[1] ; | |
9322 | ||
9323 | if (!args) SWIG_fail; | |
9324 | swig_obj[0] = args; | |
9325 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9326 | if (!SWIG_IsOK(res1)) { | |
9327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9328 | } | |
9329 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9330 | { | |
9331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9332 | result = (int)wxIconLocation_GetIndex(arg1); | |
9333 | wxPyEndAllowThreads(__tstate); | |
9334 | if (PyErr_Occurred()) SWIG_fail; | |
9335 | } | |
9336 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9337 | return resultobj; | |
9338 | fail: | |
9339 | return NULL; | |
d14a1e28 RD |
9340 | } |
9341 | ||
9342 | ||
0085ce49 RD |
9343 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9344 | PyObject *obj; | |
9345 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9346 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
9347 | return SWIG_Py_Void(); | |
d14a1e28 RD |
9348 | } |
9349 | ||
0085ce49 RD |
9350 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9351 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
9352 | } |
9353 | ||
0085ce49 RD |
9354 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9355 | PyObject *resultobj = 0; | |
9356 | wxIconBundle *result = 0 ; | |
9357 | ||
9358 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
9359 | { | |
9360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9361 | result = (wxIconBundle *)new wxIconBundle(); | |
9362 | wxPyEndAllowThreads(__tstate); | |
9363 | if (PyErr_Occurred()) SWIG_fail; | |
9364 | } | |
9365 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
9366 | return resultobj; | |
9367 | fail: | |
9368 | return NULL; | |
9369 | } | |
9370 | ||
9371 | ||
9372 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9373 | PyObject *resultobj = 0; | |
9374 | wxString *arg1 = 0 ; | |
9375 | long arg2 ; | |
9376 | wxIconBundle *result = 0 ; | |
9377 | bool temp1 = false ; | |
9378 | long val2 ; | |
9379 | int ecode2 = 0 ; | |
9380 | PyObject * obj0 = 0 ; | |
9381 | PyObject * obj1 = 0 ; | |
9382 | char * kwnames[] = { | |
9383 | (char *) "file",(char *) "type", NULL | |
9384 | }; | |
9385 | ||
9386 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
9387 | { | |
9388 | arg1 = wxString_in_helper(obj0); | |
9389 | if (arg1 == NULL) SWIG_fail; | |
9390 | temp1 = true; | |
9391 | } | |
9392 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9393 | if (!SWIG_IsOK(ecode2)) { | |
9394 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
9395 | } | |
9396 | arg2 = static_cast< long >(val2); | |
9397 | { | |
9398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9399 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
9400 | wxPyEndAllowThreads(__tstate); | |
9401 | if (PyErr_Occurred()) SWIG_fail; | |
9402 | } | |
9403 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9404 | { | |
9405 | if (temp1) | |
9406 | delete arg1; | |
9407 | } | |
9408 | return resultobj; | |
9409 | fail: | |
9410 | { | |
9411 | if (temp1) | |
9412 | delete arg1; | |
9413 | } | |
9414 | return NULL; | |
d14a1e28 RD |
9415 | } |
9416 | ||
9417 | ||
0085ce49 RD |
9418 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9419 | PyObject *resultobj = 0; | |
9420 | wxIcon *arg1 = 0 ; | |
9421 | wxIconBundle *result = 0 ; | |
9422 | void *argp1 = 0 ; | |
9423 | int res1 = 0 ; | |
9424 | PyObject * obj0 = 0 ; | |
9425 | char * kwnames[] = { | |
9426 | (char *) "icon", NULL | |
9427 | }; | |
9428 | ||
9429 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
9430 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
9431 | if (!SWIG_IsOK(res1)) { | |
9432 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9433 | } | |
9434 | if (!argp1) { | |
9435 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9436 | } | |
9437 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9438 | { | |
9439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9440 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
9441 | wxPyEndAllowThreads(__tstate); | |
9442 | if (PyErr_Occurred()) SWIG_fail; | |
9443 | } | |
9444 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9445 | return resultobj; | |
9446 | fail: | |
9447 | return NULL; | |
d14a1e28 RD |
9448 | } |
9449 | ||
9450 | ||
0085ce49 RD |
9451 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9452 | PyObject *resultobj = 0; | |
9453 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9454 | void *argp1 = 0 ; | |
9455 | int res1 = 0 ; | |
9456 | PyObject *swig_obj[1] ; | |
9457 | ||
9458 | if (!args) SWIG_fail; | |
9459 | swig_obj[0] = args; | |
9460 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
9461 | if (!SWIG_IsOK(res1)) { | |
9462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9463 | } | |
9464 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9465 | { | |
9466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9467 | delete arg1; | |
d14a1e28 | 9468 | |
0085ce49 RD |
9469 | wxPyEndAllowThreads(__tstate); |
9470 | if (PyErr_Occurred()) SWIG_fail; | |
9471 | } | |
9472 | resultobj = SWIG_Py_Void(); | |
9473 | return resultobj; | |
9474 | fail: | |
9475 | return NULL; | |
9476 | } | |
9477 | ||
9478 | ||
9479 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9480 | PyObject *resultobj = 0; | |
9481 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9482 | wxIcon *arg2 = 0 ; | |
9483 | void *argp1 = 0 ; | |
9484 | int res1 = 0 ; | |
9485 | void *argp2 = 0 ; | |
9486 | int res2 = 0 ; | |
9487 | PyObject * obj0 = 0 ; | |
9488 | PyObject * obj1 = 0 ; | |
9489 | char * kwnames[] = { | |
9490 | (char *) "self",(char *) "icon", NULL | |
9491 | }; | |
9492 | ||
9493 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
9494 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
9495 | if (!SWIG_IsOK(res1)) { | |
9496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9497 | } | |
9498 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9499 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
9500 | if (!SWIG_IsOK(res2)) { | |
9501 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
9502 | } | |
9503 | if (!argp2) { | |
9504 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
9505 | } | |
9506 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
9507 | { | |
9508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9509 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
9510 | wxPyEndAllowThreads(__tstate); | |
9511 | if (PyErr_Occurred()) SWIG_fail; | |
9512 | } | |
9513 | resultobj = SWIG_Py_Void(); | |
9514 | return resultobj; | |
9515 | fail: | |
9516 | return NULL; | |
9517 | } | |
9518 | ||
9519 | ||
9520 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9521 | PyObject *resultobj = 0; | |
9522 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9523 | wxString *arg2 = 0 ; | |
9524 | long arg3 ; | |
9525 | void *argp1 = 0 ; | |
9526 | int res1 = 0 ; | |
9527 | bool temp2 = false ; | |
9528 | long val3 ; | |
9529 | int ecode3 = 0 ; | |
9530 | PyObject * obj0 = 0 ; | |
9531 | PyObject * obj1 = 0 ; | |
9532 | PyObject * obj2 = 0 ; | |
9533 | char * kwnames[] = { | |
9534 | (char *) "self",(char *) "file",(char *) "type", NULL | |
9535 | }; | |
9536 | ||
9537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
9539 | if (!SWIG_IsOK(res1)) { | |
9540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9541 | } | |
9542 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9543 | { | |
9544 | arg2 = wxString_in_helper(obj1); | |
9545 | if (arg2 == NULL) SWIG_fail; | |
9546 | temp2 = true; | |
9547 | } | |
9548 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
9549 | if (!SWIG_IsOK(ecode3)) { | |
9550 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
9551 | } | |
9552 | arg3 = static_cast< long >(val3); | |
9553 | { | |
9554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9555 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
9556 | wxPyEndAllowThreads(__tstate); | |
9557 | if (PyErr_Occurred()) SWIG_fail; | |
9558 | } | |
9559 | resultobj = SWIG_Py_Void(); | |
9560 | { | |
9561 | if (temp2) | |
9562 | delete arg2; | |
9563 | } | |
9564 | return resultobj; | |
9565 | fail: | |
9566 | { | |
9567 | if (temp2) | |
9568 | delete arg2; | |
9569 | } | |
9570 | return NULL; | |
9571 | } | |
9572 | ||
9573 | ||
9574 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9575 | PyObject *resultobj = 0; | |
9576 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9577 | wxSize *arg2 = 0 ; | |
9578 | wxIcon *result = 0 ; | |
9579 | void *argp1 = 0 ; | |
9580 | int res1 = 0 ; | |
9581 | wxSize temp2 ; | |
9582 | PyObject * obj0 = 0 ; | |
9583 | PyObject * obj1 = 0 ; | |
9584 | char * kwnames[] = { | |
9585 | (char *) "self",(char *) "size", NULL | |
9586 | }; | |
9587 | ||
9588 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
9589 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
9590 | if (!SWIG_IsOK(res1)) { | |
9591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
9592 | } | |
9593 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9594 | { | |
9595 | arg2 = &temp2; | |
9596 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
9597 | } | |
9598 | { | |
9599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d14a1e28 | 9600 | { |
0085ce49 RD |
9601 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
9602 | result = (wxIcon *) &_result_ref; | |
d14a1e28 | 9603 | } |
0085ce49 RD |
9604 | wxPyEndAllowThreads(__tstate); |
9605 | if (PyErr_Occurred()) SWIG_fail; | |
9606 | } | |
9607 | { | |
9608 | wxIcon* resultptr = new wxIcon(*result); | |
9609 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
9610 | } | |
9611 | return resultobj; | |
9612 | fail: | |
9613 | return NULL; | |
9614 | } | |
9615 | ||
9616 | ||
9617 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9618 | PyObject *obj; | |
9619 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9620 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
9621 | return SWIG_Py_Void(); | |
9622 | } | |
9623 | ||
9624 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9625 | return SWIG_Python_InitShadowInstance(args); | |
9626 | } | |
9627 | ||
9628 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9629 | PyObject *resultobj = 0; | |
9630 | wxString *arg1 = 0 ; | |
9631 | long arg2 ; | |
9632 | int arg3 = (int) 0 ; | |
9633 | int arg4 = (int) 0 ; | |
9634 | wxCursor *result = 0 ; | |
9635 | bool temp1 = false ; | |
9636 | long val2 ; | |
9637 | int ecode2 = 0 ; | |
9638 | int val3 ; | |
9639 | int ecode3 = 0 ; | |
9640 | int val4 ; | |
9641 | int ecode4 = 0 ; | |
9642 | PyObject * obj0 = 0 ; | |
9643 | PyObject * obj1 = 0 ; | |
9644 | PyObject * obj2 = 0 ; | |
9645 | PyObject * obj3 = 0 ; | |
9646 | char * kwnames[] = { | |
9647 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
9648 | }; | |
9649 | ||
9650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9651 | { | |
9652 | arg1 = wxString_in_helper(obj0); | |
9653 | if (arg1 == NULL) SWIG_fail; | |
9654 | temp1 = true; | |
9655 | } | |
9656 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9657 | if (!SWIG_IsOK(ecode2)) { | |
9658 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
9659 | } | |
9660 | arg2 = static_cast< long >(val2); | |
9661 | if (obj2) { | |
9662 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9663 | if (!SWIG_IsOK(ecode3)) { | |
9664 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
9665 | } | |
9666 | arg3 = static_cast< int >(val3); | |
9667 | } | |
9668 | if (obj3) { | |
9669 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9670 | if (!SWIG_IsOK(ecode4)) { | |
9671 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
9672 | } | |
9673 | arg4 = static_cast< int >(val4); | |
9674 | } | |
9675 | { | |
9676 | if (!wxPyCheckForApp()) SWIG_fail; | |
9677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9678 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
9679 | wxPyEndAllowThreads(__tstate); | |
9680 | if (PyErr_Occurred()) SWIG_fail; | |
9681 | } | |
9682 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
9683 | { | |
9684 | if (temp1) | |
9685 | delete arg1; | |
9686 | } | |
9687 | return resultobj; | |
9688 | fail: | |
9689 | { | |
9690 | if (temp1) | |
9691 | delete arg1; | |
9692 | } | |
9693 | return NULL; | |
d14a1e28 RD |
9694 | } |
9695 | ||
9696 | ||
0085ce49 RD |
9697 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9698 | PyObject *resultobj = 0; | |
9699 | wxCursor *arg1 = (wxCursor *) 0 ; | |
9700 | void *argp1 = 0 ; | |
9701 | int res1 = 0 ; | |
9702 | PyObject *swig_obj[1] ; | |
9703 | ||
9704 | if (!args) SWIG_fail; | |
9705 | swig_obj[0] = args; | |
9706 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
9707 | if (!SWIG_IsOK(res1)) { | |
9708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
9709 | } | |
9710 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
9711 | { | |
9712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9713 | delete arg1; | |
093d3ff1 | 9714 | |
0085ce49 RD |
9715 | wxPyEndAllowThreads(__tstate); |
9716 | if (PyErr_Occurred()) SWIG_fail; | |
9717 | } | |
9718 | resultobj = SWIG_Py_Void(); | |
9719 | return resultobj; | |
9720 | fail: | |
9721 | return NULL; | |
9722 | } | |
9723 | ||
9724 | ||
9725 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9726 | PyObject *resultobj = 0; | |
9727 | int arg1 ; | |
9728 | wxCursor *result = 0 ; | |
9729 | int val1 ; | |
9730 | int ecode1 = 0 ; | |
9731 | PyObject * obj0 = 0 ; | |
9732 | char * kwnames[] = { | |
9733 | (char *) "id", NULL | |
9734 | }; | |
9735 | ||
9736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
9737 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9738 | if (!SWIG_IsOK(ecode1)) { | |
9739 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
9740 | } | |
9741 | arg1 = static_cast< int >(val1); | |
9742 | { | |
9743 | if (!wxPyCheckForApp()) SWIG_fail; | |
9744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9745 | result = (wxCursor *)new wxCursor(arg1); | |
9746 | wxPyEndAllowThreads(__tstate); | |
9747 | if (PyErr_Occurred()) SWIG_fail; | |
9748 | } | |
9749 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
9750 | return resultobj; | |
9751 | fail: | |
9752 | return NULL; | |
9753 | } | |
9754 | ||
9755 | ||
9756 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9757 | PyObject *resultobj = 0; | |
9758 | wxImage *arg1 = 0 ; | |
9759 | wxCursor *result = 0 ; | |
9760 | void *argp1 = 0 ; | |
9761 | int res1 = 0 ; | |
9762 | PyObject * obj0 = 0 ; | |
9763 | char * kwnames[] = { | |
9764 | (char *) "image", NULL | |
9765 | }; | |
9766 | ||
9767 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
9768 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
9769 | if (!SWIG_IsOK(res1)) { | |
9770 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
9771 | } | |
9772 | if (!argp1) { | |
9773 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
9774 | } | |
9775 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
9776 | { | |
9777 | if (!wxPyCheckForApp()) SWIG_fail; | |
9778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9779 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
9780 | wxPyEndAllowThreads(__tstate); | |
9781 | if (PyErr_Occurred()) SWIG_fail; | |
9782 | } | |
9783 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
9784 | return resultobj; | |
9785 | fail: | |
9786 | return NULL; | |
093d3ff1 RD |
9787 | } |
9788 | ||
9789 | ||
0085ce49 RD |
9790 | SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9791 | PyObject *resultobj = 0; | |
9792 | wxCursor *arg1 = (wxCursor *) 0 ; | |
9793 | bool result; | |
9794 | void *argp1 = 0 ; | |
9795 | int res1 = 0 ; | |
9796 | PyObject *swig_obj[1] ; | |
9797 | ||
9798 | if (!args) SWIG_fail; | |
9799 | swig_obj[0] = args; | |
9800 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
9801 | if (!SWIG_IsOK(res1)) { | |
9802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
9803 | } | |
9804 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
9805 | { | |
9806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9807 | result = (bool)(arg1)->Ok(); | |
9808 | wxPyEndAllowThreads(__tstate); | |
9809 | if (PyErr_Occurred()) SWIG_fail; | |
9810 | } | |
9811 | { | |
9812 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9813 | } | |
9814 | return resultobj; | |
9815 | fail: | |
9816 | return NULL; | |
9817 | } | |
9818 | ||
9819 | ||
9820 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9821 | PyObject *obj; | |
9822 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9823 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
9824 | return SWIG_Py_Void(); | |
9825 | } | |
9826 | ||
9827 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9828 | return SWIG_Python_InitShadowInstance(args); | |
9829 | } | |
9830 | ||
9831 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9832 | PyObject *resultobj = 0; | |
9833 | int arg1 = (int) 0 ; | |
9834 | int arg2 = (int) 0 ; | |
9835 | int arg3 = (int) 0 ; | |
9836 | int arg4 = (int) 0 ; | |
9837 | wxRegion *result = 0 ; | |
9838 | int val1 ; | |
9839 | int ecode1 = 0 ; | |
9840 | int val2 ; | |
9841 | int ecode2 = 0 ; | |
9842 | int val3 ; | |
9843 | int ecode3 = 0 ; | |
9844 | int val4 ; | |
9845 | int ecode4 = 0 ; | |
9846 | PyObject * obj0 = 0 ; | |
9847 | PyObject * obj1 = 0 ; | |
9848 | PyObject * obj2 = 0 ; | |
9849 | PyObject * obj3 = 0 ; | |
9850 | char * kwnames[] = { | |
9851 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
9852 | }; | |
9853 | ||
9854 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9855 | if (obj0) { | |
9856 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
9857 | if (!SWIG_IsOK(ecode1)) { | |
9858 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
9859 | } | |
9860 | arg1 = static_cast< int >(val1); | |
9861 | } | |
9862 | if (obj1) { | |
9863 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9864 | if (!SWIG_IsOK(ecode2)) { | |
9865 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
9866 | } | |
9867 | arg2 = static_cast< int >(val2); | |
9868 | } | |
9869 | if (obj2) { | |
9870 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9871 | if (!SWIG_IsOK(ecode3)) { | |
9872 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
9873 | } | |
9874 | arg3 = static_cast< int >(val3); | |
9875 | } | |
9876 | if (obj3) { | |
9877 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9878 | if (!SWIG_IsOK(ecode4)) { | |
9879 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
9880 | } | |
9881 | arg4 = static_cast< int >(val4); | |
9882 | } | |
9883 | { | |
9884 | if (!wxPyCheckForApp()) SWIG_fail; | |
9885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9886 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
9887 | wxPyEndAllowThreads(__tstate); | |
9888 | if (PyErr_Occurred()) SWIG_fail; | |
9889 | } | |
9890 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
9891 | return resultobj; | |
9892 | fail: | |
9893 | return NULL; | |
9894 | } | |
9895 | ||
9896 | ||
9897 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9898 | PyObject *resultobj = 0; | |
9899 | wxBitmap *arg1 = 0 ; | |
9900 | wxRegion *result = 0 ; | |
9901 | void *argp1 = 0 ; | |
9902 | int res1 = 0 ; | |
9903 | PyObject * obj0 = 0 ; | |
9904 | char * kwnames[] = { | |
9905 | (char *) "bmp", NULL | |
9906 | }; | |
9907 | ||
9908 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
9909 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9910 | if (!SWIG_IsOK(res1)) { | |
9911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9912 | } | |
9913 | if (!argp1) { | |
9914 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9915 | } | |
9916 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9917 | { | |
9918 | if (!wxPyCheckForApp()) SWIG_fail; | |
9919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9920 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
9921 | wxPyEndAllowThreads(__tstate); | |
9922 | if (PyErr_Occurred()) SWIG_fail; | |
9923 | } | |
9924 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
9925 | return resultobj; | |
9926 | fail: | |
9927 | return NULL; | |
9928 | } | |
9929 | ||
9930 | ||
9931 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9932 | PyObject *resultobj = 0; | |
9933 | wxBitmap *arg1 = 0 ; | |
9934 | wxColour *arg2 = 0 ; | |
9935 | int arg3 = (int) 0 ; | |
9936 | wxRegion *result = 0 ; | |
9937 | void *argp1 = 0 ; | |
9938 | int res1 = 0 ; | |
9939 | wxColour temp2 ; | |
9940 | int val3 ; | |
9941 | int ecode3 = 0 ; | |
9942 | PyObject * obj0 = 0 ; | |
9943 | PyObject * obj1 = 0 ; | |
9944 | PyObject * obj2 = 0 ; | |
9945 | char * kwnames[] = { | |
9946 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
9947 | }; | |
9948 | ||
9949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9950 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9951 | if (!SWIG_IsOK(res1)) { | |
9952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9953 | } | |
9954 | if (!argp1) { | |
9955 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9956 | } | |
9957 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9958 | { | |
9959 | arg2 = &temp2; | |
9960 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
9961 | } | |
9962 | if (obj2) { | |
9963 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9964 | if (!SWIG_IsOK(ecode3)) { | |
9965 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'"); | |
9966 | } | |
9967 | arg3 = static_cast< int >(val3); | |
9968 | } | |
9969 | { | |
9970 | if (!wxPyCheckForApp()) SWIG_fail; | |
9971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9972 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
9973 | wxPyEndAllowThreads(__tstate); | |
9974 | if (PyErr_Occurred()) SWIG_fail; | |
9975 | } | |
9976 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
9977 | return resultobj; | |
9978 | fail: | |
9979 | return NULL; | |
9980 | } | |
9981 | ||
9982 | ||
9983 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9984 | PyObject *resultobj = 0; | |
9985 | int arg1 ; | |
9986 | wxPoint *arg2 = (wxPoint *) 0 ; | |
9987 | int arg3 = (int) wxWINDING_RULE ; | |
9988 | wxRegion *result = 0 ; | |
9989 | int val3 ; | |
9990 | int ecode3 = 0 ; | |
9991 | PyObject * obj0 = 0 ; | |
9992 | PyObject * obj1 = 0 ; | |
9993 | char * kwnames[] = { | |
9994 | (char *) "points",(char *) "fillStyle", NULL | |
9995 | }; | |
9996 | ||
9997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
9998 | { | |
9999 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
10000 | if (arg2 == NULL) SWIG_fail; | |
10001 | } | |
10002 | if (obj1) { | |
10003 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
10004 | if (!SWIG_IsOK(ecode3)) { | |
10005 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
10006 | } | |
10007 | arg3 = static_cast< int >(val3); | |
10008 | } | |
10009 | { | |
10010 | if (!wxPyCheckForApp()) SWIG_fail; | |
10011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10012 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
10013 | wxPyEndAllowThreads(__tstate); | |
10014 | if (PyErr_Occurred()) SWIG_fail; | |
10015 | } | |
10016 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10017 | { | |
10018 | if (arg2) delete [] arg2; | |
10019 | } | |
10020 | return resultobj; | |
10021 | fail: | |
10022 | { | |
10023 | if (arg2) delete [] arg2; | |
10024 | } | |
10025 | return NULL; | |
d14a1e28 RD |
10026 | } |
10027 | ||
10028 | ||
0085ce49 RD |
10029 | SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10030 | PyObject *resultobj = 0; | |
10031 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10032 | void *argp1 = 0 ; | |
10033 | int res1 = 0 ; | |
10034 | PyObject *swig_obj[1] ; | |
10035 | ||
10036 | if (!args) SWIG_fail; | |
10037 | swig_obj[0] = args; | |
10038 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 ); | |
10039 | if (!SWIG_IsOK(res1)) { | |
10040 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10041 | } | |
10042 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10043 | { | |
10044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10045 | delete arg1; | |
d14a1e28 | 10046 | |
0085ce49 RD |
10047 | wxPyEndAllowThreads(__tstate); |
10048 | if (PyErr_Occurred()) SWIG_fail; | |
10049 | } | |
10050 | resultobj = SWIG_Py_Void(); | |
10051 | return resultobj; | |
10052 | fail: | |
10053 | return NULL; | |
d14a1e28 RD |
10054 | } |
10055 | ||
10056 | ||
0085ce49 RD |
10057 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10058 | PyObject *resultobj = 0; | |
10059 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10060 | void *argp1 = 0 ; | |
10061 | int res1 = 0 ; | |
10062 | PyObject *swig_obj[1] ; | |
10063 | ||
10064 | if (!args) SWIG_fail; | |
10065 | swig_obj[0] = args; | |
10066 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10067 | if (!SWIG_IsOK(res1)) { | |
10068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10069 | } | |
10070 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10071 | { | |
10072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10073 | (arg1)->Clear(); | |
10074 | wxPyEndAllowThreads(__tstate); | |
10075 | if (PyErr_Occurred()) SWIG_fail; | |
10076 | } | |
10077 | resultobj = SWIG_Py_Void(); | |
10078 | return resultobj; | |
10079 | fail: | |
10080 | return NULL; | |
10081 | } | |
10082 | ||
10083 | ||
10084 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10085 | PyObject *resultobj = 0; | |
10086 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10087 | int arg2 ; | |
10088 | int arg3 ; | |
10089 | bool result; | |
10090 | void *argp1 = 0 ; | |
10091 | int res1 = 0 ; | |
10092 | int val2 ; | |
10093 | int ecode2 = 0 ; | |
10094 | int val3 ; | |
10095 | int ecode3 = 0 ; | |
10096 | PyObject * obj0 = 0 ; | |
10097 | PyObject * obj1 = 0 ; | |
10098 | PyObject * obj2 = 0 ; | |
10099 | char * kwnames[] = { | |
10100 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10101 | }; | |
10102 | ||
10103 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10104 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10105 | if (!SWIG_IsOK(res1)) { | |
10106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10107 | } | |
10108 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10109 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10110 | if (!SWIG_IsOK(ecode2)) { | |
10111 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
10112 | } | |
10113 | arg2 = static_cast< int >(val2); | |
10114 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10115 | if (!SWIG_IsOK(ecode3)) { | |
10116 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
10117 | } | |
10118 | arg3 = static_cast< int >(val3); | |
10119 | { | |
10120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10121 | result = (bool)(arg1)->Offset(arg2,arg3); | |
10122 | wxPyEndAllowThreads(__tstate); | |
10123 | if (PyErr_Occurred()) SWIG_fail; | |
10124 | } | |
10125 | { | |
10126 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10127 | } | |
10128 | return resultobj; | |
10129 | fail: | |
10130 | return NULL; | |
10131 | } | |
10132 | ||
10133 | ||
10134 | SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10135 | PyObject *resultobj = 0; | |
10136 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10137 | int arg2 ; | |
10138 | int arg3 ; | |
10139 | wxRegionContain result; | |
10140 | void *argp1 = 0 ; | |
10141 | int res1 = 0 ; | |
10142 | int val2 ; | |
10143 | int ecode2 = 0 ; | |
10144 | int val3 ; | |
10145 | int ecode3 = 0 ; | |
10146 | PyObject * obj0 = 0 ; | |
10147 | PyObject * obj1 = 0 ; | |
10148 | PyObject * obj2 = 0 ; | |
10149 | char * kwnames[] = { | |
10150 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10151 | }; | |
10152 | ||
10153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10155 | if (!SWIG_IsOK(res1)) { | |
10156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10157 | } | |
10158 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10159 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10160 | if (!SWIG_IsOK(ecode2)) { | |
10161 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
10162 | } | |
10163 | arg2 = static_cast< int >(val2); | |
10164 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10165 | if (!SWIG_IsOK(ecode3)) { | |
10166 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
10167 | } | |
10168 | arg3 = static_cast< int >(val3); | |
10169 | { | |
10170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10171 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
10172 | wxPyEndAllowThreads(__tstate); | |
10173 | if (PyErr_Occurred()) SWIG_fail; | |
10174 | } | |
10175 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10176 | return resultobj; | |
10177 | fail: | |
10178 | return NULL; | |
10179 | } | |
10180 | ||
10181 | ||
10182 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10183 | PyObject *resultobj = 0; | |
10184 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10185 | wxPoint *arg2 = 0 ; | |
10186 | wxRegionContain result; | |
10187 | void *argp1 = 0 ; | |
10188 | int res1 = 0 ; | |
10189 | wxPoint temp2 ; | |
10190 | PyObject * obj0 = 0 ; | |
10191 | PyObject * obj1 = 0 ; | |
10192 | char * kwnames[] = { | |
10193 | (char *) "self",(char *) "pt", NULL | |
10194 | }; | |
10195 | ||
10196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
10197 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10198 | if (!SWIG_IsOK(res1)) { | |
10199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10200 | } | |
10201 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10202 | { | |
10203 | arg2 = &temp2; | |
10204 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10205 | } | |
10206 | { | |
10207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10208 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
10209 | wxPyEndAllowThreads(__tstate); | |
10210 | if (PyErr_Occurred()) SWIG_fail; | |
10211 | } | |
10212 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10213 | return resultobj; | |
10214 | fail: | |
10215 | return NULL; | |
10216 | } | |
10217 | ||
10218 | ||
10219 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10220 | PyObject *resultobj = 0; | |
10221 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10222 | wxRect *arg2 = 0 ; | |
10223 | wxRegionContain result; | |
10224 | void *argp1 = 0 ; | |
10225 | int res1 = 0 ; | |
10226 | wxRect temp2 ; | |
10227 | PyObject * obj0 = 0 ; | |
10228 | PyObject * obj1 = 0 ; | |
10229 | char * kwnames[] = { | |
10230 | (char *) "self",(char *) "rect", NULL | |
10231 | }; | |
10232 | ||
10233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10235 | if (!SWIG_IsOK(res1)) { | |
10236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10237 | } | |
10238 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10239 | { | |
10240 | arg2 = &temp2; | |
10241 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10242 | } | |
10243 | { | |
10244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10245 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
10246 | wxPyEndAllowThreads(__tstate); | |
10247 | if (PyErr_Occurred()) SWIG_fail; | |
10248 | } | |
10249 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10250 | return resultobj; | |
10251 | fail: | |
10252 | return NULL; | |
10253 | } | |
10254 | ||
10255 | ||
10256 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10257 | PyObject *resultobj = 0; | |
10258 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10259 | int arg2 ; | |
10260 | int arg3 ; | |
10261 | int arg4 ; | |
10262 | int arg5 ; | |
10263 | wxRegionContain result; | |
10264 | void *argp1 = 0 ; | |
10265 | int res1 = 0 ; | |
10266 | int val2 ; | |
10267 | int ecode2 = 0 ; | |
10268 | int val3 ; | |
10269 | int ecode3 = 0 ; | |
10270 | int val4 ; | |
10271 | int ecode4 = 0 ; | |
10272 | int val5 ; | |
10273 | int ecode5 = 0 ; | |
10274 | PyObject * obj0 = 0 ; | |
10275 | PyObject * obj1 = 0 ; | |
10276 | PyObject * obj2 = 0 ; | |
10277 | PyObject * obj3 = 0 ; | |
10278 | PyObject * obj4 = 0 ; | |
10279 | char * kwnames[] = { | |
10280 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
10281 | }; | |
10282 | ||
10283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10285 | if (!SWIG_IsOK(res1)) { | |
10286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10287 | } | |
10288 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10289 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10290 | if (!SWIG_IsOK(ecode2)) { | |
10291 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
10292 | } | |
10293 | arg2 = static_cast< int >(val2); | |
10294 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10295 | if (!SWIG_IsOK(ecode3)) { | |
10296 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
10297 | } | |
10298 | arg3 = static_cast< int >(val3); | |
10299 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10300 | if (!SWIG_IsOK(ecode4)) { | |
10301 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
10302 | } | |
10303 | arg4 = static_cast< int >(val4); | |
10304 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10305 | if (!SWIG_IsOK(ecode5)) { | |
10306 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
10307 | } | |
10308 | arg5 = static_cast< int >(val5); | |
10309 | { | |
10310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10311 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
10312 | wxPyEndAllowThreads(__tstate); | |
10313 | if (PyErr_Occurred()) SWIG_fail; | |
10314 | } | |
10315 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10316 | return resultobj; | |
10317 | fail: | |
10318 | return NULL; | |
d14a1e28 RD |
10319 | } |
10320 | ||
10321 | ||
0085ce49 RD |
10322 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10323 | PyObject *resultobj = 0; | |
10324 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10325 | wxRect result; | |
10326 | void *argp1 = 0 ; | |
10327 | int res1 = 0 ; | |
10328 | PyObject *swig_obj[1] ; | |
10329 | ||
10330 | if (!args) SWIG_fail; | |
10331 | swig_obj[0] = args; | |
10332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10333 | if (!SWIG_IsOK(res1)) { | |
10334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10335 | } | |
10336 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10337 | { | |
10338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10339 | result = (arg1)->GetBox(); | |
10340 | wxPyEndAllowThreads(__tstate); | |
10341 | if (PyErr_Occurred()) SWIG_fail; | |
10342 | } | |
10343 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
10344 | return resultobj; | |
10345 | fail: | |
10346 | return NULL; | |
10347 | } | |
10348 | ||
10349 | ||
10350 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10351 | PyObject *resultobj = 0; | |
10352 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10353 | int arg2 ; | |
10354 | int arg3 ; | |
10355 | int arg4 ; | |
10356 | int arg5 ; | |
10357 | bool result; | |
10358 | void *argp1 = 0 ; | |
10359 | int res1 = 0 ; | |
10360 | int val2 ; | |
10361 | int ecode2 = 0 ; | |
10362 | int val3 ; | |
10363 | int ecode3 = 0 ; | |
10364 | int val4 ; | |
10365 | int ecode4 = 0 ; | |
10366 | int val5 ; | |
10367 | int ecode5 = 0 ; | |
10368 | PyObject * obj0 = 0 ; | |
10369 | PyObject * obj1 = 0 ; | |
10370 | PyObject * obj2 = 0 ; | |
10371 | PyObject * obj3 = 0 ; | |
10372 | PyObject * obj4 = 0 ; | |
10373 | char * kwnames[] = { | |
10374 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10375 | }; | |
10376 | ||
10377 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10378 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10379 | if (!SWIG_IsOK(res1)) { | |
10380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10381 | } | |
10382 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10383 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10384 | if (!SWIG_IsOK(ecode2)) { | |
10385 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
10386 | } | |
10387 | arg2 = static_cast< int >(val2); | |
10388 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10389 | if (!SWIG_IsOK(ecode3)) { | |
10390 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
10391 | } | |
10392 | arg3 = static_cast< int >(val3); | |
10393 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10394 | if (!SWIG_IsOK(ecode4)) { | |
10395 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
10396 | } | |
10397 | arg4 = static_cast< int >(val4); | |
10398 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10399 | if (!SWIG_IsOK(ecode5)) { | |
10400 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
10401 | } | |
10402 | arg5 = static_cast< int >(val5); | |
10403 | { | |
10404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10405 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
10406 | wxPyEndAllowThreads(__tstate); | |
10407 | if (PyErr_Occurred()) SWIG_fail; | |
10408 | } | |
10409 | { | |
10410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10411 | } | |
10412 | return resultobj; | |
10413 | fail: | |
10414 | return NULL; | |
10415 | } | |
10416 | ||
10417 | ||
10418 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10419 | PyObject *resultobj = 0; | |
10420 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10421 | wxRect *arg2 = 0 ; | |
10422 | bool result; | |
10423 | void *argp1 = 0 ; | |
10424 | int res1 = 0 ; | |
10425 | wxRect temp2 ; | |
10426 | PyObject * obj0 = 0 ; | |
10427 | PyObject * obj1 = 0 ; | |
10428 | char * kwnames[] = { | |
10429 | (char *) "self",(char *) "rect", NULL | |
10430 | }; | |
10431 | ||
10432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10433 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10434 | if (!SWIG_IsOK(res1)) { | |
10435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10436 | } | |
10437 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10438 | { | |
10439 | arg2 = &temp2; | |
10440 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10441 | } | |
10442 | { | |
10443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10444 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
10445 | wxPyEndAllowThreads(__tstate); | |
10446 | if (PyErr_Occurred()) SWIG_fail; | |
10447 | } | |
10448 | { | |
10449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10450 | } | |
10451 | return resultobj; | |
10452 | fail: | |
10453 | return NULL; | |
10454 | } | |
10455 | ||
10456 | ||
10457 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10458 | PyObject *resultobj = 0; | |
10459 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10460 | wxRegion *arg2 = 0 ; | |
10461 | bool result; | |
10462 | void *argp1 = 0 ; | |
10463 | int res1 = 0 ; | |
10464 | void *argp2 = 0 ; | |
10465 | int res2 = 0 ; | |
10466 | PyObject * obj0 = 0 ; | |
10467 | PyObject * obj1 = 0 ; | |
10468 | char * kwnames[] = { | |
10469 | (char *) "self",(char *) "region", NULL | |
10470 | }; | |
10471 | ||
10472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
10473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10474 | if (!SWIG_IsOK(res1)) { | |
10475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10476 | } | |
10477 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10478 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
10479 | if (!SWIG_IsOK(res2)) { | |
10480 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10481 | } | |
10482 | if (!argp2) { | |
10483 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10484 | } | |
10485 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
10486 | { | |
10487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10488 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
10489 | wxPyEndAllowThreads(__tstate); | |
10490 | if (PyErr_Occurred()) SWIG_fail; | |
10491 | } | |
10492 | { | |
10493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10494 | } | |
10495 | return resultobj; | |
10496 | fail: | |
10497 | return NULL; | |
d14a1e28 RD |
10498 | } |
10499 | ||
10500 | ||
0085ce49 RD |
10501 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10502 | PyObject *resultobj = 0; | |
10503 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10504 | bool result; | |
10505 | void *argp1 = 0 ; | |
10506 | int res1 = 0 ; | |
10507 | PyObject *swig_obj[1] ; | |
10508 | ||
10509 | if (!args) SWIG_fail; | |
10510 | swig_obj[0] = args; | |
10511 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10512 | if (!SWIG_IsOK(res1)) { | |
10513 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10514 | } | |
10515 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10516 | { | |
10517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10518 | result = (bool)(arg1)->IsEmpty(); | |
10519 | wxPyEndAllowThreads(__tstate); | |
10520 | if (PyErr_Occurred()) SWIG_fail; | |
10521 | } | |
10522 | { | |
10523 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10524 | } | |
10525 | return resultobj; | |
10526 | fail: | |
10527 | return NULL; | |
10528 | } | |
10529 | ||
10530 | ||
10531 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10532 | PyObject *resultobj = 0; | |
10533 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10534 | int arg2 ; | |
10535 | int arg3 ; | |
10536 | int arg4 ; | |
10537 | int arg5 ; | |
10538 | bool result; | |
10539 | void *argp1 = 0 ; | |
10540 | int res1 = 0 ; | |
10541 | int val2 ; | |
10542 | int ecode2 = 0 ; | |
10543 | int val3 ; | |
10544 | int ecode3 = 0 ; | |
10545 | int val4 ; | |
10546 | int ecode4 = 0 ; | |
10547 | int val5 ; | |
10548 | int ecode5 = 0 ; | |
10549 | PyObject * obj0 = 0 ; | |
10550 | PyObject * obj1 = 0 ; | |
10551 | PyObject * obj2 = 0 ; | |
10552 | PyObject * obj3 = 0 ; | |
10553 | PyObject * obj4 = 0 ; | |
10554 | char * kwnames[] = { | |
10555 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10556 | }; | |
10557 | ||
10558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10560 | if (!SWIG_IsOK(res1)) { | |
10561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10562 | } | |
10563 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10564 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10565 | if (!SWIG_IsOK(ecode2)) { | |
10566 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
10567 | } | |
10568 | arg2 = static_cast< int >(val2); | |
10569 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10570 | if (!SWIG_IsOK(ecode3)) { | |
10571 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
10572 | } | |
10573 | arg3 = static_cast< int >(val3); | |
10574 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10575 | if (!SWIG_IsOK(ecode4)) { | |
10576 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
10577 | } | |
10578 | arg4 = static_cast< int >(val4); | |
10579 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10580 | if (!SWIG_IsOK(ecode5)) { | |
10581 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
10582 | } | |
10583 | arg5 = static_cast< int >(val5); | |
10584 | { | |
10585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10586 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
10587 | wxPyEndAllowThreads(__tstate); | |
10588 | if (PyErr_Occurred()) SWIG_fail; | |
10589 | } | |
10590 | { | |
10591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10592 | } | |
10593 | return resultobj; | |
10594 | fail: | |
10595 | return NULL; | |
10596 | } | |
10597 | ||
10598 | ||
10599 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10600 | PyObject *resultobj = 0; | |
10601 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10602 | wxRect *arg2 = 0 ; | |
10603 | bool result; | |
10604 | void *argp1 = 0 ; | |
10605 | int res1 = 0 ; | |
10606 | wxRect temp2 ; | |
10607 | PyObject * obj0 = 0 ; | |
10608 | PyObject * obj1 = 0 ; | |
10609 | char * kwnames[] = { | |
10610 | (char *) "self",(char *) "rect", NULL | |
10611 | }; | |
10612 | ||
10613 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10614 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10615 | if (!SWIG_IsOK(res1)) { | |
10616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10617 | } | |
10618 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10619 | { | |
10620 | arg2 = &temp2; | |
10621 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10622 | } | |
10623 | { | |
10624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10625 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
10626 | wxPyEndAllowThreads(__tstate); | |
10627 | if (PyErr_Occurred()) SWIG_fail; | |
10628 | } | |
10629 | { | |
10630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10631 | } | |
10632 | return resultobj; | |
10633 | fail: | |
10634 | return NULL; | |
10635 | } | |
10636 | ||
10637 | ||
10638 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10639 | PyObject *resultobj = 0; | |
10640 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10641 | wxRegion *arg2 = 0 ; | |
10642 | bool result; | |
10643 | void *argp1 = 0 ; | |
10644 | int res1 = 0 ; | |
10645 | void *argp2 = 0 ; | |
10646 | int res2 = 0 ; | |
10647 | PyObject * obj0 = 0 ; | |
10648 | PyObject * obj1 = 0 ; | |
10649 | char * kwnames[] = { | |
10650 | (char *) "self",(char *) "region", NULL | |
10651 | }; | |
10652 | ||
10653 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
10654 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10655 | if (!SWIG_IsOK(res1)) { | |
10656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10657 | } | |
10658 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10659 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
10660 | if (!SWIG_IsOK(res2)) { | |
10661 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10662 | } | |
10663 | if (!argp2) { | |
10664 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10665 | } | |
10666 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
10667 | { | |
10668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10669 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
10670 | wxPyEndAllowThreads(__tstate); | |
10671 | if (PyErr_Occurred()) SWIG_fail; | |
10672 | } | |
10673 | { | |
10674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10675 | } | |
10676 | return resultobj; | |
10677 | fail: | |
10678 | return NULL; | |
10679 | } | |
10680 | ||
10681 | ||
10682 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10683 | PyObject *resultobj = 0; | |
10684 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10685 | int arg2 ; | |
10686 | int arg3 ; | |
10687 | int arg4 ; | |
10688 | int arg5 ; | |
10689 | bool result; | |
10690 | void *argp1 = 0 ; | |
10691 | int res1 = 0 ; | |
10692 | int val2 ; | |
10693 | int ecode2 = 0 ; | |
10694 | int val3 ; | |
10695 | int ecode3 = 0 ; | |
10696 | int val4 ; | |
10697 | int ecode4 = 0 ; | |
10698 | int val5 ; | |
10699 | int ecode5 = 0 ; | |
10700 | PyObject * obj0 = 0 ; | |
10701 | PyObject * obj1 = 0 ; | |
10702 | PyObject * obj2 = 0 ; | |
10703 | PyObject * obj3 = 0 ; | |
10704 | PyObject * obj4 = 0 ; | |
10705 | char * kwnames[] = { | |
10706 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10707 | }; | |
10708 | ||
10709 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10710 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10711 | if (!SWIG_IsOK(res1)) { | |
10712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10713 | } | |
10714 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10715 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10716 | if (!SWIG_IsOK(ecode2)) { | |
10717 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
10718 | } | |
10719 | arg2 = static_cast< int >(val2); | |
10720 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10721 | if (!SWIG_IsOK(ecode3)) { | |
10722 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
10723 | } | |
10724 | arg3 = static_cast< int >(val3); | |
10725 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10726 | if (!SWIG_IsOK(ecode4)) { | |
10727 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
10728 | } | |
10729 | arg4 = static_cast< int >(val4); | |
10730 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10731 | if (!SWIG_IsOK(ecode5)) { | |
10732 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
10733 | } | |
10734 | arg5 = static_cast< int >(val5); | |
10735 | { | |
10736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10737 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
10738 | wxPyEndAllowThreads(__tstate); | |
10739 | if (PyErr_Occurred()) SWIG_fail; | |
10740 | } | |
10741 | { | |
10742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10743 | } | |
10744 | return resultobj; | |
10745 | fail: | |
10746 | return NULL; | |
10747 | } | |
10748 | ||
10749 | ||
10750 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10751 | PyObject *resultobj = 0; | |
10752 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10753 | wxRect *arg2 = 0 ; | |
10754 | bool result; | |
10755 | void *argp1 = 0 ; | |
10756 | int res1 = 0 ; | |
10757 | wxRect temp2 ; | |
10758 | PyObject * obj0 = 0 ; | |
10759 | PyObject * obj1 = 0 ; | |
10760 | char * kwnames[] = { | |
10761 | (char *) "self",(char *) "rect", NULL | |
10762 | }; | |
10763 | ||
10764 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10765 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10766 | if (!SWIG_IsOK(res1)) { | |
10767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10768 | } | |
10769 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10770 | { | |
10771 | arg2 = &temp2; | |
10772 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10773 | } | |
10774 | { | |
10775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10776 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
10777 | wxPyEndAllowThreads(__tstate); | |
10778 | if (PyErr_Occurred()) SWIG_fail; | |
10779 | } | |
10780 | { | |
10781 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10782 | } | |
10783 | return resultobj; | |
10784 | fail: | |
10785 | return NULL; | |
10786 | } | |
10787 | ||
10788 | ||
10789 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10790 | PyObject *resultobj = 0; | |
10791 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10792 | wxRegion *arg2 = 0 ; | |
10793 | bool result; | |
10794 | void *argp1 = 0 ; | |
10795 | int res1 = 0 ; | |
10796 | void *argp2 = 0 ; | |
10797 | int res2 = 0 ; | |
10798 | PyObject * obj0 = 0 ; | |
10799 | PyObject * obj1 = 0 ; | |
10800 | char * kwnames[] = { | |
10801 | (char *) "self",(char *) "region", NULL | |
10802 | }; | |
10803 | ||
10804 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
10805 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10806 | if (!SWIG_IsOK(res1)) { | |
10807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10808 | } | |
10809 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10810 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
10811 | if (!SWIG_IsOK(res2)) { | |
10812 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10813 | } | |
10814 | if (!argp2) { | |
10815 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10816 | } | |
10817 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
10818 | { | |
10819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10820 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
10821 | wxPyEndAllowThreads(__tstate); | |
10822 | if (PyErr_Occurred()) SWIG_fail; | |
10823 | } | |
10824 | { | |
10825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10826 | } | |
10827 | return resultobj; | |
10828 | fail: | |
10829 | return NULL; | |
10830 | } | |
10831 | ||
10832 | ||
10833 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10834 | PyObject *resultobj = 0; | |
10835 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10836 | int arg2 ; | |
10837 | int arg3 ; | |
10838 | int arg4 ; | |
10839 | int arg5 ; | |
10840 | bool result; | |
10841 | void *argp1 = 0 ; | |
10842 | int res1 = 0 ; | |
10843 | int val2 ; | |
10844 | int ecode2 = 0 ; | |
10845 | int val3 ; | |
10846 | int ecode3 = 0 ; | |
10847 | int val4 ; | |
10848 | int ecode4 = 0 ; | |
10849 | int val5 ; | |
10850 | int ecode5 = 0 ; | |
10851 | PyObject * obj0 = 0 ; | |
10852 | PyObject * obj1 = 0 ; | |
10853 | PyObject * obj2 = 0 ; | |
10854 | PyObject * obj3 = 0 ; | |
10855 | PyObject * obj4 = 0 ; | |
10856 | char * kwnames[] = { | |
10857 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10858 | }; | |
10859 | ||
10860 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
10861 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10862 | if (!SWIG_IsOK(res1)) { | |
10863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10864 | } | |
10865 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10866 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10867 | if (!SWIG_IsOK(ecode2)) { | |
10868 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
10869 | } | |
10870 | arg2 = static_cast< int >(val2); | |
10871 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10872 | if (!SWIG_IsOK(ecode3)) { | |
10873 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
10874 | } | |
10875 | arg3 = static_cast< int >(val3); | |
10876 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10877 | if (!SWIG_IsOK(ecode4)) { | |
10878 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
10879 | } | |
10880 | arg4 = static_cast< int >(val4); | |
10881 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
10882 | if (!SWIG_IsOK(ecode5)) { | |
10883 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
10884 | } | |
10885 | arg5 = static_cast< int >(val5); | |
10886 | { | |
10887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10888 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
10889 | wxPyEndAllowThreads(__tstate); | |
10890 | if (PyErr_Occurred()) SWIG_fail; | |
10891 | } | |
10892 | { | |
10893 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10894 | } | |
10895 | return resultobj; | |
10896 | fail: | |
10897 | return NULL; | |
10898 | } | |
10899 | ||
10900 | ||
10901 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10902 | PyObject *resultobj = 0; | |
10903 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10904 | wxRect *arg2 = 0 ; | |
10905 | bool result; | |
10906 | void *argp1 = 0 ; | |
10907 | int res1 = 0 ; | |
10908 | wxRect temp2 ; | |
10909 | PyObject * obj0 = 0 ; | |
10910 | PyObject * obj1 = 0 ; | |
10911 | char * kwnames[] = { | |
10912 | (char *) "self",(char *) "rect", NULL | |
10913 | }; | |
10914 | ||
10915 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
10916 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10917 | if (!SWIG_IsOK(res1)) { | |
10918 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10919 | } | |
10920 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10921 | { | |
10922 | arg2 = &temp2; | |
10923 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
10924 | } | |
10925 | { | |
10926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10927 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
10928 | wxPyEndAllowThreads(__tstate); | |
10929 | if (PyErr_Occurred()) SWIG_fail; | |
10930 | } | |
10931 | { | |
10932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10933 | } | |
10934 | return resultobj; | |
10935 | fail: | |
10936 | return NULL; | |
10937 | } | |
10938 | ||
10939 | ||
10940 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10941 | PyObject *resultobj = 0; | |
10942 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10943 | wxRegion *arg2 = 0 ; | |
10944 | bool result; | |
10945 | void *argp1 = 0 ; | |
10946 | int res1 = 0 ; | |
10947 | void *argp2 = 0 ; | |
10948 | int res2 = 0 ; | |
10949 | PyObject * obj0 = 0 ; | |
10950 | PyObject * obj1 = 0 ; | |
10951 | char * kwnames[] = { | |
10952 | (char *) "self",(char *) "region", NULL | |
10953 | }; | |
10954 | ||
10955 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
10956 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10957 | if (!SWIG_IsOK(res1)) { | |
10958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10959 | } | |
10960 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10961 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
10962 | if (!SWIG_IsOK(res2)) { | |
10963 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10964 | } | |
10965 | if (!argp2) { | |
10966 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
10967 | } | |
10968 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
10969 | { | |
10970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10971 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
10972 | wxPyEndAllowThreads(__tstate); | |
10973 | if (PyErr_Occurred()) SWIG_fail; | |
10974 | } | |
10975 | { | |
10976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10977 | } | |
10978 | return resultobj; | |
10979 | fail: | |
10980 | return NULL; | |
d14a1e28 RD |
10981 | } |
10982 | ||
10983 | ||
0085ce49 RD |
10984 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10985 | PyObject *resultobj = 0; | |
10986 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10987 | SwigValueWrapper<wxBitmap > result; | |
10988 | void *argp1 = 0 ; | |
10989 | int res1 = 0 ; | |
10990 | PyObject *swig_obj[1] ; | |
10991 | ||
10992 | if (!args) SWIG_fail; | |
10993 | swig_obj[0] = args; | |
10994 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10995 | if (!SWIG_IsOK(res1)) { | |
10996 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10997 | } | |
10998 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10999 | { | |
11000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11001 | result = (arg1)->ConvertToBitmap(); | |
11002 | wxPyEndAllowThreads(__tstate); | |
11003 | if (PyErr_Occurred()) SWIG_fail; | |
11004 | } | |
11005 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
11006 | return resultobj; | |
11007 | fail: | |
11008 | return NULL; | |
11009 | } | |
11010 | ||
11011 | ||
11012 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11013 | PyObject *resultobj = 0; | |
11014 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11015 | wxBitmap *arg2 = 0 ; | |
11016 | bool result; | |
11017 | void *argp1 = 0 ; | |
11018 | int res1 = 0 ; | |
11019 | void *argp2 = 0 ; | |
11020 | int res2 = 0 ; | |
11021 | PyObject * obj0 = 0 ; | |
11022 | PyObject * obj1 = 0 ; | |
11023 | char * kwnames[] = { | |
11024 | (char *) "self",(char *) "bmp", NULL | |
11025 | }; | |
11026 | ||
11027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
11028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11029 | if (!SWIG_IsOK(res1)) { | |
11030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11031 | } | |
11032 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11033 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11034 | if (!SWIG_IsOK(res2)) { | |
11035 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11036 | } | |
11037 | if (!argp2) { | |
11038 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11039 | } | |
11040 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11041 | { | |
11042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11043 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
11044 | wxPyEndAllowThreads(__tstate); | |
11045 | if (PyErr_Occurred()) SWIG_fail; | |
11046 | } | |
11047 | { | |
11048 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11049 | } | |
11050 | return resultobj; | |
11051 | fail: | |
11052 | return NULL; | |
11053 | } | |
11054 | ||
11055 | ||
11056 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11057 | PyObject *resultobj = 0; | |
11058 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11059 | wxBitmap *arg2 = 0 ; | |
11060 | wxColour *arg3 = 0 ; | |
11061 | int arg4 = (int) 0 ; | |
11062 | bool result; | |
11063 | void *argp1 = 0 ; | |
11064 | int res1 = 0 ; | |
11065 | void *argp2 = 0 ; | |
11066 | int res2 = 0 ; | |
11067 | wxColour temp3 ; | |
11068 | int val4 ; | |
11069 | int ecode4 = 0 ; | |
11070 | PyObject * obj0 = 0 ; | |
11071 | PyObject * obj1 = 0 ; | |
11072 | PyObject * obj2 = 0 ; | |
11073 | PyObject * obj3 = 0 ; | |
11074 | char * kwnames[] = { | |
11075 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
11076 | }; | |
11077 | ||
11078 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11079 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11080 | if (!SWIG_IsOK(res1)) { | |
11081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11082 | } | |
11083 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11084 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11085 | if (!SWIG_IsOK(res2)) { | |
11086 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11087 | } | |
11088 | if (!argp2) { | |
11089 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11090 | } | |
11091 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11092 | { | |
11093 | arg3 = &temp3; | |
11094 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11095 | } | |
11096 | if (obj3) { | |
11097 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11098 | if (!SWIG_IsOK(ecode4)) { | |
11099 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
11100 | } | |
11101 | arg4 = static_cast< int >(val4); | |
11102 | } | |
11103 | { | |
11104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11105 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
11106 | wxPyEndAllowThreads(__tstate); | |
11107 | if (PyErr_Occurred()) SWIG_fail; | |
11108 | } | |
11109 | { | |
11110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11111 | } | |
11112 | return resultobj; | |
11113 | fail: | |
11114 | return NULL; | |
d14a1e28 RD |
11115 | } |
11116 | ||
11117 | ||
0085ce49 RD |
11118 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11119 | PyObject *obj; | |
11120 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11121 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
11122 | return SWIG_Py_Void(); | |
d14a1e28 RD |
11123 | } |
11124 | ||
0085ce49 RD |
11125 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11126 | return SWIG_Python_InitShadowInstance(args); | |
11127 | } | |
d14a1e28 | 11128 | |
0085ce49 RD |
11129 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11130 | PyObject *resultobj = 0; | |
11131 | wxRegion *arg1 = 0 ; | |
11132 | wxRegionIterator *result = 0 ; | |
11133 | void *argp1 = 0 ; | |
11134 | int res1 = 0 ; | |
11135 | PyObject * obj0 = 0 ; | |
11136 | char * kwnames[] = { | |
11137 | (char *) "region", NULL | |
11138 | }; | |
11139 | ||
11140 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
11141 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
11142 | if (!SWIG_IsOK(res1)) { | |
11143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11144 | } | |
11145 | if (!argp1) { | |
11146 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11147 | } | |
11148 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11149 | { | |
11150 | if (!wxPyCheckForApp()) SWIG_fail; | |
11151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11152 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
11153 | wxPyEndAllowThreads(__tstate); | |
11154 | if (PyErr_Occurred()) SWIG_fail; | |
11155 | } | |
11156 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
11157 | return resultobj; | |
11158 | fail: | |
11159 | return NULL; | |
d14a1e28 RD |
11160 | } |
11161 | ||
11162 | ||
0085ce49 RD |
11163 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11164 | PyObject *resultobj = 0; | |
11165 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11166 | void *argp1 = 0 ; | |
11167 | int res1 = 0 ; | |
11168 | PyObject *swig_obj[1] ; | |
11169 | ||
11170 | if (!args) SWIG_fail; | |
11171 | swig_obj[0] = args; | |
11172 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
11173 | if (!SWIG_IsOK(res1)) { | |
11174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11175 | } | |
11176 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11177 | { | |
11178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11179 | delete arg1; | |
d14a1e28 | 11180 | |
0085ce49 RD |
11181 | wxPyEndAllowThreads(__tstate); |
11182 | if (PyErr_Occurred()) SWIG_fail; | |
11183 | } | |
11184 | resultobj = SWIG_Py_Void(); | |
11185 | return resultobj; | |
11186 | fail: | |
11187 | return NULL; | |
d14a1e28 RD |
11188 | } |
11189 | ||
11190 | ||
0085ce49 RD |
11191 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11192 | PyObject *resultobj = 0; | |
11193 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11194 | int result; | |
11195 | void *argp1 = 0 ; | |
11196 | int res1 = 0 ; | |
11197 | PyObject *swig_obj[1] ; | |
11198 | ||
11199 | if (!args) SWIG_fail; | |
11200 | swig_obj[0] = args; | |
11201 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11202 | if (!SWIG_IsOK(res1)) { | |
11203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11204 | } | |
11205 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11206 | { | |
11207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11208 | result = (int)(arg1)->GetX(); | |
11209 | wxPyEndAllowThreads(__tstate); | |
11210 | if (PyErr_Occurred()) SWIG_fail; | |
11211 | } | |
11212 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11213 | return resultobj; | |
11214 | fail: | |
11215 | return NULL; | |
d14a1e28 RD |
11216 | } |
11217 | ||
11218 | ||
0085ce49 RD |
11219 | SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11220 | PyObject *resultobj = 0; | |
11221 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11222 | int result; | |
11223 | void *argp1 = 0 ; | |
11224 | int res1 = 0 ; | |
11225 | PyObject *swig_obj[1] ; | |
11226 | ||
11227 | if (!args) SWIG_fail; | |
11228 | swig_obj[0] = args; | |
11229 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11230 | if (!SWIG_IsOK(res1)) { | |
11231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11232 | } | |
11233 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11234 | { | |
11235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11236 | result = (int)(arg1)->GetY(); | |
11237 | wxPyEndAllowThreads(__tstate); | |
11238 | if (PyErr_Occurred()) SWIG_fail; | |
11239 | } | |
11240 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11241 | return resultobj; | |
11242 | fail: | |
11243 | return NULL; | |
d14a1e28 RD |
11244 | } |
11245 | ||
11246 | ||
0085ce49 RD |
11247 | SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11248 | PyObject *resultobj = 0; | |
11249 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11250 | int result; | |
11251 | void *argp1 = 0 ; | |
11252 | int res1 = 0 ; | |
11253 | PyObject *swig_obj[1] ; | |
11254 | ||
11255 | if (!args) SWIG_fail; | |
11256 | swig_obj[0] = args; | |
11257 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11258 | if (!SWIG_IsOK(res1)) { | |
11259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11260 | } | |
11261 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11262 | { | |
11263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11264 | result = (int)(arg1)->GetW(); | |
11265 | wxPyEndAllowThreads(__tstate); | |
11266 | if (PyErr_Occurred()) SWIG_fail; | |
11267 | } | |
11268 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11269 | return resultobj; | |
11270 | fail: | |
11271 | return NULL; | |
d14a1e28 RD |
11272 | } |
11273 | ||
11274 | ||
0085ce49 RD |
11275 | SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11276 | PyObject *resultobj = 0; | |
11277 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11278 | int result; | |
11279 | void *argp1 = 0 ; | |
11280 | int res1 = 0 ; | |
11281 | PyObject *swig_obj[1] ; | |
11282 | ||
11283 | if (!args) SWIG_fail; | |
11284 | swig_obj[0] = args; | |
11285 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11286 | if (!SWIG_IsOK(res1)) { | |
11287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11288 | } | |
11289 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11290 | { | |
11291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11292 | result = (int)(arg1)->GetWidth(); | |
11293 | wxPyEndAllowThreads(__tstate); | |
11294 | if (PyErr_Occurred()) SWIG_fail; | |
11295 | } | |
11296 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11297 | return resultobj; | |
11298 | fail: | |
11299 | return NULL; | |
093d3ff1 RD |
11300 | } |
11301 | ||
11302 | ||
0085ce49 RD |
11303 | SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11304 | PyObject *resultobj = 0; | |
11305 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11306 | int result; | |
11307 | void *argp1 = 0 ; | |
11308 | int res1 = 0 ; | |
11309 | PyObject *swig_obj[1] ; | |
11310 | ||
11311 | if (!args) SWIG_fail; | |
11312 | swig_obj[0] = args; | |
11313 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11314 | if (!SWIG_IsOK(res1)) { | |
11315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11316 | } | |
11317 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11318 | { | |
11319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11320 | result = (int)(arg1)->GetH(); | |
11321 | wxPyEndAllowThreads(__tstate); | |
11322 | if (PyErr_Occurred()) SWIG_fail; | |
11323 | } | |
11324 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11325 | return resultobj; | |
11326 | fail: | |
11327 | return NULL; | |
d14a1e28 RD |
11328 | } |
11329 | ||
11330 | ||
0085ce49 RD |
11331 | SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11332 | PyObject *resultobj = 0; | |
11333 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11334 | int result; | |
11335 | void *argp1 = 0 ; | |
11336 | int res1 = 0 ; | |
11337 | PyObject *swig_obj[1] ; | |
11338 | ||
11339 | if (!args) SWIG_fail; | |
11340 | swig_obj[0] = args; | |
11341 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11342 | if (!SWIG_IsOK(res1)) { | |
11343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11344 | } | |
11345 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11346 | { | |
11347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11348 | result = (int)(arg1)->GetHeight(); | |
11349 | wxPyEndAllowThreads(__tstate); | |
11350 | if (PyErr_Occurred()) SWIG_fail; | |
11351 | } | |
11352 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11353 | return resultobj; | |
11354 | fail: | |
11355 | return NULL; | |
093d3ff1 RD |
11356 | } |
11357 | ||
11358 | ||
0085ce49 RD |
11359 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11360 | PyObject *resultobj = 0; | |
11361 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11362 | wxRect result; | |
11363 | void *argp1 = 0 ; | |
11364 | int res1 = 0 ; | |
11365 | PyObject *swig_obj[1] ; | |
11366 | ||
11367 | if (!args) SWIG_fail; | |
11368 | swig_obj[0] = args; | |
11369 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11370 | if (!SWIG_IsOK(res1)) { | |
11371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11372 | } | |
11373 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11374 | { | |
11375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11376 | result = (arg1)->GetRect(); | |
11377 | wxPyEndAllowThreads(__tstate); | |
11378 | if (PyErr_Occurred()) SWIG_fail; | |
11379 | } | |
11380 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11381 | return resultobj; | |
11382 | fail: | |
11383 | return NULL; | |
d14a1e28 RD |
11384 | } |
11385 | ||
11386 | ||
0085ce49 RD |
11387 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11388 | PyObject *resultobj = 0; | |
11389 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11390 | bool result; | |
11391 | void *argp1 = 0 ; | |
11392 | int res1 = 0 ; | |
11393 | PyObject *swig_obj[1] ; | |
11394 | ||
11395 | if (!args) SWIG_fail; | |
11396 | swig_obj[0] = args; | |
11397 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11398 | if (!SWIG_IsOK(res1)) { | |
11399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11400 | } | |
11401 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11402 | { | |
11403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11404 | result = (bool)(arg1)->HaveRects(); | |
11405 | wxPyEndAllowThreads(__tstate); | |
11406 | if (PyErr_Occurred()) SWIG_fail; | |
11407 | } | |
11408 | { | |
11409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11410 | } | |
11411 | return resultobj; | |
11412 | fail: | |
11413 | return NULL; | |
093d3ff1 RD |
11414 | } |
11415 | ||
11416 | ||
0085ce49 RD |
11417 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11418 | PyObject *resultobj = 0; | |
11419 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11420 | void *argp1 = 0 ; | |
11421 | int res1 = 0 ; | |
11422 | PyObject *swig_obj[1] ; | |
11423 | ||
11424 | if (!args) SWIG_fail; | |
11425 | swig_obj[0] = args; | |
11426 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11427 | if (!SWIG_IsOK(res1)) { | |
11428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11429 | } | |
11430 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11431 | { | |
11432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11433 | (arg1)->Reset(); | |
11434 | wxPyEndAllowThreads(__tstate); | |
11435 | if (PyErr_Occurred()) SWIG_fail; | |
11436 | } | |
11437 | resultobj = SWIG_Py_Void(); | |
11438 | return resultobj; | |
11439 | fail: | |
11440 | return NULL; | |
d14a1e28 RD |
11441 | } |
11442 | ||
11443 | ||
0085ce49 RD |
11444 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11445 | PyObject *resultobj = 0; | |
11446 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11447 | void *argp1 = 0 ; | |
11448 | int res1 = 0 ; | |
11449 | PyObject *swig_obj[1] ; | |
11450 | ||
11451 | if (!args) SWIG_fail; | |
11452 | swig_obj[0] = args; | |
11453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11454 | if (!SWIG_IsOK(res1)) { | |
11455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11456 | } | |
11457 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11458 | { | |
11459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11460 | wxRegionIterator_Next(arg1); | |
11461 | wxPyEndAllowThreads(__tstate); | |
11462 | if (PyErr_Occurred()) SWIG_fail; | |
11463 | } | |
11464 | resultobj = SWIG_Py_Void(); | |
11465 | return resultobj; | |
11466 | fail: | |
11467 | return NULL; | |
d14a1e28 RD |
11468 | } |
11469 | ||
11470 | ||
0085ce49 RD |
11471 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11472 | PyObject *resultobj = 0; | |
11473 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11474 | bool result; | |
11475 | void *argp1 = 0 ; | |
11476 | int res1 = 0 ; | |
11477 | PyObject *swig_obj[1] ; | |
11478 | ||
11479 | if (!args) SWIG_fail; | |
11480 | swig_obj[0] = args; | |
11481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
11482 | if (!SWIG_IsOK(res1)) { | |
11483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11484 | } | |
11485 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11486 | { | |
11487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11488 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
11489 | wxPyEndAllowThreads(__tstate); | |
11490 | if (PyErr_Occurred()) SWIG_fail; | |
11491 | } | |
11492 | { | |
11493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11494 | } | |
11495 | return resultobj; | |
11496 | fail: | |
11497 | return NULL; | |
d14a1e28 RD |
11498 | } |
11499 | ||
11500 | ||
0085ce49 RD |
11501 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11502 | PyObject *obj; | |
11503 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11504 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
11505 | return SWIG_Py_Void(); | |
d14a1e28 RD |
11506 | } |
11507 | ||
0085ce49 RD |
11508 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11509 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
11510 | } |
11511 | ||
0085ce49 RD |
11512 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11513 | PyObject *resultobj = 0; | |
11514 | wxNativeFontInfo *result = 0 ; | |
11515 | ||
11516 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
11517 | { | |
11518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11519 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
11520 | wxPyEndAllowThreads(__tstate); | |
11521 | if (PyErr_Occurred()) SWIG_fail; | |
11522 | } | |
11523 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
11524 | return resultobj; | |
11525 | fail: | |
11526 | return NULL; | |
d14a1e28 RD |
11527 | } |
11528 | ||
11529 | ||
0085ce49 RD |
11530 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11531 | PyObject *resultobj = 0; | |
11532 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11533 | void *argp1 = 0 ; | |
11534 | int res1 = 0 ; | |
11535 | PyObject *swig_obj[1] ; | |
11536 | ||
11537 | if (!args) SWIG_fail; | |
11538 | swig_obj[0] = args; | |
11539 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 ); | |
11540 | if (!SWIG_IsOK(res1)) { | |
11541 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
11542 | } | |
11543 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11544 | { | |
11545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11546 | delete arg1; | |
d14a1e28 | 11547 | |
0085ce49 RD |
11548 | wxPyEndAllowThreads(__tstate); |
11549 | if (PyErr_Occurred()) SWIG_fail; | |
11550 | } | |
11551 | resultobj = SWIG_Py_Void(); | |
11552 | return resultobj; | |
11553 | fail: | |
11554 | return NULL; | |
d14a1e28 RD |
11555 | } |
11556 | ||
11557 | ||
0085ce49 RD |
11558 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11559 | PyObject *resultobj = 0; | |
11560 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11561 | void *argp1 = 0 ; | |
11562 | int res1 = 0 ; | |
11563 | PyObject *swig_obj[1] ; | |
11564 | ||
11565 | if (!args) SWIG_fail; | |
11566 | swig_obj[0] = args; | |
11567 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11568 | if (!SWIG_IsOK(res1)) { | |
11569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
11570 | } | |
11571 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11572 | { | |
11573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11574 | (arg1)->Init(); | |
11575 | wxPyEndAllowThreads(__tstate); | |
11576 | if (PyErr_Occurred()) SWIG_fail; | |
11577 | } | |
11578 | resultobj = SWIG_Py_Void(); | |
11579 | return resultobj; | |
11580 | fail: | |
11581 | return NULL; | |
11582 | } | |
11583 | ||
11584 | ||
11585 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11586 | PyObject *resultobj = 0; | |
11587 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11588 | wxFont *arg2 = 0 ; | |
11589 | void *argp1 = 0 ; | |
11590 | int res1 = 0 ; | |
11591 | void *argp2 = 0 ; | |
11592 | int res2 = 0 ; | |
11593 | PyObject * obj0 = 0 ; | |
11594 | PyObject * obj1 = 0 ; | |
11595 | char * kwnames[] = { | |
11596 | (char *) "self",(char *) "font", NULL | |
11597 | }; | |
11598 | ||
11599 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
11600 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11601 | if (!SWIG_IsOK(res1)) { | |
11602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
11603 | } | |
11604 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11605 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
11606 | if (!SWIG_IsOK(res2)) { | |
11607 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
11608 | } | |
11609 | if (!argp2) { | |
11610 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
11611 | } | |
11612 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
11613 | { | |
11614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11615 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
11616 | wxPyEndAllowThreads(__tstate); | |
11617 | if (PyErr_Occurred()) SWIG_fail; | |
11618 | } | |
11619 | resultobj = SWIG_Py_Void(); | |
11620 | return resultobj; | |
11621 | fail: | |
11622 | return NULL; | |
e6ffcedd RD |
11623 | } |
11624 | ||
11625 | ||
0085ce49 RD |
11626 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11627 | PyObject *resultobj = 0; | |
11628 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11629 | int result; | |
11630 | void *argp1 = 0 ; | |
11631 | int res1 = 0 ; | |
11632 | PyObject *swig_obj[1] ; | |
11633 | ||
11634 | if (!args) SWIG_fail; | |
11635 | swig_obj[0] = args; | |
11636 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11637 | if (!SWIG_IsOK(res1)) { | |
11638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
11639 | } | |
11640 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11641 | { | |
11642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11643 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
11644 | wxPyEndAllowThreads(__tstate); | |
11645 | if (PyErr_Occurred()) SWIG_fail; | |
11646 | } | |
11647 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11648 | return resultobj; | |
11649 | fail: | |
11650 | return NULL; | |
d14a1e28 RD |
11651 | } |
11652 | ||
11653 | ||
0085ce49 RD |
11654 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11655 | PyObject *resultobj = 0; | |
11656 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11657 | wxFontStyle result; | |
11658 | void *argp1 = 0 ; | |
11659 | int res1 = 0 ; | |
11660 | PyObject *swig_obj[1] ; | |
11661 | ||
11662 | if (!args) SWIG_fail; | |
11663 | swig_obj[0] = args; | |
11664 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11665 | if (!SWIG_IsOK(res1)) { | |
11666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
11667 | } | |
11668 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11669 | { | |
11670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11671 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
11672 | wxPyEndAllowThreads(__tstate); | |
11673 | if (PyErr_Occurred()) SWIG_fail; | |
11674 | } | |
11675 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11676 | return resultobj; | |
11677 | fail: | |
11678 | return NULL; | |
d14a1e28 RD |
11679 | } |
11680 | ||
11681 | ||
0085ce49 RD |
11682 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11683 | PyObject *resultobj = 0; | |
11684 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11685 | wxFontWeight result; | |
11686 | void *argp1 = 0 ; | |
11687 | int res1 = 0 ; | |
11688 | PyObject *swig_obj[1] ; | |
11689 | ||
11690 | if (!args) SWIG_fail; | |
11691 | swig_obj[0] = args; | |
11692 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11693 | if (!SWIG_IsOK(res1)) { | |
11694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
11695 | } | |
11696 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11697 | { | |
11698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11699 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
11700 | wxPyEndAllowThreads(__tstate); | |
11701 | if (PyErr_Occurred()) SWIG_fail; | |
11702 | } | |
11703 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11704 | return resultobj; | |
11705 | fail: | |
11706 | return NULL; | |
d14a1e28 RD |
11707 | } |
11708 | ||
11709 | ||
0085ce49 RD |
11710 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11711 | PyObject *resultobj = 0; | |
11712 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11713 | bool result; | |
11714 | void *argp1 = 0 ; | |
11715 | int res1 = 0 ; | |
11716 | PyObject *swig_obj[1] ; | |
11717 | ||
11718 | if (!args) SWIG_fail; | |
11719 | swig_obj[0] = args; | |
11720 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11721 | if (!SWIG_IsOK(res1)) { | |
11722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
11723 | } | |
11724 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11725 | { | |
11726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11727 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
11728 | wxPyEndAllowThreads(__tstate); | |
11729 | if (PyErr_Occurred()) SWIG_fail; | |
11730 | } | |
11731 | { | |
11732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11733 | } | |
11734 | return resultobj; | |
11735 | fail: | |
11736 | return NULL; | |
d14a1e28 RD |
11737 | } |
11738 | ||
11739 | ||
0085ce49 RD |
11740 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11741 | PyObject *resultobj = 0; | |
11742 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11743 | wxString result; | |
11744 | void *argp1 = 0 ; | |
11745 | int res1 = 0 ; | |
11746 | PyObject *swig_obj[1] ; | |
11747 | ||
11748 | if (!args) SWIG_fail; | |
11749 | swig_obj[0] = args; | |
11750 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11751 | if (!SWIG_IsOK(res1)) { | |
11752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
11753 | } | |
11754 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11755 | { | |
11756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11757 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
11758 | wxPyEndAllowThreads(__tstate); | |
11759 | if (PyErr_Occurred()) SWIG_fail; | |
11760 | } | |
11761 | { | |
11762 | #if wxUSE_UNICODE | |
11763 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11764 | #else | |
11765 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11766 | #endif | |
11767 | } | |
11768 | return resultobj; | |
11769 | fail: | |
11770 | return NULL; | |
d14a1e28 RD |
11771 | } |
11772 | ||
11773 | ||
0085ce49 RD |
11774 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11775 | PyObject *resultobj = 0; | |
11776 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11777 | wxFontFamily result; | |
11778 | void *argp1 = 0 ; | |
11779 | int res1 = 0 ; | |
11780 | PyObject *swig_obj[1] ; | |
11781 | ||
11782 | if (!args) SWIG_fail; | |
11783 | swig_obj[0] = args; | |
11784 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11785 | if (!SWIG_IsOK(res1)) { | |
11786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
11787 | } | |
11788 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11789 | { | |
11790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11791 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
11792 | wxPyEndAllowThreads(__tstate); | |
11793 | if (PyErr_Occurred()) SWIG_fail; | |
11794 | } | |
11795 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11796 | return resultobj; | |
11797 | fail: | |
11798 | return NULL; | |
d14a1e28 RD |
11799 | } |
11800 | ||
11801 | ||
0085ce49 RD |
11802 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11803 | PyObject *resultobj = 0; | |
11804 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11805 | wxFontEncoding result; | |
11806 | void *argp1 = 0 ; | |
11807 | int res1 = 0 ; | |
11808 | PyObject *swig_obj[1] ; | |
11809 | ||
11810 | if (!args) SWIG_fail; | |
11811 | swig_obj[0] = args; | |
11812 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11813 | if (!SWIG_IsOK(res1)) { | |
11814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
11815 | } | |
11816 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11817 | { | |
11818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11819 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
11820 | wxPyEndAllowThreads(__tstate); | |
11821 | if (PyErr_Occurred()) SWIG_fail; | |
11822 | } | |
11823 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11824 | return resultobj; | |
11825 | fail: | |
11826 | return NULL; | |
11827 | } | |
11828 | ||
11829 | ||
11830 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11831 | PyObject *resultobj = 0; | |
11832 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11833 | int arg2 ; | |
11834 | void *argp1 = 0 ; | |
11835 | int res1 = 0 ; | |
11836 | int val2 ; | |
11837 | int ecode2 = 0 ; | |
11838 | PyObject * obj0 = 0 ; | |
11839 | PyObject * obj1 = 0 ; | |
11840 | char * kwnames[] = { | |
11841 | (char *) "self",(char *) "pointsize", NULL | |
11842 | }; | |
11843 | ||
11844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
11845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11846 | if (!SWIG_IsOK(res1)) { | |
11847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
11848 | } | |
11849 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11850 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11851 | if (!SWIG_IsOK(ecode2)) { | |
11852 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
11853 | } | |
11854 | arg2 = static_cast< int >(val2); | |
11855 | { | |
11856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11857 | (arg1)->SetPointSize(arg2); | |
11858 | wxPyEndAllowThreads(__tstate); | |
11859 | if (PyErr_Occurred()) SWIG_fail; | |
11860 | } | |
11861 | resultobj = SWIG_Py_Void(); | |
11862 | return resultobj; | |
11863 | fail: | |
11864 | return NULL; | |
11865 | } | |
11866 | ||
11867 | ||
11868 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11869 | PyObject *resultobj = 0; | |
11870 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11871 | wxFontStyle arg2 ; | |
11872 | void *argp1 = 0 ; | |
11873 | int res1 = 0 ; | |
11874 | int val2 ; | |
11875 | int ecode2 = 0 ; | |
11876 | PyObject * obj0 = 0 ; | |
11877 | PyObject * obj1 = 0 ; | |
11878 | char * kwnames[] = { | |
11879 | (char *) "self",(char *) "style", NULL | |
11880 | }; | |
11881 | ||
11882 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
11883 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11884 | if (!SWIG_IsOK(res1)) { | |
11885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
11886 | } | |
11887 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11888 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11889 | if (!SWIG_IsOK(ecode2)) { | |
11890 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
11891 | } | |
11892 | arg2 = static_cast< wxFontStyle >(val2); | |
11893 | { | |
11894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11895 | (arg1)->SetStyle(arg2); | |
11896 | wxPyEndAllowThreads(__tstate); | |
11897 | if (PyErr_Occurred()) SWIG_fail; | |
11898 | } | |
11899 | resultobj = SWIG_Py_Void(); | |
11900 | return resultobj; | |
11901 | fail: | |
11902 | return NULL; | |
11903 | } | |
11904 | ||
11905 | ||
11906 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11907 | PyObject *resultobj = 0; | |
11908 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11909 | wxFontWeight arg2 ; | |
11910 | void *argp1 = 0 ; | |
11911 | int res1 = 0 ; | |
11912 | int val2 ; | |
11913 | int ecode2 = 0 ; | |
11914 | PyObject * obj0 = 0 ; | |
11915 | PyObject * obj1 = 0 ; | |
11916 | char * kwnames[] = { | |
11917 | (char *) "self",(char *) "weight", NULL | |
11918 | }; | |
11919 | ||
11920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
11921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11922 | if (!SWIG_IsOK(res1)) { | |
11923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
11924 | } | |
11925 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11926 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11927 | if (!SWIG_IsOK(ecode2)) { | |
11928 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
11929 | } | |
11930 | arg2 = static_cast< wxFontWeight >(val2); | |
11931 | { | |
11932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11933 | (arg1)->SetWeight(arg2); | |
11934 | wxPyEndAllowThreads(__tstate); | |
11935 | if (PyErr_Occurred()) SWIG_fail; | |
11936 | } | |
11937 | resultobj = SWIG_Py_Void(); | |
11938 | return resultobj; | |
11939 | fail: | |
11940 | return NULL; | |
11941 | } | |
11942 | ||
11943 | ||
11944 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11945 | PyObject *resultobj = 0; | |
11946 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11947 | bool arg2 ; | |
11948 | void *argp1 = 0 ; | |
11949 | int res1 = 0 ; | |
11950 | bool val2 ; | |
11951 | int ecode2 = 0 ; | |
11952 | PyObject * obj0 = 0 ; | |
11953 | PyObject * obj1 = 0 ; | |
11954 | char * kwnames[] = { | |
11955 | (char *) "self",(char *) "underlined", NULL | |
11956 | }; | |
11957 | ||
11958 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
11959 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11960 | if (!SWIG_IsOK(res1)) { | |
11961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
11962 | } | |
11963 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
11964 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
11965 | if (!SWIG_IsOK(ecode2)) { | |
11966 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
11967 | } | |
11968 | arg2 = static_cast< bool >(val2); | |
11969 | { | |
11970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11971 | (arg1)->SetUnderlined(arg2); | |
11972 | wxPyEndAllowThreads(__tstate); | |
11973 | if (PyErr_Occurred()) SWIG_fail; | |
11974 | } | |
11975 | resultobj = SWIG_Py_Void(); | |
11976 | return resultobj; | |
11977 | fail: | |
11978 | return NULL; | |
11979 | } | |
11980 | ||
11981 | ||
11982 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11983 | PyObject *resultobj = 0; | |
11984 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
11985 | wxString arg2 ; | |
704eda0c | 11986 | bool result; |
0085ce49 RD |
11987 | void *argp1 = 0 ; |
11988 | int res1 = 0 ; | |
11989 | PyObject * obj0 = 0 ; | |
11990 | PyObject * obj1 = 0 ; | |
11991 | char * kwnames[] = { | |
11992 | (char *) "self",(char *) "facename", NULL | |
11993 | }; | |
11994 | ||
11995 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
11996 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
11997 | if (!SWIG_IsOK(res1)) { | |
11998 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
11999 | } | |
12000 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12001 | { | |
12002 | wxString* sptr = wxString_in_helper(obj1); | |
12003 | if (sptr == NULL) SWIG_fail; | |
12004 | arg2 = *sptr; | |
12005 | delete sptr; | |
12006 | } | |
12007 | { | |
12008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 12009 | result = (bool)(arg1)->SetFaceName(arg2); |
0085ce49 RD |
12010 | wxPyEndAllowThreads(__tstate); |
12011 | if (PyErr_Occurred()) SWIG_fail; | |
12012 | } | |
704eda0c RD |
12013 | { |
12014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12015 | } | |
0085ce49 RD |
12016 | return resultobj; |
12017 | fail: | |
12018 | return NULL; | |
12019 | } | |
12020 | ||
12021 | ||
12022 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12023 | PyObject *resultobj = 0; | |
12024 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12025 | wxFontFamily arg2 ; | |
12026 | void *argp1 = 0 ; | |
12027 | int res1 = 0 ; | |
12028 | int val2 ; | |
12029 | int ecode2 = 0 ; | |
12030 | PyObject * obj0 = 0 ; | |
12031 | PyObject * obj1 = 0 ; | |
12032 | char * kwnames[] = { | |
12033 | (char *) "self",(char *) "family", NULL | |
12034 | }; | |
12035 | ||
12036 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
12037 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12038 | if (!SWIG_IsOK(res1)) { | |
12039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12040 | } | |
12041 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12042 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12043 | if (!SWIG_IsOK(ecode2)) { | |
12044 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
12045 | } | |
12046 | arg2 = static_cast< wxFontFamily >(val2); | |
12047 | { | |
12048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12049 | (arg1)->SetFamily(arg2); | |
12050 | wxPyEndAllowThreads(__tstate); | |
12051 | if (PyErr_Occurred()) SWIG_fail; | |
12052 | } | |
12053 | resultobj = SWIG_Py_Void(); | |
12054 | return resultobj; | |
12055 | fail: | |
12056 | return NULL; | |
12057 | } | |
12058 | ||
12059 | ||
12060 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12061 | PyObject *resultobj = 0; | |
12062 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12063 | wxFontEncoding arg2 ; | |
12064 | void *argp1 = 0 ; | |
12065 | int res1 = 0 ; | |
12066 | int val2 ; | |
12067 | int ecode2 = 0 ; | |
12068 | PyObject * obj0 = 0 ; | |
12069 | PyObject * obj1 = 0 ; | |
12070 | char * kwnames[] = { | |
12071 | (char *) "self",(char *) "encoding", NULL | |
12072 | }; | |
12073 | ||
12074 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
12075 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12076 | if (!SWIG_IsOK(res1)) { | |
12077 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12078 | } | |
12079 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12080 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12081 | if (!SWIG_IsOK(ecode2)) { | |
12082 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12083 | } | |
12084 | arg2 = static_cast< wxFontEncoding >(val2); | |
12085 | { | |
12086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12087 | (arg1)->SetEncoding(arg2); | |
12088 | wxPyEndAllowThreads(__tstate); | |
12089 | if (PyErr_Occurred()) SWIG_fail; | |
12090 | } | |
12091 | resultobj = SWIG_Py_Void(); | |
12092 | return resultobj; | |
12093 | fail: | |
12094 | return NULL; | |
12095 | } | |
12096 | ||
12097 | ||
12098 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12099 | PyObject *resultobj = 0; | |
12100 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12101 | wxString *arg2 = 0 ; | |
12102 | bool result; | |
12103 | void *argp1 = 0 ; | |
12104 | int res1 = 0 ; | |
12105 | bool temp2 = false ; | |
12106 | PyObject * obj0 = 0 ; | |
12107 | PyObject * obj1 = 0 ; | |
12108 | char * kwnames[] = { | |
12109 | (char *) "self",(char *) "s", NULL | |
12110 | }; | |
12111 | ||
12112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12114 | if (!SWIG_IsOK(res1)) { | |
12115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12116 | } | |
12117 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12118 | { | |
12119 | arg2 = wxString_in_helper(obj1); | |
12120 | if (arg2 == NULL) SWIG_fail; | |
12121 | temp2 = true; | |
12122 | } | |
12123 | { | |
12124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12125 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
12126 | wxPyEndAllowThreads(__tstate); | |
12127 | if (PyErr_Occurred()) SWIG_fail; | |
12128 | } | |
12129 | { | |
12130 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12131 | } | |
12132 | { | |
12133 | if (temp2) | |
12134 | delete arg2; | |
12135 | } | |
12136 | return resultobj; | |
12137 | fail: | |
12138 | { | |
12139 | if (temp2) | |
12140 | delete arg2; | |
12141 | } | |
12142 | return NULL; | |
d14a1e28 RD |
12143 | } |
12144 | ||
12145 | ||
0085ce49 RD |
12146 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12147 | PyObject *resultobj = 0; | |
12148 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12149 | wxString result; | |
12150 | void *argp1 = 0 ; | |
12151 | int res1 = 0 ; | |
12152 | PyObject *swig_obj[1] ; | |
12153 | ||
12154 | if (!args) SWIG_fail; | |
12155 | swig_obj[0] = args; | |
12156 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12157 | if (!SWIG_IsOK(res1)) { | |
12158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12159 | } | |
12160 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12161 | { | |
12162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12163 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
12164 | wxPyEndAllowThreads(__tstate); | |
12165 | if (PyErr_Occurred()) SWIG_fail; | |
12166 | } | |
12167 | { | |
12168 | #if wxUSE_UNICODE | |
12169 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12170 | #else | |
12171 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12172 | #endif | |
12173 | } | |
12174 | return resultobj; | |
12175 | fail: | |
12176 | return NULL; | |
d14a1e28 RD |
12177 | } |
12178 | ||
12179 | ||
0085ce49 RD |
12180 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12181 | PyObject *resultobj = 0; | |
12182 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12183 | wxString result; | |
12184 | void *argp1 = 0 ; | |
12185 | int res1 = 0 ; | |
12186 | PyObject *swig_obj[1] ; | |
12187 | ||
12188 | if (!args) SWIG_fail; | |
12189 | swig_obj[0] = args; | |
12190 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12191 | if (!SWIG_IsOK(res1)) { | |
12192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12193 | } | |
12194 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12195 | { | |
12196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12197 | result = wxNativeFontInfo___str__(arg1); | |
12198 | wxPyEndAllowThreads(__tstate); | |
12199 | if (PyErr_Occurred()) SWIG_fail; | |
12200 | } | |
12201 | { | |
12202 | #if wxUSE_UNICODE | |
12203 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12204 | #else | |
12205 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12206 | #endif | |
12207 | } | |
12208 | return resultobj; | |
12209 | fail: | |
12210 | return NULL; | |
12211 | } | |
12212 | ||
12213 | ||
12214 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12215 | PyObject *resultobj = 0; | |
12216 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12217 | wxString *arg2 = 0 ; | |
12218 | bool result; | |
12219 | void *argp1 = 0 ; | |
12220 | int res1 = 0 ; | |
12221 | bool temp2 = false ; | |
12222 | PyObject * obj0 = 0 ; | |
12223 | PyObject * obj1 = 0 ; | |
12224 | char * kwnames[] = { | |
12225 | (char *) "self",(char *) "s", NULL | |
12226 | }; | |
12227 | ||
12228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12230 | if (!SWIG_IsOK(res1)) { | |
12231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12232 | } | |
12233 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12234 | { | |
12235 | arg2 = wxString_in_helper(obj1); | |
12236 | if (arg2 == NULL) SWIG_fail; | |
12237 | temp2 = true; | |
12238 | } | |
12239 | { | |
12240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12241 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
12242 | wxPyEndAllowThreads(__tstate); | |
12243 | if (PyErr_Occurred()) SWIG_fail; | |
12244 | } | |
12245 | { | |
12246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12247 | } | |
12248 | { | |
12249 | if (temp2) | |
12250 | delete arg2; | |
12251 | } | |
12252 | return resultobj; | |
12253 | fail: | |
12254 | { | |
12255 | if (temp2) | |
12256 | delete arg2; | |
12257 | } | |
12258 | return NULL; | |
d14a1e28 RD |
12259 | } |
12260 | ||
12261 | ||
0085ce49 RD |
12262 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12263 | PyObject *resultobj = 0; | |
12264 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12265 | wxString result; | |
12266 | void *argp1 = 0 ; | |
12267 | int res1 = 0 ; | |
12268 | PyObject *swig_obj[1] ; | |
12269 | ||
12270 | if (!args) SWIG_fail; | |
12271 | swig_obj[0] = args; | |
12272 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12273 | if (!SWIG_IsOK(res1)) { | |
12274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12275 | } | |
12276 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12277 | { | |
12278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12279 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
12280 | wxPyEndAllowThreads(__tstate); | |
12281 | if (PyErr_Occurred()) SWIG_fail; | |
12282 | } | |
12283 | { | |
12284 | #if wxUSE_UNICODE | |
12285 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12286 | #else | |
12287 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12288 | #endif | |
12289 | } | |
12290 | return resultobj; | |
12291 | fail: | |
12292 | return NULL; | |
d14a1e28 RD |
12293 | } |
12294 | ||
12295 | ||
0085ce49 RD |
12296 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12297 | PyObject *obj; | |
12298 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12299 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
12300 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12301 | } |
12302 | ||
0085ce49 RD |
12303 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12304 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
12305 | } |
12306 | ||
0085ce49 RD |
12307 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12308 | PyObject *resultobj = 0; | |
12309 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12310 | wxString *arg2 = (wxString *) 0 ; | |
12311 | void *argp1 = 0 ; | |
12312 | int res1 = 0 ; | |
12313 | bool temp2 = false ; | |
12314 | PyObject *swig_obj[2] ; | |
12315 | ||
12316 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
12317 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12318 | if (!SWIG_IsOK(res1)) { | |
12319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12320 | } | |
12321 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12322 | { | |
12323 | arg2 = wxString_in_helper(swig_obj[1]); | |
12324 | if (arg2 == NULL) SWIG_fail; | |
12325 | temp2 = true; | |
12326 | } | |
12327 | if (arg1) (arg1)->facename = *arg2; | |
12328 | ||
12329 | resultobj = SWIG_Py_Void(); | |
12330 | { | |
12331 | if (temp2) | |
12332 | delete arg2; | |
12333 | } | |
12334 | return resultobj; | |
12335 | fail: | |
12336 | { | |
12337 | if (temp2) | |
12338 | delete arg2; | |
12339 | } | |
12340 | return NULL; | |
d14a1e28 RD |
12341 | } |
12342 | ||
12343 | ||
0085ce49 RD |
12344 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12345 | PyObject *resultobj = 0; | |
12346 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12347 | wxString *result = 0 ; | |
12348 | void *argp1 = 0 ; | |
12349 | int res1 = 0 ; | |
12350 | PyObject *swig_obj[1] ; | |
12351 | ||
12352 | if (!args) SWIG_fail; | |
12353 | swig_obj[0] = args; | |
12354 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12355 | if (!SWIG_IsOK(res1)) { | |
12356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12357 | } | |
12358 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12359 | result = (wxString *)& ((arg1)->facename); | |
12360 | { | |
12361 | #if wxUSE_UNICODE | |
12362 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
12363 | #else | |
12364 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
12365 | #endif | |
12366 | } | |
12367 | return resultobj; | |
12368 | fail: | |
12369 | return NULL; | |
d14a1e28 RD |
12370 | } |
12371 | ||
12372 | ||
0085ce49 RD |
12373 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12374 | PyObject *resultobj = 0; | |
12375 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12376 | wxFontEncoding arg2 ; | |
12377 | void *argp1 = 0 ; | |
12378 | int res1 = 0 ; | |
12379 | int val2 ; | |
12380 | int ecode2 = 0 ; | |
12381 | PyObject *swig_obj[2] ; | |
12382 | ||
12383 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
12384 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12385 | if (!SWIG_IsOK(res1)) { | |
12386 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12387 | } | |
12388 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12389 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
12390 | if (!SWIG_IsOK(ecode2)) { | |
12391 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12392 | } | |
12393 | arg2 = static_cast< wxFontEncoding >(val2); | |
12394 | if (arg1) (arg1)->encoding = arg2; | |
12395 | ||
12396 | resultobj = SWIG_Py_Void(); | |
12397 | return resultobj; | |
12398 | fail: | |
12399 | return NULL; | |
d14a1e28 RD |
12400 | } |
12401 | ||
12402 | ||
0085ce49 RD |
12403 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12404 | PyObject *resultobj = 0; | |
12405 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12406 | wxFontEncoding result; | |
12407 | void *argp1 = 0 ; | |
12408 | int res1 = 0 ; | |
12409 | PyObject *swig_obj[1] ; | |
12410 | ||
12411 | if (!args) SWIG_fail; | |
12412 | swig_obj[0] = args; | |
12413 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12414 | if (!SWIG_IsOK(res1)) { | |
12415 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12416 | } | |
12417 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12418 | result = (wxFontEncoding) ((arg1)->encoding); | |
12419 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12420 | return resultobj; | |
12421 | fail: | |
12422 | return NULL; | |
d14a1e28 RD |
12423 | } |
12424 | ||
12425 | ||
0085ce49 RD |
12426 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12427 | PyObject *resultobj = 0; | |
12428 | wxNativeEncodingInfo *result = 0 ; | |
12429 | ||
12430 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
12431 | { | |
12432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12433 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
12434 | wxPyEndAllowThreads(__tstate); | |
12435 | if (PyErr_Occurred()) SWIG_fail; | |
12436 | } | |
12437 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
12438 | return resultobj; | |
12439 | fail: | |
12440 | return NULL; | |
d14a1e28 RD |
12441 | } |
12442 | ||
12443 | ||
0085ce49 RD |
12444 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12445 | PyObject *resultobj = 0; | |
12446 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12447 | void *argp1 = 0 ; | |
12448 | int res1 = 0 ; | |
12449 | PyObject *swig_obj[1] ; | |
12450 | ||
12451 | if (!args) SWIG_fail; | |
12452 | swig_obj[0] = args; | |
12453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
12454 | if (!SWIG_IsOK(res1)) { | |
12455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12456 | } | |
12457 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12458 | { | |
12459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12460 | delete arg1; | |
d14a1e28 | 12461 | |
0085ce49 RD |
12462 | wxPyEndAllowThreads(__tstate); |
12463 | if (PyErr_Occurred()) SWIG_fail; | |
12464 | } | |
12465 | resultobj = SWIG_Py_Void(); | |
12466 | return resultobj; | |
12467 | fail: | |
12468 | return NULL; | |
12469 | } | |
12470 | ||
12471 | ||
12472 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12473 | PyObject *resultobj = 0; | |
12474 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12475 | wxString *arg2 = 0 ; | |
12476 | bool result; | |
12477 | void *argp1 = 0 ; | |
12478 | int res1 = 0 ; | |
12479 | bool temp2 = false ; | |
12480 | PyObject * obj0 = 0 ; | |
12481 | PyObject * obj1 = 0 ; | |
12482 | char * kwnames[] = { | |
12483 | (char *) "self",(char *) "s", NULL | |
12484 | }; | |
12485 | ||
12486 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12487 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12488 | if (!SWIG_IsOK(res1)) { | |
12489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
12490 | } | |
12491 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12492 | { | |
12493 | arg2 = wxString_in_helper(obj1); | |
12494 | if (arg2 == NULL) SWIG_fail; | |
12495 | temp2 = true; | |
12496 | } | |
12497 | { | |
12498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12499 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
12500 | wxPyEndAllowThreads(__tstate); | |
12501 | if (PyErr_Occurred()) SWIG_fail; | |
12502 | } | |
12503 | { | |
12504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12505 | } | |
12506 | { | |
12507 | if (temp2) | |
12508 | delete arg2; | |
12509 | } | |
12510 | return resultobj; | |
12511 | fail: | |
12512 | { | |
12513 | if (temp2) | |
12514 | delete arg2; | |
12515 | } | |
12516 | return NULL; | |
d14a1e28 RD |
12517 | } |
12518 | ||
12519 | ||
0085ce49 RD |
12520 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12521 | PyObject *resultobj = 0; | |
12522 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
12523 | wxString result; | |
12524 | void *argp1 = 0 ; | |
12525 | int res1 = 0 ; | |
12526 | PyObject *swig_obj[1] ; | |
12527 | ||
12528 | if (!args) SWIG_fail; | |
12529 | swig_obj[0] = args; | |
12530 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12531 | if (!SWIG_IsOK(res1)) { | |
12532 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
12533 | } | |
12534 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12535 | { | |
12536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12537 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
12538 | wxPyEndAllowThreads(__tstate); | |
12539 | if (PyErr_Occurred()) SWIG_fail; | |
12540 | } | |
12541 | { | |
12542 | #if wxUSE_UNICODE | |
12543 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12544 | #else | |
12545 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12546 | #endif | |
12547 | } | |
12548 | return resultobj; | |
12549 | fail: | |
12550 | return NULL; | |
d14a1e28 RD |
12551 | } |
12552 | ||
12553 | ||
0085ce49 RD |
12554 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12555 | PyObject *obj; | |
12556 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12557 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
12558 | return SWIG_Py_Void(); | |
d14a1e28 RD |
12559 | } |
12560 | ||
0085ce49 RD |
12561 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12562 | return SWIG_Python_InitShadowInstance(args); | |
12563 | } | |
d14a1e28 | 12564 | |
0085ce49 RD |
12565 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12566 | PyObject *resultobj = 0; | |
12567 | wxFontEncoding arg1 ; | |
12568 | wxNativeEncodingInfo *result = 0 ; | |
12569 | int val1 ; | |
12570 | int ecode1 = 0 ; | |
12571 | PyObject * obj0 = 0 ; | |
12572 | char * kwnames[] = { | |
12573 | (char *) "encoding", NULL | |
12574 | }; | |
12575 | ||
12576 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
12577 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12578 | if (!SWIG_IsOK(ecode1)) { | |
12579 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
12580 | } | |
12581 | arg1 = static_cast< wxFontEncoding >(val1); | |
12582 | { | |
12583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12584 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
12585 | wxPyEndAllowThreads(__tstate); | |
12586 | if (PyErr_Occurred()) SWIG_fail; | |
12587 | } | |
12588 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
12589 | return resultobj; | |
12590 | fail: | |
12591 | return NULL; | |
12592 | } | |
12593 | ||
12594 | ||
12595 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12596 | PyObject *resultobj = 0; | |
12597 | wxNativeEncodingInfo *arg1 = 0 ; | |
12598 | bool result; | |
12599 | void *argp1 = 0 ; | |
12600 | int res1 = 0 ; | |
12601 | PyObject * obj0 = 0 ; | |
12602 | char * kwnames[] = { | |
12603 | (char *) "info", NULL | |
12604 | }; | |
12605 | ||
12606 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
12607 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
12608 | if (!SWIG_IsOK(res1)) { | |
12609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
12610 | } | |
12611 | if (!argp1) { | |
12612 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
12613 | } | |
12614 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
12615 | { | |
12616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12617 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
12618 | wxPyEndAllowThreads(__tstate); | |
12619 | if (PyErr_Occurred()) SWIG_fail; | |
12620 | } | |
12621 | { | |
12622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12623 | } | |
12624 | return resultobj; | |
12625 | fail: | |
12626 | return NULL; | |
d14a1e28 RD |
12627 | } |
12628 | ||
12629 | ||
0085ce49 RD |
12630 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12631 | PyObject *resultobj = 0; | |
12632 | wxFontMapper *result = 0 ; | |
12633 | ||
12634 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
12635 | { | |
12636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12637 | result = (wxFontMapper *)new wxFontMapper(); | |
12638 | wxPyEndAllowThreads(__tstate); | |
12639 | if (PyErr_Occurred()) SWIG_fail; | |
12640 | } | |
12641 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
12642 | return resultobj; | |
12643 | fail: | |
12644 | return NULL; | |
d14a1e28 RD |
12645 | } |
12646 | ||
12647 | ||
0085ce49 RD |
12648 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12649 | PyObject *resultobj = 0; | |
12650 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
12651 | void *argp1 = 0 ; | |
12652 | int res1 = 0 ; | |
12653 | PyObject *swig_obj[1] ; | |
12654 | ||
12655 | if (!args) SWIG_fail; | |
12656 | swig_obj[0] = args; | |
12657 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
12658 | if (!SWIG_IsOK(res1)) { | |
12659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
12660 | } | |
12661 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
12662 | { | |
12663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12664 | delete arg1; | |
d14a1e28 | 12665 | |
0085ce49 RD |
12666 | wxPyEndAllowThreads(__tstate); |
12667 | if (PyErr_Occurred()) SWIG_fail; | |
12668 | } | |
12669 | resultobj = SWIG_Py_Void(); | |
12670 | return resultobj; | |
12671 | fail: | |
12672 | return NULL; | |
d14a1e28 RD |
12673 | } |
12674 | ||
12675 | ||
0085ce49 RD |
12676 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12677 | PyObject *resultobj = 0; | |
12678 | wxFontMapper *result = 0 ; | |
12679 | ||
12680 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
12681 | { | |
12682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12683 | result = (wxFontMapper *)wxFontMapper::Get(); | |
12684 | wxPyEndAllowThreads(__tstate); | |
12685 | if (PyErr_Occurred()) SWIG_fail; | |
12686 | } | |
12687 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
12688 | return resultobj; | |
12689 | fail: | |
12690 | return NULL; | |
12691 | } | |
12692 | ||
12693 | ||
12694 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12695 | PyObject *resultobj = 0; | |
12696 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
12697 | wxFontMapper *result = 0 ; | |
12698 | void *argp1 = 0 ; | |
12699 | int res1 = 0 ; | |
12700 | PyObject * obj0 = 0 ; | |
12701 | char * kwnames[] = { | |
12702 | (char *) "mapper", NULL | |
12703 | }; | |
12704 | ||
12705 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
12706 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
12707 | if (!SWIG_IsOK(res1)) { | |
12708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
12709 | } | |
12710 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
12711 | { | |
12712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12713 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
12714 | wxPyEndAllowThreads(__tstate); | |
12715 | if (PyErr_Occurred()) SWIG_fail; | |
12716 | } | |
12717 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
12718 | return resultobj; | |
12719 | fail: | |
12720 | return NULL; | |
12721 | } | |
12722 | ||
12723 | ||
12724 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12725 | PyObject *resultobj = 0; | |
12726 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
12727 | wxString *arg2 = 0 ; | |
12728 | bool arg3 = (bool) true ; | |
12729 | wxFontEncoding result; | |
12730 | void *argp1 = 0 ; | |
12731 | int res1 = 0 ; | |
12732 | bool temp2 = false ; | |
12733 | bool val3 ; | |
12734 | int ecode3 = 0 ; | |
12735 | PyObject * obj0 = 0 ; | |
12736 | PyObject * obj1 = 0 ; | |
12737 | PyObject * obj2 = 0 ; | |
12738 | char * kwnames[] = { | |
12739 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
12740 | }; | |
12741 | ||
12742 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
12743 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
12744 | if (!SWIG_IsOK(res1)) { | |
12745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
12746 | } | |
12747 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
12748 | { | |
12749 | arg2 = wxString_in_helper(obj1); | |
12750 | if (arg2 == NULL) SWIG_fail; | |
12751 | temp2 = true; | |
12752 | } | |
12753 | if (obj2) { | |
12754 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
12755 | if (!SWIG_IsOK(ecode3)) { | |
12756 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
12757 | } | |
12758 | arg3 = static_cast< bool >(val3); | |
12759 | } | |
12760 | { | |
12761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12762 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
12763 | wxPyEndAllowThreads(__tstate); | |
12764 | if (PyErr_Occurred()) SWIG_fail; | |
12765 | } | |
12766 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12767 | { | |
12768 | if (temp2) | |
12769 | delete arg2; | |
12770 | } | |
12771 | return resultobj; | |
12772 | fail: | |
12773 | { | |
12774 | if (temp2) | |
12775 | delete arg2; | |
12776 | } | |
12777 | return NULL; | |
e6ffcedd RD |
12778 | } |
12779 | ||
12780 | ||
0085ce49 RD |
12781 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12782 | PyObject *resultobj = 0; | |
12783 | size_t result; | |
12784 | ||
12785 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
12786 | { | |
12787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12788 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
12789 | wxPyEndAllowThreads(__tstate); | |
12790 | if (PyErr_Occurred()) SWIG_fail; | |
12791 | } | |
12792 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
12793 | return resultobj; | |
12794 | fail: | |
12795 | return NULL; | |
12796 | } | |
12797 | ||
12798 | ||
12799 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12800 | PyObject *resultobj = 0; | |
12801 | size_t arg1 ; | |
12802 | wxFontEncoding result; | |
12803 | size_t val1 ; | |
12804 | int ecode1 = 0 ; | |
12805 | PyObject * obj0 = 0 ; | |
12806 | char * kwnames[] = { | |
12807 | (char *) "n", NULL | |
12808 | }; | |
12809 | ||
12810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
12811 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
12812 | if (!SWIG_IsOK(ecode1)) { | |
12813 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
12814 | } | |
12815 | arg1 = static_cast< size_t >(val1); | |
12816 | { | |
12817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12818 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
12819 | wxPyEndAllowThreads(__tstate); | |
12820 | if (PyErr_Occurred()) SWIG_fail; | |
12821 | } | |
12822 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12823 | return resultobj; | |
12824 | fail: | |
12825 | return NULL; | |
12826 | } | |
12827 | ||
12828 | ||
12829 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12830 | PyObject *resultobj = 0; | |
12831 | wxFontEncoding arg1 ; | |
12832 | wxString result; | |
12833 | int val1 ; | |
12834 | int ecode1 = 0 ; | |
12835 | PyObject * obj0 = 0 ; | |
12836 | char * kwnames[] = { | |
12837 | (char *) "encoding", NULL | |
12838 | }; | |
12839 | ||
12840 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
12841 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12842 | if (!SWIG_IsOK(ecode1)) { | |
12843 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
12844 | } | |
12845 | arg1 = static_cast< wxFontEncoding >(val1); | |
12846 | { | |
12847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12848 | result = wxFontMapper::GetEncodingName(arg1); | |
12849 | wxPyEndAllowThreads(__tstate); | |
12850 | if (PyErr_Occurred()) SWIG_fail; | |
12851 | } | |
12852 | { | |
12853 | #if wxUSE_UNICODE | |
12854 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12855 | #else | |
12856 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12857 | #endif | |
12858 | } | |
12859 | return resultobj; | |
12860 | fail: | |
12861 | return NULL; | |
d14a1e28 RD |
12862 | } |
12863 | ||
12864 | ||
0085ce49 RD |
12865 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12866 | PyObject *resultobj = 0; | |
12867 | wxFontEncoding arg1 ; | |
12868 | wxString result; | |
12869 | int val1 ; | |
12870 | int ecode1 = 0 ; | |
12871 | PyObject * obj0 = 0 ; | |
12872 | char * kwnames[] = { | |
12873 | (char *) "encoding", NULL | |
12874 | }; | |
12875 | ||
12876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
12877 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
12878 | if (!SWIG_IsOK(ecode1)) { | |
12879 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
12880 | } | |
12881 | arg1 = static_cast< wxFontEncoding >(val1); | |
12882 | { | |
12883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12884 | result = wxFontMapper::GetEncodingDescription(arg1); | |
12885 | wxPyEndAllowThreads(__tstate); | |
12886 | if (PyErr_Occurred()) SWIG_fail; | |
12887 | } | |
12888 | { | |
12889 | #if wxUSE_UNICODE | |
12890 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12891 | #else | |
12892 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12893 | #endif | |
12894 | } | |
12895 | return resultobj; | |
12896 | fail: | |
12897 | return NULL; | |
d14a1e28 RD |
12898 | } |
12899 | ||
12900 | ||
0085ce49 RD |
12901 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12902 | PyObject *resultobj = 0; | |
12903 | wxString *arg1 = 0 ; | |
12904 | wxFontEncoding result; | |
12905 | bool temp1 = false ; | |
12906 | PyObject * obj0 = 0 ; | |
12907 | char * kwnames[] = { | |
12908 | (char *) "name", NULL | |
12909 | }; | |
12910 | ||
12911 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
12912 | { | |
12913 | arg1 = wxString_in_helper(obj0); | |
12914 | if (arg1 == NULL) SWIG_fail; | |
12915 | temp1 = true; | |
12916 | } | |
12917 | { | |
12918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12919 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
12920 | wxPyEndAllowThreads(__tstate); | |
12921 | if (PyErr_Occurred()) SWIG_fail; | |
12922 | } | |
12923 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12924 | { | |
12925 | if (temp1) | |
12926 | delete arg1; | |
12927 | } | |
12928 | return resultobj; | |
12929 | fail: | |
12930 | { | |
12931 | if (temp1) | |
12932 | delete arg1; | |
12933 | } | |
12934 | return NULL; | |
d14a1e28 RD |
12935 | } |
12936 | ||
12937 | ||
0085ce49 RD |
12938 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12939 | PyObject *resultobj = 0; | |
12940 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
12941 | wxString *arg2 = 0 ; | |
12942 | void *argp1 = 0 ; | |
12943 | int res1 = 0 ; | |
12944 | bool temp2 = false ; | |
12945 | PyObject * obj0 = 0 ; | |
12946 | PyObject * obj1 = 0 ; | |
12947 | char * kwnames[] = { | |
12948 | (char *) "self",(char *) "prefix", NULL | |
12949 | }; | |
12950 | ||
12951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
12952 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
12953 | if (!SWIG_IsOK(res1)) { | |
12954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
12955 | } | |
12956 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
12957 | { | |
12958 | arg2 = wxString_in_helper(obj1); | |
12959 | if (arg2 == NULL) SWIG_fail; | |
12960 | temp2 = true; | |
12961 | } | |
12962 | { | |
12963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12964 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
12965 | wxPyEndAllowThreads(__tstate); | |
12966 | if (PyErr_Occurred()) SWIG_fail; | |
12967 | } | |
12968 | resultobj = SWIG_Py_Void(); | |
12969 | { | |
12970 | if (temp2) | |
12971 | delete arg2; | |
12972 | } | |
12973 | return resultobj; | |
12974 | fail: | |
12975 | { | |
12976 | if (temp2) | |
12977 | delete arg2; | |
12978 | } | |
12979 | return NULL; | |
d14a1e28 RD |
12980 | } |
12981 | ||
12982 | ||
0085ce49 RD |
12983 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12984 | PyObject *resultobj = 0; | |
12985 | wxString result; | |
12986 | ||
12987 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
12988 | { | |
12989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12990 | result = wxFontMapper::GetDefaultConfigPath(); | |
12991 | wxPyEndAllowThreads(__tstate); | |
12992 | if (PyErr_Occurred()) SWIG_fail; | |
12993 | } | |
12994 | { | |
12995 | #if wxUSE_UNICODE | |
12996 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12997 | #else | |
12998 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12999 | #endif | |
13000 | } | |
13001 | return resultobj; | |
13002 | fail: | |
13003 | return NULL; | |
13004 | } | |
13005 | ||
13006 | ||
13007 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13008 | PyObject *resultobj = 0; | |
13009 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13010 | wxFontEncoding arg2 ; | |
13011 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13012 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13013 | bool arg4 = (bool) true ; | |
13014 | PyObject *result = 0 ; | |
13015 | void *argp1 = 0 ; | |
13016 | int res1 = 0 ; | |
13017 | int val2 ; | |
13018 | int ecode2 = 0 ; | |
13019 | bool temp3 = false ; | |
13020 | bool val4 ; | |
13021 | int ecode4 = 0 ; | |
13022 | PyObject * obj0 = 0 ; | |
13023 | PyObject * obj1 = 0 ; | |
13024 | PyObject * obj2 = 0 ; | |
13025 | PyObject * obj3 = 0 ; | |
13026 | char * kwnames[] = { | |
13027 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
13028 | }; | |
13029 | ||
13030 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13031 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13032 | if (!SWIG_IsOK(res1)) { | |
13033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13034 | } | |
13035 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13036 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13037 | if (!SWIG_IsOK(ecode2)) { | |
13038 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13039 | } | |
13040 | arg2 = static_cast< wxFontEncoding >(val2); | |
13041 | if (obj2) { | |
093d3ff1 | 13042 | { |
0085ce49 RD |
13043 | arg3 = wxString_in_helper(obj2); |
13044 | if (arg3 == NULL) SWIG_fail; | |
13045 | temp3 = true; | |
093d3ff1 | 13046 | } |
0085ce49 RD |
13047 | } |
13048 | if (obj3) { | |
13049 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
13050 | if (!SWIG_IsOK(ecode4)) { | |
13051 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
13052 | } | |
13053 | arg4 = static_cast< bool >(val4); | |
13054 | } | |
13055 | { | |
13056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13057 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
13058 | wxPyEndAllowThreads(__tstate); | |
13059 | if (PyErr_Occurred()) SWIG_fail; | |
13060 | } | |
13061 | resultobj = result; | |
13062 | { | |
13063 | if (temp3) | |
13064 | delete arg3; | |
13065 | } | |
13066 | return resultobj; | |
13067 | fail: | |
13068 | { | |
13069 | if (temp3) | |
13070 | delete arg3; | |
13071 | } | |
13072 | return NULL; | |
13073 | } | |
13074 | ||
13075 | ||
13076 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13077 | PyObject *resultobj = 0; | |
13078 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13079 | wxFontEncoding arg2 ; | |
13080 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13081 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13082 | bool result; | |
13083 | void *argp1 = 0 ; | |
13084 | int res1 = 0 ; | |
13085 | int val2 ; | |
13086 | int ecode2 = 0 ; | |
13087 | bool temp3 = false ; | |
13088 | PyObject * obj0 = 0 ; | |
13089 | PyObject * obj1 = 0 ; | |
13090 | PyObject * obj2 = 0 ; | |
13091 | char * kwnames[] = { | |
13092 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
13093 | }; | |
13094 | ||
13095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13097 | if (!SWIG_IsOK(res1)) { | |
13098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13099 | } | |
13100 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13101 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13102 | if (!SWIG_IsOK(ecode2)) { | |
13103 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13104 | } | |
13105 | arg2 = static_cast< wxFontEncoding >(val2); | |
13106 | if (obj2) { | |
d14a1e28 | 13107 | { |
0085ce49 RD |
13108 | arg3 = wxString_in_helper(obj2); |
13109 | if (arg3 == NULL) SWIG_fail; | |
13110 | temp3 = true; | |
d14a1e28 | 13111 | } |
0085ce49 RD |
13112 | } |
13113 | { | |
13114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13115 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
13116 | wxPyEndAllowThreads(__tstate); | |
13117 | if (PyErr_Occurred()) SWIG_fail; | |
13118 | } | |
13119 | { | |
13120 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13121 | } | |
13122 | { | |
13123 | if (temp3) | |
13124 | delete arg3; | |
13125 | } | |
13126 | return resultobj; | |
13127 | fail: | |
13128 | { | |
13129 | if (temp3) | |
13130 | delete arg3; | |
13131 | } | |
13132 | return NULL; | |
13133 | } | |
13134 | ||
13135 | ||
13136 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13137 | PyObject *resultobj = 0; | |
13138 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13139 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13140 | void *argp1 = 0 ; | |
13141 | int res1 = 0 ; | |
13142 | void *argp2 = 0 ; | |
13143 | int res2 = 0 ; | |
13144 | PyObject * obj0 = 0 ; | |
13145 | PyObject * obj1 = 0 ; | |
13146 | char * kwnames[] = { | |
13147 | (char *) "self",(char *) "parent", NULL | |
13148 | }; | |
13149 | ||
13150 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
13151 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13152 | if (!SWIG_IsOK(res1)) { | |
13153 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13154 | } | |
13155 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13156 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
13157 | if (!SWIG_IsOK(res2)) { | |
13158 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
13159 | } | |
13160 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
13161 | { | |
13162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13163 | (arg1)->SetDialogParent(arg2); | |
13164 | wxPyEndAllowThreads(__tstate); | |
13165 | if (PyErr_Occurred()) SWIG_fail; | |
13166 | } | |
13167 | resultobj = SWIG_Py_Void(); | |
13168 | return resultobj; | |
13169 | fail: | |
13170 | return NULL; | |
13171 | } | |
13172 | ||
13173 | ||
13174 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13175 | PyObject *resultobj = 0; | |
13176 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13177 | wxString *arg2 = 0 ; | |
13178 | void *argp1 = 0 ; | |
13179 | int res1 = 0 ; | |
13180 | bool temp2 = false ; | |
13181 | PyObject * obj0 = 0 ; | |
13182 | PyObject * obj1 = 0 ; | |
13183 | char * kwnames[] = { | |
13184 | (char *) "self",(char *) "title", NULL | |
13185 | }; | |
13186 | ||
13187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
13188 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13189 | if (!SWIG_IsOK(res1)) { | |
13190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13191 | } | |
13192 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13193 | { | |
13194 | arg2 = wxString_in_helper(obj1); | |
13195 | if (arg2 == NULL) SWIG_fail; | |
13196 | temp2 = true; | |
13197 | } | |
13198 | { | |
13199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13200 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
13201 | wxPyEndAllowThreads(__tstate); | |
13202 | if (PyErr_Occurred()) SWIG_fail; | |
13203 | } | |
13204 | resultobj = SWIG_Py_Void(); | |
13205 | { | |
13206 | if (temp2) | |
13207 | delete arg2; | |
13208 | } | |
13209 | return resultobj; | |
13210 | fail: | |
13211 | { | |
13212 | if (temp2) | |
13213 | delete arg2; | |
13214 | } | |
13215 | return NULL; | |
13216 | } | |
13217 | ||
13218 | ||
13219 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13220 | PyObject *obj; | |
13221 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13222 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
13223 | return SWIG_Py_Void(); | |
13224 | } | |
13225 | ||
13226 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
13227 | return SWIG_Python_InitShadowInstance(args); | |
13228 | } | |
13229 | ||
13230 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13231 | PyObject *resultobj = 0; | |
13232 | int arg1 ; | |
13233 | int arg2 ; | |
13234 | int arg3 ; | |
13235 | int arg4 ; | |
13236 | bool arg5 = (bool) false ; | |
13237 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
13238 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13239 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13240 | wxFont *result = 0 ; | |
13241 | int val1 ; | |
13242 | int ecode1 = 0 ; | |
13243 | int val2 ; | |
13244 | int ecode2 = 0 ; | |
13245 | int val3 ; | |
13246 | int ecode3 = 0 ; | |
13247 | int val4 ; | |
13248 | int ecode4 = 0 ; | |
13249 | bool val5 ; | |
13250 | int ecode5 = 0 ; | |
13251 | bool temp6 = false ; | |
13252 | int val7 ; | |
13253 | int ecode7 = 0 ; | |
13254 | PyObject * obj0 = 0 ; | |
13255 | PyObject * obj1 = 0 ; | |
13256 | PyObject * obj2 = 0 ; | |
13257 | PyObject * obj3 = 0 ; | |
13258 | PyObject * obj4 = 0 ; | |
13259 | PyObject * obj5 = 0 ; | |
13260 | PyObject * obj6 = 0 ; | |
13261 | char * kwnames[] = { | |
13262 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
13263 | }; | |
13264 | ||
13265 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13266 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13267 | if (!SWIG_IsOK(ecode1)) { | |
13268 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
13269 | } | |
13270 | arg1 = static_cast< int >(val1); | |
13271 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13272 | if (!SWIG_IsOK(ecode2)) { | |
13273 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
13274 | } | |
13275 | arg2 = static_cast< int >(val2); | |
13276 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13277 | if (!SWIG_IsOK(ecode3)) { | |
13278 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
13279 | } | |
13280 | arg3 = static_cast< int >(val3); | |
13281 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
13282 | if (!SWIG_IsOK(ecode4)) { | |
13283 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
13284 | } | |
13285 | arg4 = static_cast< int >(val4); | |
13286 | if (obj4) { | |
13287 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
13288 | if (!SWIG_IsOK(ecode5)) { | |
13289 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
13290 | } | |
13291 | arg5 = static_cast< bool >(val5); | |
13292 | } | |
13293 | if (obj5) { | |
093d3ff1 | 13294 | { |
0085ce49 RD |
13295 | arg6 = wxString_in_helper(obj5); |
13296 | if (arg6 == NULL) SWIG_fail; | |
13297 | temp6 = true; | |
093d3ff1 | 13298 | } |
0085ce49 RD |
13299 | } |
13300 | if (obj6) { | |
13301 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
13302 | if (!SWIG_IsOK(ecode7)) { | |
13303 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
13304 | } | |
13305 | arg7 = static_cast< wxFontEncoding >(val7); | |
13306 | } | |
13307 | { | |
13308 | if (!wxPyCheckForApp()) SWIG_fail; | |
13309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13310 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
13311 | wxPyEndAllowThreads(__tstate); | |
13312 | if (PyErr_Occurred()) SWIG_fail; | |
13313 | } | |
13314 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
13315 | { | |
13316 | if (temp6) | |
13317 | delete arg6; | |
13318 | } | |
13319 | return resultobj; | |
13320 | fail: | |
13321 | { | |
13322 | if (temp6) | |
13323 | delete arg6; | |
13324 | } | |
13325 | return NULL; | |
d14a1e28 RD |
13326 | } |
13327 | ||
13328 | ||
0085ce49 RD |
13329 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13330 | PyObject *resultobj = 0; | |
13331 | wxFont *arg1 = (wxFont *) 0 ; | |
13332 | void *argp1 = 0 ; | |
13333 | int res1 = 0 ; | |
13334 | PyObject *swig_obj[1] ; | |
13335 | ||
13336 | if (!args) SWIG_fail; | |
13337 | swig_obj[0] = args; | |
13338 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
13339 | if (!SWIG_IsOK(res1)) { | |
13340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13341 | } | |
13342 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13343 | { | |
13344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13345 | delete arg1; | |
d14a1e28 | 13346 | |
0085ce49 RD |
13347 | wxPyEndAllowThreads(__tstate); |
13348 | if (PyErr_Occurred()) SWIG_fail; | |
13349 | } | |
13350 | resultobj = SWIG_Py_Void(); | |
13351 | return resultobj; | |
13352 | fail: | |
13353 | return NULL; | |
13354 | } | |
13355 | ||
13356 | ||
13357 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13358 | PyObject *resultobj = 0; | |
13359 | wxNativeFontInfo *arg1 = 0 ; | |
13360 | wxFont *result = 0 ; | |
13361 | void *argp1 = 0 ; | |
13362 | int res1 = 0 ; | |
13363 | PyObject * obj0 = 0 ; | |
13364 | char * kwnames[] = { | |
13365 | (char *) "info", NULL | |
13366 | }; | |
13367 | ||
13368 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
13369 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
13370 | if (!SWIG_IsOK(res1)) { | |
13371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
13372 | } | |
13373 | if (!argp1) { | |
13374 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
13375 | } | |
13376 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13377 | { | |
13378 | if (!wxPyCheckForApp()) SWIG_fail; | |
13379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13380 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
13381 | wxPyEndAllowThreads(__tstate); | |
13382 | if (PyErr_Occurred()) SWIG_fail; | |
13383 | } | |
13384 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13385 | return resultobj; | |
13386 | fail: | |
13387 | return NULL; | |
d14a1e28 RD |
13388 | } |
13389 | ||
13390 | ||
0085ce49 RD |
13391 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13392 | PyObject *resultobj = 0; | |
13393 | wxString *arg1 = 0 ; | |
13394 | wxFont *result = 0 ; | |
13395 | bool temp1 = false ; | |
13396 | PyObject * obj0 = 0 ; | |
13397 | char * kwnames[] = { | |
13398 | (char *) "info", NULL | |
13399 | }; | |
13400 | ||
13401 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
13402 | { | |
13403 | arg1 = wxString_in_helper(obj0); | |
13404 | if (arg1 == NULL) SWIG_fail; | |
13405 | temp1 = true; | |
13406 | } | |
13407 | { | |
13408 | if (!wxPyCheckForApp()) SWIG_fail; | |
13409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13410 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
13411 | wxPyEndAllowThreads(__tstate); | |
13412 | if (PyErr_Occurred()) SWIG_fail; | |
13413 | } | |
13414 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13415 | { | |
13416 | if (temp1) | |
13417 | delete arg1; | |
13418 | } | |
13419 | return resultobj; | |
13420 | fail: | |
13421 | { | |
13422 | if (temp1) | |
13423 | delete arg1; | |
13424 | } | |
13425 | return NULL; | |
13426 | } | |
13427 | ||
13428 | ||
13429 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13430 | PyObject *resultobj = 0; | |
13431 | int arg1 ; | |
13432 | wxFontFamily arg2 ; | |
13433 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
13434 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13435 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13436 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13437 | wxFont *result = 0 ; | |
13438 | int val1 ; | |
13439 | int ecode1 = 0 ; | |
13440 | int val2 ; | |
13441 | int ecode2 = 0 ; | |
13442 | int val3 ; | |
13443 | int ecode3 = 0 ; | |
13444 | bool temp4 = false ; | |
13445 | int val5 ; | |
13446 | int ecode5 = 0 ; | |
13447 | PyObject * obj0 = 0 ; | |
13448 | PyObject * obj1 = 0 ; | |
13449 | PyObject * obj2 = 0 ; | |
13450 | PyObject * obj3 = 0 ; | |
13451 | PyObject * obj4 = 0 ; | |
13452 | char * kwnames[] = { | |
13453 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
13454 | }; | |
13455 | ||
13456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
13457 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13458 | if (!SWIG_IsOK(ecode1)) { | |
13459 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
13460 | } | |
13461 | arg1 = static_cast< int >(val1); | |
13462 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13463 | if (!SWIG_IsOK(ecode2)) { | |
13464 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
13465 | } | |
13466 | arg2 = static_cast< wxFontFamily >(val2); | |
13467 | if (obj2) { | |
13468 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13469 | if (!SWIG_IsOK(ecode3)) { | |
13470 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
13471 | } | |
13472 | arg3 = static_cast< int >(val3); | |
13473 | } | |
13474 | if (obj3) { | |
093d3ff1 | 13475 | { |
0085ce49 RD |
13476 | arg4 = wxString_in_helper(obj3); |
13477 | if (arg4 == NULL) SWIG_fail; | |
13478 | temp4 = true; | |
093d3ff1 | 13479 | } |
0085ce49 RD |
13480 | } |
13481 | if (obj4) { | |
13482 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
13483 | if (!SWIG_IsOK(ecode5)) { | |
13484 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
13485 | } | |
13486 | arg5 = static_cast< wxFontEncoding >(val5); | |
13487 | } | |
13488 | { | |
13489 | if (!wxPyCheckForApp()) SWIG_fail; | |
13490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13491 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
13492 | wxPyEndAllowThreads(__tstate); | |
13493 | if (PyErr_Occurred()) SWIG_fail; | |
13494 | } | |
13495 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13496 | { | |
13497 | if (temp4) | |
13498 | delete arg4; | |
13499 | } | |
13500 | return resultobj; | |
13501 | fail: | |
13502 | { | |
13503 | if (temp4) | |
13504 | delete arg4; | |
13505 | } | |
13506 | return NULL; | |
13507 | } | |
13508 | ||
13509 | ||
13510 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13511 | PyObject *resultobj = 0; | |
13512 | wxSize *arg1 = 0 ; | |
13513 | int arg2 ; | |
13514 | int arg3 ; | |
13515 | int arg4 ; | |
13516 | bool arg5 = (bool) false ; | |
13517 | wxString const &arg6_defvalue = wxEmptyString ; | |
13518 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
13519 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13520 | wxFont *result = 0 ; | |
13521 | wxSize temp1 ; | |
13522 | int val2 ; | |
13523 | int ecode2 = 0 ; | |
13524 | int val3 ; | |
13525 | int ecode3 = 0 ; | |
13526 | int val4 ; | |
13527 | int ecode4 = 0 ; | |
13528 | bool val5 ; | |
13529 | int ecode5 = 0 ; | |
13530 | bool temp6 = false ; | |
13531 | int val7 ; | |
13532 | int ecode7 = 0 ; | |
13533 | PyObject * obj0 = 0 ; | |
13534 | PyObject * obj1 = 0 ; | |
13535 | PyObject * obj2 = 0 ; | |
13536 | PyObject * obj3 = 0 ; | |
13537 | PyObject * obj4 = 0 ; | |
13538 | PyObject * obj5 = 0 ; | |
13539 | PyObject * obj6 = 0 ; | |
13540 | char * kwnames[] = { | |
13541 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
13542 | }; | |
13543 | ||
13544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
13545 | { | |
13546 | arg1 = &temp1; | |
13547 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
13548 | } | |
13549 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13550 | if (!SWIG_IsOK(ecode2)) { | |
13551 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
13552 | } | |
13553 | arg2 = static_cast< int >(val2); | |
13554 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13555 | if (!SWIG_IsOK(ecode3)) { | |
13556 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
13557 | } | |
13558 | arg3 = static_cast< int >(val3); | |
13559 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
13560 | if (!SWIG_IsOK(ecode4)) { | |
13561 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
13562 | } | |
13563 | arg4 = static_cast< int >(val4); | |
13564 | if (obj4) { | |
13565 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
13566 | if (!SWIG_IsOK(ecode5)) { | |
13567 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
13568 | } | |
13569 | arg5 = static_cast< bool >(val5); | |
13570 | } | |
13571 | if (obj5) { | |
d14a1e28 | 13572 | { |
0085ce49 RD |
13573 | arg6 = wxString_in_helper(obj5); |
13574 | if (arg6 == NULL) SWIG_fail; | |
13575 | temp6 = true; | |
d14a1e28 | 13576 | } |
0085ce49 RD |
13577 | } |
13578 | if (obj6) { | |
13579 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
13580 | if (!SWIG_IsOK(ecode7)) { | |
13581 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
13582 | } | |
13583 | arg7 = static_cast< wxFontEncoding >(val7); | |
13584 | } | |
13585 | { | |
13586 | if (!wxPyCheckForApp()) SWIG_fail; | |
13587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13588 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
13589 | wxPyEndAllowThreads(__tstate); | |
13590 | if (PyErr_Occurred()) SWIG_fail; | |
13591 | } | |
13592 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13593 | { | |
13594 | if (temp6) | |
13595 | delete arg6; | |
13596 | } | |
13597 | return resultobj; | |
13598 | fail: | |
13599 | { | |
13600 | if (temp6) | |
13601 | delete arg6; | |
13602 | } | |
13603 | return NULL; | |
13604 | } | |
13605 | ||
13606 | ||
13607 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13608 | PyObject *resultobj = 0; | |
13609 | wxSize *arg1 = 0 ; | |
13610 | wxFontFamily arg2 ; | |
13611 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
13612 | wxString const &arg4_defvalue = wxEmptyString ; | |
13613 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
13614 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
13615 | wxFont *result = 0 ; | |
13616 | wxSize temp1 ; | |
13617 | int val2 ; | |
13618 | int ecode2 = 0 ; | |
13619 | int val3 ; | |
13620 | int ecode3 = 0 ; | |
13621 | bool temp4 = false ; | |
13622 | int val5 ; | |
13623 | int ecode5 = 0 ; | |
13624 | PyObject * obj0 = 0 ; | |
13625 | PyObject * obj1 = 0 ; | |
13626 | PyObject * obj2 = 0 ; | |
13627 | PyObject * obj3 = 0 ; | |
13628 | PyObject * obj4 = 0 ; | |
13629 | char * kwnames[] = { | |
13630 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
13631 | }; | |
13632 | ||
13633 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
13634 | { | |
13635 | arg1 = &temp1; | |
13636 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
13637 | } | |
13638 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13639 | if (!SWIG_IsOK(ecode2)) { | |
13640 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
13641 | } | |
13642 | arg2 = static_cast< wxFontFamily >(val2); | |
13643 | if (obj2) { | |
13644 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
13645 | if (!SWIG_IsOK(ecode3)) { | |
13646 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
13647 | } | |
13648 | arg3 = static_cast< int >(val3); | |
13649 | } | |
13650 | if (obj3) { | |
093d3ff1 | 13651 | { |
0085ce49 RD |
13652 | arg4 = wxString_in_helper(obj3); |
13653 | if (arg4 == NULL) SWIG_fail; | |
13654 | temp4 = true; | |
093d3ff1 | 13655 | } |
0085ce49 RD |
13656 | } |
13657 | if (obj4) { | |
13658 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
13659 | if (!SWIG_IsOK(ecode5)) { | |
13660 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
13661 | } | |
13662 | arg5 = static_cast< wxFontEncoding >(val5); | |
13663 | } | |
13664 | { | |
13665 | if (!wxPyCheckForApp()) SWIG_fail; | |
13666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13667 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
13668 | wxPyEndAllowThreads(__tstate); | |
13669 | if (PyErr_Occurred()) SWIG_fail; | |
13670 | } | |
13671 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
13672 | { | |
13673 | if (temp4) | |
13674 | delete arg4; | |
13675 | } | |
13676 | return resultobj; | |
13677 | fail: | |
13678 | { | |
13679 | if (temp4) | |
13680 | delete arg4; | |
13681 | } | |
13682 | return NULL; | |
d14a1e28 RD |
13683 | } |
13684 | ||
13685 | ||
0085ce49 RD |
13686 | SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13687 | PyObject *resultobj = 0; | |
13688 | wxFont *arg1 = (wxFont *) 0 ; | |
13689 | bool result; | |
13690 | void *argp1 = 0 ; | |
13691 | int res1 = 0 ; | |
13692 | PyObject *swig_obj[1] ; | |
13693 | ||
13694 | if (!args) SWIG_fail; | |
13695 | swig_obj[0] = args; | |
13696 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13697 | if (!SWIG_IsOK(res1)) { | |
13698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13699 | } | |
13700 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13701 | { | |
13702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13703 | result = (bool)((wxFont const *)arg1)->Ok(); | |
13704 | wxPyEndAllowThreads(__tstate); | |
13705 | if (PyErr_Occurred()) SWIG_fail; | |
13706 | } | |
13707 | { | |
13708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13709 | } | |
13710 | return resultobj; | |
13711 | fail: | |
13712 | return NULL; | |
13713 | } | |
13714 | ||
13715 | ||
13716 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13717 | PyObject *resultobj = 0; | |
13718 | wxFont *arg1 = (wxFont *) 0 ; | |
13719 | wxFont *arg2 = (wxFont *) 0 ; | |
13720 | bool result; | |
13721 | void *argp1 = 0 ; | |
13722 | int res1 = 0 ; | |
13723 | void *argp2 = 0 ; | |
13724 | int res2 = 0 ; | |
13725 | PyObject * obj0 = 0 ; | |
13726 | PyObject * obj1 = 0 ; | |
13727 | char * kwnames[] = { | |
13728 | (char *) "self",(char *) "other", NULL | |
13729 | }; | |
13730 | ||
13731 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
13732 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13733 | if (!SWIG_IsOK(res1)) { | |
13734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13735 | } | |
13736 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13737 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13738 | if (!SWIG_IsOK(res2)) { | |
13739 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
13740 | } | |
13741 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
13742 | { | |
13743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13744 | result = (bool)wxFont___eq__(arg1,(wxFont 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 | return resultobj; | |
13752 | fail: | |
13753 | return NULL; | |
13754 | } | |
13755 | ||
13756 | ||
13757 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13758 | PyObject *resultobj = 0; | |
13759 | wxFont *arg1 = (wxFont *) 0 ; | |
13760 | wxFont *arg2 = (wxFont *) 0 ; | |
13761 | bool result; | |
13762 | void *argp1 = 0 ; | |
13763 | int res1 = 0 ; | |
13764 | void *argp2 = 0 ; | |
13765 | int res2 = 0 ; | |
13766 | PyObject * obj0 = 0 ; | |
13767 | PyObject * obj1 = 0 ; | |
13768 | char * kwnames[] = { | |
13769 | (char *) "self",(char *) "other", NULL | |
13770 | }; | |
13771 | ||
13772 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
13773 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13774 | if (!SWIG_IsOK(res1)) { | |
13775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
13776 | } | |
13777 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13778 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13779 | if (!SWIG_IsOK(res2)) { | |
13780 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
13781 | } | |
13782 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
13783 | { | |
13784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13785 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
13786 | wxPyEndAllowThreads(__tstate); | |
13787 | if (PyErr_Occurred()) SWIG_fail; | |
13788 | } | |
13789 | { | |
13790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13791 | } | |
13792 | return resultobj; | |
13793 | fail: | |
13794 | return NULL; | |
d14a1e28 RD |
13795 | } |
13796 | ||
13797 | ||
0085ce49 RD |
13798 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13799 | PyObject *resultobj = 0; | |
13800 | wxFont *arg1 = (wxFont *) 0 ; | |
13801 | int result; | |
13802 | void *argp1 = 0 ; | |
13803 | int res1 = 0 ; | |
13804 | PyObject *swig_obj[1] ; | |
13805 | ||
13806 | if (!args) SWIG_fail; | |
13807 | swig_obj[0] = args; | |
13808 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13809 | if (!SWIG_IsOK(res1)) { | |
13810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13811 | } | |
13812 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13813 | { | |
13814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13815 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
13816 | wxPyEndAllowThreads(__tstate); | |
13817 | if (PyErr_Occurred()) SWIG_fail; | |
13818 | } | |
13819 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13820 | return resultobj; | |
13821 | fail: | |
13822 | return NULL; | |
d14a1e28 RD |
13823 | } |
13824 | ||
13825 | ||
0085ce49 RD |
13826 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13827 | PyObject *resultobj = 0; | |
13828 | wxFont *arg1 = (wxFont *) 0 ; | |
13829 | wxSize result; | |
13830 | void *argp1 = 0 ; | |
13831 | int res1 = 0 ; | |
13832 | PyObject *swig_obj[1] ; | |
13833 | ||
13834 | if (!args) SWIG_fail; | |
13835 | swig_obj[0] = args; | |
13836 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13837 | if (!SWIG_IsOK(res1)) { | |
13838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13839 | } | |
13840 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13841 | { | |
13842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13843 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
13844 | wxPyEndAllowThreads(__tstate); | |
13845 | if (PyErr_Occurred()) SWIG_fail; | |
13846 | } | |
13847 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
13848 | return resultobj; | |
13849 | fail: | |
13850 | return NULL; | |
d14a1e28 RD |
13851 | } |
13852 | ||
13853 | ||
0085ce49 RD |
13854 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13855 | PyObject *resultobj = 0; | |
13856 | wxFont *arg1 = (wxFont *) 0 ; | |
13857 | bool result; | |
13858 | void *argp1 = 0 ; | |
13859 | int res1 = 0 ; | |
13860 | PyObject *swig_obj[1] ; | |
13861 | ||
13862 | if (!args) SWIG_fail; | |
13863 | swig_obj[0] = args; | |
13864 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13865 | if (!SWIG_IsOK(res1)) { | |
13866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13867 | } | |
13868 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13869 | { | |
13870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13871 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
13872 | wxPyEndAllowThreads(__tstate); | |
13873 | if (PyErr_Occurred()) SWIG_fail; | |
13874 | } | |
13875 | { | |
13876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13877 | } | |
13878 | return resultobj; | |
13879 | fail: | |
13880 | return NULL; | |
d14a1e28 RD |
13881 | } |
13882 | ||
13883 | ||
0085ce49 RD |
13884 | SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13885 | PyObject *resultobj = 0; | |
13886 | wxFont *arg1 = (wxFont *) 0 ; | |
13887 | int result; | |
13888 | void *argp1 = 0 ; | |
13889 | int res1 = 0 ; | |
13890 | PyObject *swig_obj[1] ; | |
13891 | ||
13892 | if (!args) SWIG_fail; | |
13893 | swig_obj[0] = args; | |
13894 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13895 | if (!SWIG_IsOK(res1)) { | |
13896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13897 | } | |
13898 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13899 | { | |
13900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13901 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
13902 | wxPyEndAllowThreads(__tstate); | |
13903 | if (PyErr_Occurred()) SWIG_fail; | |
13904 | } | |
13905 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13906 | return resultobj; | |
13907 | fail: | |
13908 | return NULL; | |
d14a1e28 RD |
13909 | } |
13910 | ||
13911 | ||
0085ce49 RD |
13912 | SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13913 | PyObject *resultobj = 0; | |
13914 | wxFont *arg1 = (wxFont *) 0 ; | |
13915 | int result; | |
13916 | void *argp1 = 0 ; | |
13917 | int res1 = 0 ; | |
13918 | PyObject *swig_obj[1] ; | |
13919 | ||
13920 | if (!args) SWIG_fail; | |
13921 | swig_obj[0] = args; | |
13922 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13923 | if (!SWIG_IsOK(res1)) { | |
13924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13925 | } | |
13926 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13927 | { | |
13928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13929 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
13930 | wxPyEndAllowThreads(__tstate); | |
13931 | if (PyErr_Occurred()) SWIG_fail; | |
13932 | } | |
13933 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13934 | return resultobj; | |
13935 | fail: | |
13936 | return NULL; | |
d14a1e28 RD |
13937 | } |
13938 | ||
13939 | ||
0085ce49 RD |
13940 | SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13941 | PyObject *resultobj = 0; | |
13942 | wxFont *arg1 = (wxFont *) 0 ; | |
13943 | int result; | |
13944 | void *argp1 = 0 ; | |
13945 | int res1 = 0 ; | |
13946 | PyObject *swig_obj[1] ; | |
13947 | ||
13948 | if (!args) SWIG_fail; | |
13949 | swig_obj[0] = args; | |
13950 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13951 | if (!SWIG_IsOK(res1)) { | |
13952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13953 | } | |
13954 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13955 | { | |
13956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13957 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
13958 | wxPyEndAllowThreads(__tstate); | |
13959 | if (PyErr_Occurred()) SWIG_fail; | |
13960 | } | |
13961 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13962 | return resultobj; | |
13963 | fail: | |
13964 | return NULL; | |
d14a1e28 RD |
13965 | } |
13966 | ||
13967 | ||
0085ce49 RD |
13968 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13969 | PyObject *resultobj = 0; | |
13970 | wxFont *arg1 = (wxFont *) 0 ; | |
13971 | bool result; | |
13972 | void *argp1 = 0 ; | |
13973 | int res1 = 0 ; | |
13974 | PyObject *swig_obj[1] ; | |
13975 | ||
13976 | if (!args) SWIG_fail; | |
13977 | swig_obj[0] = args; | |
13978 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
13979 | if (!SWIG_IsOK(res1)) { | |
13980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
13981 | } | |
13982 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
13983 | { | |
13984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13985 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
13986 | wxPyEndAllowThreads(__tstate); | |
13987 | if (PyErr_Occurred()) SWIG_fail; | |
13988 | } | |
13989 | { | |
13990 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13991 | } | |
13992 | return resultobj; | |
13993 | fail: | |
13994 | return NULL; | |
d14a1e28 RD |
13995 | } |
13996 | ||
13997 | ||
0085ce49 RD |
13998 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13999 | PyObject *resultobj = 0; | |
14000 | wxFont *arg1 = (wxFont *) 0 ; | |
14001 | wxString result; | |
14002 | void *argp1 = 0 ; | |
14003 | int res1 = 0 ; | |
14004 | PyObject *swig_obj[1] ; | |
14005 | ||
14006 | if (!args) SWIG_fail; | |
14007 | swig_obj[0] = args; | |
14008 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14009 | if (!SWIG_IsOK(res1)) { | |
14010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14011 | } | |
14012 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14013 | { | |
14014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14015 | result = ((wxFont const *)arg1)->GetFaceName(); | |
14016 | wxPyEndAllowThreads(__tstate); | |
14017 | if (PyErr_Occurred()) SWIG_fail; | |
14018 | } | |
14019 | { | |
14020 | #if wxUSE_UNICODE | |
14021 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14022 | #else | |
14023 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14024 | #endif | |
14025 | } | |
14026 | return resultobj; | |
14027 | fail: | |
14028 | return NULL; | |
d14a1e28 RD |
14029 | } |
14030 | ||
14031 | ||
0085ce49 RD |
14032 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14033 | PyObject *resultobj = 0; | |
14034 | wxFont *arg1 = (wxFont *) 0 ; | |
14035 | wxFontEncoding result; | |
14036 | void *argp1 = 0 ; | |
14037 | int res1 = 0 ; | |
14038 | PyObject *swig_obj[1] ; | |
14039 | ||
14040 | if (!args) SWIG_fail; | |
14041 | swig_obj[0] = args; | |
14042 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14043 | if (!SWIG_IsOK(res1)) { | |
14044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14045 | } | |
14046 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14047 | { | |
14048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14049 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
14050 | wxPyEndAllowThreads(__tstate); | |
14051 | if (PyErr_Occurred()) SWIG_fail; | |
14052 | } | |
14053 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14054 | return resultobj; | |
14055 | fail: | |
14056 | return NULL; | |
d14a1e28 RD |
14057 | } |
14058 | ||
14059 | ||
0085ce49 RD |
14060 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14061 | PyObject *resultobj = 0; | |
14062 | wxFont *arg1 = (wxFont *) 0 ; | |
14063 | wxNativeFontInfo *result = 0 ; | |
14064 | void *argp1 = 0 ; | |
14065 | int res1 = 0 ; | |
14066 | PyObject *swig_obj[1] ; | |
14067 | ||
14068 | if (!args) SWIG_fail; | |
14069 | swig_obj[0] = args; | |
14070 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14071 | if (!SWIG_IsOK(res1)) { | |
14072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14073 | } | |
14074 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14075 | { | |
14076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14077 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
14078 | wxPyEndAllowThreads(__tstate); | |
14079 | if (PyErr_Occurred()) SWIG_fail; | |
14080 | } | |
14081 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
14082 | return resultobj; | |
14083 | fail: | |
14084 | return NULL; | |
d14a1e28 RD |
14085 | } |
14086 | ||
14087 | ||
0085ce49 RD |
14088 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14089 | PyObject *resultobj = 0; | |
14090 | wxFont *arg1 = (wxFont *) 0 ; | |
14091 | bool result; | |
14092 | void *argp1 = 0 ; | |
14093 | int res1 = 0 ; | |
14094 | PyObject *swig_obj[1] ; | |
14095 | ||
14096 | if (!args) SWIG_fail; | |
14097 | swig_obj[0] = args; | |
14098 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14099 | if (!SWIG_IsOK(res1)) { | |
14100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14101 | } | |
14102 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14103 | { | |
14104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14105 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
14106 | wxPyEndAllowThreads(__tstate); | |
14107 | if (PyErr_Occurred()) SWIG_fail; | |
14108 | } | |
14109 | { | |
14110 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14111 | } | |
14112 | return resultobj; | |
14113 | fail: | |
14114 | return NULL; | |
d14a1e28 RD |
14115 | } |
14116 | ||
14117 | ||
0085ce49 RD |
14118 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14119 | PyObject *resultobj = 0; | |
14120 | wxFont *arg1 = (wxFont *) 0 ; | |
14121 | wxString result; | |
14122 | void *argp1 = 0 ; | |
14123 | int res1 = 0 ; | |
14124 | PyObject *swig_obj[1] ; | |
14125 | ||
14126 | if (!args) SWIG_fail; | |
14127 | swig_obj[0] = args; | |
14128 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14129 | if (!SWIG_IsOK(res1)) { | |
14130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14131 | } | |
14132 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14133 | { | |
14134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14135 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
14136 | wxPyEndAllowThreads(__tstate); | |
14137 | if (PyErr_Occurred()) SWIG_fail; | |
14138 | } | |
14139 | { | |
14140 | #if wxUSE_UNICODE | |
14141 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14142 | #else | |
14143 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14144 | #endif | |
14145 | } | |
14146 | return resultobj; | |
14147 | fail: | |
14148 | return NULL; | |
d14a1e28 RD |
14149 | } |
14150 | ||
14151 | ||
0085ce49 RD |
14152 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14153 | PyObject *resultobj = 0; | |
14154 | wxFont *arg1 = (wxFont *) 0 ; | |
14155 | wxString result; | |
14156 | void *argp1 = 0 ; | |
14157 | int res1 = 0 ; | |
14158 | PyObject *swig_obj[1] ; | |
14159 | ||
14160 | if (!args) SWIG_fail; | |
14161 | swig_obj[0] = args; | |
14162 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14163 | if (!SWIG_IsOK(res1)) { | |
14164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14165 | } | |
14166 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14167 | { | |
14168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14169 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
14170 | wxPyEndAllowThreads(__tstate); | |
14171 | if (PyErr_Occurred()) SWIG_fail; | |
14172 | } | |
14173 | { | |
14174 | #if wxUSE_UNICODE | |
14175 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14176 | #else | |
14177 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14178 | #endif | |
14179 | } | |
14180 | return resultobj; | |
14181 | fail: | |
14182 | return NULL; | |
14183 | } | |
14184 | ||
14185 | ||
14186 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14187 | PyObject *resultobj = 0; | |
14188 | wxFont *arg1 = (wxFont *) 0 ; | |
14189 | int arg2 ; | |
14190 | void *argp1 = 0 ; | |
14191 | int res1 = 0 ; | |
14192 | int val2 ; | |
14193 | int ecode2 = 0 ; | |
14194 | PyObject * obj0 = 0 ; | |
14195 | PyObject * obj1 = 0 ; | |
14196 | char * kwnames[] = { | |
14197 | (char *) "self",(char *) "pointSize", NULL | |
14198 | }; | |
14199 | ||
14200 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14201 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14202 | if (!SWIG_IsOK(res1)) { | |
14203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14204 | } | |
14205 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14206 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14207 | if (!SWIG_IsOK(ecode2)) { | |
14208 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
14209 | } | |
14210 | arg2 = static_cast< int >(val2); | |
14211 | { | |
14212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14213 | (arg1)->SetPointSize(arg2); | |
14214 | wxPyEndAllowThreads(__tstate); | |
14215 | if (PyErr_Occurred()) SWIG_fail; | |
14216 | } | |
14217 | resultobj = SWIG_Py_Void(); | |
14218 | return resultobj; | |
14219 | fail: | |
14220 | return NULL; | |
14221 | } | |
14222 | ||
14223 | ||
14224 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14225 | PyObject *resultobj = 0; | |
14226 | wxFont *arg1 = (wxFont *) 0 ; | |
14227 | wxSize *arg2 = 0 ; | |
14228 | void *argp1 = 0 ; | |
14229 | int res1 = 0 ; | |
14230 | wxSize temp2 ; | |
14231 | PyObject * obj0 = 0 ; | |
14232 | PyObject * obj1 = 0 ; | |
14233 | char * kwnames[] = { | |
14234 | (char *) "self",(char *) "pixelSize", NULL | |
14235 | }; | |
14236 | ||
14237 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
14238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14239 | if (!SWIG_IsOK(res1)) { | |
14240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14241 | } | |
14242 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14243 | { | |
14244 | arg2 = &temp2; | |
14245 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14246 | } | |
14247 | { | |
14248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14249 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
14250 | wxPyEndAllowThreads(__tstate); | |
14251 | if (PyErr_Occurred()) SWIG_fail; | |
14252 | } | |
14253 | resultobj = SWIG_Py_Void(); | |
14254 | return resultobj; | |
14255 | fail: | |
14256 | return NULL; | |
14257 | } | |
14258 | ||
14259 | ||
14260 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14261 | PyObject *resultobj = 0; | |
14262 | wxFont *arg1 = (wxFont *) 0 ; | |
14263 | int arg2 ; | |
14264 | void *argp1 = 0 ; | |
14265 | int res1 = 0 ; | |
14266 | int val2 ; | |
14267 | int ecode2 = 0 ; | |
14268 | PyObject * obj0 = 0 ; | |
14269 | PyObject * obj1 = 0 ; | |
14270 | char * kwnames[] = { | |
14271 | (char *) "self",(char *) "family", NULL | |
14272 | }; | |
14273 | ||
14274 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
14275 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14276 | if (!SWIG_IsOK(res1)) { | |
14277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14278 | } | |
14279 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14280 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14281 | if (!SWIG_IsOK(ecode2)) { | |
14282 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
14283 | } | |
14284 | arg2 = static_cast< int >(val2); | |
14285 | { | |
14286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14287 | (arg1)->SetFamily(arg2); | |
14288 | wxPyEndAllowThreads(__tstate); | |
14289 | if (PyErr_Occurred()) SWIG_fail; | |
14290 | } | |
14291 | resultobj = SWIG_Py_Void(); | |
14292 | return resultobj; | |
14293 | fail: | |
14294 | return NULL; | |
14295 | } | |
14296 | ||
14297 | ||
14298 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14299 | PyObject *resultobj = 0; | |
14300 | wxFont *arg1 = (wxFont *) 0 ; | |
14301 | int arg2 ; | |
14302 | void *argp1 = 0 ; | |
14303 | int res1 = 0 ; | |
14304 | int val2 ; | |
14305 | int ecode2 = 0 ; | |
14306 | PyObject * obj0 = 0 ; | |
14307 | PyObject * obj1 = 0 ; | |
14308 | char * kwnames[] = { | |
14309 | (char *) "self",(char *) "style", NULL | |
14310 | }; | |
14311 | ||
14312 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
14313 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14314 | if (!SWIG_IsOK(res1)) { | |
14315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14316 | } | |
14317 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14318 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14319 | if (!SWIG_IsOK(ecode2)) { | |
14320 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
14321 | } | |
14322 | arg2 = static_cast< int >(val2); | |
14323 | { | |
14324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14325 | (arg1)->SetStyle(arg2); | |
14326 | wxPyEndAllowThreads(__tstate); | |
14327 | if (PyErr_Occurred()) SWIG_fail; | |
14328 | } | |
14329 | resultobj = SWIG_Py_Void(); | |
14330 | return resultobj; | |
14331 | fail: | |
14332 | return NULL; | |
14333 | } | |
14334 | ||
14335 | ||
14336 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14337 | PyObject *resultobj = 0; | |
14338 | wxFont *arg1 = (wxFont *) 0 ; | |
14339 | int arg2 ; | |
14340 | void *argp1 = 0 ; | |
14341 | int res1 = 0 ; | |
14342 | int val2 ; | |
14343 | int ecode2 = 0 ; | |
14344 | PyObject * obj0 = 0 ; | |
14345 | PyObject * obj1 = 0 ; | |
14346 | char * kwnames[] = { | |
14347 | (char *) "self",(char *) "weight", NULL | |
14348 | }; | |
14349 | ||
14350 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
14351 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14352 | if (!SWIG_IsOK(res1)) { | |
14353 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14354 | } | |
14355 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14356 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14357 | if (!SWIG_IsOK(ecode2)) { | |
14358 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
14359 | } | |
14360 | arg2 = static_cast< int >(val2); | |
14361 | { | |
14362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14363 | (arg1)->SetWeight(arg2); | |
14364 | wxPyEndAllowThreads(__tstate); | |
14365 | if (PyErr_Occurred()) SWIG_fail; | |
14366 | } | |
14367 | resultobj = SWIG_Py_Void(); | |
14368 | return resultobj; | |
14369 | fail: | |
14370 | return NULL; | |
14371 | } | |
14372 | ||
14373 | ||
14374 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14375 | PyObject *resultobj = 0; | |
14376 | wxFont *arg1 = (wxFont *) 0 ; | |
14377 | wxString *arg2 = 0 ; | |
704eda0c | 14378 | bool result; |
0085ce49 RD |
14379 | void *argp1 = 0 ; |
14380 | int res1 = 0 ; | |
14381 | bool temp2 = false ; | |
14382 | PyObject * obj0 = 0 ; | |
14383 | PyObject * obj1 = 0 ; | |
14384 | char * kwnames[] = { | |
14385 | (char *) "self",(char *) "faceName", NULL | |
14386 | }; | |
14387 | ||
14388 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
14389 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14390 | if (!SWIG_IsOK(res1)) { | |
14391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14392 | } | |
14393 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14394 | { | |
14395 | arg2 = wxString_in_helper(obj1); | |
14396 | if (arg2 == NULL) SWIG_fail; | |
14397 | temp2 = true; | |
14398 | } | |
14399 | { | |
14400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 14401 | result = (bool)(arg1)->SetFaceName((wxString const &)*arg2); |
0085ce49 RD |
14402 | wxPyEndAllowThreads(__tstate); |
14403 | if (PyErr_Occurred()) SWIG_fail; | |
14404 | } | |
704eda0c RD |
14405 | { |
14406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14407 | } | |
0085ce49 RD |
14408 | { |
14409 | if (temp2) | |
14410 | delete arg2; | |
14411 | } | |
14412 | return resultobj; | |
14413 | fail: | |
14414 | { | |
14415 | if (temp2) | |
14416 | delete arg2; | |
14417 | } | |
14418 | return NULL; | |
14419 | } | |
14420 | ||
14421 | ||
14422 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14423 | PyObject *resultobj = 0; | |
14424 | wxFont *arg1 = (wxFont *) 0 ; | |
14425 | bool arg2 ; | |
14426 | void *argp1 = 0 ; | |
14427 | int res1 = 0 ; | |
14428 | bool val2 ; | |
14429 | int ecode2 = 0 ; | |
14430 | PyObject * obj0 = 0 ; | |
14431 | PyObject * obj1 = 0 ; | |
14432 | char * kwnames[] = { | |
14433 | (char *) "self",(char *) "underlined", NULL | |
14434 | }; | |
14435 | ||
14436 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
14437 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14438 | if (!SWIG_IsOK(res1)) { | |
14439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14440 | } | |
14441 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14442 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
14443 | if (!SWIG_IsOK(ecode2)) { | |
14444 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
14445 | } | |
14446 | arg2 = static_cast< bool >(val2); | |
14447 | { | |
14448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14449 | (arg1)->SetUnderlined(arg2); | |
14450 | wxPyEndAllowThreads(__tstate); | |
14451 | if (PyErr_Occurred()) SWIG_fail; | |
14452 | } | |
14453 | resultobj = SWIG_Py_Void(); | |
14454 | return resultobj; | |
14455 | fail: | |
14456 | return NULL; | |
14457 | } | |
14458 | ||
14459 | ||
14460 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14461 | PyObject *resultobj = 0; | |
14462 | wxFont *arg1 = (wxFont *) 0 ; | |
14463 | wxFontEncoding arg2 ; | |
14464 | void *argp1 = 0 ; | |
14465 | int res1 = 0 ; | |
14466 | int val2 ; | |
14467 | int ecode2 = 0 ; | |
14468 | PyObject * obj0 = 0 ; | |
14469 | PyObject * obj1 = 0 ; | |
14470 | char * kwnames[] = { | |
14471 | (char *) "self",(char *) "encoding", NULL | |
14472 | }; | |
14473 | ||
14474 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
14475 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14476 | if (!SWIG_IsOK(res1)) { | |
14477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14478 | } | |
14479 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14480 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14481 | if (!SWIG_IsOK(ecode2)) { | |
14482 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14483 | } | |
14484 | arg2 = static_cast< wxFontEncoding >(val2); | |
14485 | { | |
14486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14487 | (arg1)->SetEncoding(arg2); | |
14488 | wxPyEndAllowThreads(__tstate); | |
14489 | if (PyErr_Occurred()) SWIG_fail; | |
14490 | } | |
14491 | resultobj = SWIG_Py_Void(); | |
14492 | return resultobj; | |
14493 | fail: | |
14494 | return NULL; | |
14495 | } | |
14496 | ||
14497 | ||
14498 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14499 | PyObject *resultobj = 0; | |
14500 | wxFont *arg1 = (wxFont *) 0 ; | |
14501 | wxNativeFontInfo *arg2 = 0 ; | |
14502 | void *argp1 = 0 ; | |
14503 | int res1 = 0 ; | |
14504 | void *argp2 = 0 ; | |
14505 | int res2 = 0 ; | |
14506 | PyObject * obj0 = 0 ; | |
14507 | PyObject * obj1 = 0 ; | |
14508 | char * kwnames[] = { | |
14509 | (char *) "self",(char *) "info", NULL | |
14510 | }; | |
14511 | ||
14512 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
14513 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14514 | if (!SWIG_IsOK(res1)) { | |
14515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14516 | } | |
14517 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14518 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
14519 | if (!SWIG_IsOK(res2)) { | |
14520 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
14521 | } | |
14522 | if (!argp2) { | |
14523 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
14524 | } | |
14525 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
14526 | { | |
14527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14528 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
14529 | wxPyEndAllowThreads(__tstate); | |
14530 | if (PyErr_Occurred()) SWIG_fail; | |
14531 | } | |
14532 | resultobj = SWIG_Py_Void(); | |
14533 | return resultobj; | |
14534 | fail: | |
14535 | return NULL; | |
14536 | } | |
14537 | ||
14538 | ||
14539 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14540 | PyObject *resultobj = 0; | |
14541 | wxFont *arg1 = (wxFont *) 0 ; | |
14542 | wxString *arg2 = 0 ; | |
704eda0c | 14543 | bool result; |
0085ce49 RD |
14544 | void *argp1 = 0 ; |
14545 | int res1 = 0 ; | |
14546 | bool temp2 = false ; | |
14547 | PyObject * obj0 = 0 ; | |
14548 | PyObject * obj1 = 0 ; | |
14549 | char * kwnames[] = { | |
14550 | (char *) "self",(char *) "info", NULL | |
14551 | }; | |
14552 | ||
14553 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
14554 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14555 | if (!SWIG_IsOK(res1)) { | |
14556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14557 | } | |
14558 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14559 | { | |
14560 | arg2 = wxString_in_helper(obj1); | |
14561 | if (arg2 == NULL) SWIG_fail; | |
14562 | temp2 = true; | |
14563 | } | |
14564 | { | |
14565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 14566 | result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2); |
0085ce49 RD |
14567 | wxPyEndAllowThreads(__tstate); |
14568 | if (PyErr_Occurred()) SWIG_fail; | |
14569 | } | |
704eda0c RD |
14570 | { |
14571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14572 | } | |
0085ce49 RD |
14573 | { |
14574 | if (temp2) | |
14575 | delete arg2; | |
14576 | } | |
14577 | return resultobj; | |
14578 | fail: | |
14579 | { | |
14580 | if (temp2) | |
14581 | delete arg2; | |
14582 | } | |
14583 | return NULL; | |
d14a1e28 RD |
14584 | } |
14585 | ||
14586 | ||
0085ce49 RD |
14587 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14588 | PyObject *resultobj = 0; | |
14589 | wxFont *arg1 = (wxFont *) 0 ; | |
14590 | wxString *arg2 = 0 ; | |
704eda0c | 14591 | bool result; |
0085ce49 RD |
14592 | void *argp1 = 0 ; |
14593 | int res1 = 0 ; | |
14594 | bool temp2 = false ; | |
14595 | PyObject * obj0 = 0 ; | |
14596 | PyObject * obj1 = 0 ; | |
14597 | char * kwnames[] = { | |
14598 | (char *) "self",(char *) "info", NULL | |
14599 | }; | |
14600 | ||
14601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
14602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14603 | if (!SWIG_IsOK(res1)) { | |
14604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14605 | } | |
14606 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14607 | { | |
14608 | arg2 = wxString_in_helper(obj1); | |
14609 | if (arg2 == NULL) SWIG_fail; | |
14610 | temp2 = true; | |
14611 | } | |
14612 | { | |
14613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 14614 | result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); |
0085ce49 RD |
14615 | wxPyEndAllowThreads(__tstate); |
14616 | if (PyErr_Occurred()) SWIG_fail; | |
14617 | } | |
704eda0c RD |
14618 | { |
14619 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14620 | } | |
0085ce49 RD |
14621 | { |
14622 | if (temp2) | |
14623 | delete arg2; | |
14624 | } | |
14625 | return resultobj; | |
14626 | fail: | |
14627 | { | |
14628 | if (temp2) | |
14629 | delete arg2; | |
14630 | } | |
14631 | return NULL; | |
d14a1e28 RD |
14632 | } |
14633 | ||
14634 | ||
0085ce49 RD |
14635 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14636 | PyObject *resultobj = 0; | |
14637 | wxFont *arg1 = (wxFont *) 0 ; | |
14638 | wxString result; | |
14639 | void *argp1 = 0 ; | |
14640 | int res1 = 0 ; | |
14641 | PyObject *swig_obj[1] ; | |
14642 | ||
14643 | if (!args) SWIG_fail; | |
14644 | swig_obj[0] = args; | |
14645 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14646 | if (!SWIG_IsOK(res1)) { | |
14647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14648 | } | |
14649 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14650 | { | |
14651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14652 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
14653 | wxPyEndAllowThreads(__tstate); | |
14654 | if (PyErr_Occurred()) SWIG_fail; | |
14655 | } | |
14656 | { | |
14657 | #if wxUSE_UNICODE | |
14658 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14659 | #else | |
14660 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14661 | #endif | |
14662 | } | |
14663 | return resultobj; | |
14664 | fail: | |
14665 | return NULL; | |
d14a1e28 RD |
14666 | } |
14667 | ||
14668 | ||
0085ce49 RD |
14669 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14670 | PyObject *resultobj = 0; | |
14671 | wxFont *arg1 = (wxFont *) 0 ; | |
14672 | wxString result; | |
14673 | void *argp1 = 0 ; | |
14674 | int res1 = 0 ; | |
14675 | PyObject *swig_obj[1] ; | |
14676 | ||
14677 | if (!args) SWIG_fail; | |
14678 | swig_obj[0] = args; | |
14679 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14680 | if (!SWIG_IsOK(res1)) { | |
14681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14682 | } | |
14683 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14684 | { | |
14685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14686 | result = ((wxFont const *)arg1)->GetStyleString(); | |
14687 | wxPyEndAllowThreads(__tstate); | |
14688 | if (PyErr_Occurred()) SWIG_fail; | |
14689 | } | |
14690 | { | |
14691 | #if wxUSE_UNICODE | |
14692 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14693 | #else | |
14694 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14695 | #endif | |
14696 | } | |
14697 | return resultobj; | |
14698 | fail: | |
14699 | return NULL; | |
d14a1e28 RD |
14700 | } |
14701 | ||
14702 | ||
0085ce49 RD |
14703 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14704 | PyObject *resultobj = 0; | |
14705 | wxFont *arg1 = (wxFont *) 0 ; | |
14706 | wxString result; | |
14707 | void *argp1 = 0 ; | |
14708 | int res1 = 0 ; | |
14709 | PyObject *swig_obj[1] ; | |
14710 | ||
14711 | if (!args) SWIG_fail; | |
14712 | swig_obj[0] = args; | |
14713 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14714 | if (!SWIG_IsOK(res1)) { | |
14715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14716 | } | |
14717 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14718 | { | |
14719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14720 | result = ((wxFont const *)arg1)->GetWeightString(); | |
14721 | wxPyEndAllowThreads(__tstate); | |
14722 | if (PyErr_Occurred()) SWIG_fail; | |
14723 | } | |
14724 | { | |
d14a1e28 | 14725 | #if wxUSE_UNICODE |
0085ce49 | 14726 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 14727 | #else |
0085ce49 | 14728 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 14729 | #endif |
0085ce49 RD |
14730 | } |
14731 | return resultobj; | |
14732 | fail: | |
14733 | return NULL; | |
14734 | } | |
14735 | ||
14736 | ||
14737 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14738 | PyObject *resultobj = 0; | |
14739 | wxFont *arg1 = (wxFont *) 0 ; | |
14740 | bool arg2 = (bool) true ; | |
14741 | void *argp1 = 0 ; | |
14742 | int res1 = 0 ; | |
14743 | bool val2 ; | |
14744 | int ecode2 = 0 ; | |
14745 | PyObject * obj0 = 0 ; | |
14746 | PyObject * obj1 = 0 ; | |
14747 | char * kwnames[] = { | |
14748 | (char *) "self",(char *) "no", NULL | |
14749 | }; | |
14750 | ||
14751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
14752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14753 | if (!SWIG_IsOK(res1)) { | |
14754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14755 | } | |
14756 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14757 | if (obj1) { | |
14758 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
14759 | if (!SWIG_IsOK(ecode2)) { | |
14760 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
14761 | } | |
14762 | arg2 = static_cast< bool >(val2); | |
14763 | } | |
14764 | { | |
14765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14766 | (arg1)->SetNoAntiAliasing(arg2); | |
14767 | wxPyEndAllowThreads(__tstate); | |
14768 | if (PyErr_Occurred()) SWIG_fail; | |
14769 | } | |
14770 | resultobj = SWIG_Py_Void(); | |
14771 | return resultobj; | |
14772 | fail: | |
14773 | return NULL; | |
d14a1e28 RD |
14774 | } |
14775 | ||
14776 | ||
0085ce49 RD |
14777 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14778 | PyObject *resultobj = 0; | |
14779 | wxFont *arg1 = (wxFont *) 0 ; | |
14780 | bool result; | |
14781 | void *argp1 = 0 ; | |
14782 | int res1 = 0 ; | |
14783 | PyObject *swig_obj[1] ; | |
14784 | ||
14785 | if (!args) SWIG_fail; | |
14786 | swig_obj[0] = args; | |
14787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14788 | if (!SWIG_IsOK(res1)) { | |
14789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14790 | } | |
14791 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14792 | { | |
14793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14794 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
14795 | wxPyEndAllowThreads(__tstate); | |
14796 | if (PyErr_Occurred()) SWIG_fail; | |
14797 | } | |
14798 | { | |
14799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14800 | } | |
14801 | return resultobj; | |
14802 | fail: | |
14803 | return NULL; | |
d14a1e28 RD |
14804 | } |
14805 | ||
14806 | ||
0085ce49 RD |
14807 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14808 | PyObject *resultobj = 0; | |
14809 | wxFontEncoding result; | |
14810 | ||
14811 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
14812 | { | |
14813 | if (!wxPyCheckForApp()) SWIG_fail; | |
14814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14815 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
14816 | wxPyEndAllowThreads(__tstate); | |
14817 | if (PyErr_Occurred()) SWIG_fail; | |
14818 | } | |
14819 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14820 | return resultobj; | |
14821 | fail: | |
14822 | return NULL; | |
d14a1e28 RD |
14823 | } |
14824 | ||
14825 | ||
0085ce49 RD |
14826 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14827 | PyObject *resultobj = 0; | |
14828 | wxFontEncoding arg1 ; | |
14829 | int val1 ; | |
14830 | int ecode1 = 0 ; | |
14831 | PyObject * obj0 = 0 ; | |
14832 | char * kwnames[] = { | |
14833 | (char *) "encoding", NULL | |
14834 | }; | |
14835 | ||
14836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
14837 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14838 | if (!SWIG_IsOK(ecode1)) { | |
14839 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
14840 | } | |
14841 | arg1 = static_cast< wxFontEncoding >(val1); | |
14842 | { | |
14843 | if (!wxPyCheckForApp()) SWIG_fail; | |
14844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14845 | wxFont::SetDefaultEncoding(arg1); | |
14846 | wxPyEndAllowThreads(__tstate); | |
14847 | if (PyErr_Occurred()) SWIG_fail; | |
14848 | } | |
14849 | resultobj = SWIG_Py_Void(); | |
14850 | return resultobj; | |
14851 | fail: | |
14852 | return NULL; | |
d14a1e28 RD |
14853 | } |
14854 | ||
14855 | ||
0085ce49 RD |
14856 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14857 | PyObject *obj; | |
14858 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14859 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
14860 | return SWIG_Py_Void(); | |
d14a1e28 RD |
14861 | } |
14862 | ||
0085ce49 RD |
14863 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14864 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
14865 | } |
14866 | ||
0085ce49 RD |
14867 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14868 | PyObject *resultobj = 0; | |
14869 | wxPyFontEnumerator *result = 0 ; | |
14870 | ||
14871 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
14872 | { | |
14873 | if (!wxPyCheckForApp()) SWIG_fail; | |
14874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14875 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
14876 | wxPyEndAllowThreads(__tstate); | |
14877 | if (PyErr_Occurred()) SWIG_fail; | |
14878 | } | |
14879 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
14880 | return resultobj; | |
14881 | fail: | |
14882 | return NULL; | |
d14a1e28 RD |
14883 | } |
14884 | ||
14885 | ||
0085ce49 RD |
14886 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14887 | PyObject *resultobj = 0; | |
14888 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
14889 | void *argp1 = 0 ; | |
14890 | int res1 = 0 ; | |
14891 | PyObject *swig_obj[1] ; | |
14892 | ||
14893 | if (!args) SWIG_fail; | |
14894 | swig_obj[0] = args; | |
14895 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
14896 | if (!SWIG_IsOK(res1)) { | |
14897 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
14898 | } | |
14899 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
14900 | { | |
14901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14902 | delete arg1; | |
d14a1e28 | 14903 | |
0085ce49 RD |
14904 | wxPyEndAllowThreads(__tstate); |
14905 | if (PyErr_Occurred()) SWIG_fail; | |
14906 | } | |
14907 | resultobj = SWIG_Py_Void(); | |
14908 | return resultobj; | |
14909 | fail: | |
14910 | return NULL; | |
14911 | } | |
14912 | ||
14913 | ||
14914 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14915 | PyObject *resultobj = 0; | |
14916 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
14917 | PyObject *arg2 = (PyObject *) 0 ; | |
14918 | PyObject *arg3 = (PyObject *) 0 ; | |
14919 | bool arg4 ; | |
14920 | void *argp1 = 0 ; | |
14921 | int res1 = 0 ; | |
14922 | bool val4 ; | |
14923 | int ecode4 = 0 ; | |
14924 | PyObject * obj0 = 0 ; | |
14925 | PyObject * obj1 = 0 ; | |
14926 | PyObject * obj2 = 0 ; | |
14927 | PyObject * obj3 = 0 ; | |
14928 | char * kwnames[] = { | |
14929 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
14930 | }; | |
14931 | ||
14932 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
14933 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
14934 | if (!SWIG_IsOK(res1)) { | |
14935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
14936 | } | |
14937 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
14938 | arg2 = obj1; | |
14939 | arg3 = obj2; | |
14940 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
14941 | if (!SWIG_IsOK(ecode4)) { | |
14942 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'"); | |
14943 | } | |
14944 | arg4 = static_cast< bool >(val4); | |
14945 | { | |
14946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14947 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
14948 | wxPyEndAllowThreads(__tstate); | |
14949 | if (PyErr_Occurred()) SWIG_fail; | |
14950 | } | |
14951 | resultobj = SWIG_Py_Void(); | |
14952 | return resultobj; | |
14953 | fail: | |
14954 | return NULL; | |
14955 | } | |
14956 | ||
14957 | ||
14958 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14959 | PyObject *resultobj = 0; | |
14960 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
14961 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
14962 | bool arg3 = (bool) false ; | |
14963 | bool result; | |
14964 | void *argp1 = 0 ; | |
14965 | int res1 = 0 ; | |
14966 | int val2 ; | |
14967 | int ecode2 = 0 ; | |
14968 | bool val3 ; | |
14969 | int ecode3 = 0 ; | |
14970 | PyObject * obj0 = 0 ; | |
14971 | PyObject * obj1 = 0 ; | |
14972 | PyObject * obj2 = 0 ; | |
14973 | char * kwnames[] = { | |
14974 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
14975 | }; | |
14976 | ||
14977 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14978 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
14979 | if (!SWIG_IsOK(res1)) { | |
14980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
14981 | } | |
14982 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
14983 | if (obj1) { | |
14984 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14985 | if (!SWIG_IsOK(ecode2)) { | |
14986 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14987 | } | |
14988 | arg2 = static_cast< wxFontEncoding >(val2); | |
14989 | } | |
14990 | if (obj2) { | |
14991 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
14992 | if (!SWIG_IsOK(ecode3)) { | |
14993 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
14994 | } | |
14995 | arg3 = static_cast< bool >(val3); | |
14996 | } | |
14997 | { | |
14998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14999 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
15000 | wxPyEndAllowThreads(__tstate); | |
15001 | if (PyErr_Occurred()) SWIG_fail; | |
15002 | } | |
15003 | { | |
15004 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15005 | } | |
15006 | return resultobj; | |
15007 | fail: | |
15008 | return NULL; | |
15009 | } | |
15010 | ||
15011 | ||
15012 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15013 | PyObject *resultobj = 0; | |
15014 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15015 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15016 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15017 | bool result; | |
15018 | void *argp1 = 0 ; | |
15019 | int res1 = 0 ; | |
15020 | bool temp2 = false ; | |
15021 | PyObject * obj0 = 0 ; | |
15022 | PyObject * obj1 = 0 ; | |
15023 | char * kwnames[] = { | |
15024 | (char *) "self",(char *) "facename", NULL | |
15025 | }; | |
15026 | ||
15027 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
15028 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15029 | if (!SWIG_IsOK(res1)) { | |
15030 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15031 | } | |
15032 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15033 | if (obj1) { | |
d14a1e28 | 15034 | { |
0085ce49 RD |
15035 | arg2 = wxString_in_helper(obj1); |
15036 | if (arg2 == NULL) SWIG_fail; | |
15037 | temp2 = true; | |
d14a1e28 | 15038 | } |
0085ce49 RD |
15039 | } |
15040 | { | |
15041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15042 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
15043 | wxPyEndAllowThreads(__tstate); | |
15044 | if (PyErr_Occurred()) SWIG_fail; | |
15045 | } | |
15046 | { | |
15047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15048 | } | |
15049 | { | |
15050 | if (temp2) | |
15051 | delete arg2; | |
15052 | } | |
15053 | return resultobj; | |
15054 | fail: | |
15055 | { | |
15056 | if (temp2) | |
15057 | delete arg2; | |
15058 | } | |
15059 | return NULL; | |
d14a1e28 RD |
15060 | } |
15061 | ||
15062 | ||
0085ce49 RD |
15063 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15064 | PyObject *resultobj = 0; | |
0085ce49 | 15065 | PyObject *result = 0 ; |
0085ce49 | 15066 | |
704eda0c | 15067 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail; |
0085ce49 RD |
15068 | { |
15069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15070 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(); |
0085ce49 RD |
15071 | wxPyEndAllowThreads(__tstate); |
15072 | if (PyErr_Occurred()) SWIG_fail; | |
15073 | } | |
15074 | resultobj = result; | |
15075 | return resultobj; | |
15076 | fail: | |
15077 | return NULL; | |
d14a1e28 RD |
15078 | } |
15079 | ||
15080 | ||
0085ce49 RD |
15081 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15082 | PyObject *resultobj = 0; | |
0085ce49 | 15083 | PyObject *result = 0 ; |
0085ce49 | 15084 | |
704eda0c | 15085 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail; |
0085ce49 RD |
15086 | { |
15087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15088 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(); |
0085ce49 RD |
15089 | wxPyEndAllowThreads(__tstate); |
15090 | if (PyErr_Occurred()) SWIG_fail; | |
15091 | } | |
15092 | resultobj = result; | |
15093 | return resultobj; | |
15094 | fail: | |
15095 | return NULL; | |
d14a1e28 RD |
15096 | } |
15097 | ||
15098 | ||
704eda0c RD |
15099 | SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15100 | PyObject *resultobj = 0; | |
15101 | wxString *arg1 = 0 ; | |
15102 | bool result; | |
15103 | bool temp1 = false ; | |
15104 | PyObject * obj0 = 0 ; | |
15105 | char * kwnames[] = { | |
15106 | (char *) "str", NULL | |
15107 | }; | |
15108 | ||
15109 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail; | |
15110 | { | |
15111 | arg1 = wxString_in_helper(obj0); | |
15112 | if (arg1 == NULL) SWIG_fail; | |
15113 | temp1 = true; | |
15114 | } | |
15115 | { | |
15116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15117 | result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1); | |
15118 | wxPyEndAllowThreads(__tstate); | |
15119 | if (PyErr_Occurred()) SWIG_fail; | |
15120 | } | |
15121 | { | |
15122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15123 | } | |
15124 | { | |
15125 | if (temp1) | |
15126 | delete arg1; | |
15127 | } | |
15128 | return resultobj; | |
15129 | fail: | |
15130 | { | |
15131 | if (temp1) | |
15132 | delete arg1; | |
15133 | } | |
15134 | return NULL; | |
15135 | } | |
15136 | ||
15137 | ||
0085ce49 RD |
15138 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15139 | PyObject *obj; | |
15140 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15141 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
15142 | return SWIG_Py_Void(); | |
d14a1e28 RD |
15143 | } |
15144 | ||
0085ce49 RD |
15145 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15146 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
15147 | } |
15148 | ||
0085ce49 RD |
15149 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15150 | PyObject *resultobj = 0; | |
15151 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15152 | int arg2 ; | |
15153 | void *argp1 = 0 ; | |
15154 | int res1 = 0 ; | |
15155 | int val2 ; | |
15156 | int ecode2 = 0 ; | |
15157 | PyObject *swig_obj[2] ; | |
15158 | ||
15159 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
15160 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15161 | if (!SWIG_IsOK(res1)) { | |
15162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15163 | } | |
15164 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15165 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
15166 | if (!SWIG_IsOK(ecode2)) { | |
15167 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
15168 | } | |
15169 | arg2 = static_cast< int >(val2); | |
15170 | if (arg1) (arg1)->Language = arg2; | |
15171 | ||
15172 | resultobj = SWIG_Py_Void(); | |
15173 | return resultobj; | |
15174 | fail: | |
15175 | return NULL; | |
d14a1e28 RD |
15176 | } |
15177 | ||
15178 | ||
0085ce49 RD |
15179 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15180 | PyObject *resultobj = 0; | |
15181 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15182 | int result; | |
15183 | void *argp1 = 0 ; | |
15184 | int res1 = 0 ; | |
15185 | PyObject *swig_obj[1] ; | |
15186 | ||
15187 | if (!args) SWIG_fail; | |
15188 | swig_obj[0] = args; | |
15189 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15190 | if (!SWIG_IsOK(res1)) { | |
15191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15192 | } | |
15193 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15194 | result = (int) ((arg1)->Language); | |
15195 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15196 | return resultobj; | |
15197 | fail: | |
15198 | return NULL; | |
15199 | } | |
15200 | ||
15201 | ||
15202 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15203 | PyObject *resultobj = 0; | |
15204 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15205 | wxString *arg2 = (wxString *) 0 ; | |
15206 | void *argp1 = 0 ; | |
15207 | int res1 = 0 ; | |
15208 | bool temp2 = false ; | |
15209 | PyObject *swig_obj[2] ; | |
15210 | ||
15211 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
15212 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15213 | if (!SWIG_IsOK(res1)) { | |
15214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15215 | } | |
15216 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15217 | { | |
15218 | arg2 = wxString_in_helper(swig_obj[1]); | |
15219 | if (arg2 == NULL) SWIG_fail; | |
15220 | temp2 = true; | |
15221 | } | |
15222 | if (arg1) (arg1)->CanonicalName = *arg2; | |
15223 | ||
15224 | resultobj = SWIG_Py_Void(); | |
15225 | { | |
15226 | if (temp2) | |
15227 | delete arg2; | |
15228 | } | |
15229 | return resultobj; | |
15230 | fail: | |
15231 | { | |
15232 | if (temp2) | |
15233 | delete arg2; | |
15234 | } | |
15235 | return NULL; | |
d14a1e28 RD |
15236 | } |
15237 | ||
15238 | ||
0085ce49 RD |
15239 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15240 | PyObject *resultobj = 0; | |
15241 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15242 | wxString *result = 0 ; | |
15243 | void *argp1 = 0 ; | |
15244 | int res1 = 0 ; | |
15245 | PyObject *swig_obj[1] ; | |
15246 | ||
15247 | if (!args) SWIG_fail; | |
15248 | swig_obj[0] = args; | |
15249 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15250 | if (!SWIG_IsOK(res1)) { | |
15251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15252 | } | |
15253 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15254 | result = (wxString *)& ((arg1)->CanonicalName); | |
15255 | { | |
093d3ff1 | 15256 | #if wxUSE_UNICODE |
0085ce49 | 15257 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
093d3ff1 | 15258 | #else |
0085ce49 | 15259 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
093d3ff1 | 15260 | #endif |
0085ce49 RD |
15261 | } |
15262 | return resultobj; | |
15263 | fail: | |
15264 | return NULL; | |
d14a1e28 RD |
15265 | } |
15266 | ||
15267 | ||
0085ce49 RD |
15268 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15269 | PyObject *resultobj = 0; | |
15270 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15271 | wxString *arg2 = (wxString *) 0 ; | |
15272 | void *argp1 = 0 ; | |
15273 | int res1 = 0 ; | |
15274 | bool temp2 = false ; | |
15275 | PyObject *swig_obj[2] ; | |
15276 | ||
15277 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
15278 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15279 | if (!SWIG_IsOK(res1)) { | |
15280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15281 | } | |
15282 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15283 | { | |
15284 | arg2 = wxString_in_helper(swig_obj[1]); | |
15285 | if (arg2 == NULL) SWIG_fail; | |
15286 | temp2 = true; | |
15287 | } | |
15288 | if (arg1) (arg1)->Description = *arg2; | |
15289 | ||
15290 | resultobj = SWIG_Py_Void(); | |
15291 | { | |
15292 | if (temp2) | |
15293 | delete arg2; | |
15294 | } | |
15295 | return resultobj; | |
15296 | fail: | |
15297 | { | |
15298 | if (temp2) | |
15299 | delete arg2; | |
15300 | } | |
15301 | return NULL; | |
d14a1e28 RD |
15302 | } |
15303 | ||
15304 | ||
0085ce49 RD |
15305 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15306 | PyObject *resultobj = 0; | |
15307 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
15308 | wxString *result = 0 ; | |
15309 | void *argp1 = 0 ; | |
15310 | int res1 = 0 ; | |
15311 | PyObject *swig_obj[1] ; | |
15312 | ||
15313 | if (!args) SWIG_fail; | |
15314 | swig_obj[0] = args; | |
15315 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15316 | if (!SWIG_IsOK(res1)) { | |
15317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
15318 | } | |
15319 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
15320 | result = (wxString *)& ((arg1)->Description); | |
15321 | { | |
d14a1e28 | 15322 | #if wxUSE_UNICODE |
0085ce49 | 15323 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 15324 | #else |
0085ce49 | 15325 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 | 15326 | #endif |
0085ce49 RD |
15327 | } |
15328 | return resultobj; | |
15329 | fail: | |
15330 | return NULL; | |
15331 | } | |
15332 | ||
15333 | ||
15334 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15335 | PyObject *obj; | |
15336 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15337 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
15338 | return SWIG_Py_Void(); | |
15339 | } | |
15340 | ||
15341 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15342 | PyObject *resultobj = 0; | |
15343 | int arg1 = (int) -1 ; | |
15344 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
15345 | wxLocale *result = 0 ; | |
15346 | int val1 ; | |
15347 | int ecode1 = 0 ; | |
15348 | int val2 ; | |
15349 | int ecode2 = 0 ; | |
15350 | PyObject * obj0 = 0 ; | |
15351 | PyObject * obj1 = 0 ; | |
15352 | char * kwnames[] = { | |
15353 | (char *) "language",(char *) "flags", NULL | |
15354 | }; | |
15355 | ||
15356 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
15357 | if (obj0) { | |
15358 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15359 | if (!SWIG_IsOK(ecode1)) { | |
15360 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
15361 | } | |
15362 | arg1 = static_cast< int >(val1); | |
15363 | } | |
15364 | if (obj1) { | |
15365 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15366 | if (!SWIG_IsOK(ecode2)) { | |
15367 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
15368 | } | |
15369 | arg2 = static_cast< int >(val2); | |
15370 | } | |
15371 | { | |
15372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15373 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
15374 | wxPyEndAllowThreads(__tstate); | |
15375 | if (PyErr_Occurred()) SWIG_fail; | |
15376 | } | |
15377 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
15378 | return resultobj; | |
15379 | fail: | |
15380 | return NULL; | |
d14a1e28 RD |
15381 | } |
15382 | ||
15383 | ||
0085ce49 RD |
15384 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15385 | PyObject *resultobj = 0; | |
15386 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15387 | void *argp1 = 0 ; | |
15388 | int res1 = 0 ; | |
15389 | PyObject *swig_obj[1] ; | |
15390 | ||
15391 | if (!args) SWIG_fail; | |
15392 | swig_obj[0] = args; | |
15393 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
15394 | if (!SWIG_IsOK(res1)) { | |
15395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15396 | } | |
15397 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15398 | { | |
15399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15400 | delete arg1; | |
d14a1e28 | 15401 | |
0085ce49 RD |
15402 | wxPyEndAllowThreads(__tstate); |
15403 | if (PyErr_Occurred()) SWIG_fail; | |
15404 | } | |
15405 | resultobj = SWIG_Py_Void(); | |
15406 | return resultobj; | |
15407 | fail: | |
15408 | return NULL; | |
15409 | } | |
15410 | ||
15411 | ||
15412 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15413 | PyObject *resultobj = 0; | |
15414 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15415 | wxString *arg2 = 0 ; | |
15416 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
15417 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
15418 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
15419 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
15420 | bool arg5 = (bool) true ; | |
15421 | bool arg6 = (bool) false ; | |
15422 | bool result; | |
15423 | void *argp1 = 0 ; | |
15424 | int res1 = 0 ; | |
15425 | bool temp2 = false ; | |
15426 | bool temp3 = false ; | |
15427 | bool temp4 = false ; | |
15428 | bool val5 ; | |
15429 | int ecode5 = 0 ; | |
15430 | bool val6 ; | |
15431 | int ecode6 = 0 ; | |
15432 | PyObject * obj0 = 0 ; | |
15433 | PyObject * obj1 = 0 ; | |
15434 | PyObject * obj2 = 0 ; | |
15435 | PyObject * obj3 = 0 ; | |
15436 | PyObject * obj4 = 0 ; | |
15437 | PyObject * obj5 = 0 ; | |
15438 | char * kwnames[] = { | |
15439 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
15440 | }; | |
15441 | ||
15442 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
15443 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15444 | if (!SWIG_IsOK(res1)) { | |
15445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15446 | } | |
15447 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15448 | { | |
15449 | arg2 = wxString_in_helper(obj1); | |
15450 | if (arg2 == NULL) SWIG_fail; | |
15451 | temp2 = true; | |
15452 | } | |
15453 | if (obj2) { | |
d14a1e28 | 15454 | { |
0085ce49 RD |
15455 | arg3 = wxString_in_helper(obj2); |
15456 | if (arg3 == NULL) SWIG_fail; | |
15457 | temp3 = true; | |
d14a1e28 | 15458 | } |
0085ce49 RD |
15459 | } |
15460 | if (obj3) { | |
093d3ff1 | 15461 | { |
0085ce49 RD |
15462 | arg4 = wxString_in_helper(obj3); |
15463 | if (arg4 == NULL) SWIG_fail; | |
15464 | temp4 = true; | |
093d3ff1 | 15465 | } |
0085ce49 RD |
15466 | } |
15467 | if (obj4) { | |
15468 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
15469 | if (!SWIG_IsOK(ecode5)) { | |
15470 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
15471 | } | |
15472 | arg5 = static_cast< bool >(val5); | |
15473 | } | |
15474 | if (obj5) { | |
15475 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
15476 | if (!SWIG_IsOK(ecode6)) { | |
15477 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
15478 | } | |
15479 | arg6 = static_cast< bool >(val6); | |
15480 | } | |
15481 | { | |
15482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15483 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
15484 | wxPyEndAllowThreads(__tstate); | |
15485 | if (PyErr_Occurred()) SWIG_fail; | |
15486 | } | |
15487 | { | |
15488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15489 | } | |
15490 | { | |
15491 | if (temp2) | |
15492 | delete arg2; | |
15493 | } | |
15494 | { | |
15495 | if (temp3) | |
15496 | delete arg3; | |
15497 | } | |
15498 | { | |
15499 | if (temp4) | |
15500 | delete arg4; | |
15501 | } | |
15502 | return resultobj; | |
15503 | fail: | |
15504 | { | |
15505 | if (temp2) | |
15506 | delete arg2; | |
15507 | } | |
15508 | { | |
15509 | if (temp3) | |
15510 | delete arg3; | |
15511 | } | |
15512 | { | |
15513 | if (temp4) | |
15514 | delete arg4; | |
15515 | } | |
15516 | return NULL; | |
15517 | } | |
15518 | ||
15519 | ||
15520 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15521 | PyObject *resultobj = 0; | |
15522 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15523 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
15524 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
15525 | bool result; | |
15526 | void *argp1 = 0 ; | |
15527 | int res1 = 0 ; | |
15528 | int val2 ; | |
15529 | int ecode2 = 0 ; | |
15530 | int val3 ; | |
15531 | int ecode3 = 0 ; | |
15532 | PyObject * obj0 = 0 ; | |
15533 | PyObject * obj1 = 0 ; | |
15534 | PyObject * obj2 = 0 ; | |
15535 | char * kwnames[] = { | |
15536 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
15537 | }; | |
15538 | ||
15539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15541 | if (!SWIG_IsOK(res1)) { | |
15542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15543 | } | |
15544 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15545 | if (obj1) { | |
15546 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15547 | if (!SWIG_IsOK(ecode2)) { | |
15548 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
15549 | } | |
15550 | arg2 = static_cast< int >(val2); | |
15551 | } | |
15552 | if (obj2) { | |
15553 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
15554 | if (!SWIG_IsOK(ecode3)) { | |
15555 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
15556 | } | |
15557 | arg3 = static_cast< int >(val3); | |
15558 | } | |
15559 | { | |
15560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15561 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
15562 | wxPyEndAllowThreads(__tstate); | |
15563 | if (PyErr_Occurred()) SWIG_fail; | |
15564 | } | |
15565 | { | |
15566 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15567 | } | |
15568 | return resultobj; | |
15569 | fail: | |
15570 | return NULL; | |
093d3ff1 RD |
15571 | } |
15572 | ||
15573 | ||
0085ce49 RD |
15574 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15575 | PyObject *resultobj = 0; | |
15576 | int result; | |
15577 | ||
15578 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
15579 | { | |
15580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15581 | result = (int)wxLocale::GetSystemLanguage(); | |
15582 | wxPyEndAllowThreads(__tstate); | |
15583 | if (PyErr_Occurred()) SWIG_fail; | |
15584 | } | |
15585 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15586 | return resultobj; | |
15587 | fail: | |
15588 | return NULL; | |
d14a1e28 RD |
15589 | } |
15590 | ||
15591 | ||
0085ce49 RD |
15592 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15593 | PyObject *resultobj = 0; | |
15594 | wxFontEncoding result; | |
15595 | ||
15596 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
15597 | { | |
15598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15599 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
15600 | wxPyEndAllowThreads(__tstate); | |
15601 | if (PyErr_Occurred()) SWIG_fail; | |
15602 | } | |
15603 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15604 | return resultobj; | |
15605 | fail: | |
15606 | return NULL; | |
d14a1e28 RD |
15607 | } |
15608 | ||
15609 | ||
0085ce49 RD |
15610 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15611 | PyObject *resultobj = 0; | |
15612 | wxString result; | |
15613 | ||
15614 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
15615 | { | |
15616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15617 | result = wxLocale::GetSystemEncodingName(); | |
15618 | wxPyEndAllowThreads(__tstate); | |
15619 | if (PyErr_Occurred()) SWIG_fail; | |
15620 | } | |
15621 | { | |
d14a1e28 | 15622 | #if wxUSE_UNICODE |
0085ce49 | 15623 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15624 | #else |
0085ce49 | 15625 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d14a1e28 | 15626 | #endif |
0085ce49 RD |
15627 | } |
15628 | return resultobj; | |
15629 | fail: | |
15630 | return NULL; | |
d14a1e28 RD |
15631 | } |
15632 | ||
15633 | ||
0085ce49 RD |
15634 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15635 | PyObject *resultobj = 0; | |
15636 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15637 | bool result; | |
15638 | void *argp1 = 0 ; | |
15639 | int res1 = 0 ; | |
15640 | PyObject *swig_obj[1] ; | |
15641 | ||
15642 | if (!args) SWIG_fail; | |
15643 | swig_obj[0] = args; | |
15644 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15645 | if (!SWIG_IsOK(res1)) { | |
15646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
15647 | } | |
15648 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15649 | { | |
15650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15651 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
15652 | wxPyEndAllowThreads(__tstate); | |
15653 | if (PyErr_Occurred()) SWIG_fail; | |
15654 | } | |
15655 | { | |
15656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15657 | } | |
15658 | return resultobj; | |
15659 | fail: | |
15660 | return NULL; | |
093d3ff1 | 15661 | } |
0085ce49 RD |
15662 | |
15663 | ||
15664 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
15665 | PyObject *resultobj = 0; | |
15666 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15667 | wxString result; | |
15668 | void *argp1 = 0 ; | |
15669 | int res1 = 0 ; | |
15670 | PyObject *swig_obj[1] ; | |
15671 | ||
15672 | if (!args) SWIG_fail; | |
15673 | swig_obj[0] = args; | |
15674 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15675 | if (!SWIG_IsOK(res1)) { | |
15676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
15677 | } | |
15678 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15679 | { | |
15680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15681 | result = ((wxLocale const *)arg1)->GetLocale(); | |
15682 | wxPyEndAllowThreads(__tstate); | |
15683 | if (PyErr_Occurred()) SWIG_fail; | |
15684 | } | |
15685 | { | |
15686 | #if wxUSE_UNICODE | |
15687 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15688 | #else | |
15689 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15690 | #endif | |
15691 | } | |
15692 | return resultobj; | |
15693 | fail: | |
15694 | return NULL; | |
d14a1e28 RD |
15695 | } |
15696 | ||
15697 | ||
0085ce49 RD |
15698 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15699 | PyObject *resultobj = 0; | |
15700 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15701 | int result; | |
15702 | void *argp1 = 0 ; | |
15703 | int res1 = 0 ; | |
15704 | PyObject *swig_obj[1] ; | |
15705 | ||
15706 | if (!args) SWIG_fail; | |
15707 | swig_obj[0] = args; | |
15708 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15709 | if (!SWIG_IsOK(res1)) { | |
15710 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
15711 | } | |
15712 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15713 | { | |
15714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15715 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
15716 | wxPyEndAllowThreads(__tstate); | |
15717 | if (PyErr_Occurred()) SWIG_fail; | |
15718 | } | |
15719 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15720 | return resultobj; | |
15721 | fail: | |
15722 | return NULL; | |
d14a1e28 RD |
15723 | } |
15724 | ||
15725 | ||
0085ce49 RD |
15726 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15727 | PyObject *resultobj = 0; | |
15728 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15729 | wxString result; | |
15730 | void *argp1 = 0 ; | |
15731 | int res1 = 0 ; | |
15732 | PyObject *swig_obj[1] ; | |
15733 | ||
15734 | if (!args) SWIG_fail; | |
15735 | swig_obj[0] = args; | |
15736 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15737 | if (!SWIG_IsOK(res1)) { | |
15738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
15739 | } | |
15740 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15741 | { | |
15742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15743 | result = ((wxLocale const *)arg1)->GetSysName(); | |
15744 | wxPyEndAllowThreads(__tstate); | |
15745 | if (PyErr_Occurred()) SWIG_fail; | |
15746 | } | |
15747 | { | |
15748 | #if wxUSE_UNICODE | |
15749 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15750 | #else | |
15751 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15752 | #endif | |
15753 | } | |
15754 | return resultobj; | |
15755 | fail: | |
15756 | return NULL; | |
d14a1e28 RD |
15757 | } |
15758 | ||
15759 | ||
0085ce49 RD |
15760 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15761 | PyObject *resultobj = 0; | |
15762 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15763 | wxString result; | |
15764 | void *argp1 = 0 ; | |
15765 | int res1 = 0 ; | |
15766 | PyObject *swig_obj[1] ; | |
15767 | ||
15768 | if (!args) SWIG_fail; | |
15769 | swig_obj[0] = args; | |
15770 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15771 | if (!SWIG_IsOK(res1)) { | |
15772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
15773 | } | |
15774 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15775 | { | |
15776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15777 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
15778 | wxPyEndAllowThreads(__tstate); | |
15779 | if (PyErr_Occurred()) SWIG_fail; | |
15780 | } | |
15781 | { | |
15782 | #if wxUSE_UNICODE | |
15783 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15784 | #else | |
15785 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15786 | #endif | |
15787 | } | |
15788 | return resultobj; | |
15789 | fail: | |
15790 | return NULL; | |
d14a1e28 RD |
15791 | } |
15792 | ||
15793 | ||
0085ce49 RD |
15794 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15795 | PyObject *resultobj = 0; | |
15796 | wxString *arg1 = 0 ; | |
15797 | bool temp1 = false ; | |
15798 | PyObject * obj0 = 0 ; | |
15799 | char * kwnames[] = { | |
15800 | (char *) "prefix", NULL | |
15801 | }; | |
15802 | ||
15803 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
15804 | { | |
15805 | arg1 = wxString_in_helper(obj0); | |
15806 | if (arg1 == NULL) SWIG_fail; | |
15807 | temp1 = true; | |
15808 | } | |
15809 | { | |
15810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15811 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
15812 | wxPyEndAllowThreads(__tstate); | |
15813 | if (PyErr_Occurred()) SWIG_fail; | |
15814 | } | |
15815 | resultobj = SWIG_Py_Void(); | |
15816 | { | |
15817 | if (temp1) | |
15818 | delete arg1; | |
15819 | } | |
15820 | return resultobj; | |
15821 | fail: | |
15822 | { | |
15823 | if (temp1) | |
15824 | delete arg1; | |
15825 | } | |
15826 | return NULL; | |
15827 | } | |
15828 | ||
15829 | ||
15830 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15831 | PyObject *resultobj = 0; | |
15832 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15833 | wxString *arg2 = 0 ; | |
15834 | bool result; | |
15835 | void *argp1 = 0 ; | |
15836 | int res1 = 0 ; | |
15837 | bool temp2 = false ; | |
15838 | PyObject * obj0 = 0 ; | |
15839 | PyObject * obj1 = 0 ; | |
15840 | char * kwnames[] = { | |
15841 | (char *) "self",(char *) "szDomain", NULL | |
15842 | }; | |
15843 | ||
15844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
15845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15846 | if (!SWIG_IsOK(res1)) { | |
15847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
15848 | } | |
15849 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15850 | { | |
15851 | arg2 = wxString_in_helper(obj1); | |
15852 | if (arg2 == NULL) SWIG_fail; | |
15853 | temp2 = true; | |
15854 | } | |
15855 | { | |
15856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15857 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
15858 | wxPyEndAllowThreads(__tstate); | |
15859 | if (PyErr_Occurred()) SWIG_fail; | |
15860 | } | |
15861 | { | |
15862 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15863 | } | |
15864 | { | |
15865 | if (temp2) | |
15866 | delete arg2; | |
15867 | } | |
15868 | return resultobj; | |
15869 | fail: | |
15870 | { | |
15871 | if (temp2) | |
15872 | delete arg2; | |
15873 | } | |
15874 | return NULL; | |
15875 | } | |
15876 | ||
15877 | ||
33d6fd3b RD |
15878 | SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15879 | PyObject *resultobj = 0; | |
15880 | int arg1 ; | |
15881 | bool result; | |
15882 | int val1 ; | |
15883 | int ecode1 = 0 ; | |
15884 | PyObject * obj0 = 0 ; | |
15885 | char * kwnames[] = { | |
15886 | (char *) "lang", NULL | |
15887 | }; | |
15888 | ||
15889 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail; | |
15890 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15891 | if (!SWIG_IsOK(ecode1)) { | |
15892 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'"); | |
15893 | } | |
15894 | arg1 = static_cast< int >(val1); | |
15895 | { | |
15896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15897 | result = (bool)wxLocale::IsAvailable(arg1); | |
15898 | wxPyEndAllowThreads(__tstate); | |
15899 | if (PyErr_Occurred()) SWIG_fail; | |
15900 | } | |
15901 | { | |
15902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15903 | } | |
15904 | return resultobj; | |
15905 | fail: | |
15906 | return NULL; | |
15907 | } | |
15908 | ||
15909 | ||
0085ce49 RD |
15910 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15911 | PyObject *resultobj = 0; | |
15912 | wxLocale *arg1 = (wxLocale *) 0 ; | |
15913 | wxString *arg2 = 0 ; | |
15914 | bool result; | |
15915 | void *argp1 = 0 ; | |
15916 | int res1 = 0 ; | |
15917 | bool temp2 = false ; | |
15918 | PyObject * obj0 = 0 ; | |
15919 | PyObject * obj1 = 0 ; | |
15920 | char * kwnames[] = { | |
15921 | (char *) "self",(char *) "szDomain", NULL | |
15922 | }; | |
15923 | ||
15924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
15925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
15926 | if (!SWIG_IsOK(res1)) { | |
15927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
15928 | } | |
15929 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
15930 | { | |
15931 | arg2 = wxString_in_helper(obj1); | |
15932 | if (arg2 == NULL) SWIG_fail; | |
15933 | temp2 = true; | |
15934 | } | |
15935 | { | |
15936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15937 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
15938 | wxPyEndAllowThreads(__tstate); | |
15939 | if (PyErr_Occurred()) SWIG_fail; | |
15940 | } | |
15941 | { | |
15942 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15943 | } | |
15944 | { | |
15945 | if (temp2) | |
15946 | delete arg2; | |
15947 | } | |
15948 | return resultobj; | |
15949 | fail: | |
15950 | { | |
15951 | if (temp2) | |
15952 | delete arg2; | |
15953 | } | |
15954 | return NULL; | |
d14a1e28 RD |
15955 | } |
15956 | ||
15957 | ||
0085ce49 RD |
15958 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15959 | PyObject *resultobj = 0; | |
15960 | int arg1 ; | |
15961 | wxLanguageInfo *result = 0 ; | |
15962 | int val1 ; | |
15963 | int ecode1 = 0 ; | |
15964 | PyObject * obj0 = 0 ; | |
15965 | char * kwnames[] = { | |
15966 | (char *) "lang", NULL | |
15967 | }; | |
15968 | ||
15969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
15970 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15971 | if (!SWIG_IsOK(ecode1)) { | |
15972 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
15973 | } | |
15974 | arg1 = static_cast< int >(val1); | |
15975 | { | |
15976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15977 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
15978 | wxPyEndAllowThreads(__tstate); | |
15979 | if (PyErr_Occurred()) SWIG_fail; | |
15980 | } | |
15981 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
15982 | return resultobj; | |
15983 | fail: | |
15984 | return NULL; | |
15985 | } | |
15986 | ||
15987 | ||
15988 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15989 | PyObject *resultobj = 0; | |
15990 | int arg1 ; | |
15991 | wxString result; | |
15992 | int val1 ; | |
15993 | int ecode1 = 0 ; | |
15994 | PyObject * obj0 = 0 ; | |
15995 | char * kwnames[] = { | |
15996 | (char *) "lang", NULL | |
15997 | }; | |
15998 | ||
15999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
16000 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16001 | if (!SWIG_IsOK(ecode1)) { | |
16002 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
16003 | } | |
16004 | arg1 = static_cast< int >(val1); | |
16005 | { | |
16006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16007 | result = wxLocale::GetLanguageName(arg1); | |
16008 | wxPyEndAllowThreads(__tstate); | |
16009 | if (PyErr_Occurred()) SWIG_fail; | |
16010 | } | |
16011 | { | |
16012 | #if wxUSE_UNICODE | |
16013 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16014 | #else | |
16015 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16016 | #endif | |
16017 | } | |
16018 | return resultobj; | |
16019 | fail: | |
16020 | return NULL; | |
d14a1e28 RD |
16021 | } |
16022 | ||
16023 | ||
0085ce49 RD |
16024 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16025 | PyObject *resultobj = 0; | |
16026 | wxString *arg1 = 0 ; | |
16027 | wxLanguageInfo *result = 0 ; | |
16028 | bool temp1 = false ; | |
16029 | PyObject * obj0 = 0 ; | |
16030 | char * kwnames[] = { | |
16031 | (char *) "locale", NULL | |
16032 | }; | |
16033 | ||
16034 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16035 | { | |
16036 | arg1 = wxString_in_helper(obj0); | |
16037 | if (arg1 == NULL) SWIG_fail; | |
16038 | temp1 = true; | |
16039 | } | |
16040 | { | |
16041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 RD |
16042 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
16043 | wxPyEndAllowThreads(__tstate); | |
16044 | if (PyErr_Occurred()) SWIG_fail; | |
16045 | } | |
16046 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16047 | { | |
16048 | if (temp1) | |
16049 | delete arg1; | |
16050 | } | |
16051 | return resultobj; | |
16052 | fail: | |
16053 | { | |
16054 | if (temp1) | |
16055 | delete arg1; | |
16056 | } | |
16057 | return NULL; | |
16058 | } | |
16059 | ||
16060 | ||
16061 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16062 | PyObject *resultobj = 0; | |
16063 | wxLanguageInfo *arg1 = 0 ; | |
16064 | void *argp1 = 0 ; | |
16065 | int res1 = 0 ; | |
16066 | PyObject * obj0 = 0 ; | |
16067 | char * kwnames[] = { | |
16068 | (char *) "info", NULL | |
16069 | }; | |
16070 | ||
16071 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
16072 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
16073 | if (!SWIG_IsOK(res1)) { | |
16074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16075 | } | |
16076 | if (!argp1) { | |
16077 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16078 | } | |
16079 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16080 | { | |
16081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16082 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
16083 | wxPyEndAllowThreads(__tstate); | |
16084 | if (PyErr_Occurred()) SWIG_fail; | |
16085 | } | |
16086 | resultobj = SWIG_Py_Void(); | |
16087 | return resultobj; | |
16088 | fail: | |
16089 | return NULL; | |
16090 | } | |
16091 | ||
16092 | ||
16093 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16094 | PyObject *resultobj = 0; | |
16095 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16096 | wxString *arg2 = 0 ; | |
16097 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16098 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16099 | wxString result; | |
16100 | void *argp1 = 0 ; | |
16101 | int res1 = 0 ; | |
16102 | bool temp2 = false ; | |
16103 | bool temp3 = false ; | |
16104 | PyObject * obj0 = 0 ; | |
16105 | PyObject * obj1 = 0 ; | |
16106 | PyObject * obj2 = 0 ; | |
16107 | char * kwnames[] = { | |
16108 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
16109 | }; | |
16110 | ||
16111 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16112 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16113 | if (!SWIG_IsOK(res1)) { | |
16114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16115 | } | |
16116 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16117 | { | |
16118 | arg2 = wxString_in_helper(obj1); | |
16119 | if (arg2 == NULL) SWIG_fail; | |
16120 | temp2 = true; | |
16121 | } | |
16122 | if (obj2) { | |
16123 | { | |
16124 | arg3 = wxString_in_helper(obj2); | |
16125 | if (arg3 == NULL) SWIG_fail; | |
16126 | temp3 = true; | |
16127 | } | |
16128 | } | |
16129 | { | |
16130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16131 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
16132 | wxPyEndAllowThreads(__tstate); | |
16133 | if (PyErr_Occurred()) SWIG_fail; | |
16134 | } | |
16135 | { | |
16136 | #if wxUSE_UNICODE | |
16137 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16138 | #else | |
16139 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16140 | #endif | |
16141 | } | |
16142 | { | |
16143 | if (temp2) | |
16144 | delete arg2; | |
16145 | } | |
16146 | { | |
16147 | if (temp3) | |
16148 | delete arg3; | |
16149 | } | |
16150 | return resultobj; | |
16151 | fail: | |
16152 | { | |
16153 | if (temp2) | |
16154 | delete arg2; | |
16155 | } | |
16156 | { | |
16157 | if (temp3) | |
16158 | delete arg3; | |
16159 | } | |
16160 | return NULL; | |
16161 | } | |
16162 | ||
16163 | ||
16164 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16165 | PyObject *resultobj = 0; | |
16166 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16167 | wxString *result = 0 ; | |
16168 | void *argp1 = 0 ; | |
16169 | int res1 = 0 ; | |
16170 | PyObject *swig_obj[1] ; | |
16171 | ||
16172 | if (!args) SWIG_fail; | |
16173 | swig_obj[0] = args; | |
16174 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16175 | if (!SWIG_IsOK(res1)) { | |
16176 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16177 | } | |
16178 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16179 | { | |
16180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16181 | { | |
16182 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
16183 | result = (wxString *) &_result_ref; | |
16184 | } | |
16185 | wxPyEndAllowThreads(__tstate); | |
16186 | if (PyErr_Occurred()) SWIG_fail; | |
16187 | } | |
16188 | { | |
16189 | #if wxUSE_UNICODE | |
16190 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16191 | #else | |
16192 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16193 | #endif | |
16194 | } | |
16195 | return resultobj; | |
16196 | fail: | |
16197 | return NULL; | |
16198 | } | |
16199 | ||
16200 | ||
16201 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16202 | PyObject *obj; | |
16203 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16204 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
16205 | return SWIG_Py_Void(); | |
16206 | } | |
16207 | ||
16208 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16209 | return SWIG_Python_InitShadowInstance(args); | |
16210 | } | |
16211 | ||
16212 | SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16213 | PyObject *resultobj = 0; | |
16214 | int arg1 = (int) -1 ; | |
16215 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16216 | wxPyLocale *result = 0 ; | |
16217 | int val1 ; | |
16218 | int ecode1 = 0 ; | |
16219 | int val2 ; | |
16220 | int ecode2 = 0 ; | |
16221 | PyObject * obj0 = 0 ; | |
16222 | PyObject * obj1 = 0 ; | |
16223 | char * kwnames[] = { | |
16224 | (char *) "language",(char *) "flags", NULL | |
16225 | }; | |
16226 | ||
16227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail; | |
16228 | if (obj0) { | |
16229 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16230 | if (!SWIG_IsOK(ecode1)) { | |
16231 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'"); | |
16232 | } | |
16233 | arg1 = static_cast< int >(val1); | |
16234 | } | |
16235 | if (obj1) { | |
16236 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16237 | if (!SWIG_IsOK(ecode2)) { | |
16238 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'"); | |
16239 | } | |
16240 | arg2 = static_cast< int >(val2); | |
16241 | } | |
16242 | { | |
16243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16244 | result = (wxPyLocale *)new_wxPyLocale(arg1,arg2); | |
16245 | wxPyEndAllowThreads(__tstate); | |
16246 | if (PyErr_Occurred()) SWIG_fail; | |
16247 | } | |
16248 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 ); | |
16249 | return resultobj; | |
16250 | fail: | |
16251 | return NULL; | |
16252 | } | |
16253 | ||
16254 | ||
16255 | SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16256 | PyObject *resultobj = 0; | |
16257 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; | |
16258 | void *argp1 = 0 ; | |
16259 | int res1 = 0 ; | |
16260 | PyObject *swig_obj[1] ; | |
16261 | ||
16262 | if (!args) SWIG_fail; | |
16263 | swig_obj[0] = args; | |
16264 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 ); | |
16265 | if (!SWIG_IsOK(res1)) { | |
16266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'"); | |
16267 | } | |
16268 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
16269 | { | |
16270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16271 | delete arg1; | |
16272 | ||
0085ce49 RD |
16273 | wxPyEndAllowThreads(__tstate); |
16274 | if (PyErr_Occurred()) SWIG_fail; | |
16275 | } | |
fc46b7f3 | 16276 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
16277 | return resultobj; |
16278 | fail: | |
0085ce49 | 16279 | return NULL; |
d14a1e28 RD |
16280 | } |
16281 | ||
16282 | ||
fc46b7f3 | 16283 | SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16284 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16285 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16286 | PyObject *arg2 = (PyObject *) 0 ; | |
16287 | PyObject *arg3 = (PyObject *) 0 ; | |
0085ce49 RD |
16288 | void *argp1 = 0 ; |
16289 | int res1 = 0 ; | |
16290 | PyObject * obj0 = 0 ; | |
fc46b7f3 RD |
16291 | PyObject * obj1 = 0 ; |
16292 | PyObject * obj2 = 0 ; | |
0085ce49 | 16293 | char * kwnames[] = { |
fc46b7f3 | 16294 | (char *) "self",(char *) "self",(char *) "_class", NULL |
0085ce49 RD |
16295 | }; |
16296 | ||
fc46b7f3 RD |
16297 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
16298 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16299 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 16300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'"); |
0085ce49 | 16301 | } |
fc46b7f3 RD |
16302 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
16303 | arg2 = obj1; | |
16304 | arg3 = obj2; | |
0085ce49 RD |
16305 | { |
16306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16307 | (arg1)->_setCallbackInfo(arg2,arg3); |
0085ce49 RD |
16308 | wxPyEndAllowThreads(__tstate); |
16309 | if (PyErr_Occurred()) SWIG_fail; | |
16310 | } | |
16311 | resultobj = SWIG_Py_Void(); | |
16312 | return resultobj; | |
16313 | fail: | |
16314 | return NULL; | |
16315 | } | |
16316 | ||
16317 | ||
fc46b7f3 | 16318 | SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16319 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16320 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16321 | wxChar *arg2 = (wxChar *) 0 ; | |
16322 | wxChar *arg3 = (wxChar *) NULL ; | |
16323 | wxChar *result = 0 ; | |
0085ce49 RD |
16324 | void *argp1 = 0 ; |
16325 | int res1 = 0 ; | |
fc46b7f3 RD |
16326 | void *argp2 = 0 ; |
16327 | int res2 = 0 ; | |
16328 | void *argp3 = 0 ; | |
16329 | int res3 = 0 ; | |
0085ce49 RD |
16330 | PyObject * obj0 = 0 ; |
16331 | PyObject * obj1 = 0 ; | |
16332 | PyObject * obj2 = 0 ; | |
16333 | char * kwnames[] = { | |
16334 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
16335 | }; | |
16336 | ||
fc46b7f3 RD |
16337 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
16338 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16339 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 16340 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
0085ce49 | 16341 | } |
fc46b7f3 RD |
16342 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
16343 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16344 | if (!SWIG_IsOK(res2)) { | |
16345 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
0085ce49 | 16346 | } |
fc46b7f3 | 16347 | arg2 = reinterpret_cast< wxChar * >(argp2); |
0085ce49 | 16348 | if (obj2) { |
fc46b7f3 RD |
16349 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); |
16350 | if (!SWIG_IsOK(res3)) { | |
16351 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
b6294124 | 16352 | } |
fc46b7f3 | 16353 | arg3 = reinterpret_cast< wxChar * >(argp3); |
0085ce49 RD |
16354 | } |
16355 | { | |
16356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16357 | result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3); |
0085ce49 RD |
16358 | wxPyEndAllowThreads(__tstate); |
16359 | if (PyErr_Occurred()) SWIG_fail; | |
16360 | } | |
fc46b7f3 | 16361 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
0085ce49 RD |
16362 | return resultobj; |
16363 | fail: | |
0085ce49 | 16364 | return NULL; |
b6294124 RD |
16365 | } |
16366 | ||
16367 | ||
fc46b7f3 | 16368 | SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 16369 | PyObject *resultobj = 0; |
fc46b7f3 RD |
16370 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
16371 | wxChar *arg2 = (wxChar *) 0 ; | |
16372 | wxChar *arg3 = (wxChar *) 0 ; | |
16373 | size_t arg4 ; | |
16374 | wxChar *arg5 = (wxChar *) NULL ; | |
16375 | wxChar *result = 0 ; | |
0085ce49 RD |
16376 | void *argp1 = 0 ; |
16377 | int res1 = 0 ; | |
fc46b7f3 RD |
16378 | void *argp2 = 0 ; |
16379 | int res2 = 0 ; | |
16380 | void *argp3 = 0 ; | |
16381 | int res3 = 0 ; | |
16382 | size_t val4 ; | |
16383 | int ecode4 = 0 ; | |
16384 | void *argp5 = 0 ; | |
16385 | int res5 = 0 ; | |
16386 | PyObject * obj0 = 0 ; | |
16387 | PyObject * obj1 = 0 ; | |
16388 | PyObject * obj2 = 0 ; | |
16389 | PyObject * obj3 = 0 ; | |
16390 | PyObject * obj4 = 0 ; | |
16391 | char * kwnames[] = { | |
16392 | (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL | |
16393 | }; | |
0085ce49 | 16394 | |
fc46b7f3 RD |
16395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
16396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
0085ce49 | 16397 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 RD |
16398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
16399 | } | |
16400 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
16401 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16402 | if (!SWIG_IsOK(res2)) { | |
16403 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
16404 | } | |
16405 | arg2 = reinterpret_cast< wxChar * >(argp2); | |
16406 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16407 | if (!SWIG_IsOK(res3)) { | |
16408 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
16409 | } | |
16410 | arg3 = reinterpret_cast< wxChar * >(argp3); | |
16411 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
16412 | if (!SWIG_IsOK(ecode4)) { | |
16413 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'"); | |
16414 | } | |
16415 | arg4 = static_cast< size_t >(val4); | |
16416 | if (obj4) { | |
16417 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 ); | |
16418 | if (!SWIG_IsOK(res5)) { | |
16419 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'"); | |
16420 | } | |
16421 | arg5 = reinterpret_cast< wxChar * >(argp5); | |
0085ce49 | 16422 | } |
0085ce49 RD |
16423 | { |
16424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 16425 | result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5); |
0085ce49 RD |
16426 | wxPyEndAllowThreads(__tstate); |
16427 | if (PyErr_Occurred()) SWIG_fail; | |
16428 | } | |
fc46b7f3 | 16429 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
0085ce49 RD |
16430 | return resultobj; |
16431 | fail: | |
16432 | return NULL; | |
d14a1e28 RD |
16433 | } |
16434 | ||
16435 | ||
fc46b7f3 | 16436 | SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16437 | PyObject *obj; |
16438 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 16439 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj)); |
0085ce49 | 16440 | return SWIG_Py_Void(); |
d14a1e28 RD |
16441 | } |
16442 | ||
fc46b7f3 | 16443 | SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
16444 | return SWIG_Python_InitShadowInstance(args); |
16445 | } | |
d14a1e28 | 16446 | |
0085ce49 RD |
16447 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16448 | PyObject *resultobj = 0; | |
16449 | wxLocale *result = 0 ; | |
16450 | ||
16451 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
16452 | { | |
16453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16454 | result = (wxLocale *)wxGetLocale(); | |
16455 | wxPyEndAllowThreads(__tstate); | |
16456 | if (PyErr_Occurred()) SWIG_fail; | |
16457 | } | |
16458 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16459 | return resultobj; | |
16460 | fail: | |
16461 | return NULL; | |
d14a1e28 RD |
16462 | } |
16463 | ||
16464 | ||
0085ce49 RD |
16465 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
16466 | PyObject *resultobj = 0; | |
16467 | wxString *arg1 = 0 ; | |
16468 | wxString result; | |
16469 | bool temp1 = false ; | |
16470 | ||
16471 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
16472 | { | |
16473 | arg1 = wxString_in_helper(swig_obj[0]); | |
16474 | if (arg1 == NULL) SWIG_fail; | |
16475 | temp1 = true; | |
16476 | } | |
16477 | { | |
16478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16479 | result = wxGetTranslation((wxString const &)*arg1); | |
16480 | wxPyEndAllowThreads(__tstate); | |
16481 | if (PyErr_Occurred()) SWIG_fail; | |
16482 | } | |
16483 | { | |
093d3ff1 | 16484 | #if wxUSE_UNICODE |
0085ce49 | 16485 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16486 | #else |
0085ce49 | 16487 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16488 | #endif |
0085ce49 RD |
16489 | } |
16490 | { | |
16491 | if (temp1) | |
16492 | delete arg1; | |
16493 | } | |
16494 | return resultobj; | |
16495 | fail: | |
16496 | { | |
16497 | if (temp1) | |
16498 | delete arg1; | |
16499 | } | |
16500 | return NULL; | |
b6294124 RD |
16501 | } |
16502 | ||
16503 | ||
0085ce49 | 16504 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
fc46b7f3 RD |
16505 | PyObject *resultobj = 0; |
16506 | wxString *arg1 = 0 ; | |
16507 | wxString *arg2 = 0 ; | |
16508 | wxString result; | |
16509 | bool temp1 = false ; | |
16510 | bool temp2 = false ; | |
16511 | ||
16512 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
16513 | { | |
16514 | arg1 = wxString_in_helper(swig_obj[0]); | |
16515 | if (arg1 == NULL) SWIG_fail; | |
16516 | temp1 = true; | |
16517 | } | |
16518 | { | |
16519 | arg2 = wxString_in_helper(swig_obj[1]); | |
16520 | if (arg2 == NULL) SWIG_fail; | |
16521 | temp2 = true; | |
16522 | } | |
16523 | { | |
16524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16525 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2); | |
16526 | wxPyEndAllowThreads(__tstate); | |
16527 | if (PyErr_Occurred()) SWIG_fail; | |
16528 | } | |
16529 | { | |
16530 | #if wxUSE_UNICODE | |
16531 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16532 | #else | |
16533 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16534 | #endif | |
16535 | } | |
16536 | { | |
16537 | if (temp1) | |
16538 | delete arg1; | |
16539 | } | |
16540 | { | |
16541 | if (temp2) | |
16542 | delete arg2; | |
16543 | } | |
16544 | return resultobj; | |
16545 | fail: | |
16546 | { | |
16547 | if (temp1) | |
16548 | delete arg1; | |
16549 | } | |
16550 | { | |
16551 | if (temp2) | |
16552 | delete arg2; | |
16553 | } | |
16554 | return NULL; | |
16555 | } | |
16556 | ||
16557 | ||
16558 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
0085ce49 RD |
16559 | PyObject *resultobj = 0; |
16560 | wxString *arg1 = 0 ; | |
16561 | wxString *arg2 = 0 ; | |
16562 | size_t arg3 ; | |
16563 | wxString result; | |
16564 | bool temp1 = false ; | |
16565 | bool temp2 = false ; | |
16566 | size_t val3 ; | |
16567 | int ecode3 = 0 ; | |
16568 | ||
16569 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
16570 | { | |
16571 | arg1 = wxString_in_helper(swig_obj[0]); | |
16572 | if (arg1 == NULL) SWIG_fail; | |
16573 | temp1 = true; | |
16574 | } | |
16575 | { | |
16576 | arg2 = wxString_in_helper(swig_obj[1]); | |
16577 | if (arg2 == NULL) SWIG_fail; | |
16578 | temp2 = true; | |
16579 | } | |
16580 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
16581 | if (!SWIG_IsOK(ecode3)) { | |
16582 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
16583 | } | |
16584 | arg3 = static_cast< size_t >(val3); | |
16585 | { | |
16586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16587 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
16588 | wxPyEndAllowThreads(__tstate); | |
16589 | if (PyErr_Occurred()) SWIG_fail; | |
16590 | } | |
16591 | { | |
16592 | #if wxUSE_UNICODE | |
16593 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16594 | #else | |
16595 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16596 | #endif | |
16597 | } | |
16598 | { | |
16599 | if (temp1) | |
16600 | delete arg1; | |
16601 | } | |
16602 | { | |
16603 | if (temp2) | |
16604 | delete arg2; | |
16605 | } | |
16606 | return resultobj; | |
16607 | fail: | |
16608 | { | |
16609 | if (temp1) | |
16610 | delete arg1; | |
16611 | } | |
16612 | { | |
16613 | if (temp2) | |
16614 | delete arg2; | |
16615 | } | |
16616 | return NULL; | |
d14a1e28 RD |
16617 | } |
16618 | ||
16619 | ||
fc46b7f3 RD |
16620 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
16621 | PyObject *resultobj = 0; | |
16622 | wxString *arg1 = 0 ; | |
16623 | wxString *arg2 = 0 ; | |
16624 | size_t arg3 ; | |
16625 | wxString *arg4 = 0 ; | |
16626 | wxString result; | |
16627 | bool temp1 = false ; | |
16628 | bool temp2 = false ; | |
16629 | size_t val3 ; | |
16630 | int ecode3 = 0 ; | |
16631 | bool temp4 = false ; | |
16632 | ||
16633 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; | |
16634 | { | |
16635 | arg1 = wxString_in_helper(swig_obj[0]); | |
16636 | if (arg1 == NULL) SWIG_fail; | |
16637 | temp1 = true; | |
16638 | } | |
16639 | { | |
16640 | arg2 = wxString_in_helper(swig_obj[1]); | |
16641 | if (arg2 == NULL) SWIG_fail; | |
16642 | temp2 = true; | |
16643 | } | |
16644 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
16645 | if (!SWIG_IsOK(ecode3)) { | |
16646 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
16647 | } | |
16648 | arg3 = static_cast< size_t >(val3); | |
16649 | { | |
16650 | arg4 = wxString_in_helper(swig_obj[3]); | |
16651 | if (arg4 == NULL) SWIG_fail; | |
16652 | temp4 = true; | |
16653 | } | |
16654 | { | |
16655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16656 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4); | |
16657 | wxPyEndAllowThreads(__tstate); | |
16658 | if (PyErr_Occurred()) SWIG_fail; | |
16659 | } | |
16660 | { | |
16661 | #if wxUSE_UNICODE | |
16662 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16663 | #else | |
16664 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16665 | #endif | |
16666 | } | |
16667 | { | |
16668 | if (temp1) | |
16669 | delete arg1; | |
16670 | } | |
16671 | { | |
16672 | if (temp2) | |
16673 | delete arg2; | |
16674 | } | |
16675 | { | |
16676 | if (temp4) | |
16677 | delete arg4; | |
16678 | } | |
16679 | return resultobj; | |
16680 | fail: | |
16681 | { | |
16682 | if (temp1) | |
16683 | delete arg1; | |
16684 | } | |
16685 | { | |
16686 | if (temp2) | |
16687 | delete arg2; | |
16688 | } | |
16689 | { | |
16690 | if (temp4) | |
16691 | delete arg4; | |
16692 | } | |
16693 | return NULL; | |
16694 | } | |
16695 | ||
16696 | ||
0085ce49 RD |
16697 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
16698 | int argc; | |
fc46b7f3 | 16699 | PyObject *argv[5]; |
0085ce49 | 16700 | |
fc46b7f3 | 16701 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail; |
0085ce49 RD |
16702 | --argc; |
16703 | if (argc == 1) { | |
16704 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
16705 | } | |
fc46b7f3 | 16706 | if (argc == 2) { |
0085ce49 RD |
16707 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); |
16708 | } | |
fc46b7f3 RD |
16709 | if (argc == 3) { |
16710 | return _wrap_GetTranslation__SWIG_2(self, argc, argv); | |
16711 | } | |
16712 | if (argc == 4) { | |
16713 | return _wrap_GetTranslation__SWIG_3(self, argc, argv); | |
16714 | } | |
0085ce49 RD |
16715 | |
16716 | fail: | |
16717 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
16718 | return NULL; | |
d14a1e28 RD |
16719 | } |
16720 | ||
16721 | ||
0085ce49 RD |
16722 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16723 | PyObject *resultobj = 0; | |
16724 | wxEncodingConverter *result = 0 ; | |
16725 | ||
16726 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
16727 | { | |
16728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16729 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
16730 | wxPyEndAllowThreads(__tstate); | |
16731 | if (PyErr_Occurred()) SWIG_fail; | |
16732 | } | |
16733 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
16734 | return resultobj; | |
16735 | fail: | |
16736 | return NULL; | |
d14a1e28 RD |
16737 | } |
16738 | ||
16739 | ||
0085ce49 RD |
16740 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16741 | PyObject *resultobj = 0; | |
16742 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
16743 | void *argp1 = 0 ; | |
16744 | int res1 = 0 ; | |
16745 | PyObject *swig_obj[1] ; | |
16746 | ||
16747 | if (!args) SWIG_fail; | |
16748 | swig_obj[0] = args; | |
16749 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
16750 | if (!SWIG_IsOK(res1)) { | |
16751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
16752 | } | |
16753 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
16754 | { | |
16755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16756 | delete arg1; | |
d14a1e28 | 16757 | |
0085ce49 RD |
16758 | wxPyEndAllowThreads(__tstate); |
16759 | if (PyErr_Occurred()) SWIG_fail; | |
16760 | } | |
16761 | resultobj = SWIG_Py_Void(); | |
16762 | return resultobj; | |
16763 | fail: | |
16764 | return NULL; | |
16765 | } | |
16766 | ||
16767 | ||
16768 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16769 | PyObject *resultobj = 0; | |
16770 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
16771 | wxFontEncoding arg2 ; | |
16772 | wxFontEncoding arg3 ; | |
16773 | int arg4 = (int) wxCONVERT_STRICT ; | |
16774 | bool result; | |
16775 | void *argp1 = 0 ; | |
16776 | int res1 = 0 ; | |
16777 | int val2 ; | |
16778 | int ecode2 = 0 ; | |
16779 | int val3 ; | |
16780 | int ecode3 = 0 ; | |
16781 | int val4 ; | |
16782 | int ecode4 = 0 ; | |
16783 | PyObject * obj0 = 0 ; | |
16784 | PyObject * obj1 = 0 ; | |
16785 | PyObject * obj2 = 0 ; | |
16786 | PyObject * obj3 = 0 ; | |
16787 | char * kwnames[] = { | |
16788 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
16789 | }; | |
16790 | ||
16791 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
16792 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
16793 | if (!SWIG_IsOK(res1)) { | |
16794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
16795 | } | |
16796 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
16797 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16798 | if (!SWIG_IsOK(ecode2)) { | |
16799 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
16800 | } | |
16801 | arg2 = static_cast< wxFontEncoding >(val2); | |
16802 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16803 | if (!SWIG_IsOK(ecode3)) { | |
16804 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
16805 | } | |
16806 | arg3 = static_cast< wxFontEncoding >(val3); | |
16807 | if (obj3) { | |
16808 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16809 | if (!SWIG_IsOK(ecode4)) { | |
16810 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
16811 | } | |
16812 | arg4 = static_cast< int >(val4); | |
16813 | } | |
16814 | { | |
16815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16816 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
16817 | wxPyEndAllowThreads(__tstate); | |
16818 | if (PyErr_Occurred()) SWIG_fail; | |
16819 | } | |
16820 | { | |
16821 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16822 | } | |
16823 | return resultobj; | |
16824 | fail: | |
16825 | return NULL; | |
16826 | } | |
16827 | ||
16828 | ||
16829 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16830 | PyObject *resultobj = 0; | |
16831 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
16832 | wxString *arg2 = 0 ; | |
16833 | wxString result; | |
16834 | void *argp1 = 0 ; | |
16835 | int res1 = 0 ; | |
16836 | bool temp2 = false ; | |
16837 | PyObject * obj0 = 0 ; | |
16838 | PyObject * obj1 = 0 ; | |
16839 | char * kwnames[] = { | |
16840 | (char *) "self",(char *) "input", NULL | |
16841 | }; | |
16842 | ||
16843 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
16844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
16845 | if (!SWIG_IsOK(res1)) { | |
16846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
16847 | } | |
16848 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
16849 | { | |
16850 | arg2 = wxString_in_helper(obj1); | |
16851 | if (arg2 == NULL) SWIG_fail; | |
16852 | temp2 = true; | |
16853 | } | |
16854 | { | |
16855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16856 | result = (arg1)->Convert((wxString const &)*arg2); | |
16857 | wxPyEndAllowThreads(__tstate); | |
16858 | if (PyErr_Occurred()) SWIG_fail; | |
16859 | } | |
16860 | { | |
16861 | #if wxUSE_UNICODE | |
16862 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16863 | #else | |
16864 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16865 | #endif | |
16866 | } | |
16867 | { | |
16868 | if (temp2) | |
16869 | delete arg2; | |
16870 | } | |
16871 | return resultobj; | |
16872 | fail: | |
16873 | { | |
16874 | if (temp2) | |
16875 | delete arg2; | |
16876 | } | |
16877 | return NULL; | |
16878 | } | |
16879 | ||
16880 | ||
16881 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16882 | PyObject *resultobj = 0; | |
16883 | wxFontEncoding arg1 ; | |
16884 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
16885 | wxFontEncodingArray result; | |
16886 | int val1 ; | |
16887 | int ecode1 = 0 ; | |
16888 | int val2 ; | |
16889 | int ecode2 = 0 ; | |
16890 | PyObject * obj0 = 0 ; | |
16891 | PyObject * obj1 = 0 ; | |
16892 | char * kwnames[] = { | |
16893 | (char *) "enc",(char *) "platform", NULL | |
16894 | }; | |
16895 | ||
16896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
16897 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16898 | if (!SWIG_IsOK(ecode1)) { | |
16899 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
16900 | } | |
16901 | arg1 = static_cast< wxFontEncoding >(val1); | |
16902 | if (obj1) { | |
16903 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16904 | if (!SWIG_IsOK(ecode2)) { | |
16905 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
16906 | } | |
16907 | arg2 = static_cast< int >(val2); | |
16908 | } | |
16909 | { | |
16910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16911 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
16912 | wxPyEndAllowThreads(__tstate); | |
16913 | if (PyErr_Occurred()) SWIG_fail; | |
16914 | } | |
16915 | { | |
16916 | resultobj = PyList_New(0); | |
16917 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
16918 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
16919 | PyList_Append(resultobj, number); | |
16920 | Py_DECREF(number); | |
093d3ff1 | 16921 | } |
0085ce49 RD |
16922 | } |
16923 | return resultobj; | |
16924 | fail: | |
16925 | return NULL; | |
d14a1e28 RD |
16926 | } |
16927 | ||
16928 | ||
0085ce49 RD |
16929 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16930 | PyObject *resultobj = 0; | |
16931 | wxFontEncoding arg1 ; | |
16932 | wxFontEncodingArray result; | |
16933 | int val1 ; | |
16934 | int ecode1 = 0 ; | |
16935 | PyObject * obj0 = 0 ; | |
16936 | char * kwnames[] = { | |
16937 | (char *) "enc", NULL | |
16938 | }; | |
16939 | ||
16940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
16941 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16942 | if (!SWIG_IsOK(ecode1)) { | |
16943 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
16944 | } | |
16945 | arg1 = static_cast< wxFontEncoding >(val1); | |
16946 | { | |
16947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16948 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
16949 | wxPyEndAllowThreads(__tstate); | |
16950 | if (PyErr_Occurred()) SWIG_fail; | |
16951 | } | |
16952 | { | |
16953 | resultobj = PyList_New(0); | |
16954 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
16955 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
16956 | PyList_Append(resultobj, number); | |
16957 | Py_DECREF(number); | |
093d3ff1 | 16958 | } |
0085ce49 RD |
16959 | } |
16960 | return resultobj; | |
16961 | fail: | |
16962 | return NULL; | |
16963 | } | |
16964 | ||
16965 | ||
16966 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16967 | PyObject *resultobj = 0; | |
16968 | wxFontEncoding arg1 ; | |
16969 | wxFontEncoding arg2 ; | |
16970 | bool result; | |
16971 | int val1 ; | |
16972 | int ecode1 = 0 ; | |
16973 | int val2 ; | |
16974 | int ecode2 = 0 ; | |
16975 | PyObject * obj0 = 0 ; | |
16976 | PyObject * obj1 = 0 ; | |
16977 | char * kwnames[] = { | |
16978 | (char *) "encIn",(char *) "encOut", NULL | |
16979 | }; | |
16980 | ||
16981 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
16982 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16983 | if (!SWIG_IsOK(ecode1)) { | |
16984 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
16985 | } | |
16986 | arg1 = static_cast< wxFontEncoding >(val1); | |
16987 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16988 | if (!SWIG_IsOK(ecode2)) { | |
16989 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
16990 | } | |
16991 | arg2 = static_cast< wxFontEncoding >(val2); | |
16992 | { | |
16993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16994 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
16995 | wxPyEndAllowThreads(__tstate); | |
16996 | if (PyErr_Occurred()) SWIG_fail; | |
16997 | } | |
16998 | { | |
16999 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17000 | } | |
17001 | return resultobj; | |
17002 | fail: | |
17003 | return NULL; | |
d14a1e28 RD |
17004 | } |
17005 | ||
17006 | ||
0085ce49 RD |
17007 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17008 | PyObject *obj; | |
17009 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17010 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
17011 | return SWIG_Py_Void(); | |
d14a1e28 RD |
17012 | } |
17013 | ||
0085ce49 RD |
17014 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17015 | return SWIG_Python_InitShadowInstance(args); | |
d14a1e28 RD |
17016 | } |
17017 | ||
0085ce49 RD |
17018 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17019 | PyObject *resultobj = 0; | |
17020 | wxDC *arg1 = (wxDC *) 0 ; | |
17021 | void *argp1 = 0 ; | |
17022 | int res1 = 0 ; | |
17023 | PyObject *swig_obj[1] ; | |
17024 | ||
17025 | if (!args) SWIG_fail; | |
17026 | swig_obj[0] = args; | |
17027 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
17028 | if (!SWIG_IsOK(res1)) { | |
17029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17030 | } | |
17031 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17032 | { | |
17033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17034 | delete arg1; | |
d14a1e28 | 17035 | |
0085ce49 RD |
17036 | wxPyEndAllowThreads(__tstate); |
17037 | if (PyErr_Occurred()) SWIG_fail; | |
17038 | } | |
17039 | resultobj = SWIG_Py_Void(); | |
17040 | return resultobj; | |
17041 | fail: | |
17042 | return NULL; | |
17043 | } | |
17044 | ||
17045 | ||
17046 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17047 | PyObject *resultobj = 0; | |
17048 | wxDC *arg1 = (wxDC *) 0 ; | |
17049 | int arg2 ; | |
17050 | int arg3 ; | |
17051 | wxColour *arg4 = 0 ; | |
17052 | int arg5 = (int) wxFLOOD_SURFACE ; | |
17053 | bool result; | |
17054 | void *argp1 = 0 ; | |
17055 | int res1 = 0 ; | |
17056 | int val2 ; | |
17057 | int ecode2 = 0 ; | |
17058 | int val3 ; | |
17059 | int ecode3 = 0 ; | |
17060 | wxColour temp4 ; | |
17061 | int val5 ; | |
17062 | int ecode5 = 0 ; | |
17063 | PyObject * obj0 = 0 ; | |
17064 | PyObject * obj1 = 0 ; | |
17065 | PyObject * obj2 = 0 ; | |
17066 | PyObject * obj3 = 0 ; | |
17067 | PyObject * obj4 = 0 ; | |
17068 | char * kwnames[] = { | |
17069 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
17070 | }; | |
17071 | ||
17072 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17073 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17074 | if (!SWIG_IsOK(res1)) { | |
17075 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17076 | } | |
17077 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17078 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17079 | if (!SWIG_IsOK(ecode2)) { | |
17080 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
17081 | } | |
17082 | arg2 = static_cast< int >(val2); | |
17083 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17084 | if (!SWIG_IsOK(ecode3)) { | |
17085 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
17086 | } | |
17087 | arg3 = static_cast< int >(val3); | |
17088 | { | |
17089 | arg4 = &temp4; | |
17090 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17091 | } | |
17092 | if (obj4) { | |
17093 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17094 | if (!SWIG_IsOK(ecode5)) { | |
17095 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
17096 | } | |
17097 | arg5 = static_cast< int >(val5); | |
17098 | } | |
17099 | { | |
17100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17101 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
17102 | wxPyEndAllowThreads(__tstate); | |
17103 | if (PyErr_Occurred()) SWIG_fail; | |
17104 | } | |
17105 | { | |
17106 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17107 | } | |
17108 | return resultobj; | |
17109 | fail: | |
17110 | return NULL; | |
17111 | } | |
17112 | ||
17113 | ||
17114 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17115 | PyObject *resultobj = 0; | |
17116 | wxDC *arg1 = (wxDC *) 0 ; | |
17117 | wxPoint *arg2 = 0 ; | |
17118 | wxColour *arg3 = 0 ; | |
17119 | int arg4 = (int) wxFLOOD_SURFACE ; | |
17120 | bool result; | |
17121 | void *argp1 = 0 ; | |
17122 | int res1 = 0 ; | |
17123 | wxPoint temp2 ; | |
17124 | wxColour temp3 ; | |
17125 | int val4 ; | |
17126 | int ecode4 = 0 ; | |
17127 | PyObject * obj0 = 0 ; | |
17128 | PyObject * obj1 = 0 ; | |
17129 | PyObject * obj2 = 0 ; | |
17130 | PyObject * obj3 = 0 ; | |
17131 | char * kwnames[] = { | |
17132 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
17133 | }; | |
17134 | ||
17135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17137 | if (!SWIG_IsOK(res1)) { | |
17138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17139 | } | |
17140 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17141 | { | |
17142 | arg2 = &temp2; | |
17143 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17144 | } | |
17145 | { | |
17146 | arg3 = &temp3; | |
17147 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17148 | } | |
17149 | if (obj3) { | |
17150 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17151 | if (!SWIG_IsOK(ecode4)) { | |
17152 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
17153 | } | |
17154 | arg4 = static_cast< int >(val4); | |
17155 | } | |
17156 | { | |
17157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17158 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
17159 | wxPyEndAllowThreads(__tstate); | |
17160 | if (PyErr_Occurred()) SWIG_fail; | |
17161 | } | |
17162 | { | |
17163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17164 | } | |
17165 | return resultobj; | |
17166 | fail: | |
17167 | return NULL; | |
17168 | } | |
17169 | ||
17170 | ||
17171 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17172 | PyObject *resultobj = 0; | |
17173 | wxDC *arg1 = (wxDC *) 0 ; | |
17174 | wxRect *arg2 = 0 ; | |
17175 | wxColour *arg3 = 0 ; | |
17176 | wxColour *arg4 = 0 ; | |
17177 | wxPoint *arg5 = 0 ; | |
17178 | void *argp1 = 0 ; | |
17179 | int res1 = 0 ; | |
17180 | wxRect temp2 ; | |
17181 | wxColour temp3 ; | |
17182 | wxColour temp4 ; | |
17183 | wxPoint temp5 ; | |
17184 | PyObject * obj0 = 0 ; | |
17185 | PyObject * obj1 = 0 ; | |
17186 | PyObject * obj2 = 0 ; | |
17187 | PyObject * obj3 = 0 ; | |
17188 | PyObject * obj4 = 0 ; | |
17189 | char * kwnames[] = { | |
17190 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
17191 | }; | |
17192 | ||
17193 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17194 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17195 | if (!SWIG_IsOK(res1)) { | |
17196 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17197 | } | |
17198 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17199 | { | |
17200 | arg2 = &temp2; | |
17201 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17202 | } | |
17203 | { | |
17204 | arg3 = &temp3; | |
17205 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17206 | } | |
17207 | { | |
17208 | arg4 = &temp4; | |
17209 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17210 | } | |
17211 | { | |
17212 | arg5 = &temp5; | |
17213 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
17214 | } | |
17215 | { | |
17216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17217 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
17218 | wxPyEndAllowThreads(__tstate); | |
17219 | if (PyErr_Occurred()) SWIG_fail; | |
17220 | } | |
17221 | resultobj = SWIG_Py_Void(); | |
17222 | return resultobj; | |
17223 | fail: | |
17224 | return NULL; | |
17225 | } | |
17226 | ||
17227 | ||
17228 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17229 | PyObject *resultobj = 0; | |
17230 | wxDC *arg1 = (wxDC *) 0 ; | |
17231 | wxRect *arg2 = 0 ; | |
17232 | wxColour *arg3 = 0 ; | |
17233 | wxColour *arg4 = 0 ; | |
17234 | wxDirection arg5 = (wxDirection) wxEAST ; | |
17235 | void *argp1 = 0 ; | |
17236 | int res1 = 0 ; | |
17237 | wxRect temp2 ; | |
17238 | wxColour temp3 ; | |
17239 | wxColour temp4 ; | |
17240 | int val5 ; | |
17241 | int ecode5 = 0 ; | |
17242 | PyObject * obj0 = 0 ; | |
17243 | PyObject * obj1 = 0 ; | |
17244 | PyObject * obj2 = 0 ; | |
17245 | PyObject * obj3 = 0 ; | |
17246 | PyObject * obj4 = 0 ; | |
17247 | char * kwnames[] = { | |
17248 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
17249 | }; | |
17250 | ||
17251 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17252 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17253 | if (!SWIG_IsOK(res1)) { | |
17254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17255 | } | |
17256 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17257 | { | |
17258 | arg2 = &temp2; | |
17259 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17260 | } | |
17261 | { | |
17262 | arg3 = &temp3; | |
17263 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
17264 | } | |
17265 | { | |
17266 | arg4 = &temp4; | |
17267 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17268 | } | |
17269 | if (obj4) { | |
17270 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17271 | if (!SWIG_IsOK(ecode5)) { | |
17272 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
17273 | } | |
17274 | arg5 = static_cast< wxDirection >(val5); | |
17275 | } | |
17276 | { | |
17277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17278 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
17279 | wxPyEndAllowThreads(__tstate); | |
17280 | if (PyErr_Occurred()) SWIG_fail; | |
17281 | } | |
17282 | resultobj = SWIG_Py_Void(); | |
17283 | return resultobj; | |
17284 | fail: | |
17285 | return NULL; | |
17286 | } | |
17287 | ||
17288 | ||
17289 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17290 | PyObject *resultobj = 0; | |
17291 | wxDC *arg1 = (wxDC *) 0 ; | |
17292 | int arg2 ; | |
17293 | int arg3 ; | |
17294 | wxColour result; | |
17295 | void *argp1 = 0 ; | |
17296 | int res1 = 0 ; | |
17297 | int val2 ; | |
17298 | int ecode2 = 0 ; | |
17299 | int val3 ; | |
17300 | int ecode3 = 0 ; | |
17301 | PyObject * obj0 = 0 ; | |
17302 | PyObject * obj1 = 0 ; | |
17303 | PyObject * obj2 = 0 ; | |
17304 | char * kwnames[] = { | |
17305 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17306 | }; | |
17307 | ||
17308 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17309 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17310 | if (!SWIG_IsOK(res1)) { | |
17311 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17312 | } | |
17313 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17314 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17315 | if (!SWIG_IsOK(ecode2)) { | |
17316 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
17317 | } | |
17318 | arg2 = static_cast< int >(val2); | |
17319 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17320 | if (!SWIG_IsOK(ecode3)) { | |
17321 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
17322 | } | |
17323 | arg3 = static_cast< int >(val3); | |
17324 | { | |
17325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17326 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
17327 | wxPyEndAllowThreads(__tstate); | |
17328 | if (PyErr_Occurred()) SWIG_fail; | |
17329 | } | |
17330 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
17331 | return resultobj; | |
17332 | fail: | |
17333 | return NULL; | |
17334 | } | |
17335 | ||
17336 | ||
17337 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17338 | PyObject *resultobj = 0; | |
17339 | wxDC *arg1 = (wxDC *) 0 ; | |
17340 | wxPoint *arg2 = 0 ; | |
17341 | wxColour result; | |
17342 | void *argp1 = 0 ; | |
17343 | int res1 = 0 ; | |
17344 | wxPoint temp2 ; | |
17345 | PyObject * obj0 = 0 ; | |
17346 | PyObject * obj1 = 0 ; | |
17347 | char * kwnames[] = { | |
17348 | (char *) "self",(char *) "pt", NULL | |
17349 | }; | |
17350 | ||
17351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
17352 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17353 | if (!SWIG_IsOK(res1)) { | |
17354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17355 | } | |
17356 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17357 | { | |
17358 | arg2 = &temp2; | |
17359 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17360 | } | |
17361 | { | |
17362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17363 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
17364 | wxPyEndAllowThreads(__tstate); | |
17365 | if (PyErr_Occurred()) SWIG_fail; | |
17366 | } | |
17367 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
17368 | return resultobj; | |
17369 | fail: | |
17370 | return NULL; | |
17371 | } | |
17372 | ||
17373 | ||
17374 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17375 | PyObject *resultobj = 0; | |
17376 | wxDC *arg1 = (wxDC *) 0 ; | |
17377 | int arg2 ; | |
17378 | int arg3 ; | |
17379 | int arg4 ; | |
17380 | int arg5 ; | |
17381 | void *argp1 = 0 ; | |
17382 | int res1 = 0 ; | |
17383 | int val2 ; | |
17384 | int ecode2 = 0 ; | |
17385 | int val3 ; | |
17386 | int ecode3 = 0 ; | |
17387 | int val4 ; | |
17388 | int ecode4 = 0 ; | |
17389 | int val5 ; | |
17390 | int ecode5 = 0 ; | |
17391 | PyObject * obj0 = 0 ; | |
17392 | PyObject * obj1 = 0 ; | |
17393 | PyObject * obj2 = 0 ; | |
17394 | PyObject * obj3 = 0 ; | |
17395 | PyObject * obj4 = 0 ; | |
17396 | char * kwnames[] = { | |
17397 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
17398 | }; | |
17399 | ||
17400 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17401 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17402 | if (!SWIG_IsOK(res1)) { | |
17403 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17404 | } | |
17405 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17406 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17407 | if (!SWIG_IsOK(ecode2)) { | |
17408 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
17409 | } | |
17410 | arg2 = static_cast< int >(val2); | |
17411 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17412 | if (!SWIG_IsOK(ecode3)) { | |
17413 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
17414 | } | |
17415 | arg3 = static_cast< int >(val3); | |
17416 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17417 | if (!SWIG_IsOK(ecode4)) { | |
17418 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
17419 | } | |
17420 | arg4 = static_cast< int >(val4); | |
17421 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17422 | if (!SWIG_IsOK(ecode5)) { | |
17423 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
17424 | } | |
17425 | arg5 = static_cast< int >(val5); | |
17426 | { | |
17427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17428 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
17429 | wxPyEndAllowThreads(__tstate); | |
17430 | if (PyErr_Occurred()) SWIG_fail; | |
17431 | } | |
17432 | resultobj = SWIG_Py_Void(); | |
17433 | return resultobj; | |
17434 | fail: | |
17435 | return NULL; | |
17436 | } | |
17437 | ||
17438 | ||
17439 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17440 | PyObject *resultobj = 0; | |
17441 | wxDC *arg1 = (wxDC *) 0 ; | |
17442 | wxPoint *arg2 = 0 ; | |
17443 | wxPoint *arg3 = 0 ; | |
17444 | void *argp1 = 0 ; | |
17445 | int res1 = 0 ; | |
17446 | wxPoint temp2 ; | |
17447 | wxPoint temp3 ; | |
17448 | PyObject * obj0 = 0 ; | |
17449 | PyObject * obj1 = 0 ; | |
17450 | PyObject * obj2 = 0 ; | |
17451 | char * kwnames[] = { | |
17452 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
17453 | }; | |
17454 | ||
17455 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17456 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17457 | if (!SWIG_IsOK(res1)) { | |
17458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17459 | } | |
17460 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17461 | { | |
17462 | arg2 = &temp2; | |
17463 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17464 | } | |
17465 | { | |
17466 | arg3 = &temp3; | |
17467 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17468 | } | |
17469 | { | |
17470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17471 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
17472 | wxPyEndAllowThreads(__tstate); | |
17473 | if (PyErr_Occurred()) SWIG_fail; | |
17474 | } | |
17475 | resultobj = SWIG_Py_Void(); | |
17476 | return resultobj; | |
17477 | fail: | |
17478 | return NULL; | |
17479 | } | |
17480 | ||
17481 | ||
17482 | SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17483 | PyObject *resultobj = 0; | |
17484 | wxDC *arg1 = (wxDC *) 0 ; | |
17485 | int arg2 ; | |
17486 | int arg3 ; | |
17487 | void *argp1 = 0 ; | |
17488 | int res1 = 0 ; | |
17489 | int val2 ; | |
17490 | int ecode2 = 0 ; | |
17491 | int val3 ; | |
17492 | int ecode3 = 0 ; | |
17493 | PyObject * obj0 = 0 ; | |
17494 | PyObject * obj1 = 0 ; | |
17495 | PyObject * obj2 = 0 ; | |
17496 | char * kwnames[] = { | |
17497 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17498 | }; | |
17499 | ||
17500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17502 | if (!SWIG_IsOK(res1)) { | |
17503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17504 | } | |
17505 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17506 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17507 | if (!SWIG_IsOK(ecode2)) { | |
17508 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
17509 | } | |
17510 | arg2 = static_cast< int >(val2); | |
17511 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17512 | if (!SWIG_IsOK(ecode3)) { | |
17513 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
17514 | } | |
17515 | arg3 = static_cast< int >(val3); | |
17516 | { | |
17517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17518 | (arg1)->CrossHair(arg2,arg3); | |
17519 | wxPyEndAllowThreads(__tstate); | |
17520 | if (PyErr_Occurred()) SWIG_fail; | |
17521 | } | |
17522 | resultobj = SWIG_Py_Void(); | |
17523 | return resultobj; | |
17524 | fail: | |
17525 | return NULL; | |
17526 | } | |
17527 | ||
17528 | ||
17529 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17530 | PyObject *resultobj = 0; | |
17531 | wxDC *arg1 = (wxDC *) 0 ; | |
17532 | wxPoint *arg2 = 0 ; | |
17533 | void *argp1 = 0 ; | |
17534 | int res1 = 0 ; | |
17535 | wxPoint temp2 ; | |
17536 | PyObject * obj0 = 0 ; | |
17537 | PyObject * obj1 = 0 ; | |
17538 | char * kwnames[] = { | |
17539 | (char *) "self",(char *) "pt", NULL | |
17540 | }; | |
17541 | ||
17542 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
17543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17544 | if (!SWIG_IsOK(res1)) { | |
17545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17546 | } | |
17547 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17548 | { | |
17549 | arg2 = &temp2; | |
17550 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17551 | } | |
17552 | { | |
17553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17554 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
17555 | wxPyEndAllowThreads(__tstate); | |
17556 | if (PyErr_Occurred()) SWIG_fail; | |
17557 | } | |
17558 | resultobj = SWIG_Py_Void(); | |
17559 | return resultobj; | |
17560 | fail: | |
17561 | return NULL; | |
17562 | } | |
17563 | ||
17564 | ||
17565 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17566 | PyObject *resultobj = 0; | |
17567 | wxDC *arg1 = (wxDC *) 0 ; | |
17568 | int arg2 ; | |
17569 | int arg3 ; | |
17570 | int arg4 ; | |
17571 | int arg5 ; | |
17572 | int arg6 ; | |
17573 | int arg7 ; | |
17574 | void *argp1 = 0 ; | |
17575 | int res1 = 0 ; | |
17576 | int val2 ; | |
17577 | int ecode2 = 0 ; | |
17578 | int val3 ; | |
17579 | int ecode3 = 0 ; | |
17580 | int val4 ; | |
17581 | int ecode4 = 0 ; | |
17582 | int val5 ; | |
17583 | int ecode5 = 0 ; | |
17584 | int val6 ; | |
17585 | int ecode6 = 0 ; | |
17586 | int val7 ; | |
17587 | int ecode7 = 0 ; | |
17588 | PyObject * obj0 = 0 ; | |
17589 | PyObject * obj1 = 0 ; | |
17590 | PyObject * obj2 = 0 ; | |
17591 | PyObject * obj3 = 0 ; | |
17592 | PyObject * obj4 = 0 ; | |
17593 | PyObject * obj5 = 0 ; | |
17594 | PyObject * obj6 = 0 ; | |
17595 | char * kwnames[] = { | |
17596 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
17597 | }; | |
17598 | ||
17599 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) 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_DrawArc" "', 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_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
17608 | } | |
17609 | arg2 = static_cast< int >(val2); | |
17610 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17611 | if (!SWIG_IsOK(ecode3)) { | |
17612 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
17613 | } | |
17614 | arg3 = static_cast< int >(val3); | |
17615 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17616 | if (!SWIG_IsOK(ecode4)) { | |
17617 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
17618 | } | |
17619 | arg4 = static_cast< int >(val4); | |
17620 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17621 | if (!SWIG_IsOK(ecode5)) { | |
17622 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
17623 | } | |
17624 | arg5 = static_cast< int >(val5); | |
17625 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
17626 | if (!SWIG_IsOK(ecode6)) { | |
17627 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
17628 | } | |
17629 | arg6 = static_cast< int >(val6); | |
17630 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
17631 | if (!SWIG_IsOK(ecode7)) { | |
17632 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
17633 | } | |
17634 | arg7 = static_cast< int >(val7); | |
17635 | { | |
17636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17637 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
17638 | wxPyEndAllowThreads(__tstate); | |
17639 | if (PyErr_Occurred()) SWIG_fail; | |
17640 | } | |
17641 | resultobj = SWIG_Py_Void(); | |
17642 | return resultobj; | |
17643 | fail: | |
17644 | return NULL; | |
17645 | } | |
17646 | ||
17647 | ||
17648 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17649 | PyObject *resultobj = 0; | |
17650 | wxDC *arg1 = (wxDC *) 0 ; | |
17651 | wxPoint *arg2 = 0 ; | |
17652 | wxPoint *arg3 = 0 ; | |
17653 | wxPoint *arg4 = 0 ; | |
17654 | void *argp1 = 0 ; | |
17655 | int res1 = 0 ; | |
17656 | wxPoint temp2 ; | |
17657 | wxPoint temp3 ; | |
17658 | wxPoint temp4 ; | |
17659 | PyObject * obj0 = 0 ; | |
17660 | PyObject * obj1 = 0 ; | |
17661 | PyObject * obj2 = 0 ; | |
17662 | PyObject * obj3 = 0 ; | |
17663 | char * kwnames[] = { | |
17664 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
17665 | }; | |
17666 | ||
17667 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17668 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17669 | if (!SWIG_IsOK(res1)) { | |
17670 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17671 | } | |
17672 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17673 | { | |
17674 | arg2 = &temp2; | |
17675 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17676 | } | |
17677 | { | |
17678 | arg3 = &temp3; | |
17679 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17680 | } | |
17681 | { | |
17682 | arg4 = &temp4; | |
17683 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17684 | } | |
17685 | { | |
17686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17687 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
17688 | wxPyEndAllowThreads(__tstate); | |
17689 | if (PyErr_Occurred()) SWIG_fail; | |
17690 | } | |
17691 | resultobj = SWIG_Py_Void(); | |
17692 | return resultobj; | |
17693 | fail: | |
17694 | return NULL; | |
17695 | } | |
17696 | ||
17697 | ||
17698 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17699 | PyObject *resultobj = 0; | |
17700 | wxDC *arg1 = (wxDC *) 0 ; | |
17701 | int arg2 ; | |
17702 | int arg3 ; | |
17703 | int arg4 ; | |
17704 | int arg5 ; | |
17705 | void *argp1 = 0 ; | |
17706 | int res1 = 0 ; | |
17707 | int val2 ; | |
17708 | int ecode2 = 0 ; | |
17709 | int val3 ; | |
17710 | int ecode3 = 0 ; | |
17711 | int val4 ; | |
17712 | int ecode4 = 0 ; | |
17713 | int val5 ; | |
17714 | int ecode5 = 0 ; | |
17715 | PyObject * obj0 = 0 ; | |
17716 | PyObject * obj1 = 0 ; | |
17717 | PyObject * obj2 = 0 ; | |
17718 | PyObject * obj3 = 0 ; | |
17719 | PyObject * obj4 = 0 ; | |
17720 | char * kwnames[] = { | |
17721 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
17722 | }; | |
17723 | ||
17724 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17725 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17726 | if (!SWIG_IsOK(res1)) { | |
17727 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17728 | } | |
17729 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17730 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17731 | if (!SWIG_IsOK(ecode2)) { | |
17732 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
17733 | } | |
17734 | arg2 = static_cast< int >(val2); | |
17735 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17736 | if (!SWIG_IsOK(ecode3)) { | |
17737 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
17738 | } | |
17739 | arg3 = static_cast< int >(val3); | |
17740 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17741 | if (!SWIG_IsOK(ecode4)) { | |
17742 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
17743 | } | |
17744 | arg4 = static_cast< int >(val4); | |
17745 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17746 | if (!SWIG_IsOK(ecode5)) { | |
17747 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
17748 | } | |
17749 | arg5 = static_cast< int >(val5); | |
17750 | { | |
17751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17752 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
17753 | wxPyEndAllowThreads(__tstate); | |
17754 | if (PyErr_Occurred()) SWIG_fail; | |
17755 | } | |
17756 | resultobj = SWIG_Py_Void(); | |
17757 | return resultobj; | |
17758 | fail: | |
17759 | return NULL; | |
17760 | } | |
17761 | ||
17762 | ||
17763 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17764 | PyObject *resultobj = 0; | |
17765 | wxDC *arg1 = (wxDC *) 0 ; | |
17766 | wxRect *arg2 = 0 ; | |
17767 | void *argp1 = 0 ; | |
17768 | int res1 = 0 ; | |
17769 | wxRect temp2 ; | |
17770 | PyObject * obj0 = 0 ; | |
17771 | PyObject * obj1 = 0 ; | |
17772 | char * kwnames[] = { | |
17773 | (char *) "self",(char *) "rect", NULL | |
17774 | }; | |
17775 | ||
17776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
17777 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17778 | if (!SWIG_IsOK(res1)) { | |
17779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17780 | } | |
17781 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17782 | { | |
17783 | arg2 = &temp2; | |
17784 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
17785 | } | |
17786 | { | |
17787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17788 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
17789 | wxPyEndAllowThreads(__tstate); | |
17790 | if (PyErr_Occurred()) SWIG_fail; | |
17791 | } | |
17792 | resultobj = SWIG_Py_Void(); | |
17793 | return resultobj; | |
17794 | fail: | |
17795 | return NULL; | |
17796 | } | |
17797 | ||
17798 | ||
17799 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17800 | PyObject *resultobj = 0; | |
17801 | wxDC *arg1 = (wxDC *) 0 ; | |
17802 | int arg2 ; | |
17803 | int arg3 ; | |
17804 | int arg4 ; | |
17805 | int arg5 ; | |
17806 | double arg6 ; | |
17807 | double arg7 ; | |
17808 | void *argp1 = 0 ; | |
17809 | int res1 = 0 ; | |
17810 | int val2 ; | |
17811 | int ecode2 = 0 ; | |
17812 | int val3 ; | |
17813 | int ecode3 = 0 ; | |
17814 | int val4 ; | |
17815 | int ecode4 = 0 ; | |
17816 | int val5 ; | |
17817 | int ecode5 = 0 ; | |
17818 | double val6 ; | |
17819 | int ecode6 = 0 ; | |
17820 | double val7 ; | |
17821 | int ecode7 = 0 ; | |
17822 | PyObject * obj0 = 0 ; | |
17823 | PyObject * obj1 = 0 ; | |
17824 | PyObject * obj2 = 0 ; | |
17825 | PyObject * obj3 = 0 ; | |
17826 | PyObject * obj4 = 0 ; | |
17827 | PyObject * obj5 = 0 ; | |
17828 | PyObject * obj6 = 0 ; | |
17829 | char * kwnames[] = { | |
17830 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
17831 | }; | |
17832 | ||
17833 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
17834 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17835 | if (!SWIG_IsOK(res1)) { | |
17836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17837 | } | |
17838 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17839 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17840 | if (!SWIG_IsOK(ecode2)) { | |
17841 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
17842 | } | |
17843 | arg2 = static_cast< int >(val2); | |
17844 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17845 | if (!SWIG_IsOK(ecode3)) { | |
17846 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
17847 | } | |
17848 | arg3 = static_cast< int >(val3); | |
17849 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17850 | if (!SWIG_IsOK(ecode4)) { | |
17851 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
17852 | } | |
17853 | arg4 = static_cast< int >(val4); | |
17854 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17855 | if (!SWIG_IsOK(ecode5)) { | |
17856 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
17857 | } | |
17858 | arg5 = static_cast< int >(val5); | |
17859 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
17860 | if (!SWIG_IsOK(ecode6)) { | |
17861 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
17862 | } | |
17863 | arg6 = static_cast< double >(val6); | |
17864 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
17865 | if (!SWIG_IsOK(ecode7)) { | |
17866 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
17867 | } | |
17868 | arg7 = static_cast< double >(val7); | |
17869 | { | |
17870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17871 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
17872 | wxPyEndAllowThreads(__tstate); | |
17873 | if (PyErr_Occurred()) SWIG_fail; | |
17874 | } | |
17875 | resultobj = SWIG_Py_Void(); | |
17876 | return resultobj; | |
17877 | fail: | |
17878 | return NULL; | |
17879 | } | |
17880 | ||
17881 | ||
17882 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17883 | PyObject *resultobj = 0; | |
17884 | wxDC *arg1 = (wxDC *) 0 ; | |
17885 | wxPoint *arg2 = 0 ; | |
17886 | wxSize *arg3 = 0 ; | |
17887 | double arg4 ; | |
17888 | double arg5 ; | |
17889 | void *argp1 = 0 ; | |
17890 | int res1 = 0 ; | |
17891 | wxPoint temp2 ; | |
17892 | wxSize temp3 ; | |
17893 | double val4 ; | |
17894 | int ecode4 = 0 ; | |
17895 | double val5 ; | |
17896 | int ecode5 = 0 ; | |
17897 | PyObject * obj0 = 0 ; | |
17898 | PyObject * obj1 = 0 ; | |
17899 | PyObject * obj2 = 0 ; | |
17900 | PyObject * obj3 = 0 ; | |
17901 | PyObject * obj4 = 0 ; | |
17902 | char * kwnames[] = { | |
17903 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
17904 | }; | |
17905 | ||
17906 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17907 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17908 | if (!SWIG_IsOK(res1)) { | |
17909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17910 | } | |
17911 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17912 | { | |
17913 | arg2 = &temp2; | |
17914 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
17915 | } | |
17916 | { | |
17917 | arg3 = &temp3; | |
17918 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
17919 | } | |
17920 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
17921 | if (!SWIG_IsOK(ecode4)) { | |
17922 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
17923 | } | |
17924 | arg4 = static_cast< double >(val4); | |
17925 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
17926 | if (!SWIG_IsOK(ecode5)) { | |
17927 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
17928 | } | |
17929 | arg5 = static_cast< double >(val5); | |
17930 | { | |
17931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17932 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
17933 | wxPyEndAllowThreads(__tstate); | |
17934 | if (PyErr_Occurred()) SWIG_fail; | |
17935 | } | |
17936 | resultobj = SWIG_Py_Void(); | |
17937 | return resultobj; | |
17938 | fail: | |
17939 | return NULL; | |
17940 | } | |
17941 | ||
17942 | ||
17943 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17944 | PyObject *resultobj = 0; | |
17945 | wxDC *arg1 = (wxDC *) 0 ; | |
17946 | int arg2 ; | |
17947 | int arg3 ; | |
17948 | void *argp1 = 0 ; | |
17949 | int res1 = 0 ; | |
17950 | int val2 ; | |
17951 | int ecode2 = 0 ; | |
17952 | int val3 ; | |
17953 | int ecode3 = 0 ; | |
17954 | PyObject * obj0 = 0 ; | |
17955 | PyObject * obj1 = 0 ; | |
17956 | PyObject * obj2 = 0 ; | |
17957 | char * kwnames[] = { | |
17958 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17959 | }; | |
17960 | ||
17961 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17962 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17963 | if (!SWIG_IsOK(res1)) { | |
17964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17965 | } | |
17966 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17967 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17968 | if (!SWIG_IsOK(ecode2)) { | |
17969 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
17970 | } | |
17971 | arg2 = static_cast< int >(val2); | |
17972 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17973 | if (!SWIG_IsOK(ecode3)) { | |
17974 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
17975 | } | |
17976 | arg3 = static_cast< int >(val3); | |
17977 | { | |
17978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17979 | (arg1)->DrawPoint(arg2,arg3); | |
17980 | wxPyEndAllowThreads(__tstate); | |
17981 | if (PyErr_Occurred()) SWIG_fail; | |
17982 | } | |
17983 | resultobj = SWIG_Py_Void(); | |
17984 | return resultobj; | |
17985 | fail: | |
17986 | return NULL; | |
17987 | } | |
17988 | ||
17989 | ||
17990 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17991 | PyObject *resultobj = 0; | |
17992 | wxDC *arg1 = (wxDC *) 0 ; | |
17993 | wxPoint *arg2 = 0 ; | |
17994 | void *argp1 = 0 ; | |
17995 | int res1 = 0 ; | |
17996 | wxPoint temp2 ; | |
17997 | PyObject * obj0 = 0 ; | |
17998 | PyObject * obj1 = 0 ; | |
17999 | char * kwnames[] = { | |
18000 | (char *) "self",(char *) "pt", NULL | |
18001 | }; | |
18002 | ||
18003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18005 | if (!SWIG_IsOK(res1)) { | |
18006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18007 | } | |
18008 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18009 | { | |
18010 | arg2 = &temp2; | |
18011 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18012 | } | |
18013 | { | |
18014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18015 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
18016 | wxPyEndAllowThreads(__tstate); | |
18017 | if (PyErr_Occurred()) SWIG_fail; | |
18018 | } | |
18019 | resultobj = SWIG_Py_Void(); | |
18020 | return resultobj; | |
18021 | fail: | |
18022 | return NULL; | |
18023 | } | |
18024 | ||
18025 | ||
18026 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18027 | PyObject *resultobj = 0; | |
18028 | wxDC *arg1 = (wxDC *) 0 ; | |
18029 | int arg2 ; | |
18030 | int arg3 ; | |
18031 | int arg4 ; | |
18032 | int arg5 ; | |
18033 | void *argp1 = 0 ; | |
18034 | int res1 = 0 ; | |
18035 | int val2 ; | |
18036 | int ecode2 = 0 ; | |
18037 | int val3 ; | |
18038 | int ecode3 = 0 ; | |
18039 | int val4 ; | |
18040 | int ecode4 = 0 ; | |
18041 | int val5 ; | |
18042 | int ecode5 = 0 ; | |
18043 | PyObject * obj0 = 0 ; | |
18044 | PyObject * obj1 = 0 ; | |
18045 | PyObject * obj2 = 0 ; | |
18046 | PyObject * obj3 = 0 ; | |
18047 | PyObject * obj4 = 0 ; | |
18048 | char * kwnames[] = { | |
18049 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18050 | }; | |
18051 | ||
18052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18054 | if (!SWIG_IsOK(res1)) { | |
18055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18056 | } | |
18057 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18058 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18059 | if (!SWIG_IsOK(ecode2)) { | |
18060 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18061 | } | |
18062 | arg2 = static_cast< int >(val2); | |
18063 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18064 | if (!SWIG_IsOK(ecode3)) { | |
18065 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18066 | } | |
18067 | arg3 = static_cast< int >(val3); | |
18068 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18069 | if (!SWIG_IsOK(ecode4)) { | |
18070 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18071 | } | |
18072 | arg4 = static_cast< int >(val4); | |
18073 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18074 | if (!SWIG_IsOK(ecode5)) { | |
18075 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18076 | } | |
18077 | arg5 = static_cast< int >(val5); | |
18078 | { | |
18079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18080 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
18081 | wxPyEndAllowThreads(__tstate); | |
18082 | if (PyErr_Occurred()) SWIG_fail; | |
18083 | } | |
18084 | resultobj = SWIG_Py_Void(); | |
18085 | return resultobj; | |
18086 | fail: | |
18087 | return NULL; | |
18088 | } | |
18089 | ||
18090 | ||
18091 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18092 | PyObject *resultobj = 0; | |
18093 | wxDC *arg1 = (wxDC *) 0 ; | |
18094 | wxRect *arg2 = 0 ; | |
18095 | void *argp1 = 0 ; | |
18096 | int res1 = 0 ; | |
18097 | wxRect temp2 ; | |
18098 | PyObject * obj0 = 0 ; | |
18099 | PyObject * obj1 = 0 ; | |
18100 | char * kwnames[] = { | |
18101 | (char *) "self",(char *) "rect", NULL | |
18102 | }; | |
18103 | ||
18104 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18105 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18106 | if (!SWIG_IsOK(res1)) { | |
18107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18108 | } | |
18109 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18110 | { | |
18111 | arg2 = &temp2; | |
18112 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18113 | } | |
18114 | { | |
18115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18116 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
18117 | wxPyEndAllowThreads(__tstate); | |
18118 | if (PyErr_Occurred()) SWIG_fail; | |
18119 | } | |
18120 | resultobj = SWIG_Py_Void(); | |
18121 | return resultobj; | |
18122 | fail: | |
18123 | return NULL; | |
18124 | } | |
18125 | ||
18126 | ||
18127 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18128 | PyObject *resultobj = 0; | |
18129 | wxDC *arg1 = (wxDC *) 0 ; | |
18130 | wxPoint *arg2 = 0 ; | |
18131 | wxSize *arg3 = 0 ; | |
18132 | void *argp1 = 0 ; | |
18133 | int res1 = 0 ; | |
18134 | wxPoint temp2 ; | |
18135 | wxSize temp3 ; | |
18136 | PyObject * obj0 = 0 ; | |
18137 | PyObject * obj1 = 0 ; | |
18138 | PyObject * obj2 = 0 ; | |
18139 | char * kwnames[] = { | |
18140 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
18141 | }; | |
18142 | ||
18143 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18144 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18145 | if (!SWIG_IsOK(res1)) { | |
18146 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18147 | } | |
18148 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18149 | { | |
18150 | arg2 = &temp2; | |
18151 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18152 | } | |
18153 | { | |
18154 | arg3 = &temp3; | |
18155 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18156 | } | |
18157 | { | |
18158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18159 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
18160 | wxPyEndAllowThreads(__tstate); | |
18161 | if (PyErr_Occurred()) SWIG_fail; | |
18162 | } | |
18163 | resultobj = SWIG_Py_Void(); | |
18164 | return resultobj; | |
18165 | fail: | |
18166 | return NULL; | |
18167 | } | |
18168 | ||
18169 | ||
18170 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18171 | PyObject *resultobj = 0; | |
18172 | wxDC *arg1 = (wxDC *) 0 ; | |
18173 | int arg2 ; | |
18174 | int arg3 ; | |
18175 | int arg4 ; | |
18176 | int arg5 ; | |
18177 | double arg6 ; | |
18178 | void *argp1 = 0 ; | |
18179 | int res1 = 0 ; | |
18180 | int val2 ; | |
18181 | int ecode2 = 0 ; | |
18182 | int val3 ; | |
18183 | int ecode3 = 0 ; | |
18184 | int val4 ; | |
18185 | int ecode4 = 0 ; | |
18186 | int val5 ; | |
18187 | int ecode5 = 0 ; | |
18188 | double val6 ; | |
18189 | int ecode6 = 0 ; | |
18190 | PyObject * obj0 = 0 ; | |
18191 | PyObject * obj1 = 0 ; | |
18192 | PyObject * obj2 = 0 ; | |
18193 | PyObject * obj3 = 0 ; | |
18194 | PyObject * obj4 = 0 ; | |
18195 | PyObject * obj5 = 0 ; | |
18196 | char * kwnames[] = { | |
18197 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
18198 | }; | |
18199 | ||
18200 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
18201 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18202 | if (!SWIG_IsOK(res1)) { | |
18203 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18204 | } | |
18205 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18206 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18207 | if (!SWIG_IsOK(ecode2)) { | |
18208 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18209 | } | |
18210 | arg2 = static_cast< int >(val2); | |
18211 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18212 | if (!SWIG_IsOK(ecode3)) { | |
18213 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18214 | } | |
18215 | arg3 = static_cast< int >(val3); | |
18216 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18217 | if (!SWIG_IsOK(ecode4)) { | |
18218 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18219 | } | |
18220 | arg4 = static_cast< int >(val4); | |
18221 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18222 | if (!SWIG_IsOK(ecode5)) { | |
18223 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18224 | } | |
18225 | arg5 = static_cast< int >(val5); | |
18226 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
18227 | if (!SWIG_IsOK(ecode6)) { | |
18228 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
18229 | } | |
18230 | arg6 = static_cast< double >(val6); | |
18231 | { | |
18232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18233 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
18234 | wxPyEndAllowThreads(__tstate); | |
18235 | if (PyErr_Occurred()) SWIG_fail; | |
18236 | } | |
18237 | resultobj = SWIG_Py_Void(); | |
18238 | return resultobj; | |
18239 | fail: | |
18240 | return NULL; | |
18241 | } | |
18242 | ||
18243 | ||
18244 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18245 | PyObject *resultobj = 0; | |
18246 | wxDC *arg1 = (wxDC *) 0 ; | |
18247 | wxRect *arg2 = 0 ; | |
18248 | double arg3 ; | |
18249 | void *argp1 = 0 ; | |
18250 | int res1 = 0 ; | |
18251 | wxRect temp2 ; | |
18252 | double val3 ; | |
18253 | int ecode3 = 0 ; | |
18254 | PyObject * obj0 = 0 ; | |
18255 | PyObject * obj1 = 0 ; | |
18256 | PyObject * obj2 = 0 ; | |
18257 | char * kwnames[] = { | |
18258 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
18259 | }; | |
18260 | ||
18261 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18262 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18263 | if (!SWIG_IsOK(res1)) { | |
18264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18265 | } | |
18266 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18267 | { | |
18268 | arg2 = &temp2; | |
18269 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18270 | } | |
18271 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
18272 | if (!SWIG_IsOK(ecode3)) { | |
18273 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
18274 | } | |
18275 | arg3 = static_cast< double >(val3); | |
18276 | { | |
18277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18278 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
18279 | wxPyEndAllowThreads(__tstate); | |
18280 | if (PyErr_Occurred()) SWIG_fail; | |
18281 | } | |
18282 | resultobj = SWIG_Py_Void(); | |
18283 | return resultobj; | |
18284 | fail: | |
18285 | return NULL; | |
18286 | } | |
18287 | ||
18288 | ||
18289 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18290 | PyObject *resultobj = 0; | |
18291 | wxDC *arg1 = (wxDC *) 0 ; | |
18292 | wxPoint *arg2 = 0 ; | |
18293 | wxSize *arg3 = 0 ; | |
18294 | double arg4 ; | |
18295 | void *argp1 = 0 ; | |
18296 | int res1 = 0 ; | |
18297 | wxPoint temp2 ; | |
18298 | wxSize temp3 ; | |
18299 | double val4 ; | |
18300 | int ecode4 = 0 ; | |
18301 | PyObject * obj0 = 0 ; | |
18302 | PyObject * obj1 = 0 ; | |
18303 | PyObject * obj2 = 0 ; | |
18304 | PyObject * obj3 = 0 ; | |
18305 | char * kwnames[] = { | |
18306 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
18307 | }; | |
18308 | ||
18309 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18310 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18311 | if (!SWIG_IsOK(res1)) { | |
18312 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18313 | } | |
18314 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18315 | { | |
18316 | arg2 = &temp2; | |
18317 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18318 | } | |
18319 | { | |
18320 | arg3 = &temp3; | |
18321 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18322 | } | |
18323 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
18324 | if (!SWIG_IsOK(ecode4)) { | |
18325 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
18326 | } | |
18327 | arg4 = static_cast< double >(val4); | |
18328 | { | |
18329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18330 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
18331 | wxPyEndAllowThreads(__tstate); | |
18332 | if (PyErr_Occurred()) SWIG_fail; | |
18333 | } | |
18334 | resultobj = SWIG_Py_Void(); | |
18335 | return resultobj; | |
18336 | fail: | |
18337 | return NULL; | |
18338 | } | |
18339 | ||
18340 | ||
18341 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18342 | PyObject *resultobj = 0; | |
18343 | wxDC *arg1 = (wxDC *) 0 ; | |
18344 | int arg2 ; | |
18345 | int arg3 ; | |
18346 | int arg4 ; | |
18347 | void *argp1 = 0 ; | |
18348 | int res1 = 0 ; | |
18349 | int val2 ; | |
18350 | int ecode2 = 0 ; | |
18351 | int val3 ; | |
18352 | int ecode3 = 0 ; | |
18353 | int val4 ; | |
18354 | int ecode4 = 0 ; | |
18355 | PyObject * obj0 = 0 ; | |
18356 | PyObject * obj1 = 0 ; | |
18357 | PyObject * obj2 = 0 ; | |
18358 | PyObject * obj3 = 0 ; | |
18359 | char * kwnames[] = { | |
18360 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
18361 | }; | |
18362 | ||
18363 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18365 | if (!SWIG_IsOK(res1)) { | |
18366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18367 | } | |
18368 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18369 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18370 | if (!SWIG_IsOK(ecode2)) { | |
18371 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
18372 | } | |
18373 | arg2 = static_cast< int >(val2); | |
18374 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18375 | if (!SWIG_IsOK(ecode3)) { | |
18376 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
18377 | } | |
18378 | arg3 = static_cast< int >(val3); | |
18379 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18380 | if (!SWIG_IsOK(ecode4)) { | |
18381 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
18382 | } | |
18383 | arg4 = static_cast< int >(val4); | |
18384 | { | |
18385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18386 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
18387 | wxPyEndAllowThreads(__tstate); | |
18388 | if (PyErr_Occurred()) SWIG_fail; | |
18389 | } | |
18390 | resultobj = SWIG_Py_Void(); | |
18391 | return resultobj; | |
18392 | fail: | |
18393 | return NULL; | |
18394 | } | |
18395 | ||
18396 | ||
18397 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18398 | PyObject *resultobj = 0; | |
18399 | wxDC *arg1 = (wxDC *) 0 ; | |
18400 | wxPoint *arg2 = 0 ; | |
18401 | int arg3 ; | |
18402 | void *argp1 = 0 ; | |
18403 | int res1 = 0 ; | |
18404 | wxPoint temp2 ; | |
18405 | int val3 ; | |
18406 | int ecode3 = 0 ; | |
18407 | PyObject * obj0 = 0 ; | |
18408 | PyObject * obj1 = 0 ; | |
18409 | PyObject * obj2 = 0 ; | |
18410 | char * kwnames[] = { | |
18411 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
18412 | }; | |
18413 | ||
18414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18416 | if (!SWIG_IsOK(res1)) { | |
18417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18418 | } | |
18419 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18420 | { | |
18421 | arg2 = &temp2; | |
18422 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18423 | } | |
18424 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18425 | if (!SWIG_IsOK(ecode3)) { | |
18426 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
18427 | } | |
18428 | arg3 = static_cast< int >(val3); | |
18429 | { | |
18430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18431 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
18432 | wxPyEndAllowThreads(__tstate); | |
18433 | if (PyErr_Occurred()) SWIG_fail; | |
18434 | } | |
18435 | resultobj = SWIG_Py_Void(); | |
18436 | return resultobj; | |
18437 | fail: | |
18438 | return NULL; | |
18439 | } | |
18440 | ||
18441 | ||
18442 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18443 | PyObject *resultobj = 0; | |
18444 | wxDC *arg1 = (wxDC *) 0 ; | |
18445 | int arg2 ; | |
18446 | int arg3 ; | |
18447 | int arg4 ; | |
18448 | int arg5 ; | |
18449 | void *argp1 = 0 ; | |
18450 | int res1 = 0 ; | |
18451 | int val2 ; | |
18452 | int ecode2 = 0 ; | |
18453 | int val3 ; | |
18454 | int ecode3 = 0 ; | |
18455 | int val4 ; | |
18456 | int ecode4 = 0 ; | |
18457 | int val5 ; | |
18458 | int ecode5 = 0 ; | |
18459 | PyObject * obj0 = 0 ; | |
18460 | PyObject * obj1 = 0 ; | |
18461 | PyObject * obj2 = 0 ; | |
18462 | PyObject * obj3 = 0 ; | |
18463 | PyObject * obj4 = 0 ; | |
18464 | char * kwnames[] = { | |
18465 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18466 | }; | |
18467 | ||
18468 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18469 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18470 | if (!SWIG_IsOK(res1)) { | |
18471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18472 | } | |
18473 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18474 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18475 | if (!SWIG_IsOK(ecode2)) { | |
18476 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
18477 | } | |
18478 | arg2 = static_cast< int >(val2); | |
18479 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18480 | if (!SWIG_IsOK(ecode3)) { | |
18481 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
18482 | } | |
18483 | arg3 = static_cast< int >(val3); | |
18484 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18485 | if (!SWIG_IsOK(ecode4)) { | |
18486 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
18487 | } | |
18488 | arg4 = static_cast< int >(val4); | |
18489 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18490 | if (!SWIG_IsOK(ecode5)) { | |
18491 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
18492 | } | |
18493 | arg5 = static_cast< int >(val5); | |
18494 | { | |
18495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18496 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
18497 | wxPyEndAllowThreads(__tstate); | |
18498 | if (PyErr_Occurred()) SWIG_fail; | |
18499 | } | |
18500 | resultobj = SWIG_Py_Void(); | |
18501 | return resultobj; | |
18502 | fail: | |
18503 | return NULL; | |
18504 | } | |
18505 | ||
18506 | ||
18507 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18508 | PyObject *resultobj = 0; | |
18509 | wxDC *arg1 = (wxDC *) 0 ; | |
18510 | wxRect *arg2 = 0 ; | |
18511 | void *argp1 = 0 ; | |
18512 | int res1 = 0 ; | |
18513 | wxRect temp2 ; | |
18514 | PyObject * obj0 = 0 ; | |
18515 | PyObject * obj1 = 0 ; | |
18516 | char * kwnames[] = { | |
18517 | (char *) "self",(char *) "rect", NULL | |
18518 | }; | |
18519 | ||
18520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18522 | if (!SWIG_IsOK(res1)) { | |
18523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18524 | } | |
18525 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18526 | { | |
18527 | arg2 = &temp2; | |
18528 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18529 | } | |
18530 | { | |
18531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18532 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
18533 | wxPyEndAllowThreads(__tstate); | |
18534 | if (PyErr_Occurred()) SWIG_fail; | |
18535 | } | |
18536 | resultobj = SWIG_Py_Void(); | |
18537 | return resultobj; | |
18538 | fail: | |
18539 | return NULL; | |
18540 | } | |
18541 | ||
18542 | ||
18543 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18544 | PyObject *resultobj = 0; | |
18545 | wxDC *arg1 = (wxDC *) 0 ; | |
18546 | wxPoint *arg2 = 0 ; | |
18547 | wxSize *arg3 = 0 ; | |
18548 | void *argp1 = 0 ; | |
18549 | int res1 = 0 ; | |
18550 | wxPoint temp2 ; | |
18551 | wxSize temp3 ; | |
18552 | PyObject * obj0 = 0 ; | |
18553 | PyObject * obj1 = 0 ; | |
18554 | PyObject * obj2 = 0 ; | |
18555 | char * kwnames[] = { | |
18556 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
18557 | }; | |
18558 | ||
18559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18561 | if (!SWIG_IsOK(res1)) { | |
18562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18563 | } | |
18564 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18565 | { | |
18566 | arg2 = &temp2; | |
18567 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18568 | } | |
18569 | { | |
18570 | arg3 = &temp3; | |
18571 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18572 | } | |
18573 | { | |
18574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18575 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
18576 | wxPyEndAllowThreads(__tstate); | |
18577 | if (PyErr_Occurred()) SWIG_fail; | |
18578 | } | |
18579 | resultobj = SWIG_Py_Void(); | |
18580 | return resultobj; | |
18581 | fail: | |
18582 | return NULL; | |
18583 | } | |
18584 | ||
18585 | ||
18586 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18587 | PyObject *resultobj = 0; | |
18588 | wxDC *arg1 = (wxDC *) 0 ; | |
18589 | wxIcon *arg2 = 0 ; | |
18590 | int arg3 ; | |
18591 | int arg4 ; | |
18592 | void *argp1 = 0 ; | |
18593 | int res1 = 0 ; | |
18594 | void *argp2 = 0 ; | |
18595 | int res2 = 0 ; | |
18596 | int val3 ; | |
18597 | int ecode3 = 0 ; | |
18598 | int val4 ; | |
18599 | int ecode4 = 0 ; | |
18600 | PyObject * obj0 = 0 ; | |
18601 | PyObject * obj1 = 0 ; | |
18602 | PyObject * obj2 = 0 ; | |
18603 | PyObject * obj3 = 0 ; | |
18604 | char * kwnames[] = { | |
18605 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
18606 | }; | |
18607 | ||
18608 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18609 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18610 | if (!SWIG_IsOK(res1)) { | |
18611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18612 | } | |
18613 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18614 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
18615 | if (!SWIG_IsOK(res2)) { | |
18616 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
18617 | } | |
18618 | if (!argp2) { | |
18619 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
18620 | } | |
18621 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
18622 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18623 | if (!SWIG_IsOK(ecode3)) { | |
18624 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
18625 | } | |
18626 | arg3 = static_cast< int >(val3); | |
18627 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18628 | if (!SWIG_IsOK(ecode4)) { | |
18629 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
18630 | } | |
18631 | arg4 = static_cast< int >(val4); | |
18632 | { | |
18633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18634 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
18635 | wxPyEndAllowThreads(__tstate); | |
18636 | if (PyErr_Occurred()) SWIG_fail; | |
18637 | } | |
18638 | resultobj = SWIG_Py_Void(); | |
18639 | return resultobj; | |
18640 | fail: | |
18641 | return NULL; | |
18642 | } | |
18643 | ||
18644 | ||
18645 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18646 | PyObject *resultobj = 0; | |
18647 | wxDC *arg1 = (wxDC *) 0 ; | |
18648 | wxIcon *arg2 = 0 ; | |
18649 | wxPoint *arg3 = 0 ; | |
18650 | void *argp1 = 0 ; | |
18651 | int res1 = 0 ; | |
18652 | void *argp2 = 0 ; | |
18653 | int res2 = 0 ; | |
18654 | wxPoint temp3 ; | |
18655 | PyObject * obj0 = 0 ; | |
18656 | PyObject * obj1 = 0 ; | |
18657 | PyObject * obj2 = 0 ; | |
18658 | char * kwnames[] = { | |
18659 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
18660 | }; | |
18661 | ||
18662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18664 | if (!SWIG_IsOK(res1)) { | |
18665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18666 | } | |
18667 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18668 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
18669 | if (!SWIG_IsOK(res2)) { | |
18670 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
18671 | } | |
18672 | if (!argp2) { | |
18673 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
18674 | } | |
18675 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
18676 | { | |
18677 | arg3 = &temp3; | |
18678 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18679 | } | |
18680 | { | |
18681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18682 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
18683 | wxPyEndAllowThreads(__tstate); | |
18684 | if (PyErr_Occurred()) SWIG_fail; | |
18685 | } | |
18686 | resultobj = SWIG_Py_Void(); | |
18687 | return resultobj; | |
18688 | fail: | |
18689 | return NULL; | |
18690 | } | |
18691 | ||
18692 | ||
18693 | SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18694 | PyObject *resultobj = 0; | |
18695 | wxDC *arg1 = (wxDC *) 0 ; | |
18696 | wxBitmap *arg2 = 0 ; | |
18697 | int arg3 ; | |
18698 | int arg4 ; | |
18699 | bool arg5 = (bool) false ; | |
18700 | void *argp1 = 0 ; | |
18701 | int res1 = 0 ; | |
18702 | void *argp2 = 0 ; | |
18703 | int res2 = 0 ; | |
18704 | int val3 ; | |
18705 | int ecode3 = 0 ; | |
18706 | int val4 ; | |
18707 | int ecode4 = 0 ; | |
18708 | bool val5 ; | |
18709 | int ecode5 = 0 ; | |
18710 | PyObject * obj0 = 0 ; | |
18711 | PyObject * obj1 = 0 ; | |
18712 | PyObject * obj2 = 0 ; | |
18713 | PyObject * obj3 = 0 ; | |
18714 | PyObject * obj4 = 0 ; | |
18715 | char * kwnames[] = { | |
18716 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
18717 | }; | |
18718 | ||
18719 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18720 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18721 | if (!SWIG_IsOK(res1)) { | |
18722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18723 | } | |
18724 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18725 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
18726 | if (!SWIG_IsOK(res2)) { | |
18727 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
18728 | } | |
18729 | if (!argp2) { | |
18730 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
18731 | } | |
18732 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
18733 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18734 | if (!SWIG_IsOK(ecode3)) { | |
18735 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
18736 | } | |
18737 | arg3 = static_cast< int >(val3); | |
18738 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18739 | if (!SWIG_IsOK(ecode4)) { | |
18740 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
18741 | } | |
18742 | arg4 = static_cast< int >(val4); | |
18743 | if (obj4) { | |
18744 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
18745 | if (!SWIG_IsOK(ecode5)) { | |
18746 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
18747 | } | |
18748 | arg5 = static_cast< bool >(val5); | |
18749 | } | |
18750 | { | |
18751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18752 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
18753 | wxPyEndAllowThreads(__tstate); | |
18754 | if (PyErr_Occurred()) SWIG_fail; | |
18755 | } | |
18756 | resultobj = SWIG_Py_Void(); | |
18757 | return resultobj; | |
18758 | fail: | |
18759 | return NULL; | |
18760 | } | |
18761 | ||
18762 | ||
18763 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18764 | PyObject *resultobj = 0; | |
18765 | wxDC *arg1 = (wxDC *) 0 ; | |
18766 | wxBitmap *arg2 = 0 ; | |
18767 | wxPoint *arg3 = 0 ; | |
18768 | bool arg4 = (bool) false ; | |
18769 | void *argp1 = 0 ; | |
18770 | int res1 = 0 ; | |
18771 | void *argp2 = 0 ; | |
18772 | int res2 = 0 ; | |
18773 | wxPoint temp3 ; | |
18774 | bool val4 ; | |
18775 | int ecode4 = 0 ; | |
18776 | PyObject * obj0 = 0 ; | |
18777 | PyObject * obj1 = 0 ; | |
18778 | PyObject * obj2 = 0 ; | |
18779 | PyObject * obj3 = 0 ; | |
18780 | char * kwnames[] = { | |
18781 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
18782 | }; | |
18783 | ||
18784 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18785 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18786 | if (!SWIG_IsOK(res1)) { | |
18787 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18788 | } | |
18789 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18790 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
18791 | if (!SWIG_IsOK(res2)) { | |
18792 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
18793 | } | |
18794 | if (!argp2) { | |
18795 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
18796 | } | |
18797 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
18798 | { | |
18799 | arg3 = &temp3; | |
18800 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18801 | } | |
18802 | if (obj3) { | |
18803 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
18804 | if (!SWIG_IsOK(ecode4)) { | |
18805 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
18806 | } | |
18807 | arg4 = static_cast< bool >(val4); | |
18808 | } | |
18809 | { | |
18810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18811 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
18812 | wxPyEndAllowThreads(__tstate); | |
18813 | if (PyErr_Occurred()) SWIG_fail; | |
18814 | } | |
18815 | resultobj = SWIG_Py_Void(); | |
18816 | return resultobj; | |
18817 | fail: | |
18818 | return NULL; | |
18819 | } | |
18820 | ||
18821 | ||
18822 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18823 | PyObject *resultobj = 0; | |
18824 | wxDC *arg1 = (wxDC *) 0 ; | |
18825 | wxString *arg2 = 0 ; | |
18826 | int arg3 ; | |
18827 | int arg4 ; | |
18828 | void *argp1 = 0 ; | |
18829 | int res1 = 0 ; | |
18830 | bool temp2 = false ; | |
18831 | int val3 ; | |
18832 | int ecode3 = 0 ; | |
18833 | int val4 ; | |
18834 | int ecode4 = 0 ; | |
18835 | PyObject * obj0 = 0 ; | |
18836 | PyObject * obj1 = 0 ; | |
18837 | PyObject * obj2 = 0 ; | |
18838 | PyObject * obj3 = 0 ; | |
18839 | char * kwnames[] = { | |
18840 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
18841 | }; | |
18842 | ||
18843 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18844 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18845 | if (!SWIG_IsOK(res1)) { | |
18846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18847 | } | |
18848 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18849 | { | |
18850 | arg2 = wxString_in_helper(obj1); | |
18851 | if (arg2 == NULL) SWIG_fail; | |
18852 | temp2 = true; | |
18853 | } | |
18854 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18855 | if (!SWIG_IsOK(ecode3)) { | |
18856 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
18857 | } | |
18858 | arg3 = static_cast< int >(val3); | |
18859 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18860 | if (!SWIG_IsOK(ecode4)) { | |
18861 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
18862 | } | |
18863 | arg4 = static_cast< int >(val4); | |
18864 | { | |
18865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18866 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
18867 | wxPyEndAllowThreads(__tstate); | |
18868 | if (PyErr_Occurred()) SWIG_fail; | |
18869 | } | |
18870 | resultobj = SWIG_Py_Void(); | |
18871 | { | |
18872 | if (temp2) | |
18873 | delete arg2; | |
18874 | } | |
18875 | return resultobj; | |
18876 | fail: | |
18877 | { | |
18878 | if (temp2) | |
18879 | delete arg2; | |
18880 | } | |
18881 | return NULL; | |
18882 | } | |
18883 | ||
18884 | ||
18885 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18886 | PyObject *resultobj = 0; | |
18887 | wxDC *arg1 = (wxDC *) 0 ; | |
18888 | wxString *arg2 = 0 ; | |
18889 | wxPoint *arg3 = 0 ; | |
18890 | void *argp1 = 0 ; | |
18891 | int res1 = 0 ; | |
18892 | bool temp2 = false ; | |
18893 | wxPoint temp3 ; | |
18894 | PyObject * obj0 = 0 ; | |
18895 | PyObject * obj1 = 0 ; | |
18896 | PyObject * obj2 = 0 ; | |
18897 | char * kwnames[] = { | |
18898 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
18899 | }; | |
18900 | ||
18901 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18902 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18903 | if (!SWIG_IsOK(res1)) { | |
18904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18905 | } | |
18906 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18907 | { | |
18908 | arg2 = wxString_in_helper(obj1); | |
18909 | if (arg2 == NULL) SWIG_fail; | |
18910 | temp2 = true; | |
18911 | } | |
18912 | { | |
18913 | arg3 = &temp3; | |
18914 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18915 | } | |
18916 | { | |
18917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18918 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
18919 | wxPyEndAllowThreads(__tstate); | |
18920 | if (PyErr_Occurred()) SWIG_fail; | |
18921 | } | |
18922 | resultobj = SWIG_Py_Void(); | |
18923 | { | |
18924 | if (temp2) | |
18925 | delete arg2; | |
18926 | } | |
18927 | return resultobj; | |
18928 | fail: | |
18929 | { | |
18930 | if (temp2) | |
18931 | delete arg2; | |
18932 | } | |
18933 | return NULL; | |
18934 | } | |
18935 | ||
18936 | ||
18937 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18938 | PyObject *resultobj = 0; | |
18939 | wxDC *arg1 = (wxDC *) 0 ; | |
18940 | wxString *arg2 = 0 ; | |
18941 | int arg3 ; | |
18942 | int arg4 ; | |
18943 | double arg5 ; | |
18944 | void *argp1 = 0 ; | |
18945 | int res1 = 0 ; | |
18946 | bool temp2 = false ; | |
18947 | int val3 ; | |
18948 | int ecode3 = 0 ; | |
18949 | int val4 ; | |
18950 | int ecode4 = 0 ; | |
18951 | double val5 ; | |
18952 | int ecode5 = 0 ; | |
18953 | PyObject * obj0 = 0 ; | |
18954 | PyObject * obj1 = 0 ; | |
18955 | PyObject * obj2 = 0 ; | |
18956 | PyObject * obj3 = 0 ; | |
18957 | PyObject * obj4 = 0 ; | |
18958 | char * kwnames[] = { | |
18959 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
18960 | }; | |
18961 | ||
18962 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18963 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18964 | if (!SWIG_IsOK(res1)) { | |
18965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18966 | } | |
18967 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18968 | { | |
18969 | arg2 = wxString_in_helper(obj1); | |
18970 | if (arg2 == NULL) SWIG_fail; | |
18971 | temp2 = true; | |
18972 | } | |
18973 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18974 | if (!SWIG_IsOK(ecode3)) { | |
18975 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
18976 | } | |
18977 | arg3 = static_cast< int >(val3); | |
18978 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18979 | if (!SWIG_IsOK(ecode4)) { | |
18980 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
18981 | } | |
18982 | arg4 = static_cast< int >(val4); | |
18983 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
18984 | if (!SWIG_IsOK(ecode5)) { | |
18985 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
18986 | } | |
18987 | arg5 = static_cast< double >(val5); | |
18988 | { | |
18989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18990 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
18991 | wxPyEndAllowThreads(__tstate); | |
18992 | if (PyErr_Occurred()) SWIG_fail; | |
18993 | } | |
18994 | resultobj = SWIG_Py_Void(); | |
18995 | { | |
18996 | if (temp2) | |
18997 | delete arg2; | |
18998 | } | |
18999 | return resultobj; | |
19000 | fail: | |
19001 | { | |
19002 | if (temp2) | |
19003 | delete arg2; | |
19004 | } | |
19005 | return NULL; | |
19006 | } | |
19007 | ||
19008 | ||
19009 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19010 | PyObject *resultobj = 0; | |
19011 | wxDC *arg1 = (wxDC *) 0 ; | |
19012 | wxString *arg2 = 0 ; | |
19013 | wxPoint *arg3 = 0 ; | |
19014 | double arg4 ; | |
19015 | void *argp1 = 0 ; | |
19016 | int res1 = 0 ; | |
19017 | bool temp2 = false ; | |
19018 | wxPoint temp3 ; | |
19019 | double val4 ; | |
19020 | int ecode4 = 0 ; | |
19021 | PyObject * obj0 = 0 ; | |
19022 | PyObject * obj1 = 0 ; | |
19023 | PyObject * obj2 = 0 ; | |
19024 | PyObject * obj3 = 0 ; | |
19025 | char * kwnames[] = { | |
19026 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
19027 | }; | |
19028 | ||
19029 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19030 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19031 | if (!SWIG_IsOK(res1)) { | |
19032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19033 | } | |
19034 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19035 | { | |
19036 | arg2 = wxString_in_helper(obj1); | |
19037 | if (arg2 == NULL) SWIG_fail; | |
19038 | temp2 = true; | |
19039 | } | |
19040 | { | |
19041 | arg3 = &temp3; | |
19042 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19043 | } | |
19044 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19045 | if (!SWIG_IsOK(ecode4)) { | |
19046 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
19047 | } | |
19048 | arg4 = static_cast< double >(val4); | |
19049 | { | |
19050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19051 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19052 | wxPyEndAllowThreads(__tstate); | |
19053 | if (PyErr_Occurred()) SWIG_fail; | |
19054 | } | |
19055 | resultobj = SWIG_Py_Void(); | |
19056 | { | |
19057 | if (temp2) | |
19058 | delete arg2; | |
19059 | } | |
19060 | return resultobj; | |
19061 | fail: | |
19062 | { | |
19063 | if (temp2) | |
19064 | delete arg2; | |
19065 | } | |
19066 | return NULL; | |
19067 | } | |
19068 | ||
19069 | ||
19070 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19071 | PyObject *resultobj = 0; | |
19072 | wxDC *arg1 = (wxDC *) 0 ; | |
19073 | int arg2 ; | |
19074 | int arg3 ; | |
19075 | int arg4 ; | |
19076 | int arg5 ; | |
19077 | wxDC *arg6 = (wxDC *) 0 ; | |
19078 | int arg7 ; | |
19079 | int arg8 ; | |
19080 | int arg9 = (int) wxCOPY ; | |
19081 | bool arg10 = (bool) false ; | |
19082 | int arg11 = (int) -1 ; | |
19083 | int arg12 = (int) -1 ; | |
19084 | bool result; | |
19085 | void *argp1 = 0 ; | |
19086 | int res1 = 0 ; | |
19087 | int val2 ; | |
19088 | int ecode2 = 0 ; | |
19089 | int val3 ; | |
19090 | int ecode3 = 0 ; | |
19091 | int val4 ; | |
19092 | int ecode4 = 0 ; | |
19093 | int val5 ; | |
19094 | int ecode5 = 0 ; | |
19095 | void *argp6 = 0 ; | |
19096 | int res6 = 0 ; | |
19097 | int val7 ; | |
19098 | int ecode7 = 0 ; | |
19099 | int val8 ; | |
19100 | int ecode8 = 0 ; | |
19101 | int val9 ; | |
19102 | int ecode9 = 0 ; | |
19103 | bool val10 ; | |
19104 | int ecode10 = 0 ; | |
19105 | int val11 ; | |
19106 | int ecode11 = 0 ; | |
19107 | int val12 ; | |
19108 | int ecode12 = 0 ; | |
19109 | PyObject * obj0 = 0 ; | |
19110 | PyObject * obj1 = 0 ; | |
19111 | PyObject * obj2 = 0 ; | |
19112 | PyObject * obj3 = 0 ; | |
19113 | PyObject * obj4 = 0 ; | |
19114 | PyObject * obj5 = 0 ; | |
19115 | PyObject * obj6 = 0 ; | |
19116 | PyObject * obj7 = 0 ; | |
19117 | PyObject * obj8 = 0 ; | |
19118 | PyObject * obj9 = 0 ; | |
19119 | PyObject * obj10 = 0 ; | |
19120 | PyObject * obj11 = 0 ; | |
19121 | char * kwnames[] = { | |
19122 | (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 | |
19123 | }; | |
19124 | ||
19125 | 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; | |
19126 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19127 | if (!SWIG_IsOK(res1)) { | |
19128 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19129 | } | |
19130 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19131 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19132 | if (!SWIG_IsOK(ecode2)) { | |
19133 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
19134 | } | |
19135 | arg2 = static_cast< int >(val2); | |
19136 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19137 | if (!SWIG_IsOK(ecode3)) { | |
19138 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
19139 | } | |
19140 | arg3 = static_cast< int >(val3); | |
19141 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19142 | if (!SWIG_IsOK(ecode4)) { | |
19143 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
19144 | } | |
19145 | arg4 = static_cast< int >(val4); | |
19146 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19147 | if (!SWIG_IsOK(ecode5)) { | |
19148 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
19149 | } | |
19150 | arg5 = static_cast< int >(val5); | |
19151 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19152 | if (!SWIG_IsOK(res6)) { | |
19153 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
19154 | } | |
19155 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
19156 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
19157 | if (!SWIG_IsOK(ecode7)) { | |
19158 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
19159 | } | |
19160 | arg7 = static_cast< int >(val7); | |
19161 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
19162 | if (!SWIG_IsOK(ecode8)) { | |
19163 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
19164 | } | |
19165 | arg8 = static_cast< int >(val8); | |
19166 | if (obj8) { | |
19167 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
19168 | if (!SWIG_IsOK(ecode9)) { | |
19169 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
19170 | } | |
19171 | arg9 = static_cast< int >(val9); | |
19172 | } | |
19173 | if (obj9) { | |
19174 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
19175 | if (!SWIG_IsOK(ecode10)) { | |
19176 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
19177 | } | |
19178 | arg10 = static_cast< bool >(val10); | |
19179 | } | |
19180 | if (obj10) { | |
19181 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
19182 | if (!SWIG_IsOK(ecode11)) { | |
19183 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
19184 | } | |
19185 | arg11 = static_cast< int >(val11); | |
19186 | } | |
19187 | if (obj11) { | |
19188 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
19189 | if (!SWIG_IsOK(ecode12)) { | |
19190 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
19191 | } | |
19192 | arg12 = static_cast< int >(val12); | |
19193 | } | |
19194 | { | |
19195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19196 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
19197 | wxPyEndAllowThreads(__tstate); | |
19198 | if (PyErr_Occurred()) SWIG_fail; | |
19199 | } | |
19200 | { | |
19201 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19202 | } | |
19203 | return resultobj; | |
19204 | fail: | |
19205 | return NULL; | |
19206 | } | |
19207 | ||
19208 | ||
19209 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19210 | PyObject *resultobj = 0; | |
19211 | wxDC *arg1 = (wxDC *) 0 ; | |
19212 | wxPoint *arg2 = 0 ; | |
19213 | wxSize *arg3 = 0 ; | |
19214 | wxDC *arg4 = (wxDC *) 0 ; | |
19215 | wxPoint *arg5 = 0 ; | |
19216 | int arg6 = (int) wxCOPY ; | |
19217 | bool arg7 = (bool) false ; | |
19218 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
19219 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
19220 | bool result; | |
19221 | void *argp1 = 0 ; | |
19222 | int res1 = 0 ; | |
19223 | wxPoint temp2 ; | |
19224 | wxSize temp3 ; | |
19225 | void *argp4 = 0 ; | |
19226 | int res4 = 0 ; | |
19227 | wxPoint temp5 ; | |
19228 | int val6 ; | |
19229 | int ecode6 = 0 ; | |
19230 | bool val7 ; | |
19231 | int ecode7 = 0 ; | |
19232 | wxPoint temp8 ; | |
19233 | PyObject * obj0 = 0 ; | |
19234 | PyObject * obj1 = 0 ; | |
19235 | PyObject * obj2 = 0 ; | |
19236 | PyObject * obj3 = 0 ; | |
19237 | PyObject * obj4 = 0 ; | |
19238 | PyObject * obj5 = 0 ; | |
19239 | PyObject * obj6 = 0 ; | |
19240 | PyObject * obj7 = 0 ; | |
19241 | char * kwnames[] = { | |
19242 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
19243 | }; | |
19244 | ||
19245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
19246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19247 | if (!SWIG_IsOK(res1)) { | |
19248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19249 | } | |
19250 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19251 | { | |
19252 | arg2 = &temp2; | |
19253 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19254 | } | |
19255 | { | |
19256 | arg3 = &temp3; | |
19257 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19258 | } | |
19259 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19260 | if (!SWIG_IsOK(res4)) { | |
19261 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
19262 | } | |
19263 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
19264 | { | |
19265 | arg5 = &temp5; | |
19266 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
19267 | } | |
19268 | if (obj5) { | |
19269 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
19270 | if (!SWIG_IsOK(ecode6)) { | |
19271 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
19272 | } | |
19273 | arg6 = static_cast< int >(val6); | |
19274 | } | |
19275 | if (obj6) { | |
19276 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
19277 | if (!SWIG_IsOK(ecode7)) { | |
19278 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
19279 | } | |
19280 | arg7 = static_cast< bool >(val7); | |
19281 | } | |
19282 | if (obj7) { | |
093d3ff1 | 19283 | { |
0085ce49 RD |
19284 | arg8 = &temp8; |
19285 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
093d3ff1 | 19286 | } |
0085ce49 RD |
19287 | } |
19288 | { | |
19289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19290 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
19291 | wxPyEndAllowThreads(__tstate); | |
19292 | if (PyErr_Occurred()) SWIG_fail; | |
19293 | } | |
19294 | { | |
19295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19296 | } | |
19297 | return resultobj; | |
19298 | fail: | |
19299 | return NULL; | |
19300 | } | |
19301 | ||
19302 | ||
19303 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19304 | PyObject *resultobj = 0; | |
19305 | wxDC *arg1 = (wxDC *) 0 ; | |
19306 | int arg2 ; | |
19307 | int arg3 ; | |
19308 | int arg4 ; | |
19309 | int arg5 ; | |
19310 | void *argp1 = 0 ; | |
19311 | int res1 = 0 ; | |
19312 | int val2 ; | |
19313 | int ecode2 = 0 ; | |
19314 | int val3 ; | |
19315 | int ecode3 = 0 ; | |
19316 | int val4 ; | |
19317 | int ecode4 = 0 ; | |
19318 | int val5 ; | |
19319 | int ecode5 = 0 ; | |
19320 | PyObject * obj0 = 0 ; | |
19321 | PyObject * obj1 = 0 ; | |
19322 | PyObject * obj2 = 0 ; | |
19323 | PyObject * obj3 = 0 ; | |
19324 | PyObject * obj4 = 0 ; | |
19325 | char * kwnames[] = { | |
19326 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19327 | }; | |
19328 | ||
19329 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19330 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19331 | if (!SWIG_IsOK(res1)) { | |
19332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19333 | } | |
19334 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19335 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19336 | if (!SWIG_IsOK(ecode2)) { | |
19337 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
19338 | } | |
19339 | arg2 = static_cast< int >(val2); | |
19340 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19341 | if (!SWIG_IsOK(ecode3)) { | |
19342 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
19343 | } | |
19344 | arg3 = static_cast< int >(val3); | |
19345 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19346 | if (!SWIG_IsOK(ecode4)) { | |
19347 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
19348 | } | |
19349 | arg4 = static_cast< int >(val4); | |
19350 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19351 | if (!SWIG_IsOK(ecode5)) { | |
19352 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
19353 | } | |
19354 | arg5 = static_cast< int >(val5); | |
19355 | { | |
19356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19357 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
19358 | wxPyEndAllowThreads(__tstate); | |
19359 | if (PyErr_Occurred()) SWIG_fail; | |
19360 | } | |
19361 | resultobj = SWIG_Py_Void(); | |
19362 | return resultobj; | |
19363 | fail: | |
19364 | return NULL; | |
19365 | } | |
19366 | ||
19367 | ||
19368 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19369 | PyObject *resultobj = 0; | |
19370 | wxDC *arg1 = (wxDC *) 0 ; | |
19371 | wxPoint *arg2 = 0 ; | |
19372 | wxSize *arg3 = 0 ; | |
19373 | void *argp1 = 0 ; | |
19374 | int res1 = 0 ; | |
19375 | wxPoint temp2 ; | |
19376 | wxSize temp3 ; | |
19377 | PyObject * obj0 = 0 ; | |
19378 | PyObject * obj1 = 0 ; | |
19379 | PyObject * obj2 = 0 ; | |
19380 | char * kwnames[] = { | |
19381 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19382 | }; | |
19383 | ||
19384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19385 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19386 | if (!SWIG_IsOK(res1)) { | |
19387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19388 | } | |
19389 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19390 | { | |
19391 | arg2 = &temp2; | |
19392 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19393 | } | |
19394 | { | |
19395 | arg3 = &temp3; | |
19396 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19397 | } | |
19398 | { | |
19399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19400 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19401 | wxPyEndAllowThreads(__tstate); | |
19402 | if (PyErr_Occurred()) SWIG_fail; | |
19403 | } | |
19404 | resultobj = SWIG_Py_Void(); | |
19405 | return resultobj; | |
19406 | fail: | |
19407 | return NULL; | |
19408 | } | |
19409 | ||
19410 | ||
19411 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19412 | PyObject *resultobj = 0; | |
19413 | wxDC *arg1 = (wxDC *) 0 ; | |
19414 | wxRegion *arg2 = 0 ; | |
19415 | void *argp1 = 0 ; | |
19416 | int res1 = 0 ; | |
19417 | void *argp2 = 0 ; | |
19418 | int res2 = 0 ; | |
19419 | PyObject * obj0 = 0 ; | |
19420 | PyObject * obj1 = 0 ; | |
19421 | char * kwnames[] = { | |
19422 | (char *) "self",(char *) "region", NULL | |
19423 | }; | |
19424 | ||
19425 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
19426 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19427 | if (!SWIG_IsOK(res1)) { | |
19428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19429 | } | |
19430 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19431 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
19432 | if (!SWIG_IsOK(res2)) { | |
19433 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
19434 | } | |
19435 | if (!argp2) { | |
19436 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
19437 | } | |
19438 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
19439 | { | |
19440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19441 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
19442 | wxPyEndAllowThreads(__tstate); | |
19443 | if (PyErr_Occurred()) SWIG_fail; | |
19444 | } | |
19445 | resultobj = SWIG_Py_Void(); | |
19446 | return resultobj; | |
19447 | fail: | |
19448 | return NULL; | |
19449 | } | |
19450 | ||
19451 | ||
19452 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19453 | PyObject *resultobj = 0; | |
19454 | wxDC *arg1 = (wxDC *) 0 ; | |
19455 | wxRect *arg2 = 0 ; | |
19456 | void *argp1 = 0 ; | |
19457 | int res1 = 0 ; | |
19458 | wxRect temp2 ; | |
19459 | PyObject * obj0 = 0 ; | |
19460 | PyObject * obj1 = 0 ; | |
19461 | char * kwnames[] = { | |
19462 | (char *) "self",(char *) "rect", NULL | |
19463 | }; | |
19464 | ||
19465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19467 | if (!SWIG_IsOK(res1)) { | |
19468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19469 | } | |
19470 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19471 | { | |
19472 | arg2 = &temp2; | |
19473 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19474 | } | |
19475 | { | |
19476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19477 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
19478 | wxPyEndAllowThreads(__tstate); | |
19479 | if (PyErr_Occurred()) SWIG_fail; | |
19480 | } | |
19481 | resultobj = SWIG_Py_Void(); | |
19482 | return resultobj; | |
19483 | fail: | |
19484 | return NULL; | |
19485 | } | |
19486 | ||
19487 | ||
19488 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19489 | PyObject *resultobj = 0; | |
19490 | wxDC *arg1 = (wxDC *) 0 ; | |
19491 | int arg2 ; | |
19492 | wxPoint *arg3 = (wxPoint *) 0 ; | |
19493 | int arg4 = (int) 0 ; | |
19494 | int arg5 = (int) 0 ; | |
19495 | void *argp1 = 0 ; | |
19496 | int res1 = 0 ; | |
19497 | int val4 ; | |
19498 | int ecode4 = 0 ; | |
19499 | int val5 ; | |
19500 | int ecode5 = 0 ; | |
19501 | PyObject * obj0 = 0 ; | |
19502 | PyObject * obj1 = 0 ; | |
19503 | PyObject * obj2 = 0 ; | |
19504 | PyObject * obj3 = 0 ; | |
19505 | char * kwnames[] = { | |
19506 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
19507 | }; | |
19508 | ||
19509 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19510 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19511 | if (!SWIG_IsOK(res1)) { | |
19512 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19513 | } | |
19514 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19515 | { | |
19516 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
19517 | if (arg3 == NULL) SWIG_fail; | |
19518 | } | |
19519 | if (obj2) { | |
19520 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
19521 | if (!SWIG_IsOK(ecode4)) { | |
19522 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
19523 | } | |
19524 | arg4 = static_cast< int >(val4); | |
19525 | } | |
19526 | if (obj3) { | |
19527 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
19528 | if (!SWIG_IsOK(ecode5)) { | |
19529 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
19530 | } | |
19531 | arg5 = static_cast< int >(val5); | |
19532 | } | |
19533 | { | |
19534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19535 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
19536 | wxPyEndAllowThreads(__tstate); | |
19537 | if (PyErr_Occurred()) SWIG_fail; | |
19538 | } | |
19539 | resultobj = SWIG_Py_Void(); | |
19540 | { | |
19541 | if (arg3) delete [] arg3; | |
19542 | } | |
19543 | return resultobj; | |
19544 | fail: | |
19545 | { | |
19546 | if (arg3) delete [] arg3; | |
19547 | } | |
19548 | return NULL; | |
19549 | } | |
19550 | ||
19551 | ||
19552 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19553 | PyObject *resultobj = 0; | |
19554 | wxDC *arg1 = (wxDC *) 0 ; | |
19555 | int arg2 ; | |
19556 | wxPoint *arg3 = (wxPoint *) 0 ; | |
19557 | int arg4 = (int) 0 ; | |
19558 | int arg5 = (int) 0 ; | |
19559 | int arg6 = (int) wxODDEVEN_RULE ; | |
19560 | void *argp1 = 0 ; | |
19561 | int res1 = 0 ; | |
19562 | int val4 ; | |
19563 | int ecode4 = 0 ; | |
19564 | int val5 ; | |
19565 | int ecode5 = 0 ; | |
19566 | int val6 ; | |
19567 | int ecode6 = 0 ; | |
19568 | PyObject * obj0 = 0 ; | |
19569 | PyObject * obj1 = 0 ; | |
19570 | PyObject * obj2 = 0 ; | |
19571 | PyObject * obj3 = 0 ; | |
19572 | PyObject * obj4 = 0 ; | |
19573 | char * kwnames[] = { | |
19574 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
19575 | }; | |
19576 | ||
19577 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19578 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19579 | if (!SWIG_IsOK(res1)) { | |
19580 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19581 | } | |
19582 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19583 | { | |
19584 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
19585 | if (arg3 == NULL) SWIG_fail; | |
19586 | } | |
19587 | if (obj2) { | |
19588 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
19589 | if (!SWIG_IsOK(ecode4)) { | |
19590 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
19591 | } | |
19592 | arg4 = static_cast< int >(val4); | |
19593 | } | |
19594 | if (obj3) { | |
19595 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
19596 | if (!SWIG_IsOK(ecode5)) { | |
19597 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
19598 | } | |
19599 | arg5 = static_cast< int >(val5); | |
19600 | } | |
19601 | if (obj4) { | |
19602 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
19603 | if (!SWIG_IsOK(ecode6)) { | |
19604 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
19605 | } | |
19606 | arg6 = static_cast< int >(val6); | |
19607 | } | |
19608 | { | |
19609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19610 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
19611 | wxPyEndAllowThreads(__tstate); | |
19612 | if (PyErr_Occurred()) SWIG_fail; | |
19613 | } | |
19614 | resultobj = SWIG_Py_Void(); | |
19615 | { | |
19616 | if (arg3) delete [] arg3; | |
19617 | } | |
19618 | return resultobj; | |
19619 | fail: | |
19620 | { | |
19621 | if (arg3) delete [] arg3; | |
19622 | } | |
19623 | return NULL; | |
19624 | } | |
19625 | ||
19626 | ||
19627 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19628 | PyObject *resultobj = 0; | |
19629 | wxDC *arg1 = (wxDC *) 0 ; | |
19630 | wxString *arg2 = 0 ; | |
19631 | wxRect *arg3 = 0 ; | |
19632 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
19633 | int arg5 = (int) -1 ; | |
19634 | void *argp1 = 0 ; | |
19635 | int res1 = 0 ; | |
19636 | bool temp2 = false ; | |
19637 | wxRect temp3 ; | |
19638 | int val4 ; | |
19639 | int ecode4 = 0 ; | |
19640 | int val5 ; | |
19641 | int ecode5 = 0 ; | |
19642 | PyObject * obj0 = 0 ; | |
19643 | PyObject * obj1 = 0 ; | |
19644 | PyObject * obj2 = 0 ; | |
19645 | PyObject * obj3 = 0 ; | |
19646 | PyObject * obj4 = 0 ; | |
19647 | char * kwnames[] = { | |
19648 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
19649 | }; | |
19650 | ||
19651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19652 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19653 | if (!SWIG_IsOK(res1)) { | |
19654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19655 | } | |
19656 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19657 | { | |
19658 | arg2 = wxString_in_helper(obj1); | |
19659 | if (arg2 == NULL) SWIG_fail; | |
19660 | temp2 = true; | |
19661 | } | |
19662 | { | |
19663 | arg3 = &temp3; | |
19664 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
19665 | } | |
19666 | if (obj3) { | |
19667 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19668 | if (!SWIG_IsOK(ecode4)) { | |
19669 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
19670 | } | |
19671 | arg4 = static_cast< int >(val4); | |
19672 | } | |
19673 | if (obj4) { | |
19674 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19675 | if (!SWIG_IsOK(ecode5)) { | |
19676 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
19677 | } | |
19678 | arg5 = static_cast< int >(val5); | |
19679 | } | |
19680 | { | |
19681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19682 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
19683 | wxPyEndAllowThreads(__tstate); | |
19684 | if (PyErr_Occurred()) SWIG_fail; | |
19685 | } | |
19686 | resultobj = SWIG_Py_Void(); | |
19687 | { | |
19688 | if (temp2) | |
19689 | delete arg2; | |
19690 | } | |
19691 | return resultobj; | |
19692 | fail: | |
19693 | { | |
19694 | if (temp2) | |
19695 | delete arg2; | |
19696 | } | |
19697 | return NULL; | |
19698 | } | |
19699 | ||
19700 | ||
19701 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19702 | PyObject *resultobj = 0; | |
19703 | wxDC *arg1 = (wxDC *) 0 ; | |
19704 | wxString *arg2 = 0 ; | |
19705 | wxBitmap *arg3 = 0 ; | |
19706 | wxRect *arg4 = 0 ; | |
19707 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
19708 | int arg6 = (int) -1 ; | |
19709 | wxRect result; | |
19710 | void *argp1 = 0 ; | |
19711 | int res1 = 0 ; | |
19712 | bool temp2 = false ; | |
19713 | void *argp3 = 0 ; | |
19714 | int res3 = 0 ; | |
19715 | wxRect temp4 ; | |
19716 | int val5 ; | |
19717 | int ecode5 = 0 ; | |
19718 | int val6 ; | |
19719 | int ecode6 = 0 ; | |
19720 | PyObject * obj0 = 0 ; | |
19721 | PyObject * obj1 = 0 ; | |
19722 | PyObject * obj2 = 0 ; | |
19723 | PyObject * obj3 = 0 ; | |
19724 | PyObject * obj4 = 0 ; | |
19725 | PyObject * obj5 = 0 ; | |
19726 | char * kwnames[] = { | |
19727 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
19728 | }; | |
19729 | ||
19730 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
19731 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19732 | if (!SWIG_IsOK(res1)) { | |
19733 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19734 | } | |
19735 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19736 | { | |
19737 | arg2 = wxString_in_helper(obj1); | |
19738 | if (arg2 == NULL) SWIG_fail; | |
19739 | temp2 = true; | |
19740 | } | |
19741 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19742 | if (!SWIG_IsOK(res3)) { | |
19743 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
19744 | } | |
19745 | if (!argp3) { | |
19746 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
19747 | } | |
19748 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
19749 | { | |
19750 | arg4 = &temp4; | |
19751 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
19752 | } | |
19753 | if (obj4) { | |
19754 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19755 | if (!SWIG_IsOK(ecode5)) { | |
19756 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
19757 | } | |
19758 | arg5 = static_cast< int >(val5); | |
19759 | } | |
19760 | if (obj5) { | |
19761 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
19762 | if (!SWIG_IsOK(ecode6)) { | |
19763 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
19764 | } | |
19765 | arg6 = static_cast< int >(val6); | |
19766 | } | |
19767 | { | |
19768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19769 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
19770 | wxPyEndAllowThreads(__tstate); | |
19771 | if (PyErr_Occurred()) SWIG_fail; | |
19772 | } | |
19773 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
19774 | { | |
19775 | if (temp2) | |
19776 | delete arg2; | |
19777 | } | |
19778 | return resultobj; | |
19779 | fail: | |
19780 | { | |
19781 | if (temp2) | |
19782 | delete arg2; | |
19783 | } | |
19784 | return NULL; | |
19785 | } | |
19786 | ||
19787 | ||
19788 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19789 | PyObject *resultobj = 0; | |
19790 | wxDC *arg1 = (wxDC *) 0 ; | |
19791 | int arg2 ; | |
19792 | wxPoint *arg3 = (wxPoint *) 0 ; | |
19793 | void *argp1 = 0 ; | |
19794 | int res1 = 0 ; | |
19795 | PyObject * obj0 = 0 ; | |
19796 | PyObject * obj1 = 0 ; | |
19797 | char * kwnames[] = { | |
19798 | (char *) "self",(char *) "points", NULL | |
19799 | }; | |
19800 | ||
19801 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
19802 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19803 | if (!SWIG_IsOK(res1)) { | |
19804 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19805 | } | |
19806 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19807 | { | |
19808 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
19809 | if (arg3 == NULL) SWIG_fail; | |
19810 | } | |
19811 | { | |
19812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19813 | (arg1)->DrawSpline(arg2,arg3); | |
19814 | wxPyEndAllowThreads(__tstate); | |
19815 | if (PyErr_Occurred()) SWIG_fail; | |
19816 | } | |
19817 | resultobj = SWIG_Py_Void(); | |
19818 | { | |
19819 | if (arg3) delete [] arg3; | |
19820 | } | |
19821 | return resultobj; | |
19822 | fail: | |
19823 | { | |
19824 | if (arg3) delete [] arg3; | |
19825 | } | |
19826 | return NULL; | |
19827 | } | |
19828 | ||
19829 | ||
19830 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19831 | PyObject *resultobj = 0; | |
19832 | wxDC *arg1 = (wxDC *) 0 ; | |
19833 | void *argp1 = 0 ; | |
19834 | int res1 = 0 ; | |
19835 | PyObject *swig_obj[1] ; | |
19836 | ||
19837 | if (!args) SWIG_fail; | |
19838 | swig_obj[0] = args; | |
19839 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19840 | if (!SWIG_IsOK(res1)) { | |
19841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19842 | } | |
19843 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19844 | { | |
19845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19846 | (arg1)->Clear(); | |
19847 | wxPyEndAllowThreads(__tstate); | |
19848 | if (PyErr_Occurred()) SWIG_fail; | |
19849 | } | |
19850 | resultobj = SWIG_Py_Void(); | |
19851 | return resultobj; | |
19852 | fail: | |
19853 | return NULL; | |
19854 | } | |
19855 | ||
19856 | ||
19857 | SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19858 | PyObject *resultobj = 0; | |
19859 | wxDC *arg1 = (wxDC *) 0 ; | |
19860 | wxString *arg2 = 0 ; | |
19861 | bool result; | |
19862 | void *argp1 = 0 ; | |
19863 | int res1 = 0 ; | |
19864 | bool temp2 = false ; | |
19865 | PyObject * obj0 = 0 ; | |
19866 | PyObject * obj1 = 0 ; | |
19867 | char * kwnames[] = { | |
19868 | (char *) "self",(char *) "message", NULL | |
19869 | }; | |
19870 | ||
19871 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail; | |
19872 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19873 | if (!SWIG_IsOK(res1)) { | |
19874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19875 | } | |
19876 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19877 | { | |
19878 | arg2 = wxString_in_helper(obj1); | |
19879 | if (arg2 == NULL) SWIG_fail; | |
19880 | temp2 = true; | |
19881 | } | |
19882 | { | |
19883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19884 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
19885 | wxPyEndAllowThreads(__tstate); | |
19886 | if (PyErr_Occurred()) SWIG_fail; | |
19887 | } | |
19888 | { | |
19889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19890 | } | |
19891 | { | |
19892 | if (temp2) | |
19893 | delete arg2; | |
19894 | } | |
19895 | return resultobj; | |
19896 | fail: | |
19897 | { | |
19898 | if (temp2) | |
19899 | delete arg2; | |
19900 | } | |
19901 | return NULL; | |
19902 | } | |
19903 | ||
19904 | ||
19905 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19906 | PyObject *resultobj = 0; | |
19907 | wxDC *arg1 = (wxDC *) 0 ; | |
19908 | void *argp1 = 0 ; | |
19909 | int res1 = 0 ; | |
19910 | PyObject *swig_obj[1] ; | |
19911 | ||
19912 | if (!args) SWIG_fail; | |
19913 | swig_obj[0] = args; | |
19914 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19915 | if (!SWIG_IsOK(res1)) { | |
19916 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19917 | } | |
19918 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19919 | { | |
19920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19921 | (arg1)->EndDoc(); | |
19922 | wxPyEndAllowThreads(__tstate); | |
19923 | if (PyErr_Occurred()) SWIG_fail; | |
19924 | } | |
19925 | resultobj = SWIG_Py_Void(); | |
19926 | return resultobj; | |
19927 | fail: | |
19928 | return NULL; | |
19929 | } | |
19930 | ||
19931 | ||
19932 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19933 | PyObject *resultobj = 0; | |
19934 | wxDC *arg1 = (wxDC *) 0 ; | |
19935 | void *argp1 = 0 ; | |
19936 | int res1 = 0 ; | |
19937 | PyObject *swig_obj[1] ; | |
19938 | ||
19939 | if (!args) SWIG_fail; | |
19940 | swig_obj[0] = args; | |
19941 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19942 | if (!SWIG_IsOK(res1)) { | |
19943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19944 | } | |
19945 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19946 | { | |
19947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19948 | (arg1)->StartPage(); | |
19949 | wxPyEndAllowThreads(__tstate); | |
19950 | if (PyErr_Occurred()) SWIG_fail; | |
19951 | } | |
19952 | resultobj = SWIG_Py_Void(); | |
19953 | return resultobj; | |
19954 | fail: | |
19955 | return NULL; | |
19956 | } | |
19957 | ||
19958 | ||
19959 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
19960 | PyObject *resultobj = 0; | |
19961 | wxDC *arg1 = (wxDC *) 0 ; | |
19962 | void *argp1 = 0 ; | |
19963 | int res1 = 0 ; | |
19964 | PyObject *swig_obj[1] ; | |
19965 | ||
19966 | if (!args) SWIG_fail; | |
19967 | swig_obj[0] = args; | |
19968 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19969 | if (!SWIG_IsOK(res1)) { | |
19970 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19971 | } | |
19972 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19973 | { | |
19974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19975 | (arg1)->EndPage(); | |
19976 | wxPyEndAllowThreads(__tstate); | |
19977 | if (PyErr_Occurred()) SWIG_fail; | |
19978 | } | |
19979 | resultobj = SWIG_Py_Void(); | |
19980 | return resultobj; | |
19981 | fail: | |
19982 | return NULL; | |
19983 | } | |
19984 | ||
19985 | ||
19986 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19987 | PyObject *resultobj = 0; | |
19988 | wxDC *arg1 = (wxDC *) 0 ; | |
19989 | wxFont *arg2 = 0 ; | |
19990 | void *argp1 = 0 ; | |
19991 | int res1 = 0 ; | |
19992 | void *argp2 = 0 ; | |
19993 | int res2 = 0 ; | |
19994 | PyObject * obj0 = 0 ; | |
19995 | PyObject * obj1 = 0 ; | |
19996 | char * kwnames[] = { | |
19997 | (char *) "self",(char *) "font", NULL | |
19998 | }; | |
19999 | ||
20000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
20001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20002 | if (!SWIG_IsOK(res1)) { | |
20003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20004 | } | |
20005 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20006 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
20007 | if (!SWIG_IsOK(res2)) { | |
20008 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20009 | } | |
20010 | if (!argp2) { | |
20011 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20012 | } | |
20013 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
20014 | { | |
20015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20016 | (arg1)->SetFont((wxFont const &)*arg2); | |
20017 | wxPyEndAllowThreads(__tstate); | |
20018 | if (PyErr_Occurred()) SWIG_fail; | |
20019 | } | |
20020 | resultobj = SWIG_Py_Void(); | |
20021 | return resultobj; | |
20022 | fail: | |
20023 | return NULL; | |
20024 | } | |
20025 | ||
20026 | ||
20027 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20028 | PyObject *resultobj = 0; | |
20029 | wxDC *arg1 = (wxDC *) 0 ; | |
20030 | wxPen *arg2 = 0 ; | |
20031 | void *argp1 = 0 ; | |
20032 | int res1 = 0 ; | |
20033 | void *argp2 = 0 ; | |
20034 | int res2 = 0 ; | |
20035 | PyObject * obj0 = 0 ; | |
20036 | PyObject * obj1 = 0 ; | |
20037 | char * kwnames[] = { | |
20038 | (char *) "self",(char *) "pen", NULL | |
20039 | }; | |
20040 | ||
20041 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
20042 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20043 | if (!SWIG_IsOK(res1)) { | |
20044 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20045 | } | |
20046 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20047 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
20048 | if (!SWIG_IsOK(res2)) { | |
20049 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20050 | } | |
20051 | if (!argp2) { | |
20052 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20053 | } | |
20054 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
20055 | { | |
20056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20057 | (arg1)->SetPen((wxPen const &)*arg2); | |
20058 | wxPyEndAllowThreads(__tstate); | |
20059 | if (PyErr_Occurred()) SWIG_fail; | |
20060 | } | |
20061 | resultobj = SWIG_Py_Void(); | |
20062 | return resultobj; | |
20063 | fail: | |
20064 | return NULL; | |
20065 | } | |
20066 | ||
20067 | ||
20068 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20069 | PyObject *resultobj = 0; | |
20070 | wxDC *arg1 = (wxDC *) 0 ; | |
20071 | wxBrush *arg2 = 0 ; | |
20072 | void *argp1 = 0 ; | |
20073 | int res1 = 0 ; | |
20074 | void *argp2 = 0 ; | |
20075 | int res2 = 0 ; | |
20076 | PyObject * obj0 = 0 ; | |
20077 | PyObject * obj1 = 0 ; | |
20078 | char * kwnames[] = { | |
20079 | (char *) "self",(char *) "brush", NULL | |
20080 | }; | |
20081 | ||
20082 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
20083 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20084 | if (!SWIG_IsOK(res1)) { | |
20085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20086 | } | |
20087 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20088 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
20089 | if (!SWIG_IsOK(res2)) { | |
20090 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20091 | } | |
20092 | if (!argp2) { | |
20093 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20094 | } | |
20095 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
20096 | { | |
20097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20098 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
20099 | wxPyEndAllowThreads(__tstate); | |
20100 | if (PyErr_Occurred()) SWIG_fail; | |
20101 | } | |
20102 | resultobj = SWIG_Py_Void(); | |
20103 | return resultobj; | |
20104 | fail: | |
20105 | return NULL; | |
20106 | } | |
20107 | ||
20108 | ||
20109 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20110 | PyObject *resultobj = 0; | |
20111 | wxDC *arg1 = (wxDC *) 0 ; | |
20112 | wxBrush *arg2 = 0 ; | |
20113 | void *argp1 = 0 ; | |
20114 | int res1 = 0 ; | |
20115 | void *argp2 = 0 ; | |
20116 | int res2 = 0 ; | |
20117 | PyObject * obj0 = 0 ; | |
20118 | PyObject * obj1 = 0 ; | |
20119 | char * kwnames[] = { | |
20120 | (char *) "self",(char *) "brush", NULL | |
20121 | }; | |
20122 | ||
20123 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
20124 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20125 | if (!SWIG_IsOK(res1)) { | |
20126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20127 | } | |
20128 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20129 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
20130 | if (!SWIG_IsOK(res2)) { | |
20131 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20132 | } | |
20133 | if (!argp2) { | |
20134 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20135 | } | |
20136 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
20137 | { | |
20138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20139 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
20140 | wxPyEndAllowThreads(__tstate); | |
20141 | if (PyErr_Occurred()) SWIG_fail; | |
20142 | } | |
20143 | resultobj = SWIG_Py_Void(); | |
20144 | return resultobj; | |
20145 | fail: | |
20146 | return NULL; | |
20147 | } | |
20148 | ||
20149 | ||
20150 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20151 | PyObject *resultobj = 0; | |
20152 | wxDC *arg1 = (wxDC *) 0 ; | |
20153 | int arg2 ; | |
20154 | void *argp1 = 0 ; | |
20155 | int res1 = 0 ; | |
20156 | int val2 ; | |
20157 | int ecode2 = 0 ; | |
20158 | PyObject * obj0 = 0 ; | |
20159 | PyObject * obj1 = 0 ; | |
20160 | char * kwnames[] = { | |
20161 | (char *) "self",(char *) "mode", NULL | |
20162 | }; | |
20163 | ||
20164 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
20165 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20166 | if (!SWIG_IsOK(res1)) { | |
20167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20168 | } | |
20169 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20170 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20171 | if (!SWIG_IsOK(ecode2)) { | |
20172 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
20173 | } | |
20174 | arg2 = static_cast< int >(val2); | |
20175 | { | |
20176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20177 | (arg1)->SetBackgroundMode(arg2); | |
20178 | wxPyEndAllowThreads(__tstate); | |
20179 | if (PyErr_Occurred()) SWIG_fail; | |
20180 | } | |
20181 | resultobj = SWIG_Py_Void(); | |
20182 | return resultobj; | |
20183 | fail: | |
20184 | return NULL; | |
20185 | } | |
20186 | ||
20187 | ||
20188 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20189 | PyObject *resultobj = 0; | |
20190 | wxDC *arg1 = (wxDC *) 0 ; | |
20191 | wxPalette *arg2 = 0 ; | |
20192 | void *argp1 = 0 ; | |
20193 | int res1 = 0 ; | |
20194 | void *argp2 = 0 ; | |
20195 | int res2 = 0 ; | |
20196 | PyObject * obj0 = 0 ; | |
20197 | PyObject * obj1 = 0 ; | |
20198 | char * kwnames[] = { | |
20199 | (char *) "self",(char *) "palette", NULL | |
20200 | }; | |
20201 | ||
20202 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
20203 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20204 | if (!SWIG_IsOK(res1)) { | |
20205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20206 | } | |
20207 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20208 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
20209 | if (!SWIG_IsOK(res2)) { | |
20210 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
20211 | } | |
20212 | if (!argp2) { | |
20213 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
20214 | } | |
20215 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
20216 | { | |
20217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20218 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
20219 | wxPyEndAllowThreads(__tstate); | |
20220 | if (PyErr_Occurred()) SWIG_fail; | |
20221 | } | |
20222 | resultobj = SWIG_Py_Void(); | |
20223 | return resultobj; | |
20224 | fail: | |
20225 | return NULL; | |
20226 | } | |
20227 | ||
20228 | ||
20229 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20230 | PyObject *resultobj = 0; | |
20231 | wxDC *arg1 = (wxDC *) 0 ; | |
20232 | void *argp1 = 0 ; | |
20233 | int res1 = 0 ; | |
20234 | PyObject *swig_obj[1] ; | |
20235 | ||
20236 | if (!args) SWIG_fail; | |
20237 | swig_obj[0] = args; | |
20238 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20239 | if (!SWIG_IsOK(res1)) { | |
20240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20241 | } | |
20242 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20243 | { | |
20244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20245 | (arg1)->DestroyClippingRegion(); | |
20246 | wxPyEndAllowThreads(__tstate); | |
20247 | if (PyErr_Occurred()) SWIG_fail; | |
20248 | } | |
20249 | resultobj = SWIG_Py_Void(); | |
20250 | return resultobj; | |
20251 | fail: | |
20252 | return NULL; | |
20253 | } | |
20254 | ||
20255 | ||
20256 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20257 | PyObject *resultobj = 0; | |
20258 | wxDC *arg1 = (wxDC *) 0 ; | |
20259 | int *arg2 = (int *) 0 ; | |
20260 | int *arg3 = (int *) 0 ; | |
20261 | int *arg4 = (int *) 0 ; | |
20262 | int *arg5 = (int *) 0 ; | |
20263 | void *argp1 = 0 ; | |
20264 | int res1 = 0 ; | |
20265 | int temp2 ; | |
20266 | int res2 = SWIG_TMPOBJ ; | |
20267 | int temp3 ; | |
20268 | int res3 = SWIG_TMPOBJ ; | |
20269 | int temp4 ; | |
20270 | int res4 = SWIG_TMPOBJ ; | |
20271 | int temp5 ; | |
20272 | int res5 = SWIG_TMPOBJ ; | |
20273 | PyObject *swig_obj[1] ; | |
20274 | ||
20275 | arg2 = &temp2; | |
20276 | arg3 = &temp3; | |
20277 | arg4 = &temp4; | |
20278 | arg5 = &temp5; | |
20279 | if (!args) SWIG_fail; | |
20280 | swig_obj[0] = args; | |
20281 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20282 | if (!SWIG_IsOK(res1)) { | |
20283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20284 | } | |
20285 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20286 | { | |
20287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20288 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
20289 | wxPyEndAllowThreads(__tstate); | |
20290 | if (PyErr_Occurred()) SWIG_fail; | |
20291 | } | |
20292 | resultobj = SWIG_Py_Void(); | |
20293 | if (SWIG_IsTmpObj(res2)) { | |
20294 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20295 | } else { | |
20296 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20297 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20298 | } | |
20299 | if (SWIG_IsTmpObj(res3)) { | |
20300 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20301 | } else { | |
20302 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20303 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20304 | } | |
20305 | if (SWIG_IsTmpObj(res4)) { | |
20306 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20307 | } else { | |
20308 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20309 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20310 | } | |
20311 | if (SWIG_IsTmpObj(res5)) { | |
20312 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
20313 | } else { | |
20314 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20315 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
20316 | } | |
20317 | return resultobj; | |
20318 | fail: | |
20319 | return NULL; | |
20320 | } | |
20321 | ||
20322 | ||
20323 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20324 | PyObject *resultobj = 0; | |
20325 | wxDC *arg1 = (wxDC *) 0 ; | |
20326 | wxRect result; | |
20327 | void *argp1 = 0 ; | |
20328 | int res1 = 0 ; | |
20329 | PyObject *swig_obj[1] ; | |
20330 | ||
20331 | if (!args) SWIG_fail; | |
20332 | swig_obj[0] = args; | |
20333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20334 | if (!SWIG_IsOK(res1)) { | |
20335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20336 | } | |
20337 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20338 | { | |
20339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20340 | result = wxDC_GetClippingRect(arg1); | |
20341 | wxPyEndAllowThreads(__tstate); | |
20342 | if (PyErr_Occurred()) SWIG_fail; | |
20343 | } | |
20344 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20345 | return resultobj; | |
20346 | fail: | |
20347 | return NULL; | |
20348 | } | |
20349 | ||
20350 | ||
20351 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20352 | PyObject *resultobj = 0; | |
20353 | wxDC *arg1 = (wxDC *) 0 ; | |
20354 | int result; | |
20355 | void *argp1 = 0 ; | |
20356 | int res1 = 0 ; | |
20357 | PyObject *swig_obj[1] ; | |
20358 | ||
20359 | if (!args) SWIG_fail; | |
20360 | swig_obj[0] = args; | |
20361 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20362 | if (!SWIG_IsOK(res1)) { | |
20363 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20364 | } | |
20365 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20366 | { | |
20367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20368 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
20369 | wxPyEndAllowThreads(__tstate); | |
20370 | if (PyErr_Occurred()) SWIG_fail; | |
20371 | } | |
20372 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20373 | return resultobj; | |
20374 | fail: | |
20375 | return NULL; | |
20376 | } | |
20377 | ||
20378 | ||
20379 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20380 | PyObject *resultobj = 0; | |
20381 | wxDC *arg1 = (wxDC *) 0 ; | |
20382 | int result; | |
20383 | void *argp1 = 0 ; | |
20384 | int res1 = 0 ; | |
20385 | PyObject *swig_obj[1] ; | |
20386 | ||
20387 | if (!args) SWIG_fail; | |
20388 | swig_obj[0] = args; | |
20389 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20390 | if (!SWIG_IsOK(res1)) { | |
20391 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20392 | } | |
20393 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20394 | { | |
20395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20396 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
20397 | wxPyEndAllowThreads(__tstate); | |
20398 | if (PyErr_Occurred()) SWIG_fail; | |
20399 | } | |
20400 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20401 | return resultobj; | |
20402 | fail: | |
20403 | return NULL; | |
20404 | } | |
20405 | ||
20406 | ||
20407 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20408 | PyObject *resultobj = 0; | |
20409 | wxDC *arg1 = (wxDC *) 0 ; | |
20410 | wxString *arg2 = 0 ; | |
20411 | int *arg3 = (int *) 0 ; | |
20412 | int *arg4 = (int *) 0 ; | |
20413 | void *argp1 = 0 ; | |
20414 | int res1 = 0 ; | |
20415 | bool temp2 = false ; | |
20416 | int temp3 ; | |
20417 | int res3 = SWIG_TMPOBJ ; | |
20418 | int temp4 ; | |
20419 | int res4 = SWIG_TMPOBJ ; | |
20420 | PyObject * obj0 = 0 ; | |
20421 | PyObject * obj1 = 0 ; | |
20422 | char * kwnames[] = { | |
20423 | (char *) "self",(char *) "string", NULL | |
20424 | }; | |
20425 | ||
20426 | arg3 = &temp3; | |
20427 | arg4 = &temp4; | |
20428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
20429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20430 | if (!SWIG_IsOK(res1)) { | |
20431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20432 | } | |
20433 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20434 | { | |
20435 | arg2 = wxString_in_helper(obj1); | |
20436 | if (arg2 == NULL) SWIG_fail; | |
20437 | temp2 = true; | |
20438 | } | |
20439 | { | |
20440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20441 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
20442 | wxPyEndAllowThreads(__tstate); | |
20443 | if (PyErr_Occurred()) SWIG_fail; | |
20444 | } | |
20445 | resultobj = SWIG_Py_Void(); | |
20446 | if (SWIG_IsTmpObj(res3)) { | |
20447 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20448 | } else { | |
20449 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20450 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20451 | } | |
20452 | if (SWIG_IsTmpObj(res4)) { | |
20453 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20454 | } else { | |
20455 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20456 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20457 | } | |
20458 | { | |
20459 | if (temp2) | |
20460 | delete arg2; | |
20461 | } | |
20462 | return resultobj; | |
20463 | fail: | |
20464 | { | |
20465 | if (temp2) | |
20466 | delete arg2; | |
20467 | } | |
20468 | return NULL; | |
20469 | } | |
20470 | ||
20471 | ||
20472 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20473 | PyObject *resultobj = 0; | |
20474 | wxDC *arg1 = (wxDC *) 0 ; | |
20475 | wxString *arg2 = 0 ; | |
20476 | int *arg3 = (int *) 0 ; | |
20477 | int *arg4 = (int *) 0 ; | |
20478 | int *arg5 = (int *) 0 ; | |
20479 | int *arg6 = (int *) 0 ; | |
20480 | wxFont *arg7 = (wxFont *) NULL ; | |
20481 | void *argp1 = 0 ; | |
20482 | int res1 = 0 ; | |
20483 | bool temp2 = false ; | |
20484 | int temp3 ; | |
20485 | int res3 = SWIG_TMPOBJ ; | |
20486 | int temp4 ; | |
20487 | int res4 = SWIG_TMPOBJ ; | |
20488 | int temp5 ; | |
20489 | int res5 = SWIG_TMPOBJ ; | |
20490 | int temp6 ; | |
20491 | int res6 = SWIG_TMPOBJ ; | |
20492 | void *argp7 = 0 ; | |
20493 | int res7 = 0 ; | |
20494 | PyObject * obj0 = 0 ; | |
20495 | PyObject * obj1 = 0 ; | |
20496 | PyObject * obj2 = 0 ; | |
20497 | char * kwnames[] = { | |
20498 | (char *) "self",(char *) "string",(char *) "font", NULL | |
20499 | }; | |
20500 | ||
20501 | arg3 = &temp3; | |
20502 | arg4 = &temp4; | |
20503 | arg5 = &temp5; | |
20504 | arg6 = &temp6; | |
20505 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20506 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20507 | if (!SWIG_IsOK(res1)) { | |
20508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20509 | } | |
20510 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20511 | { | |
20512 | arg2 = wxString_in_helper(obj1); | |
20513 | if (arg2 == NULL) SWIG_fail; | |
20514 | temp2 = true; | |
20515 | } | |
20516 | if (obj2) { | |
20517 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
20518 | if (!SWIG_IsOK(res7)) { | |
20519 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
093d3ff1 | 20520 | } |
0085ce49 RD |
20521 | arg7 = reinterpret_cast< wxFont * >(argp7); |
20522 | } | |
20523 | { | |
20524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20525 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
20526 | wxPyEndAllowThreads(__tstate); | |
20527 | if (PyErr_Occurred()) SWIG_fail; | |
20528 | } | |
20529 | resultobj = SWIG_Py_Void(); | |
20530 | if (SWIG_IsTmpObj(res3)) { | |
20531 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20532 | } else { | |
20533 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20534 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20535 | } | |
20536 | if (SWIG_IsTmpObj(res4)) { | |
20537 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20538 | } else { | |
20539 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20540 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20541 | } | |
20542 | if (SWIG_IsTmpObj(res5)) { | |
20543 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
20544 | } else { | |
20545 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20546 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
20547 | } | |
20548 | if (SWIG_IsTmpObj(res6)) { | |
20549 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
20550 | } else { | |
20551 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20552 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
20553 | } | |
20554 | { | |
20555 | if (temp2) | |
20556 | delete arg2; | |
20557 | } | |
20558 | return resultobj; | |
20559 | fail: | |
20560 | { | |
20561 | if (temp2) | |
20562 | delete arg2; | |
20563 | } | |
20564 | return NULL; | |
20565 | } | |
20566 | ||
20567 | ||
20568 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20569 | PyObject *resultobj = 0; | |
20570 | wxDC *arg1 = (wxDC *) 0 ; | |
20571 | wxString *arg2 = 0 ; | |
20572 | int *arg3 = (int *) 0 ; | |
20573 | int *arg4 = (int *) 0 ; | |
20574 | int *arg5 = (int *) 0 ; | |
20575 | wxFont *arg6 = (wxFont *) NULL ; | |
20576 | void *argp1 = 0 ; | |
20577 | int res1 = 0 ; | |
20578 | bool temp2 = false ; | |
20579 | int temp3 ; | |
20580 | int res3 = SWIG_TMPOBJ ; | |
20581 | int temp4 ; | |
20582 | int res4 = SWIG_TMPOBJ ; | |
20583 | int temp5 ; | |
20584 | int res5 = SWIG_TMPOBJ ; | |
20585 | void *argp6 = 0 ; | |
20586 | int res6 = 0 ; | |
20587 | PyObject * obj0 = 0 ; | |
20588 | PyObject * obj1 = 0 ; | |
20589 | PyObject * obj2 = 0 ; | |
20590 | char * kwnames[] = { | |
20591 | (char *) "self",(char *) "text",(char *) "font", NULL | |
20592 | }; | |
20593 | ||
20594 | arg3 = &temp3; | |
20595 | arg4 = &temp4; | |
20596 | arg5 = &temp5; | |
20597 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20598 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20599 | if (!SWIG_IsOK(res1)) { | |
20600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20601 | } | |
20602 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20603 | { | |
20604 | arg2 = wxString_in_helper(obj1); | |
20605 | if (arg2 == NULL) SWIG_fail; | |
20606 | temp2 = true; | |
20607 | } | |
20608 | if (obj2) { | |
20609 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
20610 | if (!SWIG_IsOK(res6)) { | |
20611 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
093d3ff1 | 20612 | } |
0085ce49 RD |
20613 | arg6 = reinterpret_cast< wxFont * >(argp6); |
20614 | } | |
20615 | { | |
20616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20617 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
20618 | wxPyEndAllowThreads(__tstate); | |
20619 | if (PyErr_Occurred()) SWIG_fail; | |
20620 | } | |
20621 | resultobj = SWIG_Py_Void(); | |
20622 | if (SWIG_IsTmpObj(res3)) { | |
20623 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20624 | } else { | |
20625 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20626 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20627 | } | |
20628 | if (SWIG_IsTmpObj(res4)) { | |
20629 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
20630 | } else { | |
20631 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20632 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
20633 | } | |
20634 | if (SWIG_IsTmpObj(res5)) { | |
20635 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
20636 | } else { | |
20637 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20638 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
20639 | } | |
20640 | { | |
20641 | if (temp2) | |
20642 | delete arg2; | |
20643 | } | |
20644 | return resultobj; | |
20645 | fail: | |
20646 | { | |
20647 | if (temp2) | |
20648 | delete arg2; | |
20649 | } | |
20650 | return NULL; | |
20651 | } | |
20652 | ||
20653 | ||
20654 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20655 | PyObject *resultobj = 0; | |
20656 | wxDC *arg1 = (wxDC *) 0 ; | |
20657 | wxString *arg2 = 0 ; | |
20658 | wxArrayInt result; | |
20659 | void *argp1 = 0 ; | |
20660 | int res1 = 0 ; | |
20661 | bool temp2 = false ; | |
20662 | PyObject * obj0 = 0 ; | |
20663 | PyObject * obj1 = 0 ; | |
20664 | char * kwnames[] = { | |
20665 | (char *) "self",(char *) "text", NULL | |
20666 | }; | |
20667 | ||
20668 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
20669 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20670 | if (!SWIG_IsOK(res1)) { | |
20671 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20672 | } | |
20673 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20674 | { | |
20675 | arg2 = wxString_in_helper(obj1); | |
20676 | if (arg2 == NULL) SWIG_fail; | |
20677 | temp2 = true; | |
20678 | } | |
20679 | { | |
20680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20681 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
20682 | wxPyEndAllowThreads(__tstate); | |
20683 | if (PyErr_Occurred()) SWIG_fail; | |
20684 | } | |
20685 | { | |
20686 | resultobj = PyList_New(0); | |
20687 | size_t idx; | |
20688 | for (idx = 0; idx < (&result)->GetCount(); idx += 1) { | |
20689 | PyObject* val = PyInt_FromLong( (&result)->Item(idx) ); | |
20690 | PyList_Append(resultobj, val); | |
20691 | Py_DECREF(val); | |
093d3ff1 | 20692 | } |
0085ce49 RD |
20693 | } |
20694 | { | |
20695 | if (temp2) | |
20696 | delete arg2; | |
20697 | } | |
20698 | return resultobj; | |
20699 | fail: | |
20700 | { | |
20701 | if (temp2) | |
20702 | delete arg2; | |
20703 | } | |
20704 | return NULL; | |
20705 | } | |
20706 | ||
20707 | ||
20708 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20709 | PyObject *resultobj = 0; | |
20710 | wxDC *arg1 = (wxDC *) 0 ; | |
20711 | wxSize result; | |
20712 | void *argp1 = 0 ; | |
20713 | int res1 = 0 ; | |
20714 | PyObject *swig_obj[1] ; | |
20715 | ||
20716 | if (!args) SWIG_fail; | |
20717 | swig_obj[0] = args; | |
20718 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20719 | if (!SWIG_IsOK(res1)) { | |
20720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20721 | } | |
20722 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20723 | { | |
20724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20725 | result = (arg1)->GetSize(); | |
20726 | wxPyEndAllowThreads(__tstate); | |
20727 | if (PyErr_Occurred()) SWIG_fail; | |
20728 | } | |
20729 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
20730 | return resultobj; | |
20731 | fail: | |
20732 | return NULL; | |
20733 | } | |
20734 | ||
20735 | ||
20736 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20737 | PyObject *resultobj = 0; | |
20738 | wxDC *arg1 = (wxDC *) 0 ; | |
20739 | int *arg2 = (int *) 0 ; | |
20740 | int *arg3 = (int *) 0 ; | |
20741 | void *argp1 = 0 ; | |
20742 | int res1 = 0 ; | |
20743 | int temp2 ; | |
20744 | int res2 = SWIG_TMPOBJ ; | |
20745 | int temp3 ; | |
20746 | int res3 = SWIG_TMPOBJ ; | |
20747 | PyObject *swig_obj[1] ; | |
20748 | ||
20749 | arg2 = &temp2; | |
20750 | arg3 = &temp3; | |
20751 | if (!args) SWIG_fail; | |
20752 | swig_obj[0] = args; | |
20753 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20754 | if (!SWIG_IsOK(res1)) { | |
20755 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20756 | } | |
20757 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20758 | { | |
20759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20760 | (arg1)->GetSize(arg2,arg3); | |
20761 | wxPyEndAllowThreads(__tstate); | |
20762 | if (PyErr_Occurred()) SWIG_fail; | |
20763 | } | |
20764 | resultobj = SWIG_Py_Void(); | |
20765 | if (SWIG_IsTmpObj(res2)) { | |
20766 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20767 | } else { | |
20768 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20769 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20770 | } | |
20771 | if (SWIG_IsTmpObj(res3)) { | |
20772 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20773 | } else { | |
20774 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20775 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20776 | } | |
20777 | return resultobj; | |
20778 | fail: | |
20779 | return NULL; | |
20780 | } | |
20781 | ||
20782 | ||
20783 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20784 | PyObject *resultobj = 0; | |
20785 | wxDC *arg1 = (wxDC *) 0 ; | |
20786 | wxSize result; | |
20787 | void *argp1 = 0 ; | |
20788 | int res1 = 0 ; | |
20789 | PyObject *swig_obj[1] ; | |
20790 | ||
20791 | if (!args) SWIG_fail; | |
20792 | swig_obj[0] = args; | |
20793 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20794 | if (!SWIG_IsOK(res1)) { | |
20795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20796 | } | |
20797 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20798 | { | |
20799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20800 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
20801 | wxPyEndAllowThreads(__tstate); | |
20802 | if (PyErr_Occurred()) SWIG_fail; | |
20803 | } | |
20804 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
20805 | return resultobj; | |
20806 | fail: | |
20807 | return NULL; | |
20808 | } | |
20809 | ||
20810 | ||
20811 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20812 | PyObject *resultobj = 0; | |
20813 | wxDC *arg1 = (wxDC *) 0 ; | |
20814 | int *arg2 = (int *) 0 ; | |
20815 | int *arg3 = (int *) 0 ; | |
20816 | void *argp1 = 0 ; | |
20817 | int res1 = 0 ; | |
20818 | int temp2 ; | |
20819 | int res2 = SWIG_TMPOBJ ; | |
20820 | int temp3 ; | |
20821 | int res3 = SWIG_TMPOBJ ; | |
20822 | PyObject *swig_obj[1] ; | |
20823 | ||
20824 | arg2 = &temp2; | |
20825 | arg3 = &temp3; | |
20826 | if (!args) SWIG_fail; | |
20827 | swig_obj[0] = args; | |
20828 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20829 | if (!SWIG_IsOK(res1)) { | |
20830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20831 | } | |
20832 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20833 | { | |
20834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20835 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
20836 | wxPyEndAllowThreads(__tstate); | |
20837 | if (PyErr_Occurred()) SWIG_fail; | |
20838 | } | |
20839 | resultobj = SWIG_Py_Void(); | |
20840 | if (SWIG_IsTmpObj(res2)) { | |
20841 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
20842 | } else { | |
20843 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20844 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
20845 | } | |
20846 | if (SWIG_IsTmpObj(res3)) { | |
20847 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
20848 | } else { | |
20849 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
20850 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
20851 | } | |
20852 | return resultobj; | |
20853 | fail: | |
20854 | return NULL; | |
20855 | } | |
20856 | ||
20857 | ||
20858 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20859 | PyObject *resultobj = 0; | |
20860 | wxDC *arg1 = (wxDC *) 0 ; | |
20861 | int arg2 ; | |
20862 | int result; | |
20863 | void *argp1 = 0 ; | |
20864 | int res1 = 0 ; | |
20865 | int val2 ; | |
20866 | int ecode2 = 0 ; | |
20867 | PyObject * obj0 = 0 ; | |
20868 | PyObject * obj1 = 0 ; | |
20869 | char * kwnames[] = { | |
20870 | (char *) "self",(char *) "x", NULL | |
20871 | }; | |
20872 | ||
20873 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
20874 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20875 | if (!SWIG_IsOK(res1)) { | |
20876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20877 | } | |
20878 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20879 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20880 | if (!SWIG_IsOK(ecode2)) { | |
20881 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
20882 | } | |
20883 | arg2 = static_cast< int >(val2); | |
20884 | { | |
20885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20886 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
20887 | wxPyEndAllowThreads(__tstate); | |
20888 | if (PyErr_Occurred()) SWIG_fail; | |
20889 | } | |
20890 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20891 | return resultobj; | |
20892 | fail: | |
20893 | return NULL; | |
20894 | } | |
20895 | ||
20896 | ||
20897 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20898 | PyObject *resultobj = 0; | |
20899 | wxDC *arg1 = (wxDC *) 0 ; | |
20900 | int arg2 ; | |
20901 | int result; | |
20902 | void *argp1 = 0 ; | |
20903 | int res1 = 0 ; | |
20904 | int val2 ; | |
20905 | int ecode2 = 0 ; | |
20906 | PyObject * obj0 = 0 ; | |
20907 | PyObject * obj1 = 0 ; | |
20908 | char * kwnames[] = { | |
20909 | (char *) "self",(char *) "y", NULL | |
20910 | }; | |
20911 | ||
20912 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
20913 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20914 | if (!SWIG_IsOK(res1)) { | |
20915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20916 | } | |
20917 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20918 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20919 | if (!SWIG_IsOK(ecode2)) { | |
20920 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
20921 | } | |
20922 | arg2 = static_cast< int >(val2); | |
20923 | { | |
20924 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20925 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
20926 | wxPyEndAllowThreads(__tstate); | |
20927 | if (PyErr_Occurred()) SWIG_fail; | |
20928 | } | |
20929 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20930 | return resultobj; | |
20931 | fail: | |
20932 | return NULL; | |
20933 | } | |
20934 | ||
20935 | ||
20936 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20937 | PyObject *resultobj = 0; | |
20938 | wxDC *arg1 = (wxDC *) 0 ; | |
20939 | int arg2 ; | |
20940 | int result; | |
20941 | void *argp1 = 0 ; | |
20942 | int res1 = 0 ; | |
20943 | int val2 ; | |
20944 | int ecode2 = 0 ; | |
20945 | PyObject * obj0 = 0 ; | |
20946 | PyObject * obj1 = 0 ; | |
20947 | char * kwnames[] = { | |
20948 | (char *) "self",(char *) "x", NULL | |
20949 | }; | |
20950 | ||
20951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
20952 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20953 | if (!SWIG_IsOK(res1)) { | |
20954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20955 | } | |
20956 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20957 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20958 | if (!SWIG_IsOK(ecode2)) { | |
20959 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
20960 | } | |
20961 | arg2 = static_cast< int >(val2); | |
20962 | { | |
20963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20964 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
20965 | wxPyEndAllowThreads(__tstate); | |
20966 | if (PyErr_Occurred()) SWIG_fail; | |
20967 | } | |
20968 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
20969 | return resultobj; | |
20970 | fail: | |
20971 | return NULL; | |
20972 | } | |
20973 | ||
20974 | ||
20975 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20976 | PyObject *resultobj = 0; | |
20977 | wxDC *arg1 = (wxDC *) 0 ; | |
20978 | int arg2 ; | |
20979 | int result; | |
20980 | void *argp1 = 0 ; | |
20981 | int res1 = 0 ; | |
20982 | int val2 ; | |
20983 | int ecode2 = 0 ; | |
20984 | PyObject * obj0 = 0 ; | |
20985 | PyObject * obj1 = 0 ; | |
20986 | char * kwnames[] = { | |
20987 | (char *) "self",(char *) "y", NULL | |
20988 | }; | |
20989 | ||
20990 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
20991 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20992 | if (!SWIG_IsOK(res1)) { | |
20993 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20994 | } | |
20995 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20996 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20997 | if (!SWIG_IsOK(ecode2)) { | |
20998 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
20999 | } | |
21000 | arg2 = static_cast< int >(val2); | |
21001 | { | |
21002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21003 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
21004 | wxPyEndAllowThreads(__tstate); | |
21005 | if (PyErr_Occurred()) SWIG_fail; | |
21006 | } | |
21007 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21008 | return resultobj; | |
21009 | fail: | |
21010 | return NULL; | |
21011 | } | |
21012 | ||
21013 | ||
21014 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21015 | PyObject *resultobj = 0; | |
21016 | wxDC *arg1 = (wxDC *) 0 ; | |
21017 | int arg2 ; | |
21018 | int result; | |
21019 | void *argp1 = 0 ; | |
21020 | int res1 = 0 ; | |
21021 | int val2 ; | |
21022 | int ecode2 = 0 ; | |
21023 | PyObject * obj0 = 0 ; | |
21024 | PyObject * obj1 = 0 ; | |
21025 | char * kwnames[] = { | |
21026 | (char *) "self",(char *) "x", NULL | |
21027 | }; | |
21028 | ||
21029 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21030 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21031 | if (!SWIG_IsOK(res1)) { | |
21032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21033 | } | |
21034 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21035 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21036 | if (!SWIG_IsOK(ecode2)) { | |
21037 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
21038 | } | |
21039 | arg2 = static_cast< int >(val2); | |
21040 | { | |
21041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21042 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
21043 | wxPyEndAllowThreads(__tstate); | |
21044 | if (PyErr_Occurred()) SWIG_fail; | |
21045 | } | |
21046 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21047 | return resultobj; | |
21048 | fail: | |
21049 | return NULL; | |
21050 | } | |
21051 | ||
21052 | ||
21053 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21054 | PyObject *resultobj = 0; | |
21055 | wxDC *arg1 = (wxDC *) 0 ; | |
21056 | int arg2 ; | |
21057 | int result; | |
21058 | void *argp1 = 0 ; | |
21059 | int res1 = 0 ; | |
21060 | int val2 ; | |
21061 | int ecode2 = 0 ; | |
21062 | PyObject * obj0 = 0 ; | |
21063 | PyObject * obj1 = 0 ; | |
21064 | char * kwnames[] = { | |
21065 | (char *) "self",(char *) "y", NULL | |
21066 | }; | |
21067 | ||
21068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21070 | if (!SWIG_IsOK(res1)) { | |
21071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21072 | } | |
21073 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21074 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21075 | if (!SWIG_IsOK(ecode2)) { | |
21076 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
21077 | } | |
21078 | arg2 = static_cast< int >(val2); | |
21079 | { | |
21080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21081 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
21082 | wxPyEndAllowThreads(__tstate); | |
21083 | if (PyErr_Occurred()) SWIG_fail; | |
21084 | } | |
21085 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21086 | return resultobj; | |
21087 | fail: | |
21088 | return NULL; | |
21089 | } | |
21090 | ||
21091 | ||
21092 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21093 | PyObject *resultobj = 0; | |
21094 | wxDC *arg1 = (wxDC *) 0 ; | |
21095 | int arg2 ; | |
21096 | int result; | |
21097 | void *argp1 = 0 ; | |
21098 | int res1 = 0 ; | |
21099 | int val2 ; | |
21100 | int ecode2 = 0 ; | |
21101 | PyObject * obj0 = 0 ; | |
21102 | PyObject * obj1 = 0 ; | |
21103 | char * kwnames[] = { | |
21104 | (char *) "self",(char *) "x", NULL | |
21105 | }; | |
21106 | ||
21107 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21108 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21109 | if (!SWIG_IsOK(res1)) { | |
21110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21111 | } | |
21112 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21113 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21114 | if (!SWIG_IsOK(ecode2)) { | |
21115 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
21116 | } | |
21117 | arg2 = static_cast< int >(val2); | |
21118 | { | |
21119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21120 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
21121 | wxPyEndAllowThreads(__tstate); | |
21122 | if (PyErr_Occurred()) SWIG_fail; | |
21123 | } | |
21124 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21125 | return resultobj; | |
21126 | fail: | |
21127 | return NULL; | |
21128 | } | |
21129 | ||
21130 | ||
21131 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21132 | PyObject *resultobj = 0; | |
21133 | wxDC *arg1 = (wxDC *) 0 ; | |
21134 | int arg2 ; | |
21135 | int result; | |
21136 | void *argp1 = 0 ; | |
21137 | int res1 = 0 ; | |
21138 | int val2 ; | |
21139 | int ecode2 = 0 ; | |
21140 | PyObject * obj0 = 0 ; | |
21141 | PyObject * obj1 = 0 ; | |
21142 | char * kwnames[] = { | |
21143 | (char *) "self",(char *) "y", NULL | |
21144 | }; | |
21145 | ||
21146 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21147 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21148 | if (!SWIG_IsOK(res1)) { | |
21149 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21150 | } | |
21151 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21152 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21153 | if (!SWIG_IsOK(ecode2)) { | |
21154 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
21155 | } | |
21156 | arg2 = static_cast< int >(val2); | |
21157 | { | |
21158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21159 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
21160 | wxPyEndAllowThreads(__tstate); | |
21161 | if (PyErr_Occurred()) SWIG_fail; | |
21162 | } | |
21163 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21164 | return resultobj; | |
21165 | fail: | |
21166 | return NULL; | |
21167 | } | |
21168 | ||
21169 | ||
21170 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21171 | PyObject *resultobj = 0; | |
21172 | wxDC *arg1 = (wxDC *) 0 ; | |
21173 | bool result; | |
21174 | void *argp1 = 0 ; | |
21175 | int res1 = 0 ; | |
21176 | PyObject *swig_obj[1] ; | |
21177 | ||
21178 | if (!args) SWIG_fail; | |
21179 | swig_obj[0] = args; | |
21180 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21181 | if (!SWIG_IsOK(res1)) { | |
21182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21183 | } | |
21184 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21185 | { | |
21186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21187 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
21188 | wxPyEndAllowThreads(__tstate); | |
21189 | if (PyErr_Occurred()) SWIG_fail; | |
21190 | } | |
21191 | { | |
21192 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21193 | } | |
21194 | return resultobj; | |
21195 | fail: | |
21196 | return NULL; | |
21197 | } | |
21198 | ||
21199 | ||
21200 | SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21201 | PyObject *resultobj = 0; | |
21202 | wxDC *arg1 = (wxDC *) 0 ; | |
21203 | bool result; | |
21204 | void *argp1 = 0 ; | |
21205 | int res1 = 0 ; | |
21206 | PyObject *swig_obj[1] ; | |
21207 | ||
21208 | if (!args) SWIG_fail; | |
21209 | swig_obj[0] = args; | |
21210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21211 | if (!SWIG_IsOK(res1)) { | |
21212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21213 | } | |
21214 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21215 | { | |
21216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21217 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
21218 | wxPyEndAllowThreads(__tstate); | |
21219 | if (PyErr_Occurred()) SWIG_fail; | |
21220 | } | |
21221 | { | |
21222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21223 | } | |
21224 | return resultobj; | |
21225 | fail: | |
21226 | return NULL; | |
21227 | } | |
21228 | ||
21229 | ||
21230 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21231 | PyObject *resultobj = 0; | |
21232 | wxDC *arg1 = (wxDC *) 0 ; | |
21233 | int result; | |
21234 | void *argp1 = 0 ; | |
21235 | int res1 = 0 ; | |
21236 | PyObject *swig_obj[1] ; | |
21237 | ||
21238 | if (!args) SWIG_fail; | |
21239 | swig_obj[0] = args; | |
21240 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21241 | if (!SWIG_IsOK(res1)) { | |
21242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21243 | } | |
21244 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21245 | { | |
21246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21247 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
21248 | wxPyEndAllowThreads(__tstate); | |
21249 | if (PyErr_Occurred()) SWIG_fail; | |
21250 | } | |
21251 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21252 | return resultobj; | |
21253 | fail: | |
21254 | return NULL; | |
21255 | } | |
21256 | ||
21257 | ||
21258 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21259 | PyObject *resultobj = 0; | |
21260 | wxDC *arg1 = (wxDC *) 0 ; | |
21261 | wxSize result; | |
21262 | void *argp1 = 0 ; | |
21263 | int res1 = 0 ; | |
21264 | PyObject *swig_obj[1] ; | |
21265 | ||
21266 | if (!args) SWIG_fail; | |
21267 | swig_obj[0] = args; | |
21268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21269 | if (!SWIG_IsOK(res1)) { | |
21270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21271 | } | |
21272 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21273 | { | |
21274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21275 | result = ((wxDC const *)arg1)->GetPPI(); | |
21276 | wxPyEndAllowThreads(__tstate); | |
21277 | if (PyErr_Occurred()) SWIG_fail; | |
21278 | } | |
21279 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21280 | return resultobj; | |
21281 | fail: | |
21282 | return NULL; | |
21283 | } | |
21284 | ||
21285 | ||
21286 | SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21287 | PyObject *resultobj = 0; | |
21288 | wxDC *arg1 = (wxDC *) 0 ; | |
21289 | bool result; | |
21290 | void *argp1 = 0 ; | |
21291 | int res1 = 0 ; | |
21292 | PyObject *swig_obj[1] ; | |
21293 | ||
21294 | if (!args) SWIG_fail; | |
21295 | swig_obj[0] = args; | |
21296 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21297 | if (!SWIG_IsOK(res1)) { | |
21298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21299 | } | |
21300 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21301 | { | |
21302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21303 | result = (bool)((wxDC const *)arg1)->Ok(); | |
21304 | wxPyEndAllowThreads(__tstate); | |
21305 | if (PyErr_Occurred()) SWIG_fail; | |
21306 | } | |
21307 | { | |
21308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21309 | } | |
21310 | return resultobj; | |
21311 | fail: | |
21312 | return NULL; | |
21313 | } | |
21314 | ||
21315 | ||
21316 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21317 | PyObject *resultobj = 0; | |
21318 | wxDC *arg1 = (wxDC *) 0 ; | |
21319 | int result; | |
21320 | void *argp1 = 0 ; | |
21321 | int res1 = 0 ; | |
21322 | PyObject *swig_obj[1] ; | |
21323 | ||
21324 | if (!args) SWIG_fail; | |
21325 | swig_obj[0] = args; | |
21326 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21327 | if (!SWIG_IsOK(res1)) { | |
21328 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21329 | } | |
21330 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21331 | { | |
21332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21333 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
21334 | wxPyEndAllowThreads(__tstate); | |
21335 | if (PyErr_Occurred()) SWIG_fail; | |
21336 | } | |
21337 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21338 | return resultobj; | |
21339 | fail: | |
21340 | return NULL; | |
21341 | } | |
21342 | ||
21343 | ||
21344 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21345 | PyObject *resultobj = 0; | |
21346 | wxDC *arg1 = (wxDC *) 0 ; | |
21347 | wxBrush *result = 0 ; | |
21348 | void *argp1 = 0 ; | |
21349 | int res1 = 0 ; | |
21350 | PyObject *swig_obj[1] ; | |
21351 | ||
21352 | if (!args) SWIG_fail; | |
21353 | swig_obj[0] = args; | |
21354 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21355 | if (!SWIG_IsOK(res1)) { | |
21356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21357 | } | |
21358 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21359 | { | |
21360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21361 | { |
0085ce49 RD |
21362 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
21363 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 21364 | } |
0085ce49 RD |
21365 | wxPyEndAllowThreads(__tstate); |
21366 | if (PyErr_Occurred()) SWIG_fail; | |
21367 | } | |
21368 | { | |
21369 | wxBrush* resultptr = new wxBrush(*result); | |
21370 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
21371 | } | |
21372 | return resultobj; | |
21373 | fail: | |
21374 | return NULL; | |
21375 | } | |
21376 | ||
21377 | ||
21378 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21379 | PyObject *resultobj = 0; | |
21380 | wxDC *arg1 = (wxDC *) 0 ; | |
21381 | wxBrush *result = 0 ; | |
21382 | void *argp1 = 0 ; | |
21383 | int res1 = 0 ; | |
21384 | PyObject *swig_obj[1] ; | |
21385 | ||
21386 | if (!args) SWIG_fail; | |
21387 | swig_obj[0] = args; | |
21388 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21389 | if (!SWIG_IsOK(res1)) { | |
21390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21391 | } | |
21392 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21393 | { | |
21394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21395 | { |
0085ce49 RD |
21396 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
21397 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 21398 | } |
0085ce49 RD |
21399 | wxPyEndAllowThreads(__tstate); |
21400 | if (PyErr_Occurred()) SWIG_fail; | |
21401 | } | |
21402 | { | |
21403 | wxBrush* resultptr = new wxBrush(*result); | |
21404 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
21405 | } | |
21406 | return resultobj; | |
21407 | fail: | |
21408 | return NULL; | |
21409 | } | |
21410 | ||
21411 | ||
21412 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21413 | PyObject *resultobj = 0; | |
21414 | wxDC *arg1 = (wxDC *) 0 ; | |
21415 | wxFont *result = 0 ; | |
21416 | void *argp1 = 0 ; | |
21417 | int res1 = 0 ; | |
21418 | PyObject *swig_obj[1] ; | |
21419 | ||
21420 | if (!args) SWIG_fail; | |
21421 | swig_obj[0] = args; | |
21422 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21423 | if (!SWIG_IsOK(res1)) { | |
21424 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21425 | } | |
21426 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21427 | { | |
21428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21429 | { |
0085ce49 RD |
21430 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
21431 | result = (wxFont *) &_result_ref; | |
093d3ff1 | 21432 | } |
0085ce49 RD |
21433 | wxPyEndAllowThreads(__tstate); |
21434 | if (PyErr_Occurred()) SWIG_fail; | |
21435 | } | |
21436 | { | |
21437 | wxFont* resultptr = new wxFont(*result); | |
21438 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
21439 | } | |
21440 | return resultobj; | |
21441 | fail: | |
21442 | return NULL; | |
21443 | } | |
21444 | ||
21445 | ||
21446 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21447 | PyObject *resultobj = 0; | |
21448 | wxDC *arg1 = (wxDC *) 0 ; | |
21449 | wxPen *result = 0 ; | |
21450 | void *argp1 = 0 ; | |
21451 | int res1 = 0 ; | |
21452 | PyObject *swig_obj[1] ; | |
21453 | ||
21454 | if (!args) SWIG_fail; | |
21455 | swig_obj[0] = args; | |
21456 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21457 | if (!SWIG_IsOK(res1)) { | |
21458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21459 | } | |
21460 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21461 | { | |
21462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21463 | { |
0085ce49 RD |
21464 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
21465 | result = (wxPen *) &_result_ref; | |
093d3ff1 | 21466 | } |
0085ce49 RD |
21467 | wxPyEndAllowThreads(__tstate); |
21468 | if (PyErr_Occurred()) SWIG_fail; | |
21469 | } | |
21470 | { | |
21471 | wxPen* resultptr = new wxPen(*result); | |
21472 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
21473 | } | |
21474 | return resultobj; | |
21475 | fail: | |
21476 | return NULL; | |
21477 | } | |
21478 | ||
21479 | ||
21480 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21481 | PyObject *resultobj = 0; | |
21482 | wxDC *arg1 = (wxDC *) 0 ; | |
21483 | wxColour *result = 0 ; | |
21484 | void *argp1 = 0 ; | |
21485 | int res1 = 0 ; | |
21486 | PyObject *swig_obj[1] ; | |
21487 | ||
21488 | if (!args) SWIG_fail; | |
21489 | swig_obj[0] = args; | |
21490 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21491 | if (!SWIG_IsOK(res1)) { | |
21492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21493 | } | |
21494 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21495 | { | |
21496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21497 | { |
0085ce49 RD |
21498 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
21499 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 21500 | } |
0085ce49 RD |
21501 | wxPyEndAllowThreads(__tstate); |
21502 | if (PyErr_Occurred()) SWIG_fail; | |
21503 | } | |
21504 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
21505 | return resultobj; | |
21506 | fail: | |
21507 | return NULL; | |
21508 | } | |
21509 | ||
21510 | ||
21511 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21512 | PyObject *resultobj = 0; | |
21513 | wxDC *arg1 = (wxDC *) 0 ; | |
21514 | wxColour *result = 0 ; | |
21515 | void *argp1 = 0 ; | |
21516 | int res1 = 0 ; | |
21517 | PyObject *swig_obj[1] ; | |
21518 | ||
21519 | if (!args) SWIG_fail; | |
21520 | swig_obj[0] = args; | |
21521 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21522 | if (!SWIG_IsOK(res1)) { | |
21523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21524 | } | |
21525 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21526 | { | |
21527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 21528 | { |
0085ce49 RD |
21529 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
21530 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 21531 | } |
0085ce49 RD |
21532 | wxPyEndAllowThreads(__tstate); |
21533 | if (PyErr_Occurred()) SWIG_fail; | |
21534 | } | |
21535 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
21536 | return resultobj; | |
21537 | fail: | |
21538 | return NULL; | |
21539 | } | |
21540 | ||
21541 | ||
21542 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21543 | PyObject *resultobj = 0; | |
21544 | wxDC *arg1 = (wxDC *) 0 ; | |
21545 | wxColour *arg2 = 0 ; | |
21546 | void *argp1 = 0 ; | |
21547 | int res1 = 0 ; | |
21548 | wxColour temp2 ; | |
21549 | PyObject * obj0 = 0 ; | |
21550 | PyObject * obj1 = 0 ; | |
21551 | char * kwnames[] = { | |
21552 | (char *) "self",(char *) "colour", NULL | |
21553 | }; | |
21554 | ||
21555 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21556 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21557 | if (!SWIG_IsOK(res1)) { | |
21558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21559 | } | |
21560 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21561 | { | |
21562 | arg2 = &temp2; | |
21563 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21564 | } | |
21565 | { | |
21566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21567 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
21568 | wxPyEndAllowThreads(__tstate); | |
21569 | if (PyErr_Occurred()) SWIG_fail; | |
21570 | } | |
21571 | resultobj = SWIG_Py_Void(); | |
21572 | return resultobj; | |
21573 | fail: | |
21574 | return NULL; | |
21575 | } | |
21576 | ||
21577 | ||
21578 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21579 | PyObject *resultobj = 0; | |
21580 | wxDC *arg1 = (wxDC *) 0 ; | |
21581 | wxColour *arg2 = 0 ; | |
21582 | void *argp1 = 0 ; | |
21583 | int res1 = 0 ; | |
21584 | wxColour temp2 ; | |
21585 | PyObject * obj0 = 0 ; | |
21586 | PyObject * obj1 = 0 ; | |
21587 | char * kwnames[] = { | |
21588 | (char *) "self",(char *) "colour", NULL | |
21589 | }; | |
21590 | ||
21591 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21592 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21593 | if (!SWIG_IsOK(res1)) { | |
21594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21595 | } | |
21596 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21597 | { | |
21598 | arg2 = &temp2; | |
21599 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21600 | } | |
21601 | { | |
21602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21603 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
21604 | wxPyEndAllowThreads(__tstate); | |
21605 | if (PyErr_Occurred()) SWIG_fail; | |
21606 | } | |
21607 | resultobj = SWIG_Py_Void(); | |
21608 | return resultobj; | |
21609 | fail: | |
21610 | return NULL; | |
21611 | } | |
21612 | ||
21613 | ||
21614 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21615 | PyObject *resultobj = 0; | |
21616 | wxDC *arg1 = (wxDC *) 0 ; | |
21617 | int result; | |
21618 | void *argp1 = 0 ; | |
21619 | int res1 = 0 ; | |
21620 | PyObject *swig_obj[1] ; | |
21621 | ||
21622 | if (!args) SWIG_fail; | |
21623 | swig_obj[0] = args; | |
21624 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21625 | if (!SWIG_IsOK(res1)) { | |
21626 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21627 | } | |
21628 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21629 | { | |
21630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21631 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
21632 | wxPyEndAllowThreads(__tstate); | |
21633 | if (PyErr_Occurred()) SWIG_fail; | |
21634 | } | |
21635 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21636 | return resultobj; | |
21637 | fail: | |
21638 | return NULL; | |
21639 | } | |
21640 | ||
21641 | ||
21642 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21643 | PyObject *resultobj = 0; | |
21644 | wxDC *arg1 = (wxDC *) 0 ; | |
21645 | int arg2 ; | |
21646 | void *argp1 = 0 ; | |
21647 | int res1 = 0 ; | |
21648 | int val2 ; | |
21649 | int ecode2 = 0 ; | |
21650 | PyObject * obj0 = 0 ; | |
21651 | PyObject * obj1 = 0 ; | |
21652 | char * kwnames[] = { | |
21653 | (char *) "self",(char *) "mode", NULL | |
21654 | }; | |
21655 | ||
21656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
21657 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21658 | if (!SWIG_IsOK(res1)) { | |
21659 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21660 | } | |
21661 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21662 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21663 | if (!SWIG_IsOK(ecode2)) { | |
21664 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
21665 | } | |
21666 | arg2 = static_cast< int >(val2); | |
21667 | { | |
21668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21669 | (arg1)->SetMapMode(arg2); | |
21670 | wxPyEndAllowThreads(__tstate); | |
21671 | if (PyErr_Occurred()) SWIG_fail; | |
21672 | } | |
21673 | resultobj = SWIG_Py_Void(); | |
21674 | return resultobj; | |
21675 | fail: | |
21676 | return NULL; | |
21677 | } | |
21678 | ||
21679 | ||
21680 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21681 | PyObject *resultobj = 0; | |
21682 | wxDC *arg1 = (wxDC *) 0 ; | |
21683 | double *arg2 = (double *) 0 ; | |
21684 | double *arg3 = (double *) 0 ; | |
21685 | void *argp1 = 0 ; | |
21686 | int res1 = 0 ; | |
21687 | double temp2 ; | |
21688 | int res2 = SWIG_TMPOBJ ; | |
21689 | double temp3 ; | |
21690 | int res3 = SWIG_TMPOBJ ; | |
21691 | PyObject *swig_obj[1] ; | |
21692 | ||
21693 | arg2 = &temp2; | |
21694 | arg3 = &temp3; | |
21695 | if (!args) SWIG_fail; | |
21696 | swig_obj[0] = args; | |
21697 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21698 | if (!SWIG_IsOK(res1)) { | |
21699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21700 | } | |
21701 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21702 | { | |
21703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21704 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
21705 | wxPyEndAllowThreads(__tstate); | |
21706 | if (PyErr_Occurred()) SWIG_fail; | |
21707 | } | |
21708 | resultobj = SWIG_Py_Void(); | |
21709 | if (SWIG_IsTmpObj(res2)) { | |
21710 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
21711 | } else { | |
21712 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21713 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
21714 | } | |
21715 | if (SWIG_IsTmpObj(res3)) { | |
21716 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
21717 | } else { | |
21718 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21719 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
21720 | } | |
21721 | return resultobj; | |
21722 | fail: | |
21723 | return NULL; | |
21724 | } | |
21725 | ||
21726 | ||
21727 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21728 | PyObject *resultobj = 0; | |
21729 | wxDC *arg1 = (wxDC *) 0 ; | |
21730 | double arg2 ; | |
21731 | double arg3 ; | |
21732 | void *argp1 = 0 ; | |
21733 | int res1 = 0 ; | |
21734 | double val2 ; | |
21735 | int ecode2 = 0 ; | |
21736 | double val3 ; | |
21737 | int ecode3 = 0 ; | |
21738 | PyObject * obj0 = 0 ; | |
21739 | PyObject * obj1 = 0 ; | |
21740 | PyObject * obj2 = 0 ; | |
21741 | char * kwnames[] = { | |
21742 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21743 | }; | |
21744 | ||
21745 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21746 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21747 | if (!SWIG_IsOK(res1)) { | |
21748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21749 | } | |
21750 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21751 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
21752 | if (!SWIG_IsOK(ecode2)) { | |
21753 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
21754 | } | |
21755 | arg2 = static_cast< double >(val2); | |
21756 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
21757 | if (!SWIG_IsOK(ecode3)) { | |
21758 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
21759 | } | |
21760 | arg3 = static_cast< double >(val3); | |
21761 | { | |
21762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21763 | (arg1)->SetUserScale(arg2,arg3); | |
21764 | wxPyEndAllowThreads(__tstate); | |
21765 | if (PyErr_Occurred()) SWIG_fail; | |
21766 | } | |
21767 | resultobj = SWIG_Py_Void(); | |
21768 | return resultobj; | |
21769 | fail: | |
21770 | return NULL; | |
21771 | } | |
21772 | ||
21773 | ||
21774 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21775 | PyObject *resultobj = 0; | |
21776 | wxDC *arg1 = (wxDC *) 0 ; | |
21777 | double *arg2 = (double *) 0 ; | |
21778 | double *arg3 = (double *) 0 ; | |
21779 | void *argp1 = 0 ; | |
21780 | int res1 = 0 ; | |
21781 | double temp2 ; | |
21782 | int res2 = SWIG_TMPOBJ ; | |
21783 | double temp3 ; | |
21784 | int res3 = SWIG_TMPOBJ ; | |
21785 | PyObject *swig_obj[1] ; | |
21786 | ||
21787 | arg2 = &temp2; | |
21788 | arg3 = &temp3; | |
21789 | if (!args) SWIG_fail; | |
21790 | swig_obj[0] = args; | |
21791 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21792 | if (!SWIG_IsOK(res1)) { | |
21793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21794 | } | |
21795 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21796 | { | |
21797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21798 | (arg1)->GetLogicalScale(arg2,arg3); | |
21799 | wxPyEndAllowThreads(__tstate); | |
21800 | if (PyErr_Occurred()) SWIG_fail; | |
21801 | } | |
21802 | resultobj = SWIG_Py_Void(); | |
21803 | if (SWIG_IsTmpObj(res2)) { | |
21804 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
21805 | } else { | |
21806 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21807 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
21808 | } | |
21809 | if (SWIG_IsTmpObj(res3)) { | |
21810 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
21811 | } else { | |
21812 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21813 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
21814 | } | |
21815 | return resultobj; | |
21816 | fail: | |
21817 | return NULL; | |
21818 | } | |
21819 | ||
21820 | ||
21821 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21822 | PyObject *resultobj = 0; | |
21823 | wxDC *arg1 = (wxDC *) 0 ; | |
21824 | double arg2 ; | |
21825 | double arg3 ; | |
21826 | void *argp1 = 0 ; | |
21827 | int res1 = 0 ; | |
21828 | double val2 ; | |
21829 | int ecode2 = 0 ; | |
21830 | double val3 ; | |
21831 | int ecode3 = 0 ; | |
21832 | PyObject * obj0 = 0 ; | |
21833 | PyObject * obj1 = 0 ; | |
21834 | PyObject * obj2 = 0 ; | |
21835 | char * kwnames[] = { | |
21836 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21837 | }; | |
21838 | ||
21839 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21840 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21841 | if (!SWIG_IsOK(res1)) { | |
21842 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21843 | } | |
21844 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21845 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
21846 | if (!SWIG_IsOK(ecode2)) { | |
21847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
21848 | } | |
21849 | arg2 = static_cast< double >(val2); | |
21850 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
21851 | if (!SWIG_IsOK(ecode3)) { | |
21852 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
21853 | } | |
21854 | arg3 = static_cast< double >(val3); | |
21855 | { | |
21856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21857 | (arg1)->SetLogicalScale(arg2,arg3); | |
21858 | wxPyEndAllowThreads(__tstate); | |
21859 | if (PyErr_Occurred()) SWIG_fail; | |
21860 | } | |
21861 | resultobj = SWIG_Py_Void(); | |
21862 | return resultobj; | |
21863 | fail: | |
21864 | return NULL; | |
21865 | } | |
21866 | ||
21867 | ||
21868 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21869 | PyObject *resultobj = 0; | |
21870 | wxDC *arg1 = (wxDC *) 0 ; | |
21871 | wxPoint result; | |
21872 | void *argp1 = 0 ; | |
21873 | int res1 = 0 ; | |
21874 | PyObject *swig_obj[1] ; | |
21875 | ||
21876 | if (!args) SWIG_fail; | |
21877 | swig_obj[0] = args; | |
21878 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21879 | if (!SWIG_IsOK(res1)) { | |
21880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21881 | } | |
21882 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21883 | { | |
21884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21885 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
21886 | wxPyEndAllowThreads(__tstate); | |
21887 | if (PyErr_Occurred()) SWIG_fail; | |
21888 | } | |
21889 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
21890 | return resultobj; | |
21891 | fail: | |
21892 | return NULL; | |
21893 | } | |
21894 | ||
21895 | ||
21896 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21897 | PyObject *resultobj = 0; | |
21898 | wxDC *arg1 = (wxDC *) 0 ; | |
21899 | int *arg2 = (int *) 0 ; | |
21900 | int *arg3 = (int *) 0 ; | |
21901 | void *argp1 = 0 ; | |
21902 | int res1 = 0 ; | |
21903 | int temp2 ; | |
21904 | int res2 = SWIG_TMPOBJ ; | |
21905 | int temp3 ; | |
21906 | int res3 = SWIG_TMPOBJ ; | |
21907 | PyObject *swig_obj[1] ; | |
21908 | ||
21909 | arg2 = &temp2; | |
21910 | arg3 = &temp3; | |
21911 | if (!args) SWIG_fail; | |
21912 | swig_obj[0] = args; | |
21913 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21914 | if (!SWIG_IsOK(res1)) { | |
21915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21916 | } | |
21917 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21918 | { | |
21919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21920 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
21921 | wxPyEndAllowThreads(__tstate); | |
21922 | if (PyErr_Occurred()) SWIG_fail; | |
21923 | } | |
21924 | resultobj = SWIG_Py_Void(); | |
21925 | if (SWIG_IsTmpObj(res2)) { | |
21926 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21927 | } else { | |
21928 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21929 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21930 | } | |
21931 | if (SWIG_IsTmpObj(res3)) { | |
21932 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21933 | } else { | |
21934 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21935 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21936 | } | |
21937 | return resultobj; | |
21938 | fail: | |
21939 | return NULL; | |
21940 | } | |
21941 | ||
21942 | ||
21943 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21944 | PyObject *resultobj = 0; | |
21945 | wxDC *arg1 = (wxDC *) 0 ; | |
21946 | int arg2 ; | |
21947 | int arg3 ; | |
21948 | void *argp1 = 0 ; | |
21949 | int res1 = 0 ; | |
21950 | int val2 ; | |
21951 | int ecode2 = 0 ; | |
21952 | int val3 ; | |
21953 | int ecode3 = 0 ; | |
21954 | PyObject * obj0 = 0 ; | |
21955 | PyObject * obj1 = 0 ; | |
21956 | PyObject * obj2 = 0 ; | |
21957 | char * kwnames[] = { | |
21958 | (char *) "self",(char *) "x",(char *) "y", NULL | |
21959 | }; | |
21960 | ||
21961 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21962 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21963 | if (!SWIG_IsOK(res1)) { | |
21964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21965 | } | |
21966 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21967 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21968 | if (!SWIG_IsOK(ecode2)) { | |
21969 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
21970 | } | |
21971 | arg2 = static_cast< int >(val2); | |
21972 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
21973 | if (!SWIG_IsOK(ecode3)) { | |
21974 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
21975 | } | |
21976 | arg3 = static_cast< int >(val3); | |
21977 | { | |
21978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21979 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
21980 | wxPyEndAllowThreads(__tstate); | |
21981 | if (PyErr_Occurred()) SWIG_fail; | |
21982 | } | |
21983 | resultobj = SWIG_Py_Void(); | |
21984 | return resultobj; | |
21985 | fail: | |
21986 | return NULL; | |
21987 | } | |
21988 | ||
21989 | ||
21990 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21991 | PyObject *resultobj = 0; | |
21992 | wxDC *arg1 = (wxDC *) 0 ; | |
21993 | wxPoint *arg2 = 0 ; | |
21994 | void *argp1 = 0 ; | |
21995 | int res1 = 0 ; | |
21996 | wxPoint temp2 ; | |
21997 | PyObject * obj0 = 0 ; | |
21998 | PyObject * obj1 = 0 ; | |
21999 | char * kwnames[] = { | |
22000 | (char *) "self",(char *) "point", NULL | |
22001 | }; | |
22002 | ||
22003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22005 | if (!SWIG_IsOK(res1)) { | |
22006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22007 | } | |
22008 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22009 | { | |
22010 | arg2 = &temp2; | |
22011 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22012 | } | |
22013 | { | |
22014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22015 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
22016 | wxPyEndAllowThreads(__tstate); | |
22017 | if (PyErr_Occurred()) SWIG_fail; | |
22018 | } | |
22019 | resultobj = SWIG_Py_Void(); | |
22020 | return resultobj; | |
22021 | fail: | |
22022 | return NULL; | |
22023 | } | |
22024 | ||
22025 | ||
22026 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22027 | PyObject *resultobj = 0; | |
22028 | wxDC *arg1 = (wxDC *) 0 ; | |
22029 | wxPoint result; | |
22030 | void *argp1 = 0 ; | |
22031 | int res1 = 0 ; | |
22032 | PyObject *swig_obj[1] ; | |
22033 | ||
22034 | if (!args) SWIG_fail; | |
22035 | swig_obj[0] = args; | |
22036 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22037 | if (!SWIG_IsOK(res1)) { | |
22038 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22039 | } | |
22040 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22041 | { | |
22042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22043 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
22044 | wxPyEndAllowThreads(__tstate); | |
22045 | if (PyErr_Occurred()) SWIG_fail; | |
22046 | } | |
22047 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22048 | return resultobj; | |
22049 | fail: | |
22050 | return NULL; | |
22051 | } | |
22052 | ||
22053 | ||
22054 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22055 | PyObject *resultobj = 0; | |
22056 | wxDC *arg1 = (wxDC *) 0 ; | |
22057 | int *arg2 = (int *) 0 ; | |
22058 | int *arg3 = (int *) 0 ; | |
22059 | void *argp1 = 0 ; | |
22060 | int res1 = 0 ; | |
22061 | int temp2 ; | |
22062 | int res2 = SWIG_TMPOBJ ; | |
22063 | int temp3 ; | |
22064 | int res3 = SWIG_TMPOBJ ; | |
22065 | PyObject *swig_obj[1] ; | |
22066 | ||
22067 | arg2 = &temp2; | |
22068 | arg3 = &temp3; | |
22069 | if (!args) SWIG_fail; | |
22070 | swig_obj[0] = args; | |
22071 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22072 | if (!SWIG_IsOK(res1)) { | |
22073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22074 | } | |
22075 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22076 | { | |
22077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22078 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
22079 | wxPyEndAllowThreads(__tstate); | |
22080 | if (PyErr_Occurred()) SWIG_fail; | |
22081 | } | |
22082 | resultobj = SWIG_Py_Void(); | |
22083 | if (SWIG_IsTmpObj(res2)) { | |
22084 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22085 | } else { | |
22086 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22087 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22088 | } | |
22089 | if (SWIG_IsTmpObj(res3)) { | |
22090 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22091 | } else { | |
22092 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22093 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22094 | } | |
22095 | return resultobj; | |
22096 | fail: | |
22097 | return NULL; | |
22098 | } | |
22099 | ||
22100 | ||
22101 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22102 | PyObject *resultobj = 0; | |
22103 | wxDC *arg1 = (wxDC *) 0 ; | |
22104 | int arg2 ; | |
22105 | int arg3 ; | |
22106 | void *argp1 = 0 ; | |
22107 | int res1 = 0 ; | |
22108 | int val2 ; | |
22109 | int ecode2 = 0 ; | |
22110 | int val3 ; | |
22111 | int ecode3 = 0 ; | |
22112 | PyObject * obj0 = 0 ; | |
22113 | PyObject * obj1 = 0 ; | |
22114 | PyObject * obj2 = 0 ; | |
22115 | char * kwnames[] = { | |
22116 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22117 | }; | |
22118 | ||
22119 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22120 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22121 | if (!SWIG_IsOK(res1)) { | |
22122 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22123 | } | |
22124 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22125 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22126 | if (!SWIG_IsOK(ecode2)) { | |
22127 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
22128 | } | |
22129 | arg2 = static_cast< int >(val2); | |
22130 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22131 | if (!SWIG_IsOK(ecode3)) { | |
22132 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
22133 | } | |
22134 | arg3 = static_cast< int >(val3); | |
22135 | { | |
22136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22137 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
22138 | wxPyEndAllowThreads(__tstate); | |
22139 | if (PyErr_Occurred()) SWIG_fail; | |
22140 | } | |
22141 | resultobj = SWIG_Py_Void(); | |
22142 | return resultobj; | |
22143 | fail: | |
22144 | return NULL; | |
22145 | } | |
22146 | ||
22147 | ||
22148 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22149 | PyObject *resultobj = 0; | |
22150 | wxDC *arg1 = (wxDC *) 0 ; | |
22151 | wxPoint *arg2 = 0 ; | |
22152 | void *argp1 = 0 ; | |
22153 | int res1 = 0 ; | |
22154 | wxPoint temp2 ; | |
22155 | PyObject * obj0 = 0 ; | |
22156 | PyObject * obj1 = 0 ; | |
22157 | char * kwnames[] = { | |
22158 | (char *) "self",(char *) "point", NULL | |
22159 | }; | |
22160 | ||
22161 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22162 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22163 | if (!SWIG_IsOK(res1)) { | |
22164 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22165 | } | |
22166 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22167 | { | |
22168 | arg2 = &temp2; | |
22169 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22170 | } | |
22171 | { | |
22172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22173 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
22174 | wxPyEndAllowThreads(__tstate); | |
22175 | if (PyErr_Occurred()) SWIG_fail; | |
22176 | } | |
22177 | resultobj = SWIG_Py_Void(); | |
22178 | return resultobj; | |
22179 | fail: | |
22180 | return NULL; | |
22181 | } | |
22182 | ||
22183 | ||
22184 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22185 | PyObject *resultobj = 0; | |
22186 | wxDC *arg1 = (wxDC *) 0 ; | |
22187 | bool arg2 ; | |
22188 | bool arg3 ; | |
22189 | void *argp1 = 0 ; | |
22190 | int res1 = 0 ; | |
22191 | bool val2 ; | |
22192 | int ecode2 = 0 ; | |
22193 | bool val3 ; | |
22194 | int ecode3 = 0 ; | |
22195 | PyObject * obj0 = 0 ; | |
22196 | PyObject * obj1 = 0 ; | |
22197 | PyObject * obj2 = 0 ; | |
22198 | char * kwnames[] = { | |
22199 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
22200 | }; | |
22201 | ||
22202 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22203 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22204 | if (!SWIG_IsOK(res1)) { | |
22205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22206 | } | |
22207 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22208 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
22209 | if (!SWIG_IsOK(ecode2)) { | |
22210 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
22211 | } | |
22212 | arg2 = static_cast< bool >(val2); | |
22213 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
22214 | if (!SWIG_IsOK(ecode3)) { | |
22215 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
22216 | } | |
22217 | arg3 = static_cast< bool >(val3); | |
22218 | { | |
22219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22220 | (arg1)->SetAxisOrientation(arg2,arg3); | |
22221 | wxPyEndAllowThreads(__tstate); | |
22222 | if (PyErr_Occurred()) SWIG_fail; | |
22223 | } | |
22224 | resultobj = SWIG_Py_Void(); | |
22225 | return resultobj; | |
22226 | fail: | |
22227 | return NULL; | |
22228 | } | |
22229 | ||
22230 | ||
22231 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22232 | PyObject *resultobj = 0; | |
22233 | wxDC *arg1 = (wxDC *) 0 ; | |
22234 | int result; | |
22235 | void *argp1 = 0 ; | |
22236 | int res1 = 0 ; | |
22237 | PyObject *swig_obj[1] ; | |
22238 | ||
22239 | if (!args) SWIG_fail; | |
22240 | swig_obj[0] = args; | |
22241 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22242 | if (!SWIG_IsOK(res1)) { | |
22243 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22244 | } | |
22245 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22246 | { | |
22247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22248 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
22249 | wxPyEndAllowThreads(__tstate); | |
22250 | if (PyErr_Occurred()) SWIG_fail; | |
22251 | } | |
22252 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22253 | return resultobj; | |
22254 | fail: | |
22255 | return NULL; | |
22256 | } | |
22257 | ||
22258 | ||
22259 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22260 | PyObject *resultobj = 0; | |
22261 | wxDC *arg1 = (wxDC *) 0 ; | |
22262 | int arg2 ; | |
22263 | void *argp1 = 0 ; | |
22264 | int res1 = 0 ; | |
22265 | int val2 ; | |
22266 | int ecode2 = 0 ; | |
22267 | PyObject * obj0 = 0 ; | |
22268 | PyObject * obj1 = 0 ; | |
22269 | char * kwnames[] = { | |
22270 | (char *) "self",(char *) "function", NULL | |
22271 | }; | |
22272 | ||
22273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
22274 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22275 | if (!SWIG_IsOK(res1)) { | |
22276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22277 | } | |
22278 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22279 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22280 | if (!SWIG_IsOK(ecode2)) { | |
22281 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
22282 | } | |
22283 | arg2 = static_cast< int >(val2); | |
22284 | { | |
22285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22286 | (arg1)->SetLogicalFunction(arg2); | |
22287 | wxPyEndAllowThreads(__tstate); | |
22288 | if (PyErr_Occurred()) SWIG_fail; | |
22289 | } | |
22290 | resultobj = SWIG_Py_Void(); | |
22291 | return resultobj; | |
22292 | fail: | |
22293 | return NULL; | |
22294 | } | |
22295 | ||
22296 | ||
22297 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22298 | PyObject *resultobj = 0; | |
22299 | wxDC *arg1 = (wxDC *) 0 ; | |
22300 | void *argp1 = 0 ; | |
22301 | int res1 = 0 ; | |
22302 | PyObject *swig_obj[1] ; | |
22303 | ||
22304 | if (!args) SWIG_fail; | |
22305 | swig_obj[0] = args; | |
22306 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22307 | if (!SWIG_IsOK(res1)) { | |
22308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22309 | } | |
22310 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22311 | { | |
22312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22313 | (arg1)->ComputeScaleAndOrigin(); | |
22314 | wxPyEndAllowThreads(__tstate); | |
22315 | if (PyErr_Occurred()) SWIG_fail; | |
22316 | } | |
22317 | resultobj = SWIG_Py_Void(); | |
22318 | return resultobj; | |
22319 | fail: | |
22320 | return NULL; | |
22321 | } | |
22322 | ||
22323 | ||
22324 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22325 | PyObject *resultobj = 0; | |
22326 | wxDC *arg1 = (wxDC *) 0 ; | |
22327 | int arg2 ; | |
22328 | int arg3 ; | |
22329 | void *argp1 = 0 ; | |
22330 | int res1 = 0 ; | |
22331 | int val2 ; | |
22332 | int ecode2 = 0 ; | |
22333 | int val3 ; | |
22334 | int ecode3 = 0 ; | |
22335 | PyObject * obj0 = 0 ; | |
22336 | PyObject * obj1 = 0 ; | |
22337 | PyObject * obj2 = 0 ; | |
22338 | char * kwnames[] = { | |
22339 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22340 | }; | |
22341 | ||
22342 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22343 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22344 | if (!SWIG_IsOK(res1)) { | |
22345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22346 | } | |
22347 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22348 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22349 | if (!SWIG_IsOK(ecode2)) { | |
22350 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
22351 | } | |
22352 | arg2 = static_cast< int >(val2); | |
22353 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22354 | if (!SWIG_IsOK(ecode3)) { | |
22355 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
22356 | } | |
22357 | arg3 = static_cast< int >(val3); | |
22358 | { | |
22359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22360 | (arg1)->CalcBoundingBox(arg2,arg3); | |
22361 | wxPyEndAllowThreads(__tstate); | |
22362 | if (PyErr_Occurred()) SWIG_fail; | |
22363 | } | |
22364 | resultobj = SWIG_Py_Void(); | |
22365 | return resultobj; | |
22366 | fail: | |
22367 | return NULL; | |
22368 | } | |
22369 | ||
22370 | ||
22371 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22372 | PyObject *resultobj = 0; | |
22373 | wxDC *arg1 = (wxDC *) 0 ; | |
22374 | wxPoint *arg2 = 0 ; | |
22375 | void *argp1 = 0 ; | |
22376 | int res1 = 0 ; | |
22377 | wxPoint temp2 ; | |
22378 | PyObject * obj0 = 0 ; | |
22379 | PyObject * obj1 = 0 ; | |
22380 | char * kwnames[] = { | |
22381 | (char *) "self",(char *) "point", NULL | |
22382 | }; | |
22383 | ||
22384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22385 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22386 | if (!SWIG_IsOK(res1)) { | |
22387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22388 | } | |
22389 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22390 | { | |
22391 | arg2 = &temp2; | |
22392 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22393 | } | |
22394 | { | |
22395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22396 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
22397 | wxPyEndAllowThreads(__tstate); | |
22398 | if (PyErr_Occurred()) SWIG_fail; | |
22399 | } | |
22400 | resultobj = SWIG_Py_Void(); | |
22401 | return resultobj; | |
22402 | fail: | |
22403 | return NULL; | |
22404 | } | |
22405 | ||
22406 | ||
22407 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22408 | PyObject *resultobj = 0; | |
22409 | wxDC *arg1 = (wxDC *) 0 ; | |
22410 | void *argp1 = 0 ; | |
22411 | int res1 = 0 ; | |
22412 | PyObject *swig_obj[1] ; | |
22413 | ||
22414 | if (!args) SWIG_fail; | |
22415 | swig_obj[0] = args; | |
22416 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22417 | if (!SWIG_IsOK(res1)) { | |
22418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22419 | } | |
22420 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22421 | { | |
22422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22423 | (arg1)->ResetBoundingBox(); | |
22424 | wxPyEndAllowThreads(__tstate); | |
22425 | if (PyErr_Occurred()) SWIG_fail; | |
22426 | } | |
22427 | resultobj = SWIG_Py_Void(); | |
22428 | return resultobj; | |
22429 | fail: | |
22430 | return NULL; | |
22431 | } | |
22432 | ||
22433 | ||
22434 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22435 | PyObject *resultobj = 0; | |
22436 | wxDC *arg1 = (wxDC *) 0 ; | |
22437 | int result; | |
22438 | void *argp1 = 0 ; | |
22439 | int res1 = 0 ; | |
22440 | PyObject *swig_obj[1] ; | |
22441 | ||
22442 | if (!args) SWIG_fail; | |
22443 | swig_obj[0] = args; | |
22444 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22445 | if (!SWIG_IsOK(res1)) { | |
22446 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22447 | } | |
22448 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22449 | { | |
22450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22451 | result = (int)((wxDC const *)arg1)->MinX(); | |
22452 | wxPyEndAllowThreads(__tstate); | |
22453 | if (PyErr_Occurred()) SWIG_fail; | |
22454 | } | |
22455 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22456 | return resultobj; | |
22457 | fail: | |
22458 | return NULL; | |
22459 | } | |
22460 | ||
22461 | ||
22462 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22463 | PyObject *resultobj = 0; | |
22464 | wxDC *arg1 = (wxDC *) 0 ; | |
22465 | int result; | |
22466 | void *argp1 = 0 ; | |
22467 | int res1 = 0 ; | |
22468 | PyObject *swig_obj[1] ; | |
22469 | ||
22470 | if (!args) SWIG_fail; | |
22471 | swig_obj[0] = args; | |
22472 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22473 | if (!SWIG_IsOK(res1)) { | |
22474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22475 | } | |
22476 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22477 | { | |
22478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22479 | result = (int)((wxDC const *)arg1)->MaxX(); | |
22480 | wxPyEndAllowThreads(__tstate); | |
22481 | if (PyErr_Occurred()) SWIG_fail; | |
22482 | } | |
22483 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22484 | return resultobj; | |
22485 | fail: | |
22486 | return NULL; | |
22487 | } | |
22488 | ||
22489 | ||
22490 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22491 | PyObject *resultobj = 0; | |
22492 | wxDC *arg1 = (wxDC *) 0 ; | |
22493 | int result; | |
22494 | void *argp1 = 0 ; | |
22495 | int res1 = 0 ; | |
22496 | PyObject *swig_obj[1] ; | |
22497 | ||
22498 | if (!args) SWIG_fail; | |
22499 | swig_obj[0] = args; | |
22500 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22501 | if (!SWIG_IsOK(res1)) { | |
22502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22503 | } | |
22504 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22505 | { | |
22506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22507 | result = (int)((wxDC const *)arg1)->MinY(); | |
22508 | wxPyEndAllowThreads(__tstate); | |
22509 | if (PyErr_Occurred()) SWIG_fail; | |
22510 | } | |
22511 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22512 | return resultobj; | |
22513 | fail: | |
22514 | return NULL; | |
22515 | } | |
22516 | ||
22517 | ||
22518 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22519 | PyObject *resultobj = 0; | |
22520 | wxDC *arg1 = (wxDC *) 0 ; | |
22521 | int result; | |
22522 | void *argp1 = 0 ; | |
22523 | int res1 = 0 ; | |
22524 | PyObject *swig_obj[1] ; | |
22525 | ||
22526 | if (!args) SWIG_fail; | |
22527 | swig_obj[0] = args; | |
22528 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22529 | if (!SWIG_IsOK(res1)) { | |
22530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22531 | } | |
22532 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22533 | { | |
22534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22535 | result = (int)((wxDC const *)arg1)->MaxY(); | |
22536 | wxPyEndAllowThreads(__tstate); | |
22537 | if (PyErr_Occurred()) SWIG_fail; | |
22538 | } | |
22539 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22540 | return resultobj; | |
22541 | fail: | |
22542 | return NULL; | |
22543 | } | |
22544 | ||
22545 | ||
22546 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22547 | PyObject *resultobj = 0; | |
22548 | wxDC *arg1 = (wxDC *) 0 ; | |
22549 | int *arg2 = (int *) 0 ; | |
22550 | int *arg3 = (int *) 0 ; | |
22551 | int *arg4 = (int *) 0 ; | |
22552 | int *arg5 = (int *) 0 ; | |
22553 | void *argp1 = 0 ; | |
22554 | int res1 = 0 ; | |
22555 | int temp2 ; | |
22556 | int res2 = SWIG_TMPOBJ ; | |
22557 | int temp3 ; | |
22558 | int res3 = SWIG_TMPOBJ ; | |
22559 | int temp4 ; | |
22560 | int res4 = SWIG_TMPOBJ ; | |
22561 | int temp5 ; | |
22562 | int res5 = SWIG_TMPOBJ ; | |
22563 | PyObject *swig_obj[1] ; | |
22564 | ||
22565 | arg2 = &temp2; | |
22566 | arg3 = &temp3; | |
22567 | arg4 = &temp4; | |
22568 | arg5 = &temp5; | |
22569 | if (!args) SWIG_fail; | |
22570 | swig_obj[0] = args; | |
22571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22572 | if (!SWIG_IsOK(res1)) { | |
22573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22574 | } | |
22575 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22576 | { | |
22577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22578 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
22579 | wxPyEndAllowThreads(__tstate); | |
22580 | if (PyErr_Occurred()) SWIG_fail; | |
22581 | } | |
22582 | resultobj = SWIG_Py_Void(); | |
22583 | if (SWIG_IsTmpObj(res2)) { | |
22584 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22585 | } else { | |
22586 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22587 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22588 | } | |
22589 | if (SWIG_IsTmpObj(res3)) { | |
22590 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22591 | } else { | |
22592 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22593 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22594 | } | |
22595 | if (SWIG_IsTmpObj(res4)) { | |
22596 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
22597 | } else { | |
22598 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22599 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
22600 | } | |
22601 | if (SWIG_IsTmpObj(res5)) { | |
22602 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
22603 | } else { | |
22604 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22605 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
22606 | } | |
22607 | return resultobj; | |
22608 | fail: | |
22609 | return NULL; | |
22610 | } | |
22611 | ||
22612 | ||
22613 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22614 | PyObject *resultobj = 0; | |
22615 | wxDC *arg1 = (wxDC *) 0 ; | |
22616 | PyObject *arg2 = (PyObject *) 0 ; | |
22617 | PyObject *arg3 = (PyObject *) 0 ; | |
22618 | PyObject *arg4 = (PyObject *) 0 ; | |
22619 | PyObject *result = 0 ; | |
22620 | void *argp1 = 0 ; | |
22621 | int res1 = 0 ; | |
22622 | PyObject * obj0 = 0 ; | |
22623 | PyObject * obj1 = 0 ; | |
22624 | PyObject * obj2 = 0 ; | |
22625 | PyObject * obj3 = 0 ; | |
22626 | char * kwnames[] = { | |
22627 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
22628 | }; | |
22629 | ||
22630 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22631 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22632 | if (!SWIG_IsOK(res1)) { | |
22633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22634 | } | |
22635 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22636 | arg2 = obj1; | |
22637 | arg3 = obj2; | |
22638 | arg4 = obj3; | |
22639 | { | |
22640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22641 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
22642 | wxPyEndAllowThreads(__tstate); | |
22643 | if (PyErr_Occurred()) SWIG_fail; | |
22644 | } | |
22645 | resultobj = result; | |
22646 | return resultobj; | |
22647 | fail: | |
22648 | return NULL; | |
22649 | } | |
22650 | ||
22651 | ||
22652 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22653 | PyObject *resultobj = 0; | |
22654 | wxDC *arg1 = (wxDC *) 0 ; | |
22655 | PyObject *arg2 = (PyObject *) 0 ; | |
22656 | PyObject *arg3 = (PyObject *) 0 ; | |
22657 | PyObject *arg4 = (PyObject *) 0 ; | |
22658 | PyObject *result = 0 ; | |
22659 | void *argp1 = 0 ; | |
22660 | int res1 = 0 ; | |
22661 | PyObject * obj0 = 0 ; | |
22662 | PyObject * obj1 = 0 ; | |
22663 | PyObject * obj2 = 0 ; | |
22664 | PyObject * obj3 = 0 ; | |
22665 | char * kwnames[] = { | |
22666 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
22667 | }; | |
22668 | ||
22669 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22670 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22671 | if (!SWIG_IsOK(res1)) { | |
22672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22673 | } | |
22674 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22675 | arg2 = obj1; | |
22676 | arg3 = obj2; | |
22677 | arg4 = obj3; | |
22678 | { | |
22679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22680 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
22681 | wxPyEndAllowThreads(__tstate); | |
22682 | if (PyErr_Occurred()) SWIG_fail; | |
22683 | } | |
22684 | resultobj = result; | |
22685 | return resultobj; | |
22686 | fail: | |
22687 | return NULL; | |
22688 | } | |
22689 | ||
22690 | ||
22691 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22692 | PyObject *resultobj = 0; | |
22693 | wxDC *arg1 = (wxDC *) 0 ; | |
22694 | PyObject *arg2 = (PyObject *) 0 ; | |
22695 | PyObject *arg3 = (PyObject *) 0 ; | |
22696 | PyObject *arg4 = (PyObject *) 0 ; | |
22697 | PyObject *result = 0 ; | |
22698 | void *argp1 = 0 ; | |
22699 | int res1 = 0 ; | |
22700 | PyObject * obj0 = 0 ; | |
22701 | PyObject * obj1 = 0 ; | |
22702 | PyObject * obj2 = 0 ; | |
22703 | PyObject * obj3 = 0 ; | |
22704 | char * kwnames[] = { | |
22705 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
22706 | }; | |
22707 | ||
22708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22710 | if (!SWIG_IsOK(res1)) { | |
22711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22712 | } | |
22713 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22714 | arg2 = obj1; | |
22715 | arg3 = obj2; | |
22716 | arg4 = obj3; | |
22717 | { | |
22718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22719 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
22720 | wxPyEndAllowThreads(__tstate); | |
22721 | if (PyErr_Occurred()) SWIG_fail; | |
22722 | } | |
22723 | resultobj = result; | |
22724 | return resultobj; | |
22725 | fail: | |
22726 | return NULL; | |
22727 | } | |
22728 | ||
22729 | ||
22730 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22731 | PyObject *resultobj = 0; | |
22732 | wxDC *arg1 = (wxDC *) 0 ; | |
22733 | PyObject *arg2 = (PyObject *) 0 ; | |
22734 | PyObject *arg3 = (PyObject *) 0 ; | |
22735 | PyObject *arg4 = (PyObject *) 0 ; | |
22736 | PyObject *result = 0 ; | |
22737 | void *argp1 = 0 ; | |
22738 | int res1 = 0 ; | |
22739 | PyObject * obj0 = 0 ; | |
22740 | PyObject * obj1 = 0 ; | |
22741 | PyObject * obj2 = 0 ; | |
22742 | PyObject * obj3 = 0 ; | |
22743 | char * kwnames[] = { | |
22744 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
22745 | }; | |
22746 | ||
22747 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22748 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22749 | if (!SWIG_IsOK(res1)) { | |
22750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22751 | } | |
22752 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22753 | arg2 = obj1; | |
22754 | arg3 = obj2; | |
22755 | arg4 = obj3; | |
22756 | { | |
22757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22758 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
22759 | wxPyEndAllowThreads(__tstate); | |
22760 | if (PyErr_Occurred()) SWIG_fail; | |
22761 | } | |
22762 | resultobj = result; | |
22763 | return resultobj; | |
22764 | fail: | |
22765 | return NULL; | |
22766 | } | |
22767 | ||
22768 | ||
22769 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22770 | PyObject *resultobj = 0; | |
22771 | wxDC *arg1 = (wxDC *) 0 ; | |
22772 | PyObject *arg2 = (PyObject *) 0 ; | |
22773 | PyObject *arg3 = (PyObject *) 0 ; | |
22774 | PyObject *arg4 = (PyObject *) 0 ; | |
22775 | PyObject *result = 0 ; | |
22776 | void *argp1 = 0 ; | |
22777 | int res1 = 0 ; | |
22778 | PyObject * obj0 = 0 ; | |
22779 | PyObject * obj1 = 0 ; | |
22780 | PyObject * obj2 = 0 ; | |
22781 | PyObject * obj3 = 0 ; | |
22782 | char * kwnames[] = { | |
22783 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
22784 | }; | |
22785 | ||
22786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
22787 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22788 | if (!SWIG_IsOK(res1)) { | |
22789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22790 | } | |
22791 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22792 | arg2 = obj1; | |
22793 | arg3 = obj2; | |
22794 | arg4 = obj3; | |
22795 | { | |
22796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22797 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
22798 | wxPyEndAllowThreads(__tstate); | |
22799 | if (PyErr_Occurred()) SWIG_fail; | |
22800 | } | |
22801 | resultobj = result; | |
22802 | return resultobj; | |
22803 | fail: | |
22804 | return NULL; | |
22805 | } | |
22806 | ||
22807 | ||
22808 | SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22809 | PyObject *resultobj = 0; | |
22810 | wxDC *arg1 = (wxDC *) 0 ; | |
22811 | PyObject *arg2 = (PyObject *) 0 ; | |
22812 | PyObject *arg3 = (PyObject *) 0 ; | |
22813 | PyObject *arg4 = (PyObject *) 0 ; | |
22814 | PyObject *arg5 = (PyObject *) 0 ; | |
22815 | PyObject *result = 0 ; | |
22816 | void *argp1 = 0 ; | |
22817 | int res1 = 0 ; | |
22818 | PyObject * obj0 = 0 ; | |
22819 | PyObject * obj1 = 0 ; | |
22820 | PyObject * obj2 = 0 ; | |
22821 | PyObject * obj3 = 0 ; | |
22822 | PyObject * obj4 = 0 ; | |
22823 | char * kwnames[] = { | |
22824 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
22825 | }; | |
22826 | ||
22827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
22828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22829 | if (!SWIG_IsOK(res1)) { | |
22830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22831 | } | |
22832 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22833 | arg2 = obj1; | |
22834 | arg3 = obj2; | |
22835 | arg4 = obj3; | |
22836 | arg5 = obj4; | |
22837 | { | |
22838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22839 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
22840 | wxPyEndAllowThreads(__tstate); | |
22841 | if (PyErr_Occurred()) SWIG_fail; | |
22842 | } | |
22843 | resultobj = result; | |
22844 | return resultobj; | |
22845 | fail: | |
22846 | return NULL; | |
22847 | } | |
22848 | ||
22849 | ||
22850 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22851 | PyObject *obj; | |
22852 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22853 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
22854 | return SWIG_Py_Void(); | |
22855 | } | |
22856 | ||
22857 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22858 | PyObject *resultobj = 0; | |
22859 | wxMemoryDC *result = 0 ; | |
22860 | ||
22861 | if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail; | |
22862 | { | |
22863 | if (!wxPyCheckForApp()) SWIG_fail; | |
22864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22865 | result = (wxMemoryDC *)new wxMemoryDC(); | |
22866 | wxPyEndAllowThreads(__tstate); | |
22867 | if (PyErr_Occurred()) SWIG_fail; | |
22868 | } | |
22869 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
22870 | return resultobj; | |
22871 | fail: | |
22872 | return NULL; | |
22873 | } | |
22874 | ||
22875 | ||
22876 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22877 | PyObject *resultobj = 0; | |
22878 | wxDC *arg1 = (wxDC *) 0 ; | |
22879 | wxMemoryDC *result = 0 ; | |
22880 | void *argp1 = 0 ; | |
22881 | int res1 = 0 ; | |
22882 | PyObject * obj0 = 0 ; | |
22883 | char * kwnames[] = { | |
22884 | (char *) "oldDC", NULL | |
22885 | }; | |
22886 | ||
22887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
22888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22889 | if (!SWIG_IsOK(res1)) { | |
22890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22891 | } | |
22892 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22893 | { | |
22894 | if (!wxPyCheckForApp()) SWIG_fail; | |
22895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22896 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
22897 | wxPyEndAllowThreads(__tstate); | |
22898 | if (PyErr_Occurred()) SWIG_fail; | |
22899 | } | |
22900 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
22901 | return resultobj; | |
22902 | fail: | |
22903 | return NULL; | |
22904 | } | |
22905 | ||
22906 | ||
22907 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22908 | PyObject *resultobj = 0; | |
22909 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
22910 | wxBitmap *arg2 = 0 ; | |
22911 | void *argp1 = 0 ; | |
22912 | int res1 = 0 ; | |
22913 | void *argp2 = 0 ; | |
22914 | int res2 = 0 ; | |
22915 | PyObject * obj0 = 0 ; | |
22916 | PyObject * obj1 = 0 ; | |
22917 | char * kwnames[] = { | |
22918 | (char *) "self",(char *) "bitmap", NULL | |
22919 | }; | |
22920 | ||
22921 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
22922 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
22923 | if (!SWIG_IsOK(res1)) { | |
22924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
22925 | } | |
22926 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
22927 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22928 | if (!SWIG_IsOK(res2)) { | |
22929 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22930 | } | |
22931 | if (!argp2) { | |
22932 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
22933 | } | |
22934 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
22935 | { | |
22936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22937 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
22938 | wxPyEndAllowThreads(__tstate); | |
22939 | if (PyErr_Occurred()) SWIG_fail; | |
22940 | } | |
22941 | resultobj = SWIG_Py_Void(); | |
22942 | return resultobj; | |
22943 | fail: | |
22944 | return NULL; | |
22945 | } | |
22946 | ||
22947 | ||
22948 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22949 | PyObject *obj; | |
22950 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
22951 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
22952 | return SWIG_Py_Void(); | |
22953 | } | |
22954 | ||
22955 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22956 | return SWIG_Python_InitShadowInstance(args); | |
22957 | } | |
22958 | ||
22959 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
22960 | PyObject *resultobj = 0; | |
22961 | wxDC *arg1 = (wxDC *) 0 ; | |
22962 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
22963 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
22964 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
22965 | wxBufferedDC *result = 0 ; | |
22966 | void *argp1 = 0 ; | |
22967 | int res1 = 0 ; | |
22968 | void *argp2 = 0 ; | |
22969 | int res2 = 0 ; | |
22970 | int val3 ; | |
22971 | int ecode3 = 0 ; | |
22972 | ||
22973 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
22974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22975 | if (!SWIG_IsOK(res1)) { | |
22976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22977 | } | |
22978 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22979 | if (swig_obj[1]) { | |
22980 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
22981 | if (!SWIG_IsOK(res2)) { | |
22982 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 22983 | } |
0085ce49 RD |
22984 | if (!argp2) { |
22985 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 22986 | } |
0085ce49 RD |
22987 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
22988 | } | |
22989 | if (swig_obj[2]) { | |
22990 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
22991 | if (!SWIG_IsOK(ecode3)) { | |
22992 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
22993 | } | |
22994 | arg3 = static_cast< int >(val3); | |
22995 | } | |
22996 | { | |
22997 | if (!wxPyCheckForApp()) SWIG_fail; | |
22998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22999 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3); | |
23000 | wxPyEndAllowThreads(__tstate); | |
23001 | if (PyErr_Occurred()) SWIG_fail; | |
23002 | } | |
23003 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
23004 | return resultobj; | |
23005 | fail: | |
23006 | return NULL; | |
23007 | } | |
23008 | ||
23009 | ||
23010 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
23011 | PyObject *resultobj = 0; | |
23012 | wxDC *arg1 = (wxDC *) 0 ; | |
23013 | wxSize *arg2 = 0 ; | |
23014 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
23015 | wxBufferedDC *result = 0 ; | |
23016 | void *argp1 = 0 ; | |
23017 | int res1 = 0 ; | |
23018 | wxSize temp2 ; | |
23019 | int val3 ; | |
23020 | int ecode3 = 0 ; | |
23021 | ||
23022 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
23023 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23024 | if (!SWIG_IsOK(res1)) { | |
23025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23026 | } | |
23027 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23028 | { | |
23029 | arg2 = &temp2; | |
23030 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
23031 | } | |
23032 | if (swig_obj[2]) { | |
23033 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
23034 | if (!SWIG_IsOK(ecode3)) { | |
23035 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
23036 | } | |
23037 | arg3 = static_cast< int >(val3); | |
23038 | } | |
23039 | { | |
23040 | if (!wxPyCheckForApp()) SWIG_fail; | |
23041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23042 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
23043 | wxPyEndAllowThreads(__tstate); | |
23044 | if (PyErr_Occurred()) SWIG_fail; | |
23045 | } | |
23046 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
23047 | return resultobj; | |
23048 | fail: | |
23049 | return NULL; | |
23050 | } | |
23051 | ||
23052 | ||
23053 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
23054 | int argc; | |
23055 | PyObject *argv[4]; | |
23056 | ||
23057 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; | |
23058 | --argc; | |
23059 | if ((argc >= 1) && (argc <= 3)) { | |
23060 | int _v = 0; | |
23061 | if (argc > 1) { | |
23062 | { | |
23063 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0); | |
23064 | _v = SWIG_CheckState(res); | |
23065 | } | |
23066 | if (!_v) goto check_1; | |
093d3ff1 | 23067 | } |
0085ce49 RD |
23068 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
23069 | } | |
23070 | check_1: | |
23071 | ||
23072 | if ((argc >= 2) && (argc <= 3)) { | |
23073 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
23074 | } | |
23075 | ||
23076 | fail: | |
23077 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
23078 | return NULL; | |
23079 | } | |
23080 | ||
23081 | ||
23082 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23083 | PyObject *resultobj = 0; | |
23084 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
23085 | void *argp1 = 0 ; | |
23086 | int res1 = 0 ; | |
23087 | PyObject *swig_obj[1] ; | |
23088 | ||
23089 | if (!args) SWIG_fail; | |
23090 | swig_obj[0] = args; | |
23091 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
23092 | if (!SWIG_IsOK(res1)) { | |
23093 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
23094 | } | |
23095 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
23096 | { | |
23097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23098 | delete arg1; | |
23099 | ||
23100 | wxPyEndAllowThreads(__tstate); | |
23101 | if (PyErr_Occurred()) SWIG_fail; | |
23102 | } | |
23103 | resultobj = SWIG_Py_Void(); | |
23104 | return resultobj; | |
23105 | fail: | |
23106 | return NULL; | |
23107 | } | |
23108 | ||
23109 | ||
23110 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23111 | PyObject *resultobj = 0; | |
23112 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
23113 | void *argp1 = 0 ; | |
23114 | int res1 = 0 ; | |
23115 | PyObject *swig_obj[1] ; | |
23116 | ||
23117 | if (!args) SWIG_fail; | |
23118 | swig_obj[0] = args; | |
23119 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
23120 | if (!SWIG_IsOK(res1)) { | |
23121 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
23122 | } | |
23123 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
23124 | { | |
23125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23126 | (arg1)->UnMask(); | |
23127 | wxPyEndAllowThreads(__tstate); | |
23128 | if (PyErr_Occurred()) SWIG_fail; | |
23129 | } | |
23130 | resultobj = SWIG_Py_Void(); | |
23131 | return resultobj; | |
23132 | fail: | |
23133 | return NULL; | |
23134 | } | |
23135 | ||
23136 | ||
23137 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23138 | PyObject *obj; | |
23139 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23140 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
23141 | return SWIG_Py_Void(); | |
23142 | } | |
23143 | ||
23144 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23145 | return SWIG_Python_InitShadowInstance(args); | |
23146 | } | |
23147 | ||
23148 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23149 | PyObject *resultobj = 0; | |
23150 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23151 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
23152 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
23153 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
23154 | wxBufferedPaintDC *result = 0 ; | |
23155 | void *argp1 = 0 ; | |
23156 | int res1 = 0 ; | |
23157 | void *argp2 = 0 ; | |
23158 | int res2 = 0 ; | |
23159 | int val3 ; | |
23160 | int ecode3 = 0 ; | |
23161 | PyObject * obj0 = 0 ; | |
23162 | PyObject * obj1 = 0 ; | |
23163 | PyObject * obj2 = 0 ; | |
23164 | char * kwnames[] = { | |
23165 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
23166 | }; | |
23167 | ||
23168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
23170 | if (!SWIG_IsOK(res1)) { | |
23171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
23172 | } | |
23173 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
23174 | if (obj1) { | |
23175 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23176 | if (!SWIG_IsOK(res2)) { | |
23177 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 23178 | } |
0085ce49 RD |
23179 | if (!argp2) { |
23180 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 23181 | } |
0085ce49 RD |
23182 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
23183 | } | |
23184 | if (obj2) { | |
23185 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23186 | if (!SWIG_IsOK(ecode3)) { | |
23187 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
23188 | } | |
23189 | arg3 = static_cast< int >(val3); | |
23190 | } | |
23191 | { | |
23192 | if (!wxPyCheckForApp()) SWIG_fail; | |
23193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23194 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3); | |
23195 | wxPyEndAllowThreads(__tstate); | |
23196 | if (PyErr_Occurred()) SWIG_fail; | |
23197 | } | |
23198 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
23199 | return resultobj; | |
23200 | fail: | |
23201 | return NULL; | |
23202 | } | |
23203 | ||
23204 | ||
23205 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23206 | PyObject *obj; | |
23207 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23208 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
23209 | return SWIG_Py_Void(); | |
23210 | } | |
23211 | ||
23212 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23213 | return SWIG_Python_InitShadowInstance(args); | |
23214 | } | |
23215 | ||
23216 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23217 | PyObject *resultobj = 0; | |
23218 | wxScreenDC *result = 0 ; | |
23219 | ||
23220 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
23221 | { | |
23222 | if (!wxPyCheckForApp()) SWIG_fail; | |
23223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23224 | result = (wxScreenDC *)new wxScreenDC(); | |
23225 | wxPyEndAllowThreads(__tstate); | |
23226 | if (PyErr_Occurred()) SWIG_fail; | |
23227 | } | |
23228 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
23229 | return resultobj; | |
23230 | fail: | |
23231 | return NULL; | |
23232 | } | |
23233 | ||
23234 | ||
23235 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23236 | PyObject *resultobj = 0; | |
23237 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
23238 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23239 | bool result; | |
23240 | void *argp1 = 0 ; | |
23241 | int res1 = 0 ; | |
23242 | void *argp2 = 0 ; | |
23243 | int res2 = 0 ; | |
23244 | PyObject * obj0 = 0 ; | |
23245 | PyObject * obj1 = 0 ; | |
23246 | char * kwnames[] = { | |
23247 | (char *) "self",(char *) "window", NULL | |
23248 | }; | |
23249 | ||
23250 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
23251 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
23252 | if (!SWIG_IsOK(res1)) { | |
23253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
23254 | } | |
23255 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
23256 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
23257 | if (!SWIG_IsOK(res2)) { | |
23258 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
23259 | } | |
23260 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
23261 | { | |
23262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23263 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
23264 | wxPyEndAllowThreads(__tstate); | |
23265 | if (PyErr_Occurred()) SWIG_fail; | |
23266 | } | |
23267 | { | |
23268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23269 | } | |
23270 | return resultobj; | |
23271 | fail: | |
23272 | return NULL; | |
23273 | } | |
23274 | ||
23275 | ||
23276 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23277 | PyObject *resultobj = 0; | |
23278 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
23279 | wxRect *arg2 = (wxRect *) NULL ; | |
23280 | bool result; | |
23281 | void *argp1 = 0 ; | |
23282 | int res1 = 0 ; | |
23283 | void *argp2 = 0 ; | |
23284 | int res2 = 0 ; | |
23285 | PyObject * obj0 = 0 ; | |
23286 | PyObject * obj1 = 0 ; | |
23287 | char * kwnames[] = { | |
23288 | (char *) "self",(char *) "rect", NULL | |
23289 | }; | |
23290 | ||
23291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
23292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
23293 | if (!SWIG_IsOK(res1)) { | |
23294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
23295 | } | |
23296 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
23297 | if (obj1) { | |
23298 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
23299 | if (!SWIG_IsOK(res2)) { | |
23300 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
e2950dbb | 23301 | } |
0085ce49 RD |
23302 | arg2 = reinterpret_cast< wxRect * >(argp2); |
23303 | } | |
23304 | { | |
23305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23306 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
23307 | wxPyEndAllowThreads(__tstate); | |
23308 | if (PyErr_Occurred()) SWIG_fail; | |
23309 | } | |
23310 | { | |
23311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23312 | } | |
23313 | return resultobj; | |
23314 | fail: | |
23315 | return NULL; | |
23316 | } | |
23317 | ||
23318 | ||
23319 | SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23320 | PyObject *resultobj = 0; | |
23321 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
23322 | bool result; | |
23323 | void *argp1 = 0 ; | |
23324 | int res1 = 0 ; | |
23325 | PyObject *swig_obj[1] ; | |
23326 | ||
23327 | if (!args) SWIG_fail; | |
23328 | swig_obj[0] = args; | |
23329 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
23330 | if (!SWIG_IsOK(res1)) { | |
23331 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
23332 | } | |
23333 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
23334 | { | |
23335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23336 | result = (bool)(arg1)->EndDrawingOnTop(); | |
23337 | wxPyEndAllowThreads(__tstate); | |
23338 | if (PyErr_Occurred()) SWIG_fail; | |
23339 | } | |
23340 | { | |
23341 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23342 | } | |
23343 | return resultobj; | |
23344 | fail: | |
23345 | return NULL; | |
23346 | } | |
23347 | ||
23348 | ||
23349 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23350 | PyObject *obj; | |
23351 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23352 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
23353 | return SWIG_Py_Void(); | |
23354 | } | |
23355 | ||
23356 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23357 | return SWIG_Python_InitShadowInstance(args); | |
23358 | } | |
23359 | ||
23360 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23361 | PyObject *resultobj = 0; | |
23362 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23363 | wxClientDC *result = 0 ; | |
23364 | void *argp1 = 0 ; | |
23365 | int res1 = 0 ; | |
23366 | PyObject * obj0 = 0 ; | |
23367 | char * kwnames[] = { | |
23368 | (char *) "win", NULL | |
23369 | }; | |
23370 | ||
23371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
23372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
23373 | if (!SWIG_IsOK(res1)) { | |
23374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
23375 | } | |
23376 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
23377 | { | |
23378 | if (!wxPyCheckForApp()) SWIG_fail; | |
23379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23380 | result = (wxClientDC *)new wxClientDC(arg1); | |
23381 | wxPyEndAllowThreads(__tstate); | |
23382 | if (PyErr_Occurred()) SWIG_fail; | |
23383 | } | |
23384 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
23385 | return resultobj; | |
23386 | fail: | |
23387 | return NULL; | |
23388 | } | |
23389 | ||
23390 | ||
23391 | SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23392 | PyObject *obj; | |
23393 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23394 | SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj)); | |
23395 | return SWIG_Py_Void(); | |
23396 | } | |
23397 | ||
23398 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23399 | return SWIG_Python_InitShadowInstance(args); | |
23400 | } | |
23401 | ||
23402 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23403 | PyObject *resultobj = 0; | |
23404 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23405 | wxPaintDC *result = 0 ; | |
23406 | void *argp1 = 0 ; | |
23407 | int res1 = 0 ; | |
23408 | PyObject * obj0 = 0 ; | |
23409 | char * kwnames[] = { | |
23410 | (char *) "win", NULL | |
23411 | }; | |
23412 | ||
23413 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
23414 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
23415 | if (!SWIG_IsOK(res1)) { | |
23416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
23417 | } | |
23418 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
23419 | { | |
23420 | if (!wxPyCheckForApp()) SWIG_fail; | |
23421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23422 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
23423 | wxPyEndAllowThreads(__tstate); | |
23424 | if (PyErr_Occurred()) SWIG_fail; | |
23425 | } | |
23426 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
23427 | return resultobj; | |
23428 | fail: | |
23429 | return NULL; | |
23430 | } | |
23431 | ||
23432 | ||
23433 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23434 | PyObject *obj; | |
23435 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23436 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
23437 | return SWIG_Py_Void(); | |
23438 | } | |
23439 | ||
23440 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23441 | return SWIG_Python_InitShadowInstance(args); | |
23442 | } | |
23443 | ||
23444 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23445 | PyObject *resultobj = 0; | |
23446 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23447 | wxWindowDC *result = 0 ; | |
23448 | void *argp1 = 0 ; | |
23449 | int res1 = 0 ; | |
23450 | PyObject * obj0 = 0 ; | |
23451 | char * kwnames[] = { | |
23452 | (char *) "win", NULL | |
23453 | }; | |
23454 | ||
23455 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
23456 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
23457 | if (!SWIG_IsOK(res1)) { | |
23458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
23459 | } | |
23460 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
23461 | { | |
23462 | if (!wxPyCheckForApp()) SWIG_fail; | |
23463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23464 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
23465 | wxPyEndAllowThreads(__tstate); | |
23466 | if (PyErr_Occurred()) SWIG_fail; | |
23467 | } | |
23468 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
23469 | return resultobj; | |
23470 | fail: | |
23471 | return NULL; | |
23472 | } | |
23473 | ||
23474 | ||
23475 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23476 | PyObject *obj; | |
23477 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23478 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
23479 | return SWIG_Py_Void(); | |
23480 | } | |
23481 | ||
23482 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23483 | return SWIG_Python_InitShadowInstance(args); | |
23484 | } | |
23485 | ||
23486 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23487 | PyObject *resultobj = 0; | |
23488 | wxDC *arg1 = 0 ; | |
23489 | bool arg2 ; | |
23490 | wxMirrorDC *result = 0 ; | |
23491 | void *argp1 = 0 ; | |
23492 | int res1 = 0 ; | |
23493 | bool val2 ; | |
23494 | int ecode2 = 0 ; | |
23495 | PyObject * obj0 = 0 ; | |
23496 | PyObject * obj1 = 0 ; | |
23497 | char * kwnames[] = { | |
23498 | (char *) "dc",(char *) "mirror", NULL | |
23499 | }; | |
23500 | ||
23501 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
23502 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
23503 | if (!SWIG_IsOK(res1)) { | |
23504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23505 | } | |
23506 | if (!argp1) { | |
23507 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
23508 | } | |
23509 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23510 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23511 | if (!SWIG_IsOK(ecode2)) { | |
23512 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
23513 | } | |
23514 | arg2 = static_cast< bool >(val2); | |
23515 | { | |
23516 | if (!wxPyCheckForApp()) SWIG_fail; | |
23517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23518 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
23519 | wxPyEndAllowThreads(__tstate); | |
23520 | if (PyErr_Occurred()) SWIG_fail; | |
23521 | } | |
23522 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
23523 | return resultobj; | |
23524 | fail: | |
23525 | return NULL; | |
23526 | } | |
23527 | ||
23528 | ||
23529 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23530 | PyObject *obj; | |
23531 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23532 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
23533 | return SWIG_Py_Void(); | |
23534 | } | |
23535 | ||
23536 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23537 | return SWIG_Python_InitShadowInstance(args); | |
23538 | } | |
23539 | ||
23540 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23541 | PyObject *resultobj = 0; | |
23542 | wxPrintData *arg1 = 0 ; | |
23543 | wxPostScriptDC *result = 0 ; | |
23544 | void *argp1 = 0 ; | |
23545 | int res1 = 0 ; | |
23546 | PyObject * obj0 = 0 ; | |
23547 | char * kwnames[] = { | |
23548 | (char *) "printData", NULL | |
23549 | }; | |
23550 | ||
23551 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
23552 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
23553 | if (!SWIG_IsOK(res1)) { | |
23554 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23555 | } | |
23556 | if (!argp1) { | |
23557 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23558 | } | |
23559 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23560 | { | |
23561 | if (!wxPyCheckForApp()) SWIG_fail; | |
23562 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23563 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
23564 | wxPyEndAllowThreads(__tstate); | |
23565 | if (PyErr_Occurred()) SWIG_fail; | |
23566 | } | |
23567 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
23568 | return resultobj; | |
23569 | fail: | |
23570 | return NULL; | |
23571 | } | |
23572 | ||
23573 | ||
23574 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23575 | PyObject *resultobj = 0; | |
23576 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
23577 | wxPrintData *result = 0 ; | |
23578 | void *argp1 = 0 ; | |
23579 | int res1 = 0 ; | |
23580 | PyObject *swig_obj[1] ; | |
23581 | ||
23582 | if (!args) SWIG_fail; | |
23583 | swig_obj[0] = args; | |
23584 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
23585 | if (!SWIG_IsOK(res1)) { | |
23586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
23587 | } | |
23588 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
23589 | { | |
23590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 23591 | { |
0085ce49 RD |
23592 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
23593 | result = (wxPrintData *) &_result_ref; | |
e2950dbb | 23594 | } |
0085ce49 RD |
23595 | wxPyEndAllowThreads(__tstate); |
23596 | if (PyErr_Occurred()) SWIG_fail; | |
23597 | } | |
23598 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
23599 | return resultobj; | |
23600 | fail: | |
23601 | return NULL; | |
23602 | } | |
23603 | ||
23604 | ||
23605 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23606 | PyObject *resultobj = 0; | |
23607 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
23608 | wxPrintData *arg2 = 0 ; | |
23609 | void *argp1 = 0 ; | |
23610 | int res1 = 0 ; | |
23611 | void *argp2 = 0 ; | |
23612 | int res2 = 0 ; | |
23613 | PyObject * obj0 = 0 ; | |
23614 | PyObject * obj1 = 0 ; | |
23615 | char * kwnames[] = { | |
23616 | (char *) "self",(char *) "data", NULL | |
23617 | }; | |
23618 | ||
23619 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
23620 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
23621 | if (!SWIG_IsOK(res1)) { | |
23622 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
23623 | } | |
23624 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
23625 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
23626 | if (!SWIG_IsOK(res2)) { | |
23627 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
23628 | } | |
23629 | if (!argp2) { | |
23630 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
23631 | } | |
23632 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
23633 | { | |
23634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23635 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
23636 | wxPyEndAllowThreads(__tstate); | |
23637 | if (PyErr_Occurred()) SWIG_fail; | |
23638 | } | |
23639 | resultobj = SWIG_Py_Void(); | |
23640 | return resultobj; | |
23641 | fail: | |
23642 | return NULL; | |
23643 | } | |
23644 | ||
23645 | ||
23646 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23647 | PyObject *resultobj = 0; | |
23648 | int arg1 ; | |
23649 | int val1 ; | |
23650 | int ecode1 = 0 ; | |
23651 | PyObject * obj0 = 0 ; | |
23652 | char * kwnames[] = { | |
23653 | (char *) "ppi", NULL | |
23654 | }; | |
23655 | ||
23656 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
23657 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
23658 | if (!SWIG_IsOK(ecode1)) { | |
23659 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
23660 | } | |
23661 | arg1 = static_cast< int >(val1); | |
23662 | { | |
23663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23664 | wxPostScriptDC::SetResolution(arg1); | |
23665 | wxPyEndAllowThreads(__tstate); | |
23666 | if (PyErr_Occurred()) SWIG_fail; | |
23667 | } | |
23668 | resultobj = SWIG_Py_Void(); | |
23669 | return resultobj; | |
23670 | fail: | |
23671 | return NULL; | |
23672 | } | |
23673 | ||
23674 | ||
23675 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23676 | PyObject *resultobj = 0; | |
23677 | int result; | |
23678 | ||
23679 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
23680 | { | |
23681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23682 | result = (int)wxPostScriptDC::GetResolution(); | |
23683 | wxPyEndAllowThreads(__tstate); | |
23684 | if (PyErr_Occurred()) SWIG_fail; | |
23685 | } | |
23686 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23687 | return resultobj; | |
23688 | fail: | |
23689 | return NULL; | |
23690 | } | |
23691 | ||
23692 | ||
23693 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23694 | PyObject *obj; | |
23695 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23696 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
23697 | return SWIG_Py_Void(); | |
23698 | } | |
23699 | ||
23700 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23701 | return SWIG_Python_InitShadowInstance(args); | |
23702 | } | |
23703 | ||
23704 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23705 | PyObject *resultobj = 0; | |
23706 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
23707 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
23708 | wxMetaFile *result = 0 ; | |
23709 | bool temp1 = false ; | |
23710 | PyObject * obj0 = 0 ; | |
23711 | char * kwnames[] = { | |
23712 | (char *) "filename", NULL | |
23713 | }; | |
23714 | ||
23715 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
23716 | if (obj0) { | |
093d3ff1 | 23717 | { |
0085ce49 RD |
23718 | arg1 = wxString_in_helper(obj0); |
23719 | if (arg1 == NULL) SWIG_fail; | |
23720 | temp1 = true; | |
093d3ff1 | 23721 | } |
0085ce49 RD |
23722 | } |
23723 | { | |
23724 | if (!wxPyCheckForApp()) SWIG_fail; | |
23725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23726 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
23727 | wxPyEndAllowThreads(__tstate); | |
23728 | if (PyErr_Occurred()) SWIG_fail; | |
23729 | } | |
23730 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
23731 | { | |
23732 | if (temp1) | |
23733 | delete arg1; | |
23734 | } | |
23735 | return resultobj; | |
23736 | fail: | |
23737 | { | |
23738 | if (temp1) | |
23739 | delete arg1; | |
23740 | } | |
23741 | return NULL; | |
23742 | } | |
23743 | ||
23744 | ||
23745 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23746 | PyObject *obj; | |
23747 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23748 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
23749 | return SWIG_Py_Void(); | |
23750 | } | |
23751 | ||
23752 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23753 | return SWIG_Python_InitShadowInstance(args); | |
23754 | } | |
23755 | ||
23756 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23757 | PyObject *resultobj = 0; | |
23758 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
23759 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
23760 | int arg2 = (int) 0 ; | |
23761 | int arg3 = (int) 0 ; | |
23762 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
23763 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
23764 | wxMetaFileDC *result = 0 ; | |
23765 | bool temp1 = false ; | |
23766 | int val2 ; | |
23767 | int ecode2 = 0 ; | |
23768 | int val3 ; | |
23769 | int ecode3 = 0 ; | |
23770 | bool temp4 = false ; | |
23771 | PyObject * obj0 = 0 ; | |
23772 | PyObject * obj1 = 0 ; | |
23773 | PyObject * obj2 = 0 ; | |
23774 | PyObject * obj3 = 0 ; | |
23775 | char * kwnames[] = { | |
23776 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
23777 | }; | |
23778 | ||
23779 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23780 | if (obj0) { | |
093d3ff1 | 23781 | { |
0085ce49 RD |
23782 | arg1 = wxString_in_helper(obj0); |
23783 | if (arg1 == NULL) SWIG_fail; | |
23784 | temp1 = true; | |
093d3ff1 | 23785 | } |
0085ce49 RD |
23786 | } |
23787 | if (obj1) { | |
23788 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23789 | if (!SWIG_IsOK(ecode2)) { | |
23790 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
23791 | } | |
23792 | arg2 = static_cast< int >(val2); | |
23793 | } | |
23794 | if (obj2) { | |
23795 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23796 | if (!SWIG_IsOK(ecode3)) { | |
23797 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
23798 | } | |
23799 | arg3 = static_cast< int >(val3); | |
23800 | } | |
23801 | if (obj3) { | |
093d3ff1 | 23802 | { |
0085ce49 RD |
23803 | arg4 = wxString_in_helper(obj3); |
23804 | if (arg4 == NULL) SWIG_fail; | |
23805 | temp4 = true; | |
093d3ff1 | 23806 | } |
0085ce49 RD |
23807 | } |
23808 | { | |
23809 | if (!wxPyCheckForApp()) SWIG_fail; | |
23810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23811 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
23812 | wxPyEndAllowThreads(__tstate); | |
23813 | if (PyErr_Occurred()) SWIG_fail; | |
23814 | } | |
23815 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
23816 | { | |
23817 | if (temp1) | |
23818 | delete arg1; | |
23819 | } | |
23820 | { | |
23821 | if (temp4) | |
23822 | delete arg4; | |
23823 | } | |
23824 | return resultobj; | |
23825 | fail: | |
23826 | { | |
23827 | if (temp1) | |
23828 | delete arg1; | |
23829 | } | |
23830 | { | |
23831 | if (temp4) | |
23832 | delete arg4; | |
23833 | } | |
23834 | return NULL; | |
23835 | } | |
23836 | ||
23837 | ||
23838 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23839 | PyObject *obj; | |
23840 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23841 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
23842 | return SWIG_Py_Void(); | |
23843 | } | |
23844 | ||
23845 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23846 | return SWIG_Python_InitShadowInstance(args); | |
23847 | } | |
23848 | ||
23849 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23850 | PyObject *resultobj = 0; | |
23851 | wxPrintData *arg1 = 0 ; | |
23852 | wxPrinterDC *result = 0 ; | |
23853 | void *argp1 = 0 ; | |
23854 | int res1 = 0 ; | |
23855 | PyObject * obj0 = 0 ; | |
23856 | char * kwnames[] = { | |
23857 | (char *) "printData", NULL | |
23858 | }; | |
23859 | ||
23860 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
23861 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
23862 | if (!SWIG_IsOK(res1)) { | |
23863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23864 | } | |
23865 | if (!argp1) { | |
23866 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
23867 | } | |
23868 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
23869 | { | |
23870 | if (!wxPyCheckForApp()) SWIG_fail; | |
23871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23872 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
23873 | wxPyEndAllowThreads(__tstate); | |
23874 | if (PyErr_Occurred()) SWIG_fail; | |
23875 | } | |
23876 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
23877 | return resultobj; | |
23878 | fail: | |
23879 | return NULL; | |
23880 | } | |
23881 | ||
23882 | ||
23883 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23884 | PyObject *obj; | |
23885 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23886 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
23887 | return SWIG_Py_Void(); | |
23888 | } | |
23889 | ||
23890 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23891 | return SWIG_Python_InitShadowInstance(args); | |
23892 | } | |
23893 | ||
23894 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23895 | PyObject *resultobj = 0; | |
23896 | int arg1 ; | |
23897 | int arg2 ; | |
23898 | int arg3 = (int) true ; | |
23899 | int arg4 = (int) 1 ; | |
23900 | wxImageList *result = 0 ; | |
23901 | int val1 ; | |
23902 | int ecode1 = 0 ; | |
23903 | int val2 ; | |
23904 | int ecode2 = 0 ; | |
23905 | int val3 ; | |
23906 | int ecode3 = 0 ; | |
23907 | int val4 ; | |
23908 | int ecode4 = 0 ; | |
23909 | PyObject * obj0 = 0 ; | |
23910 | PyObject * obj1 = 0 ; | |
23911 | PyObject * obj2 = 0 ; | |
23912 | PyObject * obj3 = 0 ; | |
23913 | char * kwnames[] = { | |
23914 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
23915 | }; | |
23916 | ||
23917 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23918 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
23919 | if (!SWIG_IsOK(ecode1)) { | |
23920 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
23921 | } | |
23922 | arg1 = static_cast< int >(val1); | |
23923 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23924 | if (!SWIG_IsOK(ecode2)) { | |
23925 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
23926 | } | |
23927 | arg2 = static_cast< int >(val2); | |
23928 | if (obj2) { | |
23929 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23930 | if (!SWIG_IsOK(ecode3)) { | |
23931 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
23932 | } | |
23933 | arg3 = static_cast< int >(val3); | |
23934 | } | |
23935 | if (obj3) { | |
23936 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
23937 | if (!SWIG_IsOK(ecode4)) { | |
23938 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
23939 | } | |
23940 | arg4 = static_cast< int >(val4); | |
23941 | } | |
23942 | { | |
23943 | if (!wxPyCheckForApp()) SWIG_fail; | |
23944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23945 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
23946 | wxPyEndAllowThreads(__tstate); | |
23947 | if (PyErr_Occurred()) SWIG_fail; | |
23948 | } | |
23949 | { | |
23950 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW); | |
23951 | } | |
23952 | return resultobj; | |
23953 | fail: | |
23954 | return NULL; | |
23955 | } | |
23956 | ||
23957 | ||
23958 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23959 | PyObject *resultobj = 0; | |
23960 | wxImageList *arg1 = (wxImageList *) 0 ; | |
23961 | void *argp1 = 0 ; | |
23962 | int res1 = 0 ; | |
23963 | PyObject *swig_obj[1] ; | |
23964 | ||
23965 | if (!args) SWIG_fail; | |
23966 | swig_obj[0] = args; | |
23967 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
23968 | if (!SWIG_IsOK(res1)) { | |
23969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
23970 | } | |
23971 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
23972 | { | |
23973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23974 | delete arg1; | |
23975 | ||
23976 | wxPyEndAllowThreads(__tstate); | |
23977 | if (PyErr_Occurred()) SWIG_fail; | |
23978 | } | |
23979 | resultobj = SWIG_Py_Void(); | |
23980 | return resultobj; | |
23981 | fail: | |
23982 | return NULL; | |
23983 | } | |
23984 | ||
23985 | ||
23986 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23987 | PyObject *resultobj = 0; | |
23988 | wxImageList *arg1 = (wxImageList *) 0 ; | |
23989 | wxBitmap *arg2 = 0 ; | |
23990 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
23991 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
23992 | int result; | |
23993 | void *argp1 = 0 ; | |
23994 | int res1 = 0 ; | |
23995 | void *argp2 = 0 ; | |
23996 | int res2 = 0 ; | |
23997 | void *argp3 = 0 ; | |
23998 | int res3 = 0 ; | |
23999 | PyObject * obj0 = 0 ; | |
24000 | PyObject * obj1 = 0 ; | |
24001 | PyObject * obj2 = 0 ; | |
24002 | char * kwnames[] = { | |
24003 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
24004 | }; | |
24005 | ||
24006 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24007 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
24008 | if (!SWIG_IsOK(res1)) { | |
24009 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
24010 | } | |
24011 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
24012 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24013 | if (!SWIG_IsOK(res2)) { | |
24014 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
24015 | } | |
24016 | if (!argp2) { | |
24017 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
24018 | } | |
24019 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
24020 | if (obj2) { | |
24021 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24022 | if (!SWIG_IsOK(res3)) { | |
24023 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24024 | } |
0085ce49 RD |
24025 | if (!argp3) { |
24026 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24027 | } |
0085ce49 RD |
24028 | arg3 = reinterpret_cast< wxBitmap * >(argp3); |
24029 | } | |
24030 | { | |
24031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24032 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
24033 | wxPyEndAllowThreads(__tstate); | |
24034 | if (PyErr_Occurred()) SWIG_fail; | |
24035 | } | |
24036 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24037 | return resultobj; | |
24038 | fail: | |
24039 | return NULL; | |
24040 | } | |
24041 | ||
24042 | ||
24043 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24044 | PyObject *resultobj = 0; | |
24045 | wxImageList *arg1 = (wxImageList *) 0 ; | |
24046 | wxBitmap *arg2 = 0 ; | |
24047 | wxColour *arg3 = 0 ; | |
24048 | int result; | |
24049 | void *argp1 = 0 ; | |
24050 | int res1 = 0 ; | |
24051 | void *argp2 = 0 ; | |
24052 | int res2 = 0 ; | |
24053 | wxColour temp3 ; | |
24054 | PyObject * obj0 = 0 ; | |
24055 | PyObject * obj1 = 0 ; | |
24056 | PyObject * obj2 = 0 ; | |
24057 | char * kwnames[] = { | |
24058 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
24059 | }; | |
24060 | ||
24061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
24063 | if (!SWIG_IsOK(res1)) { | |
24064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
24065 | } | |
24066 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
24067 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24068 | if (!SWIG_IsOK(res2)) { | |
24069 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
24070 | } | |
24071 | if (!argp2) { | |
24072 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
24073 | } | |
24074 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
24075 | { | |
24076 | arg3 = &temp3; | |
24077 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
24078 | } | |
24079 | { | |
24080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24081 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
24082 | wxPyEndAllowThreads(__tstate); | |
24083 | if (PyErr_Occurred()) SWIG_fail; | |
24084 | } | |
24085 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24086 | return resultobj; | |
24087 | fail: | |
24088 | return NULL; | |
24089 | } | |
24090 | ||
24091 | ||
24092 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24093 | PyObject *resultobj = 0; | |
24094 | wxImageList *arg1 = (wxImageList *) 0 ; | |
24095 | wxIcon *arg2 = 0 ; | |
24096 | int result; | |
24097 | void *argp1 = 0 ; | |
24098 | int res1 = 0 ; | |
24099 | void *argp2 = 0 ; | |
24100 | int res2 = 0 ; | |
24101 | PyObject * obj0 = 0 ; | |
24102 | PyObject * obj1 = 0 ; | |
24103 | char * kwnames[] = { | |
24104 | (char *) "self",(char *) "icon", NULL | |
24105 | }; | |
24106 | ||
24107 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
24108 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
24109 | if (!SWIG_IsOK(res1)) { | |
24110 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
24111 | } | |
24112 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
24113 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
24114 | if (!SWIG_IsOK(res2)) { | |
24115 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
24116 | } | |
24117 | if (!argp2) { | |
24118 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
24119 | } | |
24120 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
24121 | { | |
24122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24123 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
24124 | wxPyEndAllowThreads(__tstate); | |
24125 | if (PyErr_Occurred()) SWIG_fail; | |
24126 | } | |
24127 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24128 | return resultobj; | |
24129 | fail: | |
24130 | return NULL; | |
24131 | } | |
24132 | ||
24133 | ||
24134 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24135 | PyObject *resultobj = 0; | |
24136 | wxImageList *arg1 = (wxImageList *) 0 ; | |
24137 | int arg2 ; | |
24138 | SwigValueWrapper<wxBitmap > result; | |
24139 | void *argp1 = 0 ; | |
24140 | int res1 = 0 ; | |
24141 | int val2 ; | |
24142 | int ecode2 = 0 ; | |
24143 | PyObject * obj0 = 0 ; | |
24144 | PyObject * obj1 = 0 ; | |
24145 | char * kwnames[] = { | |
24146 | (char *) "self",(char *) "index", NULL | |
24147 | }; | |
24148 | ||
24149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
24150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
24151 | if (!SWIG_IsOK(res1)) { | |
24152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
24153 | } | |
24154 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
24155 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24156 | if (!SWIG_IsOK(ecode2)) { | |
24157 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
24158 | } | |
24159 | arg2 = static_cast< int >(val2); | |
24160 | { | |
24161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24162 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
24163 | wxPyEndAllowThreads(__tstate); | |
24164 | if (PyErr_Occurred()) SWIG_fail; | |
24165 | } | |
24166 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
24167 | return resultobj; | |
24168 | fail: | |
24169 | return NULL; | |
24170 | } | |
24171 | ||
24172 | ||
24173 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24174 | PyObject *resultobj = 0; | |
24175 | wxImageList *arg1 = (wxImageList *) 0 ; | |
24176 | int arg2 ; | |
24177 | wxIcon result; | |
24178 | void *argp1 = 0 ; | |
24179 | int res1 = 0 ; | |
24180 | int val2 ; | |
24181 | int ecode2 = 0 ; | |
24182 | PyObject * obj0 = 0 ; | |
24183 | PyObject * obj1 = 0 ; | |
24184 | char * kwnames[] = { | |
24185 | (char *) "self",(char *) "index", NULL | |
24186 | }; | |
24187 | ||
24188 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
24189 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
24190 | if (!SWIG_IsOK(res1)) { | |
24191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
24192 | } | |
24193 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
24194 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24195 | if (!SWIG_IsOK(ecode2)) { | |
24196 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
24197 | } | |
24198 | arg2 = static_cast< int >(val2); | |
24199 | { | |
24200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24201 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
24202 | wxPyEndAllowThreads(__tstate); | |
24203 | if (PyErr_Occurred()) SWIG_fail; | |
24204 | } | |
24205 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
24206 | return resultobj; | |
24207 | fail: | |
24208 | return NULL; | |
24209 | } | |
24210 | ||
24211 | ||
24212 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24213 | PyObject *resultobj = 0; | |
24214 | wxImageList *arg1 = (wxImageList *) 0 ; | |
24215 | int arg2 ; | |
24216 | wxBitmap *arg3 = 0 ; | |
01f6b6d3 RD |
24217 | wxBitmap const &arg4_defvalue = wxNullBitmap ; |
24218 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
0085ce49 RD |
24219 | bool result; |
24220 | void *argp1 = 0 ; | |
24221 | int res1 = 0 ; | |
24222 | int val2 ; | |
24223 | int ecode2 = 0 ; | |
24224 | void *argp3 = 0 ; | |
24225 | int res3 = 0 ; | |
01f6b6d3 RD |
24226 | void *argp4 = 0 ; |
24227 | int res4 = 0 ; | |
0085ce49 RD |
24228 | PyObject * obj0 = 0 ; |
24229 | PyObject * obj1 = 0 ; | |
24230 | PyObject * obj2 = 0 ; | |
01f6b6d3 | 24231 | PyObject * obj3 = 0 ; |
0085ce49 | 24232 | char * kwnames[] = { |
01f6b6d3 | 24233 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL |
0085ce49 RD |
24234 | }; |
24235 | ||
01f6b6d3 | 24236 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
0085ce49 RD |
24237 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); |
24238 | if (!SWIG_IsOK(res1)) { | |
24239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
24240 | } | |
24241 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
24242 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24243 | if (!SWIG_IsOK(ecode2)) { | |
24244 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
24245 | } | |
24246 | arg2 = static_cast< int >(val2); | |
24247 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24248 | if (!SWIG_IsOK(res3)) { | |
24249 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
24250 | } | |
24251 | if (!argp3) { | |
24252 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
24253 | } | |
24254 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
01f6b6d3 RD |
24255 | if (obj3) { |
24256 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24257 | if (!SWIG_IsOK(res4)) { | |
24258 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
24259 | } | |
24260 | if (!argp4) { | |
24261 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
24262 | } | |
24263 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
24264 | } | |
0085ce49 RD |
24265 | { |
24266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 24267 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); |
0085ce49 RD |
24268 | wxPyEndAllowThreads(__tstate); |
24269 | if (PyErr_Occurred()) SWIG_fail; | |
24270 | } | |
24271 | { | |
24272 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24273 | } | |
24274 | return resultobj; | |
24275 | fail: | |
24276 | return NULL; | |
24277 | } | |
24278 | ||
24279 | ||
24280 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24281 | PyObject *resultobj = 0; | |
24282 | wxImageList *arg1 = (wxImageList *) 0 ; | |
24283 | int arg2 ; | |
24284 | wxDC *arg3 = 0 ; | |
24285 | int arg4 ; | |
24286 | int arg5 ; | |
24287 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
24288 | bool arg7 = (bool) (bool)false ; | |
24289 | bool result; | |
24290 | void *argp1 = 0 ; | |
24291 | int res1 = 0 ; | |
24292 | int val2 ; | |
24293 | int ecode2 = 0 ; | |
24294 | void *argp3 = 0 ; | |
24295 | int res3 = 0 ; | |
24296 | int val4 ; | |
24297 | int ecode4 = 0 ; | |
24298 | int val5 ; | |
24299 | int ecode5 = 0 ; | |
24300 | int val6 ; | |
24301 | int ecode6 = 0 ; | |
24302 | bool val7 ; | |
24303 | int ecode7 = 0 ; | |
24304 | PyObject * obj0 = 0 ; | |
24305 | PyObject * obj1 = 0 ; | |
24306 | PyObject * obj2 = 0 ; | |
24307 | PyObject * obj3 = 0 ; | |
24308 | PyObject * obj4 = 0 ; | |
24309 | PyObject * obj5 = 0 ; | |
24310 | PyObject * obj6 = 0 ; | |
24311 | char * kwnames[] = { | |
24312 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
24313 | }; | |
24314 | ||
24315 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
24316 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
24317 | if (!SWIG_IsOK(res1)) { | |
24318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
24319 | } | |
24320 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
24321 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24322 | if (!SWIG_IsOK(ecode2)) { | |
24323 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
24324 | } | |
24325 | arg2 = static_cast< int >(val2); | |
24326 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
24327 | if (!SWIG_IsOK(res3)) { | |
24328 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24329 | } | |
24330 | if (!argp3) { | |
24331 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
24332 | } | |
24333 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
24334 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
24335 | if (!SWIG_IsOK(ecode4)) { | |
24336 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
24337 | } | |
24338 | arg4 = static_cast< int >(val4); | |
24339 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
24340 | if (!SWIG_IsOK(ecode5)) { | |
24341 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
24342 | } | |
24343 | arg5 = static_cast< int >(val5); | |
24344 | if (obj5) { | |
24345 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
24346 | if (!SWIG_IsOK(ecode6)) { | |
24347 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
24348 | } | |
24349 | arg6 = static_cast< int >(val6); | |
24350 | } | |
24351 | if (obj6) { | |
24352 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
24353 | if (!SWIG_IsOK(ecode7)) { | |
24354 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
24355 | } | |
24356 | arg7 = static_cast< bool >(val7); | |
24357 | } | |
24358 | { | |
24359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24360 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
24361 | wxPyEndAllowThreads(__tstate); | |
24362 | if (PyErr_Occurred()) SWIG_fail; | |
24363 | } | |
24364 | { | |
24365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24366 | } | |
24367 | return resultobj; | |
24368 | fail: | |
24369 | return NULL; | |
24370 | } | |
24371 | ||
24372 | ||
24373 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24374 | PyObject *resultobj = 0; | |
24375 | wxImageList *arg1 = (wxImageList *) 0 ; | |
24376 | int result; | |
24377 | void *argp1 = 0 ; | |
24378 | int res1 = 0 ; | |
24379 | PyObject *swig_obj[1] ; | |
24380 | ||
24381 | if (!args) SWIG_fail; | |
24382 | swig_obj[0] = args; | |
24383 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
24384 | if (!SWIG_IsOK(res1)) { | |
24385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
24386 | } | |
24387 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
24388 | { | |
24389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24390 | result = (int)(arg1)->GetImageCount(); | |
24391 | wxPyEndAllowThreads(__tstate); | |
24392 | if (PyErr_Occurred()) SWIG_fail; | |
24393 | } | |
24394 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24395 | return resultobj; | |
24396 | fail: | |
24397 | return NULL; | |
24398 | } | |
24399 | ||
24400 | ||
24401 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24402 | PyObject *resultobj = 0; | |
24403 | wxImageList *arg1 = (wxImageList *) 0 ; | |
24404 | int arg2 ; | |
24405 | bool result; | |
24406 | void *argp1 = 0 ; | |
24407 | int res1 = 0 ; | |
24408 | int val2 ; | |
24409 | int ecode2 = 0 ; | |
24410 | PyObject * obj0 = 0 ; | |
24411 | PyObject * obj1 = 0 ; | |
24412 | char * kwnames[] = { | |
24413 | (char *) "self",(char *) "index", NULL | |
24414 | }; | |
24415 | ||
24416 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
24417 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
24418 | if (!SWIG_IsOK(res1)) { | |
24419 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
24420 | } | |
24421 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
24422 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24423 | if (!SWIG_IsOK(ecode2)) { | |
24424 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
24425 | } | |
24426 | arg2 = static_cast< int >(val2); | |
24427 | { | |
24428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24429 | result = (bool)(arg1)->Remove(arg2); | |
24430 | wxPyEndAllowThreads(__tstate); | |
24431 | if (PyErr_Occurred()) SWIG_fail; | |
24432 | } | |
24433 | { | |
24434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24435 | } | |
24436 | return resultobj; | |
24437 | fail: | |
24438 | return NULL; | |
24439 | } | |
24440 | ||
24441 | ||
24442 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24443 | PyObject *resultobj = 0; | |
24444 | wxImageList *arg1 = (wxImageList *) 0 ; | |
24445 | bool result; | |
24446 | void *argp1 = 0 ; | |
24447 | int res1 = 0 ; | |
24448 | PyObject *swig_obj[1] ; | |
24449 | ||
24450 | if (!args) SWIG_fail; | |
24451 | swig_obj[0] = args; | |
24452 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
24453 | if (!SWIG_IsOK(res1)) { | |
24454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
24455 | } | |
24456 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
24457 | { | |
24458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24459 | result = (bool)(arg1)->RemoveAll(); | |
24460 | wxPyEndAllowThreads(__tstate); | |
24461 | if (PyErr_Occurred()) SWIG_fail; | |
24462 | } | |
24463 | { | |
24464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24465 | } | |
24466 | return resultobj; | |
24467 | fail: | |
24468 | return NULL; | |
24469 | } | |
24470 | ||
24471 | ||
24472 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24473 | PyObject *resultobj = 0; | |
24474 | wxImageList *arg1 = (wxImageList *) 0 ; | |
24475 | int arg2 ; | |
24476 | int *arg3 = 0 ; | |
24477 | int *arg4 = 0 ; | |
24478 | void *argp1 = 0 ; | |
24479 | int res1 = 0 ; | |
24480 | int val2 ; | |
24481 | int ecode2 = 0 ; | |
24482 | int temp3 ; | |
24483 | int res3 = SWIG_TMPOBJ ; | |
24484 | int temp4 ; | |
24485 | int res4 = SWIG_TMPOBJ ; | |
24486 | PyObject * obj0 = 0 ; | |
24487 | PyObject * obj1 = 0 ; | |
24488 | char * kwnames[] = { | |
24489 | (char *) "self",(char *) "index", NULL | |
24490 | }; | |
24491 | ||
24492 | arg3 = &temp3; | |
24493 | arg4 = &temp4; | |
24494 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
24495 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
24496 | if (!SWIG_IsOK(res1)) { | |
24497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
24498 | } | |
24499 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
24500 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24501 | if (!SWIG_IsOK(ecode2)) { | |
24502 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
24503 | } | |
24504 | arg2 = static_cast< int >(val2); | |
24505 | { | |
24506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24507 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
24508 | wxPyEndAllowThreads(__tstate); | |
24509 | if (PyErr_Occurred()) SWIG_fail; | |
24510 | } | |
24511 | resultobj = SWIG_Py_Void(); | |
24512 | if (SWIG_IsTmpObj(res3)) { | |
24513 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
24514 | } else { | |
24515 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
24516 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
24517 | } | |
24518 | if (SWIG_IsTmpObj(res4)) { | |
24519 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
24520 | } else { | |
24521 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
24522 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
24523 | } | |
24524 | return resultobj; | |
24525 | fail: | |
24526 | return NULL; | |
24527 | } | |
24528 | ||
24529 | ||
24530 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24531 | PyObject *obj; | |
24532 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24533 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
24534 | return SWIG_Py_Void(); | |
24535 | } | |
24536 | ||
24537 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24538 | return SWIG_Python_InitShadowInstance(args); | |
24539 | } | |
24540 | ||
50efceee RD |
24541 | SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24542 | PyObject *resultobj = 0; | |
24543 | wxStockGDI *result = 0 ; | |
0085ce49 | 24544 | |
50efceee RD |
24545 | if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail; |
24546 | { | |
24547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24548 | result = (wxStockGDI *)new wxStockGDI(); | |
24549 | wxPyEndAllowThreads(__tstate); | |
24550 | if (PyErr_Occurred()) SWIG_fail; | |
24551 | } | |
24552 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 ); | |
24553 | return resultobj; | |
24554 | fail: | |
24555 | return NULL; | |
0085ce49 RD |
24556 | } |
24557 | ||
24558 | ||
50efceee RD |
24559 | SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24560 | PyObject *resultobj = 0; | |
24561 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
24562 | void *argp1 = 0 ; | |
24563 | int res1 = 0 ; | |
24564 | PyObject *swig_obj[1] ; | |
0085ce49 | 24565 | |
50efceee RD |
24566 | if (!args) SWIG_fail; |
24567 | swig_obj[0] = args; | |
24568 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 ); | |
24569 | if (!SWIG_IsOK(res1)) { | |
24570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
24571 | } | |
24572 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
24573 | { | |
24574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24575 | delete arg1; | |
24576 | ||
24577 | wxPyEndAllowThreads(__tstate); | |
24578 | if (PyErr_Occurred()) SWIG_fail; | |
24579 | } | |
24580 | resultobj = SWIG_Py_Void(); | |
24581 | return resultobj; | |
24582 | fail: | |
24583 | return NULL; | |
0085ce49 RD |
24584 | } |
24585 | ||
24586 | ||
50efceee RD |
24587 | SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24588 | PyObject *resultobj = 0; | |
0085ce49 | 24589 | |
50efceee RD |
24590 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail; |
24591 | { | |
24592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24593 | wxStockGDI::DeleteAll(); | |
24594 | wxPyEndAllowThreads(__tstate); | |
24595 | if (PyErr_Occurred()) SWIG_fail; | |
24596 | } | |
24597 | resultobj = SWIG_Py_Void(); | |
24598 | return resultobj; | |
24599 | fail: | |
24600 | return NULL; | |
0085ce49 RD |
24601 | } |
24602 | ||
24603 | ||
50efceee RD |
24604 | SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24605 | PyObject *resultobj = 0; | |
24606 | wxStockGDI *result = 0 ; | |
0085ce49 | 24607 | |
50efceee RD |
24608 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail; |
24609 | { | |
24610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24611 | { | |
24612 | wxStockGDI &_result_ref = wxStockGDI::instance(); | |
24613 | result = (wxStockGDI *) &_result_ref; | |
24614 | } | |
24615 | wxPyEndAllowThreads(__tstate); | |
24616 | if (PyErr_Occurred()) SWIG_fail; | |
24617 | } | |
24618 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
24619 | return resultobj; | |
24620 | fail: | |
24621 | return NULL; | |
0085ce49 RD |
24622 | } |
24623 | ||
24624 | ||
50efceee RD |
24625 | SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24626 | PyObject *resultobj = 0; | |
24627 | wxStockGDI::Item arg1 ; | |
24628 | wxBrush *result = 0 ; | |
24629 | int val1 ; | |
24630 | int ecode1 = 0 ; | |
24631 | PyObject * obj0 = 0 ; | |
24632 | char * kwnames[] = { | |
24633 | (char *) "item", NULL | |
24634 | }; | |
24635 | ||
24636 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail; | |
24637 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
24638 | if (!SWIG_IsOK(ecode1)) { | |
24639 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
24640 | } | |
24641 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
24642 | { | |
24643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24644 | result = (wxBrush *)wxStockGDI::GetBrush(arg1); | |
24645 | wxPyEndAllowThreads(__tstate); | |
24646 | if (PyErr_Occurred()) SWIG_fail; | |
24647 | } | |
24648 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
24649 | return resultobj; | |
24650 | fail: | |
24651 | return NULL; | |
0085ce49 RD |
24652 | } |
24653 | ||
24654 | ||
50efceee RD |
24655 | SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24656 | PyObject *resultobj = 0; | |
24657 | wxStockGDI::Item arg1 ; | |
24658 | wxColour *result = 0 ; | |
24659 | int val1 ; | |
24660 | int ecode1 = 0 ; | |
24661 | PyObject * obj0 = 0 ; | |
24662 | char * kwnames[] = { | |
24663 | (char *) "item", NULL | |
24664 | }; | |
0085ce49 | 24665 | |
50efceee RD |
24666 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail; |
24667 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
24668 | if (!SWIG_IsOK(ecode1)) { | |
24669 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
24670 | } | |
24671 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
24672 | { | |
24673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24674 | result = (wxColour *)wxStockGDI::GetColour(arg1); | |
24675 | wxPyEndAllowThreads(__tstate); | |
24676 | if (PyErr_Occurred()) SWIG_fail; | |
24677 | } | |
24678 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
24679 | return resultobj; | |
24680 | fail: | |
24681 | return NULL; | |
0085ce49 RD |
24682 | } |
24683 | ||
24684 | ||
50efceee RD |
24685 | SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24686 | PyObject *resultobj = 0; | |
24687 | wxStockGDI::Item arg1 ; | |
24688 | wxCursor *result = 0 ; | |
24689 | int val1 ; | |
24690 | int ecode1 = 0 ; | |
24691 | PyObject * obj0 = 0 ; | |
24692 | char * kwnames[] = { | |
24693 | (char *) "item", NULL | |
24694 | }; | |
24695 | ||
24696 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail; | |
24697 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
24698 | if (!SWIG_IsOK(ecode1)) { | |
24699 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
24700 | } | |
24701 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
24702 | { | |
24703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24704 | result = (wxCursor *)wxStockGDI::GetCursor(arg1); | |
24705 | wxPyEndAllowThreads(__tstate); | |
24706 | if (PyErr_Occurred()) SWIG_fail; | |
24707 | } | |
24708 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 ); | |
24709 | return resultobj; | |
24710 | fail: | |
24711 | return NULL; | |
0085ce49 RD |
24712 | } |
24713 | ||
24714 | ||
50efceee RD |
24715 | SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24716 | PyObject *resultobj = 0; | |
24717 | wxStockGDI::Item arg1 ; | |
24718 | wxPen *result = 0 ; | |
24719 | int val1 ; | |
24720 | int ecode1 = 0 ; | |
24721 | PyObject * obj0 = 0 ; | |
24722 | char * kwnames[] = { | |
24723 | (char *) "item", NULL | |
24724 | }; | |
24725 | ||
24726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail; | |
24727 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
24728 | if (!SWIG_IsOK(ecode1)) { | |
24729 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
24730 | } | |
24731 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
24732 | { | |
24733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24734 | result = (wxPen *)wxStockGDI::GetPen(arg1); | |
24735 | wxPyEndAllowThreads(__tstate); | |
24736 | if (PyErr_Occurred()) SWIG_fail; | |
24737 | } | |
24738 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
24739 | return resultobj; | |
24740 | fail: | |
24741 | return NULL; | |
0085ce49 RD |
24742 | } |
24743 | ||
24744 | ||
50efceee RD |
24745 | SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24746 | PyObject *resultobj = 0; | |
24747 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
24748 | wxStockGDI::Item arg2 ; | |
24749 | wxFont *result = 0 ; | |
24750 | void *argp1 = 0 ; | |
24751 | int res1 = 0 ; | |
24752 | int val2 ; | |
24753 | int ecode2 = 0 ; | |
24754 | PyObject * obj0 = 0 ; | |
24755 | PyObject * obj1 = 0 ; | |
24756 | char * kwnames[] = { | |
24757 | (char *) "self",(char *) "item", NULL | |
24758 | }; | |
0085ce49 | 24759 | |
50efceee RD |
24760 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; |
24761 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
24762 | if (!SWIG_IsOK(res1)) { | |
24763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
24764 | } | |
24765 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
24766 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24767 | if (!SWIG_IsOK(ecode2)) { | |
24768 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'"); | |
24769 | } | |
24770 | arg2 = static_cast< wxStockGDI::Item >(val2); | |
24771 | { | |
24772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24773 | result = (wxFont *)(arg1)->GetFont(arg2); | |
24774 | wxPyEndAllowThreads(__tstate); | |
24775 | if (PyErr_Occurred()) SWIG_fail; | |
24776 | } | |
24777 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
24778 | return resultobj; | |
24779 | fail: | |
24780 | return NULL; | |
0085ce49 RD |
24781 | } |
24782 | ||
24783 | ||
50efceee RD |
24784 | SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24785 | PyObject *obj; | |
24786 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24787 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj)); | |
24788 | return SWIG_Py_Void(); | |
0085ce49 RD |
24789 | } |
24790 | ||
50efceee RD |
24791 | SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24792 | return SWIG_Python_InitShadowInstance(args); | |
0085ce49 RD |
24793 | } |
24794 | ||
0085ce49 RD |
24795 | SWIGINTERN int NullBitmap_set(PyObject *) { |
24796 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
24797 | return 1; | |
24798 | } | |
24799 | ||
24800 | ||
24801 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
24802 | PyObject *pyobj = 0; | |
24803 | ||
24804 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
24805 | return pyobj; | |
24806 | } | |
24807 | ||
24808 | ||
24809 | SWIGINTERN int NullIcon_set(PyObject *) { | |
24810 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
24811 | return 1; | |
24812 | } | |
24813 | ||
24814 | ||
24815 | SWIGINTERN PyObject *NullIcon_get(void) { | |
24816 | PyObject *pyobj = 0; | |
24817 | ||
24818 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
24819 | return pyobj; | |
24820 | } | |
24821 | ||
24822 | ||
24823 | SWIGINTERN int NullCursor_set(PyObject *) { | |
24824 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
24825 | return 1; | |
24826 | } | |
24827 | ||
24828 | ||
24829 | SWIGINTERN PyObject *NullCursor_get(void) { | |
24830 | PyObject *pyobj = 0; | |
24831 | ||
24832 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
24833 | return pyobj; | |
24834 | } | |
24835 | ||
24836 | ||
24837 | SWIGINTERN int NullPen_set(PyObject *) { | |
24838 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
24839 | return 1; | |
24840 | } | |
24841 | ||
24842 | ||
24843 | SWIGINTERN PyObject *NullPen_get(void) { | |
24844 | PyObject *pyobj = 0; | |
24845 | ||
24846 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
24847 | return pyobj; | |
24848 | } | |
24849 | ||
24850 | ||
24851 | SWIGINTERN int NullBrush_set(PyObject *) { | |
24852 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
24853 | return 1; | |
24854 | } | |
24855 | ||
24856 | ||
24857 | SWIGINTERN PyObject *NullBrush_get(void) { | |
24858 | PyObject *pyobj = 0; | |
24859 | ||
24860 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
24861 | return pyobj; | |
24862 | } | |
24863 | ||
24864 | ||
24865 | SWIGINTERN int NullPalette_set(PyObject *) { | |
24866 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
24867 | return 1; | |
24868 | } | |
24869 | ||
24870 | ||
24871 | SWIGINTERN PyObject *NullPalette_get(void) { | |
24872 | PyObject *pyobj = 0; | |
24873 | ||
24874 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
24875 | return pyobj; | |
24876 | } | |
24877 | ||
24878 | ||
24879 | SWIGINTERN int NullFont_set(PyObject *) { | |
24880 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
24881 | return 1; | |
24882 | } | |
24883 | ||
24884 | ||
24885 | SWIGINTERN PyObject *NullFont_get(void) { | |
24886 | PyObject *pyobj = 0; | |
24887 | ||
24888 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
24889 | return pyobj; | |
24890 | } | |
24891 | ||
24892 | ||
24893 | SWIGINTERN int NullColour_set(PyObject *) { | |
24894 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
24895 | return 1; | |
24896 | } | |
24897 | ||
24898 | ||
24899 | SWIGINTERN PyObject *NullColour_get(void) { | |
24900 | PyObject *pyobj = 0; | |
24901 | ||
24902 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
24903 | return pyobj; | |
24904 | } | |
24905 | ||
24906 | ||
50efceee | 24907 | SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 24908 | PyObject *resultobj = 0; |
50efceee RD |
24909 | wxGDIObjListBase *result = 0 ; |
24910 | ||
24911 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail; | |
24912 | { | |
24913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24914 | result = (wxGDIObjListBase *)new wxGDIObjListBase(); | |
24915 | wxPyEndAllowThreads(__tstate); | |
24916 | if (PyErr_Occurred()) SWIG_fail; | |
24917 | } | |
24918 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 ); | |
24919 | return resultobj; | |
24920 | fail: | |
24921 | return NULL; | |
24922 | } | |
24923 | ||
24924 | ||
24925 | SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24926 | PyObject *resultobj = 0; | |
24927 | wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ; | |
0085ce49 RD |
24928 | void *argp1 = 0 ; |
24929 | int res1 = 0 ; | |
50efceee | 24930 | PyObject *swig_obj[1] ; |
0085ce49 | 24931 | |
50efceee RD |
24932 | if (!args) SWIG_fail; |
24933 | swig_obj[0] = args; | |
24934 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 ); | |
0085ce49 | 24935 | if (!SWIG_IsOK(res1)) { |
50efceee | 24936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'"); |
0085ce49 | 24937 | } |
50efceee | 24938 | arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1); |
0085ce49 RD |
24939 | { |
24940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee RD |
24941 | delete arg1; |
24942 | ||
0085ce49 RD |
24943 | wxPyEndAllowThreads(__tstate); |
24944 | if (PyErr_Occurred()) SWIG_fail; | |
24945 | } | |
24946 | resultobj = SWIG_Py_Void(); | |
24947 | return resultobj; | |
24948 | fail: | |
24949 | return NULL; | |
24950 | } | |
24951 | ||
24952 | ||
50efceee RD |
24953 | SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24954 | PyObject *obj; | |
24955 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24956 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj)); | |
24957 | return SWIG_Py_Void(); | |
24958 | } | |
24959 | ||
24960 | SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24961 | return SWIG_Python_InitShadowInstance(args); | |
24962 | } | |
24963 | ||
0085ce49 RD |
24964 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24965 | PyObject *resultobj = 0; | |
24966 | wxPenList *arg1 = (wxPenList *) 0 ; | |
24967 | wxColour *arg2 = 0 ; | |
24968 | int arg3 ; | |
24969 | int arg4 ; | |
24970 | wxPen *result = 0 ; | |
24971 | void *argp1 = 0 ; | |
24972 | int res1 = 0 ; | |
24973 | wxColour temp2 ; | |
24974 | int val3 ; | |
24975 | int ecode3 = 0 ; | |
24976 | int val4 ; | |
24977 | int ecode4 = 0 ; | |
24978 | PyObject * obj0 = 0 ; | |
24979 | PyObject * obj1 = 0 ; | |
24980 | PyObject * obj2 = 0 ; | |
24981 | PyObject * obj3 = 0 ; | |
24982 | char * kwnames[] = { | |
24983 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
24984 | }; | |
24985 | ||
24986 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24987 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
24988 | if (!SWIG_IsOK(res1)) { | |
24989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
24990 | } | |
24991 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
24992 | { | |
24993 | arg2 = &temp2; | |
24994 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24995 | } | |
24996 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24997 | if (!SWIG_IsOK(ecode3)) { | |
24998 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
24999 | } | |
25000 | arg3 = static_cast< int >(val3); | |
25001 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
25002 | if (!SWIG_IsOK(ecode4)) { | |
25003 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
25004 | } | |
25005 | arg4 = static_cast< int >(val4); | |
25006 | { | |
25007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25008 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
25009 | wxPyEndAllowThreads(__tstate); | |
25010 | if (PyErr_Occurred()) SWIG_fail; | |
25011 | } | |
25012 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
25013 | return resultobj; | |
25014 | fail: | |
25015 | return NULL; | |
25016 | } | |
25017 | ||
25018 | ||
50efceee | 25019 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
25020 | PyObject *resultobj = 0; |
25021 | wxPenList *arg1 = (wxPenList *) 0 ; | |
25022 | wxPen *arg2 = (wxPen *) 0 ; | |
25023 | void *argp1 = 0 ; | |
25024 | int res1 = 0 ; | |
25025 | void *argp2 = 0 ; | |
25026 | int res2 = 0 ; | |
25027 | PyObject * obj0 = 0 ; | |
25028 | PyObject * obj1 = 0 ; | |
25029 | char * kwnames[] = { | |
25030 | (char *) "self",(char *) "pen", NULL | |
25031 | }; | |
25032 | ||
50efceee | 25033 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; |
0085ce49 RD |
25034 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); |
25035 | if (!SWIG_IsOK(res1)) { | |
50efceee | 25036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
0085ce49 RD |
25037 | } |
25038 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
25039 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
25040 | if (!SWIG_IsOK(res2)) { | |
50efceee | 25041 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); |
0085ce49 RD |
25042 | } |
25043 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
25044 | { | |
25045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 25046 | (arg1)->AddPen(arg2); |
0085ce49 RD |
25047 | wxPyEndAllowThreads(__tstate); |
25048 | if (PyErr_Occurred()) SWIG_fail; | |
25049 | } | |
25050 | resultobj = SWIG_Py_Void(); | |
25051 | return resultobj; | |
25052 | fail: | |
25053 | return NULL; | |
25054 | } | |
25055 | ||
25056 | ||
50efceee | 25057 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
25058 | PyObject *resultobj = 0; |
25059 | wxPenList *arg1 = (wxPenList *) 0 ; | |
50efceee | 25060 | wxPen *arg2 = (wxPen *) 0 ; |
0085ce49 RD |
25061 | void *argp1 = 0 ; |
25062 | int res1 = 0 ; | |
50efceee RD |
25063 | void *argp2 = 0 ; |
25064 | int res2 = 0 ; | |
25065 | PyObject * obj0 = 0 ; | |
25066 | PyObject * obj1 = 0 ; | |
25067 | char * kwnames[] = { | |
25068 | (char *) "self",(char *) "pen", NULL | |
25069 | }; | |
0085ce49 | 25070 | |
50efceee RD |
25071 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; |
25072 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
0085ce49 | 25073 | if (!SWIG_IsOK(res1)) { |
50efceee | 25074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
0085ce49 RD |
25075 | } |
25076 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
50efceee RD |
25077 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); |
25078 | if (!SWIG_IsOK(res2)) { | |
25079 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
25080 | } | |
25081 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
0085ce49 RD |
25082 | { |
25083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 25084 | (arg1)->RemovePen(arg2); |
0085ce49 RD |
25085 | wxPyEndAllowThreads(__tstate); |
25086 | if (PyErr_Occurred()) SWIG_fail; | |
25087 | } | |
50efceee | 25088 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
25089 | return resultobj; |
25090 | fail: | |
25091 | return NULL; | |
25092 | } | |
25093 | ||
25094 | ||
25095 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25096 | PyObject *obj; | |
25097 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25098 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
25099 | return SWIG_Py_Void(); | |
25100 | } | |
25101 | ||
50efceee RD |
25102 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25103 | PyObject *resultobj = 0; | |
25104 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
25105 | wxColour *arg2 = 0 ; | |
25106 | int arg3 = (int) wxSOLID ; | |
25107 | wxBrush *result = 0 ; | |
25108 | void *argp1 = 0 ; | |
25109 | int res1 = 0 ; | |
25110 | wxColour temp2 ; | |
25111 | int val3 ; | |
25112 | int ecode3 = 0 ; | |
25113 | PyObject * obj0 = 0 ; | |
25114 | PyObject * obj1 = 0 ; | |
25115 | PyObject * obj2 = 0 ; | |
25116 | char * kwnames[] = { | |
25117 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
25118 | }; | |
25119 | ||
25120 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25121 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
25122 | if (!SWIG_IsOK(res1)) { | |
25123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
25124 | } | |
25125 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
25126 | { | |
25127 | arg2 = &temp2; | |
25128 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25129 | } | |
25130 | if (obj2) { | |
25131 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25132 | if (!SWIG_IsOK(ecode3)) { | |
25133 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
25134 | } | |
25135 | arg3 = static_cast< int >(val3); | |
25136 | } | |
25137 | { | |
25138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25139 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
25140 | wxPyEndAllowThreads(__tstate); | |
25141 | if (PyErr_Occurred()) SWIG_fail; | |
25142 | } | |
25143 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
25144 | return resultobj; | |
25145 | fail: | |
25146 | return NULL; | |
25147 | } | |
25148 | ||
25149 | ||
0085ce49 RD |
25150 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25151 | PyObject *resultobj = 0; | |
25152 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
25153 | wxBrush *arg2 = (wxBrush *) 0 ; | |
25154 | void *argp1 = 0 ; | |
25155 | int res1 = 0 ; | |
25156 | void *argp2 = 0 ; | |
25157 | int res2 = 0 ; | |
25158 | PyObject * obj0 = 0 ; | |
25159 | PyObject * obj1 = 0 ; | |
25160 | char * kwnames[] = { | |
25161 | (char *) "self",(char *) "brush", NULL | |
25162 | }; | |
25163 | ||
25164 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
25165 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
25166 | if (!SWIG_IsOK(res1)) { | |
25167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
25168 | } | |
25169 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
25170 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
25171 | if (!SWIG_IsOK(res2)) { | |
25172 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
25173 | } | |
25174 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
25175 | { | |
25176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25177 | (arg1)->AddBrush(arg2); | |
25178 | wxPyEndAllowThreads(__tstate); | |
25179 | if (PyErr_Occurred()) SWIG_fail; | |
25180 | } | |
25181 | resultobj = SWIG_Py_Void(); | |
25182 | return resultobj; | |
25183 | fail: | |
25184 | return NULL; | |
25185 | } | |
25186 | ||
25187 | ||
50efceee | 25188 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 RD |
25189 | PyObject *resultobj = 0; |
25190 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
50efceee | 25191 | wxBrush *arg2 = (wxBrush *) 0 ; |
0085ce49 RD |
25192 | void *argp1 = 0 ; |
25193 | int res1 = 0 ; | |
50efceee RD |
25194 | void *argp2 = 0 ; |
25195 | int res2 = 0 ; | |
25196 | PyObject * obj0 = 0 ; | |
25197 | PyObject * obj1 = 0 ; | |
25198 | char * kwnames[] = { | |
25199 | (char *) "self",(char *) "brush", NULL | |
25200 | }; | |
25201 | ||
25202 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
25203 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
25204 | if (!SWIG_IsOK(res1)) { | |
25205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
25206 | } | |
25207 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
25208 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
25209 | if (!SWIG_IsOK(res2)) { | |
25210 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
25211 | } | |
25212 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
25213 | { | |
25214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25215 | (arg1)->RemoveBrush(arg2); | |
25216 | wxPyEndAllowThreads(__tstate); | |
25217 | if (PyErr_Occurred()) SWIG_fail; | |
25218 | } | |
25219 | resultobj = SWIG_Py_Void(); | |
25220 | return resultobj; | |
25221 | fail: | |
25222 | return NULL; | |
25223 | } | |
25224 | ||
25225 | ||
25226 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25227 | PyObject *obj; | |
25228 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25229 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
25230 | return SWIG_Py_Void(); | |
25231 | } | |
25232 | ||
25233 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25234 | PyObject *resultobj = 0; | |
25235 | wxFontList *arg1 = (wxFontList *) 0 ; | |
25236 | int arg2 ; | |
25237 | int arg3 ; | |
25238 | int arg4 ; | |
25239 | int arg5 ; | |
25240 | bool arg6 = (bool) false ; | |
25241 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
25242 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25243 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
25244 | wxFont *result = 0 ; | |
25245 | void *argp1 = 0 ; | |
25246 | int res1 = 0 ; | |
25247 | int val2 ; | |
25248 | int ecode2 = 0 ; | |
0085ce49 RD |
25249 | int val3 ; |
25250 | int ecode3 = 0 ; | |
50efceee RD |
25251 | int val4 ; |
25252 | int ecode4 = 0 ; | |
25253 | int val5 ; | |
25254 | int ecode5 = 0 ; | |
25255 | bool val6 ; | |
25256 | int ecode6 = 0 ; | |
25257 | bool temp7 = false ; | |
25258 | int val8 ; | |
25259 | int ecode8 = 0 ; | |
0085ce49 RD |
25260 | PyObject * obj0 = 0 ; |
25261 | PyObject * obj1 = 0 ; | |
25262 | PyObject * obj2 = 0 ; | |
50efceee RD |
25263 | PyObject * obj3 = 0 ; |
25264 | PyObject * obj4 = 0 ; | |
25265 | PyObject * obj5 = 0 ; | |
25266 | PyObject * obj6 = 0 ; | |
25267 | PyObject * obj7 = 0 ; | |
0085ce49 | 25268 | char * kwnames[] = { |
50efceee | 25269 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL |
0085ce49 RD |
25270 | }; |
25271 | ||
50efceee RD |
25272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
25273 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 25274 | if (!SWIG_IsOK(res1)) { |
50efceee | 25275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 25276 | } |
50efceee RD |
25277 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
25278 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25279 | if (!SWIG_IsOK(ecode2)) { | |
25280 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
25281 | } | |
25282 | arg2 = static_cast< int >(val2); | |
25283 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25284 | if (!SWIG_IsOK(ecode3)) { | |
25285 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
25286 | } | |
25287 | arg3 = static_cast< int >(val3); | |
25288 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
25289 | if (!SWIG_IsOK(ecode4)) { | |
25290 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
25291 | } | |
25292 | arg4 = static_cast< int >(val4); | |
25293 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25294 | if (!SWIG_IsOK(ecode5)) { | |
25295 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
25296 | } | |
25297 | arg5 = static_cast< int >(val5); | |
25298 | if (obj5) { | |
25299 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
25300 | if (!SWIG_IsOK(ecode6)) { | |
25301 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
25302 | } | |
25303 | arg6 = static_cast< bool >(val6); | |
0085ce49 | 25304 | } |
50efceee RD |
25305 | if (obj6) { |
25306 | { | |
25307 | arg7 = wxString_in_helper(obj6); | |
25308 | if (arg7 == NULL) SWIG_fail; | |
25309 | temp7 = true; | |
25310 | } | |
25311 | } | |
25312 | if (obj7) { | |
25313 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
25314 | if (!SWIG_IsOK(ecode8)) { | |
25315 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
0085ce49 | 25316 | } |
50efceee | 25317 | arg8 = static_cast< wxFontEncoding >(val8); |
0085ce49 RD |
25318 | } |
25319 | { | |
25320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 25321 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
0085ce49 RD |
25322 | wxPyEndAllowThreads(__tstate); |
25323 | if (PyErr_Occurred()) SWIG_fail; | |
25324 | } | |
50efceee RD |
25325 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); |
25326 | { | |
25327 | if (temp7) | |
25328 | delete arg7; | |
25329 | } | |
0085ce49 RD |
25330 | return resultobj; |
25331 | fail: | |
50efceee RD |
25332 | { |
25333 | if (temp7) | |
25334 | delete arg7; | |
25335 | } | |
0085ce49 RD |
25336 | return NULL; |
25337 | } | |
25338 | ||
25339 | ||
50efceee | 25340 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 25341 | PyObject *resultobj = 0; |
50efceee RD |
25342 | wxFontList *arg1 = (wxFontList *) 0 ; |
25343 | wxFont *arg2 = (wxFont *) 0 ; | |
0085ce49 RD |
25344 | void *argp1 = 0 ; |
25345 | int res1 = 0 ; | |
25346 | void *argp2 = 0 ; | |
25347 | int res2 = 0 ; | |
25348 | PyObject * obj0 = 0 ; | |
25349 | PyObject * obj1 = 0 ; | |
25350 | char * kwnames[] = { | |
50efceee | 25351 | (char *) "self",(char *) "font", NULL |
0085ce49 RD |
25352 | }; |
25353 | ||
50efceee RD |
25354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; |
25355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 25356 | if (!SWIG_IsOK(res1)) { |
50efceee | 25357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 25358 | } |
50efceee RD |
25359 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
25360 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
0085ce49 | 25361 | if (!SWIG_IsOK(res2)) { |
50efceee | 25362 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); |
0085ce49 | 25363 | } |
50efceee | 25364 | arg2 = reinterpret_cast< wxFont * >(argp2); |
0085ce49 RD |
25365 | { |
25366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 25367 | (arg1)->AddFont(arg2); |
0085ce49 RD |
25368 | wxPyEndAllowThreads(__tstate); |
25369 | if (PyErr_Occurred()) SWIG_fail; | |
25370 | } | |
25371 | resultobj = SWIG_Py_Void(); | |
25372 | return resultobj; | |
25373 | fail: | |
25374 | return NULL; | |
25375 | } | |
25376 | ||
25377 | ||
50efceee | 25378 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0085ce49 | 25379 | PyObject *resultobj = 0; |
50efceee RD |
25380 | wxFontList *arg1 = (wxFontList *) 0 ; |
25381 | wxFont *arg2 = (wxFont *) 0 ; | |
0085ce49 RD |
25382 | void *argp1 = 0 ; |
25383 | int res1 = 0 ; | |
50efceee RD |
25384 | void *argp2 = 0 ; |
25385 | int res2 = 0 ; | |
25386 | PyObject * obj0 = 0 ; | |
25387 | PyObject * obj1 = 0 ; | |
25388 | char * kwnames[] = { | |
25389 | (char *) "self",(char *) "font", NULL | |
25390 | }; | |
0085ce49 | 25391 | |
50efceee RD |
25392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; |
25393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
0085ce49 | 25394 | if (!SWIG_IsOK(res1)) { |
50efceee | 25395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
0085ce49 | 25396 | } |
50efceee RD |
25397 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
25398 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
25399 | if (!SWIG_IsOK(res2)) { | |
25400 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
25401 | } | |
25402 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
0085ce49 RD |
25403 | { |
25404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 25405 | (arg1)->RemoveFont(arg2); |
0085ce49 RD |
25406 | wxPyEndAllowThreads(__tstate); |
25407 | if (PyErr_Occurred()) SWIG_fail; | |
25408 | } | |
50efceee | 25409 | resultobj = SWIG_Py_Void(); |
0085ce49 RD |
25410 | return resultobj; |
25411 | fail: | |
25412 | return NULL; | |
25413 | } | |
25414 | ||
25415 | ||
50efceee | 25416 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 RD |
25417 | PyObject *obj; |
25418 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
50efceee | 25419 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); |
0085ce49 RD |
25420 | return SWIG_Py_Void(); |
25421 | } | |
25422 | ||
25423 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25424 | PyObject *resultobj = 0; | |
25425 | wxColourDatabase *result = 0 ; | |
25426 | ||
25427 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
25428 | { | |
25429 | if (!wxPyCheckForApp()) SWIG_fail; | |
25430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25431 | result = (wxColourDatabase *)new wxColourDatabase(); | |
25432 | wxPyEndAllowThreads(__tstate); | |
25433 | if (PyErr_Occurred()) SWIG_fail; | |
25434 | } | |
25435 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
25436 | return resultobj; | |
25437 | fail: | |
25438 | return NULL; | |
25439 | } | |
25440 | ||
25441 | ||
25442 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25443 | PyObject *resultobj = 0; | |
25444 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
25445 | void *argp1 = 0 ; | |
25446 | int res1 = 0 ; | |
25447 | PyObject *swig_obj[1] ; | |
25448 | ||
25449 | if (!args) SWIG_fail; | |
25450 | swig_obj[0] = args; | |
25451 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
25452 | if (!SWIG_IsOK(res1)) { | |
25453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
25454 | } | |
25455 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
25456 | { | |
25457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25458 | delete arg1; | |
25459 | ||
25460 | wxPyEndAllowThreads(__tstate); | |
25461 | if (PyErr_Occurred()) SWIG_fail; | |
25462 | } | |
25463 | resultobj = SWIG_Py_Void(); | |
25464 | return resultobj; | |
25465 | fail: | |
25466 | return NULL; | |
25467 | } | |
25468 | ||
25469 | ||
25470 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25471 | PyObject *resultobj = 0; | |
25472 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
25473 | wxString *arg2 = 0 ; | |
25474 | wxColour result; | |
25475 | void *argp1 = 0 ; | |
25476 | int res1 = 0 ; | |
25477 | bool temp2 = false ; | |
25478 | PyObject * obj0 = 0 ; | |
25479 | PyObject * obj1 = 0 ; | |
25480 | char * kwnames[] = { | |
25481 | (char *) "self",(char *) "name", NULL | |
25482 | }; | |
25483 | ||
25484 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
25485 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
25486 | if (!SWIG_IsOK(res1)) { | |
25487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
25488 | } | |
25489 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
25490 | { | |
25491 | arg2 = wxString_in_helper(obj1); | |
25492 | if (arg2 == NULL) SWIG_fail; | |
25493 | temp2 = true; | |
25494 | } | |
25495 | { | |
25496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25497 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
25498 | wxPyEndAllowThreads(__tstate); | |
25499 | if (PyErr_Occurred()) SWIG_fail; | |
25500 | } | |
25501 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
25502 | { | |
25503 | if (temp2) | |
25504 | delete arg2; | |
25505 | } | |
25506 | return resultobj; | |
25507 | fail: | |
25508 | { | |
25509 | if (temp2) | |
25510 | delete arg2; | |
25511 | } | |
25512 | return NULL; | |
25513 | } | |
25514 | ||
25515 | ||
25516 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25517 | PyObject *resultobj = 0; | |
25518 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
25519 | wxColour *arg2 = 0 ; | |
25520 | wxString result; | |
25521 | void *argp1 = 0 ; | |
25522 | int res1 = 0 ; | |
25523 | wxColour temp2 ; | |
25524 | PyObject * obj0 = 0 ; | |
25525 | PyObject * obj1 = 0 ; | |
25526 | char * kwnames[] = { | |
25527 | (char *) "self",(char *) "colour", NULL | |
25528 | }; | |
25529 | ||
25530 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
25531 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
25532 | if (!SWIG_IsOK(res1)) { | |
25533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
25534 | } | |
25535 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
25536 | { | |
25537 | arg2 = &temp2; | |
25538 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25539 | } | |
25540 | { | |
25541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25542 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
25543 | wxPyEndAllowThreads(__tstate); | |
25544 | if (PyErr_Occurred()) SWIG_fail; | |
25545 | } | |
25546 | { | |
25547 | #if wxUSE_UNICODE | |
25548 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25549 | #else | |
25550 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25551 | #endif | |
25552 | } | |
25553 | return resultobj; | |
25554 | fail: | |
25555 | return NULL; | |
25556 | } | |
25557 | ||
25558 | ||
25559 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25560 | PyObject *resultobj = 0; | |
25561 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
25562 | wxString *arg2 = 0 ; | |
25563 | wxColour *arg3 = 0 ; | |
25564 | void *argp1 = 0 ; | |
25565 | int res1 = 0 ; | |
25566 | bool temp2 = false ; | |
25567 | wxColour temp3 ; | |
25568 | PyObject * obj0 = 0 ; | |
25569 | PyObject * obj1 = 0 ; | |
25570 | PyObject * obj2 = 0 ; | |
25571 | char * kwnames[] = { | |
25572 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
25573 | }; | |
25574 | ||
25575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
25577 | if (!SWIG_IsOK(res1)) { | |
25578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
25579 | } | |
25580 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
25581 | { | |
25582 | arg2 = wxString_in_helper(obj1); | |
25583 | if (arg2 == NULL) SWIG_fail; | |
25584 | temp2 = true; | |
25585 | } | |
25586 | { | |
25587 | arg3 = &temp3; | |
25588 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25589 | } | |
25590 | { | |
25591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25592 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
25593 | wxPyEndAllowThreads(__tstate); | |
25594 | if (PyErr_Occurred()) SWIG_fail; | |
25595 | } | |
25596 | resultobj = SWIG_Py_Void(); | |
25597 | { | |
25598 | if (temp2) | |
25599 | delete arg2; | |
25600 | } | |
25601 | return resultobj; | |
25602 | fail: | |
25603 | { | |
25604 | if (temp2) | |
25605 | delete arg2; | |
25606 | } | |
25607 | return NULL; | |
25608 | } | |
25609 | ||
25610 | ||
25611 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25612 | PyObject *resultobj = 0; | |
25613 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
25614 | wxString *arg2 = 0 ; | |
25615 | int arg3 ; | |
25616 | int arg4 ; | |
25617 | int arg5 ; | |
25618 | void *argp1 = 0 ; | |
25619 | int res1 = 0 ; | |
25620 | bool temp2 = false ; | |
25621 | int val3 ; | |
25622 | int ecode3 = 0 ; | |
25623 | int val4 ; | |
25624 | int ecode4 = 0 ; | |
50efceee RD |
25625 | int val5 ; |
25626 | int ecode5 = 0 ; | |
0085ce49 RD |
25627 | PyObject * obj0 = 0 ; |
25628 | PyObject * obj1 = 0 ; | |
25629 | PyObject * obj2 = 0 ; | |
25630 | PyObject * obj3 = 0 ; | |
25631 | PyObject * obj4 = 0 ; | |
0085ce49 | 25632 | char * kwnames[] = { |
50efceee | 25633 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL |
0085ce49 RD |
25634 | }; |
25635 | ||
50efceee RD |
25636 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
25637 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
0085ce49 | 25638 | if (!SWIG_IsOK(res1)) { |
50efceee RD |
25639 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); |
25640 | } | |
25641 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
25642 | { | |
25643 | arg2 = wxString_in_helper(obj1); | |
25644 | if (arg2 == NULL) SWIG_fail; | |
25645 | temp2 = true; | |
0085ce49 | 25646 | } |
0085ce49 RD |
25647 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
25648 | if (!SWIG_IsOK(ecode3)) { | |
50efceee | 25649 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); |
0085ce49 RD |
25650 | } |
25651 | arg3 = static_cast< int >(val3); | |
25652 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
25653 | if (!SWIG_IsOK(ecode4)) { | |
50efceee | 25654 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); |
0085ce49 RD |
25655 | } |
25656 | arg4 = static_cast< int >(val4); | |
25657 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
25658 | if (!SWIG_IsOK(ecode5)) { | |
50efceee | 25659 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); |
0085ce49 RD |
25660 | } |
25661 | arg5 = static_cast< int >(val5); | |
0085ce49 RD |
25662 | { |
25663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 25664 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); |
0085ce49 RD |
25665 | wxPyEndAllowThreads(__tstate); |
25666 | if (PyErr_Occurred()) SWIG_fail; | |
25667 | } | |
50efceee | 25668 | resultobj = SWIG_Py_Void(); |
0085ce49 | 25669 | { |
50efceee RD |
25670 | if (temp2) |
25671 | delete arg2; | |
0085ce49 RD |
25672 | } |
25673 | return resultobj; | |
25674 | fail: | |
25675 | { | |
50efceee RD |
25676 | if (temp2) |
25677 | delete arg2; | |
0085ce49 RD |
25678 | } |
25679 | return NULL; | |
25680 | } | |
25681 | ||
25682 | ||
50efceee RD |
25683 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25684 | PyObject *obj; | |
25685 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25686 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
25687 | return SWIG_Py_Void(); | |
25688 | } | |
25689 | ||
25690 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25691 | return SWIG_Python_InitShadowInstance(args); | |
25692 | } | |
25693 | ||
25694 | SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
0085ce49 | 25695 | PyObject *resultobj = 0; |
50efceee | 25696 | wxFontList *result = 0 ; |
0085ce49 | 25697 | |
50efceee | 25698 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail; |
0085ce49 RD |
25699 | { |
25700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 25701 | result = (wxFontList *)_wxPyInitTheFontList(); |
0085ce49 RD |
25702 | wxPyEndAllowThreads(__tstate); |
25703 | if (PyErr_Occurred()) SWIG_fail; | |
25704 | } | |
50efceee | 25705 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 ); |
0085ce49 RD |
25706 | return resultobj; |
25707 | fail: | |
25708 | return NULL; | |
25709 | } | |
25710 | ||
25711 | ||
50efceee | 25712 | SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
0085ce49 | 25713 | PyObject *resultobj = 0; |
50efceee | 25714 | wxPenList *result = 0 ; |
0085ce49 | 25715 | |
50efceee | 25716 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail; |
0085ce49 RD |
25717 | { |
25718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 25719 | result = (wxPenList *)_wxPyInitThePenList(); |
0085ce49 RD |
25720 | wxPyEndAllowThreads(__tstate); |
25721 | if (PyErr_Occurred()) SWIG_fail; | |
25722 | } | |
50efceee | 25723 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 ); |
0085ce49 RD |
25724 | return resultobj; |
25725 | fail: | |
25726 | return NULL; | |
25727 | } | |
25728 | ||
25729 | ||
50efceee RD |
25730 | SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25731 | PyObject *resultobj = 0; | |
25732 | wxBrushList *result = 0 ; | |
0085ce49 | 25733 | |
50efceee RD |
25734 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail; |
25735 | { | |
25736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25737 | result = (wxBrushList *)_wxPyInitTheBrushList(); | |
25738 | wxPyEndAllowThreads(__tstate); | |
25739 | if (PyErr_Occurred()) SWIG_fail; | |
25740 | } | |
25741 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
25742 | return resultobj; | |
25743 | fail: | |
25744 | return NULL; | |
0085ce49 RD |
25745 | } |
25746 | ||
25747 | ||
50efceee RD |
25748 | SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25749 | PyObject *resultobj = 0; | |
25750 | wxColourDatabase *result = 0 ; | |
0085ce49 | 25751 | |
50efceee RD |
25752 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail; |
25753 | { | |
25754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25755 | result = (wxColourDatabase *)_wxPyInitTheColourDatabase(); | |
25756 | wxPyEndAllowThreads(__tstate); | |
25757 | if (PyErr_Occurred()) SWIG_fail; | |
25758 | } | |
25759 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
25760 | return resultobj; | |
25761 | fail: | |
25762 | return NULL; | |
0085ce49 RD |
25763 | } |
25764 | ||
25765 | ||
25766 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25767 | PyObject *resultobj = 0; | |
25768 | wxEffects *result = 0 ; | |
25769 | ||
25770 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
25771 | { | |
25772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25773 | result = (wxEffects *)new wxEffects(); | |
25774 | wxPyEndAllowThreads(__tstate); | |
25775 | if (PyErr_Occurred()) SWIG_fail; | |
25776 | } | |
25777 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
25778 | return resultobj; | |
25779 | fail: | |
25780 | return NULL; | |
25781 | } | |
25782 | ||
25783 | ||
25784 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25785 | PyObject *resultobj = 0; | |
25786 | wxEffects *arg1 = (wxEffects *) 0 ; | |
25787 | wxColour result; | |
25788 | void *argp1 = 0 ; | |
25789 | int res1 = 0 ; | |
25790 | PyObject *swig_obj[1] ; | |
25791 | ||
25792 | if (!args) SWIG_fail; | |
25793 | swig_obj[0] = args; | |
25794 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
25795 | if (!SWIG_IsOK(res1)) { | |
25796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
25797 | } | |
25798 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
25799 | { | |
25800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25801 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
25802 | wxPyEndAllowThreads(__tstate); | |
25803 | if (PyErr_Occurred()) SWIG_fail; | |
25804 | } | |
25805 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
25806 | return resultobj; | |
25807 | fail: | |
25808 | return NULL; | |
25809 | } | |
25810 | ||
25811 | ||
25812 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25813 | PyObject *resultobj = 0; | |
25814 | wxEffects *arg1 = (wxEffects *) 0 ; | |
25815 | wxColour result; | |
25816 | void *argp1 = 0 ; | |
25817 | int res1 = 0 ; | |
25818 | PyObject *swig_obj[1] ; | |
25819 | ||
25820 | if (!args) SWIG_fail; | |
25821 | swig_obj[0] = args; | |
25822 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
25823 | if (!SWIG_IsOK(res1)) { | |
25824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
25825 | } | |
25826 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
25827 | { | |
25828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25829 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
25830 | wxPyEndAllowThreads(__tstate); | |
25831 | if (PyErr_Occurred()) SWIG_fail; | |
25832 | } | |
25833 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
25834 | return resultobj; | |
25835 | fail: | |
25836 | return NULL; | |
25837 | } | |
25838 | ||
25839 | ||
25840 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25841 | PyObject *resultobj = 0; | |
25842 | wxEffects *arg1 = (wxEffects *) 0 ; | |
25843 | wxColour result; | |
25844 | void *argp1 = 0 ; | |
25845 | int res1 = 0 ; | |
25846 | PyObject *swig_obj[1] ; | |
25847 | ||
25848 | if (!args) SWIG_fail; | |
25849 | swig_obj[0] = args; | |
25850 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
25851 | if (!SWIG_IsOK(res1)) { | |
25852 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
25853 | } | |
25854 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
25855 | { | |
25856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25857 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
25858 | wxPyEndAllowThreads(__tstate); | |
25859 | if (PyErr_Occurred()) SWIG_fail; | |
25860 | } | |
25861 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
25862 | return resultobj; | |
25863 | fail: | |
25864 | return NULL; | |
25865 | } | |
25866 | ||
25867 | ||
25868 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25869 | PyObject *resultobj = 0; | |
25870 | wxEffects *arg1 = (wxEffects *) 0 ; | |
25871 | wxColour result; | |
25872 | void *argp1 = 0 ; | |
25873 | int res1 = 0 ; | |
25874 | PyObject *swig_obj[1] ; | |
25875 | ||
25876 | if (!args) SWIG_fail; | |
25877 | swig_obj[0] = args; | |
25878 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
25879 | if (!SWIG_IsOK(res1)) { | |
25880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
25881 | } | |
25882 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
25883 | { | |
25884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25885 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
25886 | wxPyEndAllowThreads(__tstate); | |
25887 | if (PyErr_Occurred()) SWIG_fail; | |
25888 | } | |
25889 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
25890 | return resultobj; | |
25891 | fail: | |
25892 | return NULL; | |
25893 | } | |
25894 | ||
25895 | ||
25896 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25897 | PyObject *resultobj = 0; | |
25898 | wxEffects *arg1 = (wxEffects *) 0 ; | |
25899 | wxColour result; | |
25900 | void *argp1 = 0 ; | |
25901 | int res1 = 0 ; | |
25902 | PyObject *swig_obj[1] ; | |
25903 | ||
25904 | if (!args) SWIG_fail; | |
25905 | swig_obj[0] = args; | |
25906 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
25907 | if (!SWIG_IsOK(res1)) { | |
25908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
25909 | } | |
25910 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
25911 | { | |
25912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25913 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
25914 | wxPyEndAllowThreads(__tstate); | |
25915 | if (PyErr_Occurred()) SWIG_fail; | |
25916 | } | |
25917 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
25918 | return resultobj; | |
25919 | fail: | |
25920 | return NULL; | |
25921 | } | |
25922 | ||
25923 | ||
25924 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25925 | PyObject *resultobj = 0; | |
25926 | wxEffects *arg1 = (wxEffects *) 0 ; | |
25927 | wxColour *arg2 = 0 ; | |
25928 | void *argp1 = 0 ; | |
25929 | int res1 = 0 ; | |
25930 | wxColour temp2 ; | |
25931 | PyObject * obj0 = 0 ; | |
25932 | PyObject * obj1 = 0 ; | |
25933 | char * kwnames[] = { | |
25934 | (char *) "self",(char *) "c", NULL | |
25935 | }; | |
25936 | ||
25937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
25938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
25939 | if (!SWIG_IsOK(res1)) { | |
25940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
25941 | } | |
25942 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
25943 | { | |
25944 | arg2 = &temp2; | |
25945 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25946 | } | |
25947 | { | |
25948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25949 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
25950 | wxPyEndAllowThreads(__tstate); | |
25951 | if (PyErr_Occurred()) SWIG_fail; | |
25952 | } | |
25953 | resultobj = SWIG_Py_Void(); | |
25954 | return resultobj; | |
25955 | fail: | |
25956 | return NULL; | |
25957 | } | |
25958 | ||
25959 | ||
25960 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25961 | PyObject *resultobj = 0; | |
25962 | wxEffects *arg1 = (wxEffects *) 0 ; | |
25963 | wxColour *arg2 = 0 ; | |
25964 | void *argp1 = 0 ; | |
25965 | int res1 = 0 ; | |
25966 | wxColour temp2 ; | |
25967 | PyObject * obj0 = 0 ; | |
25968 | PyObject * obj1 = 0 ; | |
25969 | char * kwnames[] = { | |
25970 | (char *) "self",(char *) "c", NULL | |
25971 | }; | |
25972 | ||
25973 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
25974 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
25975 | if (!SWIG_IsOK(res1)) { | |
25976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
25977 | } | |
25978 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
25979 | { | |
25980 | arg2 = &temp2; | |
25981 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
25982 | } | |
25983 | { | |
25984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25985 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
25986 | wxPyEndAllowThreads(__tstate); | |
25987 | if (PyErr_Occurred()) SWIG_fail; | |
25988 | } | |
25989 | resultobj = SWIG_Py_Void(); | |
25990 | return resultobj; | |
25991 | fail: | |
25992 | return NULL; | |
25993 | } | |
25994 | ||
25995 | ||
25996 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25997 | PyObject *resultobj = 0; | |
25998 | wxEffects *arg1 = (wxEffects *) 0 ; | |
25999 | wxColour *arg2 = 0 ; | |
26000 | void *argp1 = 0 ; | |
26001 | int res1 = 0 ; | |
26002 | wxColour temp2 ; | |
26003 | PyObject * obj0 = 0 ; | |
26004 | PyObject * obj1 = 0 ; | |
26005 | char * kwnames[] = { | |
26006 | (char *) "self",(char *) "c", NULL | |
26007 | }; | |
26008 | ||
26009 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
26010 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
26011 | if (!SWIG_IsOK(res1)) { | |
26012 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
26013 | } | |
26014 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
26015 | { | |
26016 | arg2 = &temp2; | |
26017 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26018 | } | |
26019 | { | |
26020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26021 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
26022 | wxPyEndAllowThreads(__tstate); | |
26023 | if (PyErr_Occurred()) SWIG_fail; | |
26024 | } | |
26025 | resultobj = SWIG_Py_Void(); | |
26026 | return resultobj; | |
26027 | fail: | |
26028 | return NULL; | |
26029 | } | |
26030 | ||
26031 | ||
26032 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26033 | PyObject *resultobj = 0; | |
26034 | wxEffects *arg1 = (wxEffects *) 0 ; | |
26035 | wxColour *arg2 = 0 ; | |
26036 | void *argp1 = 0 ; | |
26037 | int res1 = 0 ; | |
26038 | wxColour temp2 ; | |
26039 | PyObject * obj0 = 0 ; | |
26040 | PyObject * obj1 = 0 ; | |
26041 | char * kwnames[] = { | |
26042 | (char *) "self",(char *) "c", NULL | |
26043 | }; | |
26044 | ||
26045 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
26046 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
26047 | if (!SWIG_IsOK(res1)) { | |
26048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
26049 | } | |
26050 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
26051 | { | |
26052 | arg2 = &temp2; | |
26053 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26054 | } | |
26055 | { | |
26056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26057 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
26058 | wxPyEndAllowThreads(__tstate); | |
26059 | if (PyErr_Occurred()) SWIG_fail; | |
26060 | } | |
26061 | resultobj = SWIG_Py_Void(); | |
26062 | return resultobj; | |
26063 | fail: | |
26064 | return NULL; | |
26065 | } | |
26066 | ||
26067 | ||
26068 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26069 | PyObject *resultobj = 0; | |
26070 | wxEffects *arg1 = (wxEffects *) 0 ; | |
26071 | wxColour *arg2 = 0 ; | |
26072 | void *argp1 = 0 ; | |
26073 | int res1 = 0 ; | |
26074 | wxColour temp2 ; | |
26075 | PyObject * obj0 = 0 ; | |
26076 | PyObject * obj1 = 0 ; | |
26077 | char * kwnames[] = { | |
26078 | (char *) "self",(char *) "c", NULL | |
26079 | }; | |
26080 | ||
26081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
26082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
26083 | if (!SWIG_IsOK(res1)) { | |
26084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
26085 | } | |
26086 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
26087 | { | |
26088 | arg2 = &temp2; | |
26089 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26090 | } | |
26091 | { | |
26092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26093 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
26094 | wxPyEndAllowThreads(__tstate); | |
26095 | if (PyErr_Occurred()) SWIG_fail; | |
26096 | } | |
26097 | resultobj = SWIG_Py_Void(); | |
26098 | return resultobj; | |
26099 | fail: | |
26100 | return NULL; | |
26101 | } | |
26102 | ||
26103 | ||
26104 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26105 | PyObject *resultobj = 0; | |
26106 | wxEffects *arg1 = (wxEffects *) 0 ; | |
26107 | wxColour *arg2 = 0 ; | |
26108 | wxColour *arg3 = 0 ; | |
26109 | wxColour *arg4 = 0 ; | |
26110 | wxColour *arg5 = 0 ; | |
26111 | wxColour *arg6 = 0 ; | |
26112 | void *argp1 = 0 ; | |
26113 | int res1 = 0 ; | |
26114 | wxColour temp2 ; | |
26115 | wxColour temp3 ; | |
26116 | wxColour temp4 ; | |
26117 | wxColour temp5 ; | |
26118 | wxColour temp6 ; | |
26119 | PyObject * obj0 = 0 ; | |
26120 | PyObject * obj1 = 0 ; | |
26121 | PyObject * obj2 = 0 ; | |
26122 | PyObject * obj3 = 0 ; | |
26123 | PyObject * obj4 = 0 ; | |
26124 | PyObject * obj5 = 0 ; | |
26125 | char * kwnames[] = { | |
26126 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
26127 | }; | |
26128 | ||
26129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
26130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
26131 | if (!SWIG_IsOK(res1)) { | |
26132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
26133 | } | |
26134 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
26135 | { | |
26136 | arg2 = &temp2; | |
26137 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26138 | } | |
26139 | { | |
26140 | arg3 = &temp3; | |
26141 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26142 | } | |
26143 | { | |
26144 | arg4 = &temp4; | |
26145 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
26146 | } | |
26147 | { | |
26148 | arg5 = &temp5; | |
26149 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
26150 | } | |
26151 | { | |
26152 | arg6 = &temp6; | |
26153 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
26154 | } | |
26155 | { | |
26156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26157 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
26158 | wxPyEndAllowThreads(__tstate); | |
26159 | if (PyErr_Occurred()) SWIG_fail; | |
26160 | } | |
26161 | resultobj = SWIG_Py_Void(); | |
26162 | return resultobj; | |
26163 | fail: | |
26164 | return NULL; | |
26165 | } | |
26166 | ||
26167 | ||
26168 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26169 | PyObject *resultobj = 0; | |
26170 | wxEffects *arg1 = (wxEffects *) 0 ; | |
26171 | wxDC *arg2 = 0 ; | |
26172 | wxRect *arg3 = 0 ; | |
26173 | int arg4 = (int) 1 ; | |
26174 | void *argp1 = 0 ; | |
26175 | int res1 = 0 ; | |
26176 | void *argp2 = 0 ; | |
26177 | int res2 = 0 ; | |
26178 | wxRect temp3 ; | |
26179 | int val4 ; | |
26180 | int ecode4 = 0 ; | |
26181 | PyObject * obj0 = 0 ; | |
26182 | PyObject * obj1 = 0 ; | |
26183 | PyObject * obj2 = 0 ; | |
26184 | PyObject * obj3 = 0 ; | |
26185 | char * kwnames[] = { | |
26186 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
26187 | }; | |
26188 | ||
26189 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
26190 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
26191 | if (!SWIG_IsOK(res1)) { | |
26192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
26193 | } | |
26194 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
26195 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
26196 | if (!SWIG_IsOK(res2)) { | |
26197 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
26198 | } | |
26199 | if (!argp2) { | |
26200 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
26201 | } | |
26202 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
26203 | { | |
26204 | arg3 = &temp3; | |
26205 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
26206 | } | |
26207 | if (obj3) { | |
26208 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
26209 | if (!SWIG_IsOK(ecode4)) { | |
26210 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
26211 | } | |
26212 | arg4 = static_cast< int >(val4); | |
26213 | } | |
26214 | { | |
26215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26216 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
26217 | wxPyEndAllowThreads(__tstate); | |
26218 | if (PyErr_Occurred()) SWIG_fail; | |
26219 | } | |
26220 | resultobj = SWIG_Py_Void(); | |
26221 | return resultobj; | |
26222 | fail: | |
26223 | return NULL; | |
26224 | } | |
26225 | ||
26226 | ||
26227 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26228 | PyObject *resultobj = 0; | |
26229 | wxEffects *arg1 = (wxEffects *) 0 ; | |
26230 | wxRect *arg2 = 0 ; | |
26231 | wxDC *arg3 = 0 ; | |
26232 | wxBitmap *arg4 = 0 ; | |
26233 | bool result; | |
26234 | void *argp1 = 0 ; | |
26235 | int res1 = 0 ; | |
26236 | wxRect temp2 ; | |
26237 | void *argp3 = 0 ; | |
26238 | int res3 = 0 ; | |
26239 | void *argp4 = 0 ; | |
26240 | int res4 = 0 ; | |
26241 | PyObject * obj0 = 0 ; | |
26242 | PyObject * obj1 = 0 ; | |
26243 | PyObject * obj2 = 0 ; | |
26244 | PyObject * obj3 = 0 ; | |
26245 | char * kwnames[] = { | |
26246 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
26247 | }; | |
26248 | ||
26249 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
26250 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
26251 | if (!SWIG_IsOK(res1)) { | |
26252 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
26253 | } | |
26254 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
26255 | { | |
26256 | arg2 = &temp2; | |
26257 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
26258 | } | |
26259 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
26260 | if (!SWIG_IsOK(res3)) { | |
26261 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
26262 | } | |
26263 | if (!argp3) { | |
26264 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
26265 | } | |
26266 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
26267 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
26268 | if (!SWIG_IsOK(res4)) { | |
26269 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
26270 | } | |
26271 | if (!argp4) { | |
26272 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
26273 | } | |
26274 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
26275 | { | |
26276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26277 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
26278 | wxPyEndAllowThreads(__tstate); | |
26279 | if (PyErr_Occurred()) SWIG_fail; | |
26280 | } | |
26281 | { | |
26282 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26283 | } | |
26284 | return resultobj; | |
26285 | fail: | |
26286 | return NULL; | |
26287 | } | |
26288 | ||
26289 | ||
26290 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26291 | PyObject *obj; | |
26292 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26293 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
26294 | return SWIG_Py_Void(); | |
26295 | } | |
26296 | ||
26297 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26298 | return SWIG_Python_InitShadowInstance(args); | |
26299 | } | |
26300 | ||
26301 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26302 | PyObject *resultobj = 0; | |
26303 | int arg1 ; | |
26304 | int arg2 ; | |
26305 | bool arg3 ; | |
26306 | wxSplitterRenderParams *result = 0 ; | |
26307 | int val1 ; | |
26308 | int ecode1 = 0 ; | |
26309 | int val2 ; | |
26310 | int ecode2 = 0 ; | |
26311 | bool val3 ; | |
26312 | int ecode3 = 0 ; | |
26313 | PyObject * obj0 = 0 ; | |
26314 | PyObject * obj1 = 0 ; | |
26315 | PyObject * obj2 = 0 ; | |
26316 | char * kwnames[] = { | |
26317 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
26318 | }; | |
26319 | ||
26320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26321 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
26322 | if (!SWIG_IsOK(ecode1)) { | |
26323 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
26324 | } | |
26325 | arg1 = static_cast< int >(val1); | |
26326 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26327 | if (!SWIG_IsOK(ecode2)) { | |
26328 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
26329 | } | |
26330 | arg2 = static_cast< int >(val2); | |
26331 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
26332 | if (!SWIG_IsOK(ecode3)) { | |
26333 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
26334 | } | |
26335 | arg3 = static_cast< bool >(val3); | |
26336 | { | |
26337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26338 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
26339 | wxPyEndAllowThreads(__tstate); | |
26340 | if (PyErr_Occurred()) SWIG_fail; | |
26341 | } | |
26342 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
26343 | return resultobj; | |
26344 | fail: | |
26345 | return NULL; | |
26346 | } | |
26347 | ||
26348 | ||
26349 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26350 | PyObject *resultobj = 0; | |
26351 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
26352 | void *argp1 = 0 ; | |
26353 | int res1 = 0 ; | |
26354 | PyObject *swig_obj[1] ; | |
26355 | ||
26356 | if (!args) SWIG_fail; | |
26357 | swig_obj[0] = args; | |
26358 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
26359 | if (!SWIG_IsOK(res1)) { | |
26360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
26361 | } | |
26362 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
26363 | { | |
26364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26365 | delete arg1; | |
26366 | ||
26367 | wxPyEndAllowThreads(__tstate); | |
26368 | if (PyErr_Occurred()) SWIG_fail; | |
26369 | } | |
26370 | resultobj = SWIG_Py_Void(); | |
26371 | return resultobj; | |
26372 | fail: | |
26373 | return NULL; | |
26374 | } | |
26375 | ||
26376 | ||
26377 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26378 | PyObject *resultobj = 0; | |
26379 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
26380 | int result; | |
26381 | void *argp1 = 0 ; | |
26382 | int res1 = 0 ; | |
26383 | PyObject *swig_obj[1] ; | |
26384 | ||
26385 | if (!args) SWIG_fail; | |
26386 | swig_obj[0] = args; | |
26387 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
26388 | if (!SWIG_IsOK(res1)) { | |
26389 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
26390 | } | |
26391 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
26392 | result = (int)(int) ((arg1)->widthSash); | |
26393 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26394 | return resultobj; | |
26395 | fail: | |
26396 | return NULL; | |
26397 | } | |
26398 | ||
26399 | ||
26400 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26401 | PyObject *resultobj = 0; | |
26402 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
26403 | int result; | |
26404 | void *argp1 = 0 ; | |
26405 | int res1 = 0 ; | |
26406 | PyObject *swig_obj[1] ; | |
26407 | ||
26408 | if (!args) SWIG_fail; | |
26409 | swig_obj[0] = args; | |
26410 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
26411 | if (!SWIG_IsOK(res1)) { | |
26412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
26413 | } | |
26414 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
26415 | result = (int)(int) ((arg1)->border); | |
26416 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26417 | return resultobj; | |
26418 | fail: | |
26419 | return NULL; | |
26420 | } | |
26421 | ||
26422 | ||
26423 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26424 | PyObject *resultobj = 0; | |
26425 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
26426 | bool result; | |
26427 | void *argp1 = 0 ; | |
26428 | int res1 = 0 ; | |
26429 | PyObject *swig_obj[1] ; | |
26430 | ||
26431 | if (!args) SWIG_fail; | |
26432 | swig_obj[0] = args; | |
26433 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
26434 | if (!SWIG_IsOK(res1)) { | |
26435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
26436 | } | |
26437 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
26438 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
26439 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
26440 | return resultobj; | |
26441 | fail: | |
26442 | return NULL; | |
26443 | } | |
26444 | ||
26445 | ||
26446 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26447 | PyObject *obj; | |
26448 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26449 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
26450 | return SWIG_Py_Void(); | |
26451 | } | |
26452 | ||
26453 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26454 | return SWIG_Python_InitShadowInstance(args); | |
26455 | } | |
26456 | ||
33d6fd3b RD |
26457 | SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26458 | PyObject *resultobj = 0; | |
26459 | wxHeaderButtonParams *result = 0 ; | |
26460 | ||
26461 | if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail; | |
26462 | { | |
26463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26464 | result = (wxHeaderButtonParams *)new wxHeaderButtonParams(); | |
26465 | wxPyEndAllowThreads(__tstate); | |
26466 | if (PyErr_Occurred()) SWIG_fail; | |
26467 | } | |
26468 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 ); | |
26469 | return resultobj; | |
26470 | fail: | |
26471 | return NULL; | |
26472 | } | |
26473 | ||
26474 | ||
26475 | SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26476 | PyObject *resultobj = 0; | |
26477 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26478 | void *argp1 = 0 ; | |
26479 | int res1 = 0 ; | |
26480 | PyObject *swig_obj[1] ; | |
26481 | ||
26482 | if (!args) SWIG_fail; | |
26483 | swig_obj[0] = args; | |
26484 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 ); | |
26485 | if (!SWIG_IsOK(res1)) { | |
26486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26487 | } | |
26488 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26489 | { | |
26490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26491 | delete arg1; | |
26492 | ||
26493 | wxPyEndAllowThreads(__tstate); | |
26494 | if (PyErr_Occurred()) SWIG_fail; | |
26495 | } | |
26496 | resultobj = SWIG_Py_Void(); | |
26497 | return resultobj; | |
26498 | fail: | |
26499 | return NULL; | |
26500 | } | |
26501 | ||
26502 | ||
26503 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26504 | PyObject *resultobj = 0; | |
26505 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26506 | wxColour *arg2 = (wxColour *) 0 ; | |
26507 | void *argp1 = 0 ; | |
26508 | int res1 = 0 ; | |
26509 | wxColour temp2 ; | |
26510 | PyObject *swig_obj[2] ; | |
26511 | ||
26512 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail; | |
26513 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26514 | if (!SWIG_IsOK(res1)) { | |
26515 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26516 | } | |
26517 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26518 | { | |
26519 | arg2 = &temp2; | |
26520 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
26521 | } | |
26522 | if (arg1) (arg1)->m_arrowColour = *arg2; | |
26523 | ||
26524 | resultobj = SWIG_Py_Void(); | |
26525 | return resultobj; | |
26526 | fail: | |
26527 | return NULL; | |
26528 | } | |
26529 | ||
26530 | ||
26531 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26532 | PyObject *resultobj = 0; | |
26533 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26534 | wxColour *result = 0 ; | |
26535 | void *argp1 = 0 ; | |
26536 | int res1 = 0 ; | |
26537 | PyObject *swig_obj[1] ; | |
26538 | ||
26539 | if (!args) SWIG_fail; | |
26540 | swig_obj[0] = args; | |
26541 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26542 | if (!SWIG_IsOK(res1)) { | |
26543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26544 | } | |
26545 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26546 | result = (wxColour *)& ((arg1)->m_arrowColour); | |
26547 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
26548 | return resultobj; | |
26549 | fail: | |
26550 | return NULL; | |
26551 | } | |
26552 | ||
26553 | ||
26554 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26555 | PyObject *resultobj = 0; | |
26556 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26557 | wxColour *arg2 = (wxColour *) 0 ; | |
26558 | void *argp1 = 0 ; | |
26559 | int res1 = 0 ; | |
26560 | wxColour temp2 ; | |
26561 | PyObject *swig_obj[2] ; | |
26562 | ||
26563 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail; | |
26564 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26565 | if (!SWIG_IsOK(res1)) { | |
26566 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26567 | } | |
26568 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26569 | { | |
26570 | arg2 = &temp2; | |
26571 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
26572 | } | |
26573 | if (arg1) (arg1)->m_selectionColour = *arg2; | |
26574 | ||
26575 | resultobj = SWIG_Py_Void(); | |
26576 | return resultobj; | |
26577 | fail: | |
26578 | return NULL; | |
26579 | } | |
26580 | ||
26581 | ||
26582 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26583 | PyObject *resultobj = 0; | |
26584 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26585 | wxColour *result = 0 ; | |
26586 | void *argp1 = 0 ; | |
26587 | int res1 = 0 ; | |
26588 | PyObject *swig_obj[1] ; | |
26589 | ||
26590 | if (!args) SWIG_fail; | |
26591 | swig_obj[0] = args; | |
26592 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26593 | if (!SWIG_IsOK(res1)) { | |
26594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26595 | } | |
26596 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26597 | result = (wxColour *)& ((arg1)->m_selectionColour); | |
26598 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
26599 | return resultobj; | |
26600 | fail: | |
26601 | return NULL; | |
26602 | } | |
26603 | ||
26604 | ||
26605 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26606 | PyObject *resultobj = 0; | |
26607 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26608 | wxString *arg2 = (wxString *) 0 ; | |
26609 | void *argp1 = 0 ; | |
26610 | int res1 = 0 ; | |
26611 | bool temp2 = false ; | |
26612 | PyObject *swig_obj[2] ; | |
26613 | ||
26614 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail; | |
26615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26616 | if (!SWIG_IsOK(res1)) { | |
26617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26618 | } | |
26619 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26620 | { | |
26621 | arg2 = wxString_in_helper(swig_obj[1]); | |
26622 | if (arg2 == NULL) SWIG_fail; | |
26623 | temp2 = true; | |
26624 | } | |
26625 | if (arg1) (arg1)->m_labelText = *arg2; | |
26626 | ||
26627 | resultobj = SWIG_Py_Void(); | |
26628 | { | |
26629 | if (temp2) | |
26630 | delete arg2; | |
26631 | } | |
26632 | return resultobj; | |
26633 | fail: | |
26634 | { | |
26635 | if (temp2) | |
26636 | delete arg2; | |
26637 | } | |
26638 | return NULL; | |
26639 | } | |
26640 | ||
26641 | ||
26642 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26643 | PyObject *resultobj = 0; | |
26644 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26645 | wxString *result = 0 ; | |
26646 | void *argp1 = 0 ; | |
26647 | int res1 = 0 ; | |
26648 | PyObject *swig_obj[1] ; | |
26649 | ||
26650 | if (!args) SWIG_fail; | |
26651 | swig_obj[0] = args; | |
26652 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26653 | if (!SWIG_IsOK(res1)) { | |
26654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26655 | } | |
26656 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26657 | result = (wxString *)& ((arg1)->m_labelText); | |
26658 | { | |
26659 | #if wxUSE_UNICODE | |
26660 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
26661 | #else | |
26662 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
26663 | #endif | |
26664 | } | |
26665 | return resultobj; | |
26666 | fail: | |
26667 | return NULL; | |
26668 | } | |
26669 | ||
26670 | ||
26671 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26672 | PyObject *resultobj = 0; | |
26673 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26674 | wxFont *arg2 = (wxFont *) 0 ; | |
26675 | void *argp1 = 0 ; | |
26676 | int res1 = 0 ; | |
26677 | void *argp2 = 0 ; | |
26678 | int res2 = 0 ; | |
26679 | PyObject *swig_obj[2] ; | |
26680 | ||
26681 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail; | |
26682 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26683 | if (!SWIG_IsOK(res1)) { | |
26684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26685 | } | |
26686 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26687 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
26688 | if (!SWIG_IsOK(res2)) { | |
26689 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'"); | |
26690 | } | |
26691 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
26692 | if (arg1) (arg1)->m_labelFont = *arg2; | |
26693 | ||
26694 | resultobj = SWIG_Py_Void(); | |
26695 | return resultobj; | |
26696 | fail: | |
26697 | return NULL; | |
26698 | } | |
26699 | ||
26700 | ||
26701 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26702 | PyObject *resultobj = 0; | |
26703 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26704 | wxFont *result = 0 ; | |
26705 | void *argp1 = 0 ; | |
26706 | int res1 = 0 ; | |
26707 | PyObject *swig_obj[1] ; | |
26708 | ||
26709 | if (!args) SWIG_fail; | |
26710 | swig_obj[0] = args; | |
26711 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26712 | if (!SWIG_IsOK(res1)) { | |
26713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26714 | } | |
26715 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26716 | result = (wxFont *)& ((arg1)->m_labelFont); | |
26717 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
26718 | return resultobj; | |
26719 | fail: | |
26720 | return NULL; | |
26721 | } | |
26722 | ||
26723 | ||
26724 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26725 | PyObject *resultobj = 0; | |
26726 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26727 | wxColour *arg2 = (wxColour *) 0 ; | |
26728 | void *argp1 = 0 ; | |
26729 | int res1 = 0 ; | |
26730 | wxColour temp2 ; | |
26731 | PyObject *swig_obj[2] ; | |
26732 | ||
26733 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail; | |
26734 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26735 | if (!SWIG_IsOK(res1)) { | |
26736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26737 | } | |
26738 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26739 | { | |
26740 | arg2 = &temp2; | |
26741 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
26742 | } | |
26743 | if (arg1) (arg1)->m_labelColour = *arg2; | |
26744 | ||
26745 | resultobj = SWIG_Py_Void(); | |
26746 | return resultobj; | |
26747 | fail: | |
26748 | return NULL; | |
26749 | } | |
26750 | ||
26751 | ||
26752 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26753 | PyObject *resultobj = 0; | |
26754 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26755 | wxColour *result = 0 ; | |
26756 | void *argp1 = 0 ; | |
26757 | int res1 = 0 ; | |
26758 | PyObject *swig_obj[1] ; | |
26759 | ||
26760 | if (!args) SWIG_fail; | |
26761 | swig_obj[0] = args; | |
26762 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26763 | if (!SWIG_IsOK(res1)) { | |
26764 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26765 | } | |
26766 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26767 | result = (wxColour *)& ((arg1)->m_labelColour); | |
26768 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
26769 | return resultobj; | |
26770 | fail: | |
26771 | return NULL; | |
26772 | } | |
26773 | ||
26774 | ||
26775 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26776 | PyObject *resultobj = 0; | |
26777 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26778 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
26779 | void *argp1 = 0 ; | |
26780 | int res1 = 0 ; | |
26781 | void *argp2 = 0 ; | |
26782 | int res2 = 0 ; | |
26783 | PyObject *swig_obj[2] ; | |
26784 | ||
26785 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail; | |
26786 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26787 | if (!SWIG_IsOK(res1)) { | |
26788 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26789 | } | |
26790 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26791 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
26792 | if (!SWIG_IsOK(res2)) { | |
26793 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
26794 | } | |
26795 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
26796 | if (arg1) (arg1)->m_labelBitmap = *arg2; | |
26797 | ||
26798 | resultobj = SWIG_Py_Void(); | |
26799 | return resultobj; | |
26800 | fail: | |
26801 | return NULL; | |
26802 | } | |
26803 | ||
26804 | ||
26805 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26806 | PyObject *resultobj = 0; | |
26807 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26808 | wxBitmap *result = 0 ; | |
26809 | void *argp1 = 0 ; | |
26810 | int res1 = 0 ; | |
26811 | PyObject *swig_obj[1] ; | |
26812 | ||
26813 | if (!args) SWIG_fail; | |
26814 | swig_obj[0] = args; | |
26815 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26816 | if (!SWIG_IsOK(res1)) { | |
26817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26818 | } | |
26819 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26820 | result = (wxBitmap *)& ((arg1)->m_labelBitmap); | |
26821 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
26822 | return resultobj; | |
26823 | fail: | |
26824 | return NULL; | |
26825 | } | |
26826 | ||
26827 | ||
26828 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26829 | PyObject *resultobj = 0; | |
26830 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26831 | int arg2 ; | |
26832 | void *argp1 = 0 ; | |
26833 | int res1 = 0 ; | |
26834 | int val2 ; | |
26835 | int ecode2 = 0 ; | |
26836 | PyObject *swig_obj[2] ; | |
26837 | ||
26838 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail; | |
26839 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26840 | if (!SWIG_IsOK(res1)) { | |
26841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26842 | } | |
26843 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26844 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
26845 | if (!SWIG_IsOK(ecode2)) { | |
26846 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'"); | |
26847 | } | |
26848 | arg2 = static_cast< int >(val2); | |
26849 | if (arg1) (arg1)->m_labelAlignment = arg2; | |
26850 | ||
26851 | resultobj = SWIG_Py_Void(); | |
26852 | return resultobj; | |
26853 | fail: | |
26854 | return NULL; | |
26855 | } | |
26856 | ||
26857 | ||
26858 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26859 | PyObject *resultobj = 0; | |
26860 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
26861 | int result; | |
26862 | void *argp1 = 0 ; | |
26863 | int res1 = 0 ; | |
26864 | PyObject *swig_obj[1] ; | |
26865 | ||
26866 | if (!args) SWIG_fail; | |
26867 | swig_obj[0] = args; | |
26868 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
26869 | if (!SWIG_IsOK(res1)) { | |
26870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
26871 | } | |
26872 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
26873 | result = (int) ((arg1)->m_labelAlignment); | |
26874 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
26875 | return resultobj; | |
26876 | fail: | |
26877 | return NULL; | |
26878 | } | |
26879 | ||
26880 | ||
26881 | SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26882 | PyObject *obj; | |
26883 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26884 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj)); | |
26885 | return SWIG_Py_Void(); | |
26886 | } | |
26887 | ||
26888 | SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26889 | return SWIG_Python_InitShadowInstance(args); | |
26890 | } | |
26891 | ||
0085ce49 RD |
26892 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26893 | PyObject *resultobj = 0; | |
26894 | int arg1 ; | |
26895 | int arg2 ; | |
26896 | wxRendererVersion *result = 0 ; | |
26897 | int val1 ; | |
26898 | int ecode1 = 0 ; | |
26899 | int val2 ; | |
26900 | int ecode2 = 0 ; | |
26901 | PyObject * obj0 = 0 ; | |
26902 | PyObject * obj1 = 0 ; | |
26903 | char * kwnames[] = { | |
26904 | (char *) "version_",(char *) "age_", NULL | |
26905 | }; | |
26906 | ||
26907 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
26908 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
26909 | if (!SWIG_IsOK(ecode1)) { | |
26910 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
26911 | } | |
26912 | arg1 = static_cast< int >(val1); | |
26913 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26914 | if (!SWIG_IsOK(ecode2)) { | |
26915 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
26916 | } | |
26917 | arg2 = static_cast< int >(val2); | |
26918 | { | |
26919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26920 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
26921 | wxPyEndAllowThreads(__tstate); | |
26922 | if (PyErr_Occurred()) SWIG_fail; | |
26923 | } | |
26924 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
26925 | return resultobj; | |
26926 | fail: | |
26927 | return NULL; | |
26928 | } | |
26929 | ||
26930 | ||
26931 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26932 | PyObject *resultobj = 0; | |
26933 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
26934 | void *argp1 = 0 ; | |
26935 | int res1 = 0 ; | |
26936 | PyObject *swig_obj[1] ; | |
26937 | ||
26938 | if (!args) SWIG_fail; | |
26939 | swig_obj[0] = args; | |
26940 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
26941 | if (!SWIG_IsOK(res1)) { | |
26942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
26943 | } | |
26944 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
26945 | { | |
26946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26947 | delete arg1; | |
26948 | ||
26949 | wxPyEndAllowThreads(__tstate); | |
26950 | if (PyErr_Occurred()) SWIG_fail; | |
26951 | } | |
26952 | resultobj = SWIG_Py_Void(); | |
26953 | return resultobj; | |
26954 | fail: | |
26955 | return NULL; | |
26956 | } | |
26957 | ||
26958 | ||
26959 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26960 | PyObject *resultobj = 0; | |
26961 | wxRendererVersion *arg1 = 0 ; | |
26962 | bool result; | |
26963 | void *argp1 = 0 ; | |
26964 | int res1 = 0 ; | |
26965 | PyObject * obj0 = 0 ; | |
26966 | char * kwnames[] = { | |
26967 | (char *) "ver", NULL | |
26968 | }; | |
26969 | ||
26970 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
26971 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
26972 | if (!SWIG_IsOK(res1)) { | |
26973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
26974 | } | |
26975 | if (!argp1) { | |
26976 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
26977 | } | |
26978 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
26979 | { | |
26980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26981 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
26982 | wxPyEndAllowThreads(__tstate); | |
26983 | if (PyErr_Occurred()) SWIG_fail; | |
26984 | } | |
26985 | { | |
26986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26987 | } | |
26988 | return resultobj; | |
26989 | fail: | |
26990 | return NULL; | |
26991 | } | |
26992 | ||
26993 | ||
26994 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26995 | PyObject *resultobj = 0; | |
26996 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
26997 | int result; | |
26998 | void *argp1 = 0 ; | |
26999 | int res1 = 0 ; | |
27000 | PyObject *swig_obj[1] ; | |
27001 | ||
27002 | if (!args) SWIG_fail; | |
27003 | swig_obj[0] = args; | |
27004 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
27005 | if (!SWIG_IsOK(res1)) { | |
27006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
27007 | } | |
27008 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
27009 | result = (int)(int) ((arg1)->version); | |
27010 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27011 | return resultobj; | |
27012 | fail: | |
27013 | return NULL; | |
27014 | } | |
27015 | ||
27016 | ||
27017 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27018 | PyObject *resultobj = 0; | |
27019 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
27020 | int result; | |
27021 | void *argp1 = 0 ; | |
27022 | int res1 = 0 ; | |
27023 | PyObject *swig_obj[1] ; | |
27024 | ||
27025 | if (!args) SWIG_fail; | |
27026 | swig_obj[0] = args; | |
27027 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
27028 | if (!SWIG_IsOK(res1)) { | |
27029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
27030 | } | |
27031 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
27032 | result = (int)(int) ((arg1)->age); | |
27033 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27034 | return resultobj; | |
27035 | fail: | |
27036 | return NULL; | |
27037 | } | |
27038 | ||
27039 | ||
27040 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27041 | PyObject *obj; | |
27042 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27043 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
27044 | return SWIG_Py_Void(); | |
27045 | } | |
27046 | ||
27047 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27048 | return SWIG_Python_InitShadowInstance(args); | |
27049 | } | |
27050 | ||
27051 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27052 | PyObject *resultobj = 0; | |
27053 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27054 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27055 | wxDC *arg3 = 0 ; | |
27056 | wxRect *arg4 = 0 ; | |
27057 | int arg5 = (int) 0 ; | |
33d6fd3b RD |
27058 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; |
27059 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
0085ce49 RD |
27060 | void *argp1 = 0 ; |
27061 | int res1 = 0 ; | |
27062 | void *argp2 = 0 ; | |
27063 | int res2 = 0 ; | |
27064 | void *argp3 = 0 ; | |
27065 | int res3 = 0 ; | |
27066 | wxRect temp4 ; | |
27067 | int val5 ; | |
27068 | int ecode5 = 0 ; | |
33d6fd3b RD |
27069 | int val6 ; |
27070 | int ecode6 = 0 ; | |
27071 | void *argp7 = 0 ; | |
27072 | int res7 = 0 ; | |
0085ce49 RD |
27073 | PyObject * obj0 = 0 ; |
27074 | PyObject * obj1 = 0 ; | |
27075 | PyObject * obj2 = 0 ; | |
27076 | PyObject * obj3 = 0 ; | |
27077 | PyObject * obj4 = 0 ; | |
33d6fd3b RD |
27078 | PyObject * obj5 = 0 ; |
27079 | PyObject * obj6 = 0 ; | |
0085ce49 | 27080 | char * kwnames[] = { |
33d6fd3b | 27081 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL |
0085ce49 RD |
27082 | }; |
27083 | ||
33d6fd3b | 27084 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
0085ce49 RD |
27085 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
27086 | if (!SWIG_IsOK(res1)) { | |
27087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
27088 | } | |
27089 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27090 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27091 | if (!SWIG_IsOK(res2)) { | |
27092 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27093 | } | |
27094 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27095 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
27096 | if (!SWIG_IsOK(res3)) { | |
27097 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27098 | } | |
27099 | if (!argp3) { | |
27100 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27101 | } | |
27102 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
27103 | { | |
27104 | arg4 = &temp4; | |
27105 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
27106 | } | |
27107 | if (obj4) { | |
27108 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
27109 | if (!SWIG_IsOK(ecode5)) { | |
27110 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
27111 | } | |
27112 | arg5 = static_cast< int >(val5); | |
27113 | } | |
33d6fd3b RD |
27114 | if (obj5) { |
27115 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
27116 | if (!SWIG_IsOK(ecode6)) { | |
27117 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
27118 | } | |
27119 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
27120 | } | |
27121 | if (obj6) { | |
27122 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
27123 | if (!SWIG_IsOK(res7)) { | |
27124 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
27125 | } | |
27126 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
27127 | } | |
27128 | { | |
27129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27130 | (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); | |
27131 | wxPyEndAllowThreads(__tstate); | |
27132 | if (PyErr_Occurred()) SWIG_fail; | |
27133 | } | |
27134 | resultobj = SWIG_Py_Void(); | |
27135 | return resultobj; | |
27136 | fail: | |
27137 | return NULL; | |
27138 | } | |
27139 | ||
27140 | ||
27141 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27142 | PyObject *resultobj = 0; | |
27143 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27144 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27145 | wxDC *arg3 = 0 ; | |
27146 | wxRect *arg4 = 0 ; | |
27147 | int arg5 = (int) 0 ; | |
27148 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; | |
27149 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
27150 | void *argp1 = 0 ; | |
27151 | int res1 = 0 ; | |
27152 | void *argp2 = 0 ; | |
27153 | int res2 = 0 ; | |
27154 | void *argp3 = 0 ; | |
27155 | int res3 = 0 ; | |
27156 | wxRect temp4 ; | |
27157 | int val5 ; | |
27158 | int ecode5 = 0 ; | |
27159 | int val6 ; | |
27160 | int ecode6 = 0 ; | |
27161 | void *argp7 = 0 ; | |
27162 | int res7 = 0 ; | |
27163 | PyObject * obj0 = 0 ; | |
27164 | PyObject * obj1 = 0 ; | |
27165 | PyObject * obj2 = 0 ; | |
27166 | PyObject * obj3 = 0 ; | |
27167 | PyObject * obj4 = 0 ; | |
27168 | PyObject * obj5 = 0 ; | |
27169 | PyObject * obj6 = 0 ; | |
27170 | char * kwnames[] = { | |
27171 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL | |
27172 | }; | |
27173 | ||
27174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
27175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27176 | if (!SWIG_IsOK(res1)) { | |
27177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
27178 | } | |
27179 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27180 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27181 | if (!SWIG_IsOK(res2)) { | |
27182 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27183 | } | |
27184 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27185 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
27186 | if (!SWIG_IsOK(res3)) { | |
27187 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27188 | } | |
27189 | if (!argp3) { | |
27190 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27191 | } | |
27192 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
27193 | { | |
27194 | arg4 = &temp4; | |
27195 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
27196 | } | |
27197 | if (obj4) { | |
27198 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
27199 | if (!SWIG_IsOK(ecode5)) { | |
27200 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'"); | |
27201 | } | |
27202 | arg5 = static_cast< int >(val5); | |
27203 | } | |
27204 | if (obj5) { | |
27205 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
27206 | if (!SWIG_IsOK(ecode6)) { | |
27207 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
27208 | } | |
27209 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
27210 | } | |
27211 | if (obj6) { | |
27212 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
27213 | if (!SWIG_IsOK(res7)) { | |
27214 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
27215 | } | |
27216 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
27217 | } | |
0085ce49 RD |
27218 | { |
27219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 27220 | (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
0085ce49 RD |
27221 | wxPyEndAllowThreads(__tstate); |
27222 | if (PyErr_Occurred()) SWIG_fail; | |
27223 | } | |
27224 | resultobj = SWIG_Py_Void(); | |
27225 | return resultobj; | |
27226 | fail: | |
27227 | return NULL; | |
27228 | } | |
27229 | ||
27230 | ||
33d6fd3b RD |
27231 | SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27232 | PyObject *resultobj = 0; | |
27233 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27234 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27235 | int result; | |
27236 | void *argp1 = 0 ; | |
27237 | int res1 = 0 ; | |
27238 | void *argp2 = 0 ; | |
27239 | int res2 = 0 ; | |
27240 | PyObject * obj0 = 0 ; | |
27241 | PyObject * obj1 = 0 ; | |
27242 | char * kwnames[] = { | |
27243 | (char *) "self",(char *) "win", NULL | |
27244 | }; | |
27245 | ||
27246 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
27247 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27248 | if (!SWIG_IsOK(res1)) { | |
27249 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
27250 | } | |
27251 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27252 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27253 | if (!SWIG_IsOK(res2)) { | |
27254 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27255 | } | |
27256 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27257 | { | |
27258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27259 | result = (int)(arg1)->GetHeaderButtonHeight(arg2); | |
27260 | wxPyEndAllowThreads(__tstate); | |
27261 | if (PyErr_Occurred()) SWIG_fail; | |
27262 | } | |
27263 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
27264 | return resultobj; | |
27265 | fail: | |
27266 | return NULL; | |
27267 | } | |
27268 | ||
27269 | ||
0085ce49 RD |
27270 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27271 | PyObject *resultobj = 0; | |
27272 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27273 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27274 | wxDC *arg3 = 0 ; | |
27275 | wxRect *arg4 = 0 ; | |
27276 | int arg5 = (int) 0 ; | |
27277 | void *argp1 = 0 ; | |
27278 | int res1 = 0 ; | |
27279 | void *argp2 = 0 ; | |
27280 | int res2 = 0 ; | |
27281 | void *argp3 = 0 ; | |
27282 | int res3 = 0 ; | |
27283 | wxRect temp4 ; | |
27284 | int val5 ; | |
27285 | int ecode5 = 0 ; | |
27286 | PyObject * obj0 = 0 ; | |
27287 | PyObject * obj1 = 0 ; | |
27288 | PyObject * obj2 = 0 ; | |
27289 | PyObject * obj3 = 0 ; | |
27290 | PyObject * obj4 = 0 ; | |
27291 | char * kwnames[] = { | |
27292 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
27293 | }; | |
27294 | ||
27295 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
27296 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27297 | if (!SWIG_IsOK(res1)) { | |
27298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
27299 | } | |
27300 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27301 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27302 | if (!SWIG_IsOK(res2)) { | |
27303 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27304 | } | |
27305 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27306 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
27307 | if (!SWIG_IsOK(res3)) { | |
27308 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27309 | } | |
27310 | if (!argp3) { | |
27311 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27312 | } | |
27313 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
27314 | { | |
27315 | arg4 = &temp4; | |
27316 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
27317 | } | |
27318 | if (obj4) { | |
27319 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
27320 | if (!SWIG_IsOK(ecode5)) { | |
27321 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
27322 | } | |
27323 | arg5 = static_cast< int >(val5); | |
27324 | } | |
27325 | { | |
27326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27327 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
27328 | wxPyEndAllowThreads(__tstate); | |
27329 | if (PyErr_Occurred()) SWIG_fail; | |
27330 | } | |
27331 | resultobj = SWIG_Py_Void(); | |
27332 | return resultobj; | |
27333 | fail: | |
27334 | return NULL; | |
27335 | } | |
27336 | ||
27337 | ||
27338 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27339 | PyObject *resultobj = 0; | |
27340 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27341 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27342 | wxDC *arg3 = 0 ; | |
27343 | wxRect *arg4 = 0 ; | |
27344 | int arg5 = (int) 0 ; | |
27345 | void *argp1 = 0 ; | |
27346 | int res1 = 0 ; | |
27347 | void *argp2 = 0 ; | |
27348 | int res2 = 0 ; | |
27349 | void *argp3 = 0 ; | |
27350 | int res3 = 0 ; | |
27351 | wxRect temp4 ; | |
27352 | int val5 ; | |
27353 | int ecode5 = 0 ; | |
27354 | PyObject * obj0 = 0 ; | |
27355 | PyObject * obj1 = 0 ; | |
27356 | PyObject * obj2 = 0 ; | |
27357 | PyObject * obj3 = 0 ; | |
27358 | PyObject * obj4 = 0 ; | |
27359 | char * kwnames[] = { | |
27360 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
27361 | }; | |
27362 | ||
27363 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
27364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27365 | if (!SWIG_IsOK(res1)) { | |
27366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
27367 | } | |
27368 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27369 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27370 | if (!SWIG_IsOK(res2)) { | |
27371 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27372 | } | |
27373 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27374 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
27375 | if (!SWIG_IsOK(res3)) { | |
27376 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27377 | } | |
27378 | if (!argp3) { | |
27379 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27380 | } | |
27381 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
27382 | { | |
27383 | arg4 = &temp4; | |
27384 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
27385 | } | |
27386 | if (obj4) { | |
27387 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
27388 | if (!SWIG_IsOK(ecode5)) { | |
27389 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
27390 | } | |
27391 | arg5 = static_cast< int >(val5); | |
27392 | } | |
27393 | { | |
27394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27395 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
27396 | wxPyEndAllowThreads(__tstate); | |
27397 | if (PyErr_Occurred()) SWIG_fail; | |
27398 | } | |
27399 | resultobj = SWIG_Py_Void(); | |
27400 | return resultobj; | |
27401 | fail: | |
27402 | return NULL; | |
27403 | } | |
27404 | ||
27405 | ||
27406 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27407 | PyObject *resultobj = 0; | |
27408 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27409 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27410 | wxDC *arg3 = 0 ; | |
27411 | wxSize *arg4 = 0 ; | |
27412 | int arg5 ; | |
27413 | wxOrientation arg6 ; | |
27414 | int arg7 = (int) 0 ; | |
27415 | void *argp1 = 0 ; | |
27416 | int res1 = 0 ; | |
27417 | void *argp2 = 0 ; | |
27418 | int res2 = 0 ; | |
27419 | void *argp3 = 0 ; | |
27420 | int res3 = 0 ; | |
27421 | wxSize temp4 ; | |
27422 | int val5 ; | |
27423 | int ecode5 = 0 ; | |
27424 | int val6 ; | |
27425 | int ecode6 = 0 ; | |
27426 | int val7 ; | |
27427 | int ecode7 = 0 ; | |
27428 | PyObject * obj0 = 0 ; | |
27429 | PyObject * obj1 = 0 ; | |
27430 | PyObject * obj2 = 0 ; | |
27431 | PyObject * obj3 = 0 ; | |
27432 | PyObject * obj4 = 0 ; | |
27433 | PyObject * obj5 = 0 ; | |
27434 | PyObject * obj6 = 0 ; | |
27435 | char * kwnames[] = { | |
27436 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
27437 | }; | |
27438 | ||
27439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
27440 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27441 | if (!SWIG_IsOK(res1)) { | |
27442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
27443 | } | |
27444 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27445 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27446 | if (!SWIG_IsOK(res2)) { | |
27447 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27448 | } | |
27449 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27450 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
27451 | if (!SWIG_IsOK(res3)) { | |
27452 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27453 | } | |
27454 | if (!argp3) { | |
27455 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27456 | } | |
27457 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
27458 | { | |
27459 | arg4 = &temp4; | |
27460 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27461 | } | |
27462 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
27463 | if (!SWIG_IsOK(ecode5)) { | |
27464 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
27465 | } | |
27466 | arg5 = static_cast< int >(val5); | |
27467 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
27468 | if (!SWIG_IsOK(ecode6)) { | |
27469 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
27470 | } | |
27471 | arg6 = static_cast< wxOrientation >(val6); | |
27472 | if (obj6) { | |
27473 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
27474 | if (!SWIG_IsOK(ecode7)) { | |
27475 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
27476 | } | |
27477 | arg7 = static_cast< int >(val7); | |
27478 | } | |
27479 | { | |
27480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27481 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
27482 | wxPyEndAllowThreads(__tstate); | |
27483 | if (PyErr_Occurred()) SWIG_fail; | |
27484 | } | |
27485 | resultobj = SWIG_Py_Void(); | |
27486 | return resultobj; | |
27487 | fail: | |
27488 | return NULL; | |
27489 | } | |
27490 | ||
27491 | ||
27492 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27493 | PyObject *resultobj = 0; | |
27494 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27495 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27496 | wxDC *arg3 = 0 ; | |
27497 | wxRect *arg4 = 0 ; | |
27498 | int arg5 = (int) 0 ; | |
27499 | void *argp1 = 0 ; | |
27500 | int res1 = 0 ; | |
27501 | void *argp2 = 0 ; | |
27502 | int res2 = 0 ; | |
27503 | void *argp3 = 0 ; | |
27504 | int res3 = 0 ; | |
27505 | wxRect temp4 ; | |
27506 | int val5 ; | |
27507 | int ecode5 = 0 ; | |
27508 | PyObject * obj0 = 0 ; | |
27509 | PyObject * obj1 = 0 ; | |
27510 | PyObject * obj2 = 0 ; | |
27511 | PyObject * obj3 = 0 ; | |
27512 | PyObject * obj4 = 0 ; | |
27513 | char * kwnames[] = { | |
27514 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
27515 | }; | |
27516 | ||
27517 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
27518 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27519 | if (!SWIG_IsOK(res1)) { | |
27520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
27521 | } | |
27522 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27523 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27524 | if (!SWIG_IsOK(res2)) { | |
27525 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27526 | } | |
27527 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27528 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
27529 | if (!SWIG_IsOK(res3)) { | |
27530 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27531 | } | |
27532 | if (!argp3) { | |
27533 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27534 | } | |
27535 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
27536 | { | |
27537 | arg4 = &temp4; | |
27538 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
27539 | } | |
27540 | if (obj4) { | |
27541 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
27542 | if (!SWIG_IsOK(ecode5)) { | |
27543 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
27544 | } | |
27545 | arg5 = static_cast< int >(val5); | |
27546 | } | |
27547 | { | |
27548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27549 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
27550 | wxPyEndAllowThreads(__tstate); | |
27551 | if (PyErr_Occurred()) SWIG_fail; | |
27552 | } | |
27553 | resultobj = SWIG_Py_Void(); | |
27554 | return resultobj; | |
27555 | fail: | |
27556 | return NULL; | |
27557 | } | |
27558 | ||
27559 | ||
27560 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27561 | PyObject *resultobj = 0; | |
27562 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27563 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27564 | wxDC *arg3 = 0 ; | |
27565 | wxRect *arg4 = 0 ; | |
27566 | int arg5 = (int) 0 ; | |
27567 | void *argp1 = 0 ; | |
27568 | int res1 = 0 ; | |
27569 | void *argp2 = 0 ; | |
27570 | int res2 = 0 ; | |
27571 | void *argp3 = 0 ; | |
27572 | int res3 = 0 ; | |
27573 | wxRect temp4 ; | |
27574 | int val5 ; | |
27575 | int ecode5 = 0 ; | |
27576 | PyObject * obj0 = 0 ; | |
27577 | PyObject * obj1 = 0 ; | |
27578 | PyObject * obj2 = 0 ; | |
27579 | PyObject * obj3 = 0 ; | |
27580 | PyObject * obj4 = 0 ; | |
27581 | char * kwnames[] = { | |
27582 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
27583 | }; | |
27584 | ||
27585 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
27586 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27587 | if (!SWIG_IsOK(res1)) { | |
27588 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
27589 | } | |
27590 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27591 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27592 | if (!SWIG_IsOK(res2)) { | |
27593 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27594 | } | |
27595 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27596 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
27597 | if (!SWIG_IsOK(res3)) { | |
27598 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27599 | } | |
27600 | if (!argp3) { | |
27601 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27602 | } | |
27603 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
27604 | { | |
27605 | arg4 = &temp4; | |
27606 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
27607 | } | |
27608 | if (obj4) { | |
27609 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
27610 | if (!SWIG_IsOK(ecode5)) { | |
27611 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
27612 | } | |
27613 | arg5 = static_cast< int >(val5); | |
27614 | } | |
27615 | { | |
27616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27617 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
27618 | wxPyEndAllowThreads(__tstate); | |
27619 | if (PyErr_Occurred()) SWIG_fail; | |
27620 | } | |
27621 | resultobj = SWIG_Py_Void(); | |
27622 | return resultobj; | |
27623 | fail: | |
27624 | return NULL; | |
27625 | } | |
27626 | ||
27627 | ||
01f6b6d3 RD |
27628 | SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27629 | PyObject *resultobj = 0; | |
27630 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27631 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27632 | wxDC *arg3 = 0 ; | |
27633 | wxRect *arg4 = 0 ; | |
27634 | int arg5 = (int) 0 ; | |
27635 | void *argp1 = 0 ; | |
27636 | int res1 = 0 ; | |
27637 | void *argp2 = 0 ; | |
27638 | int res2 = 0 ; | |
27639 | void *argp3 = 0 ; | |
27640 | int res3 = 0 ; | |
27641 | wxRect temp4 ; | |
27642 | int val5 ; | |
27643 | int ecode5 = 0 ; | |
27644 | PyObject * obj0 = 0 ; | |
27645 | PyObject * obj1 = 0 ; | |
27646 | PyObject * obj2 = 0 ; | |
27647 | PyObject * obj3 = 0 ; | |
27648 | PyObject * obj4 = 0 ; | |
27649 | char * kwnames[] = { | |
27650 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
27651 | }; | |
27652 | ||
27653 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
27654 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27655 | if (!SWIG_IsOK(res1)) { | |
27656 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
27657 | } | |
27658 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27659 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27660 | if (!SWIG_IsOK(res2)) { | |
27661 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27662 | } | |
27663 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27664 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
27665 | if (!SWIG_IsOK(res3)) { | |
27666 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27667 | } | |
27668 | if (!argp3) { | |
27669 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27670 | } | |
27671 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
27672 | { | |
27673 | arg4 = &temp4; | |
27674 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
27675 | } | |
27676 | if (obj4) { | |
27677 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
27678 | if (!SWIG_IsOK(ecode5)) { | |
27679 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'"); | |
27680 | } | |
27681 | arg5 = static_cast< int >(val5); | |
27682 | } | |
27683 | { | |
27684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27685 | (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
27686 | wxPyEndAllowThreads(__tstate); | |
27687 | if (PyErr_Occurred()) SWIG_fail; | |
27688 | } | |
27689 | resultobj = SWIG_Py_Void(); | |
27690 | return resultobj; | |
27691 | fail: | |
27692 | return NULL; | |
27693 | } | |
27694 | ||
27695 | ||
27696 | SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27697 | PyObject *resultobj = 0; | |
27698 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27699 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27700 | wxDC *arg3 = 0 ; | |
27701 | wxRect *arg4 = 0 ; | |
27702 | int arg5 = (int) 0 ; | |
27703 | void *argp1 = 0 ; | |
27704 | int res1 = 0 ; | |
27705 | void *argp2 = 0 ; | |
27706 | int res2 = 0 ; | |
27707 | void *argp3 = 0 ; | |
27708 | int res3 = 0 ; | |
27709 | wxRect temp4 ; | |
27710 | int val5 ; | |
27711 | int ecode5 = 0 ; | |
27712 | PyObject * obj0 = 0 ; | |
27713 | PyObject * obj1 = 0 ; | |
27714 | PyObject * obj2 = 0 ; | |
27715 | PyObject * obj3 = 0 ; | |
27716 | PyObject * obj4 = 0 ; | |
27717 | char * kwnames[] = { | |
27718 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
27719 | }; | |
27720 | ||
27721 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
27722 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27723 | if (!SWIG_IsOK(res1)) { | |
27724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
27725 | } | |
27726 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27727 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27728 | if (!SWIG_IsOK(res2)) { | |
27729 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
27730 | } | |
27731 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27732 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
27733 | if (!SWIG_IsOK(res3)) { | |
27734 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27735 | } | |
27736 | if (!argp3) { | |
27737 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
27738 | } | |
27739 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
27740 | { | |
27741 | arg4 = &temp4; | |
27742 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
27743 | } | |
27744 | if (obj4) { | |
27745 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
27746 | if (!SWIG_IsOK(ecode5)) { | |
27747 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'"); | |
27748 | } | |
27749 | arg5 = static_cast< int >(val5); | |
27750 | } | |
27751 | { | |
27752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27753 | (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
27754 | wxPyEndAllowThreads(__tstate); | |
27755 | if (PyErr_Occurred()) SWIG_fail; | |
27756 | } | |
27757 | resultobj = SWIG_Py_Void(); | |
27758 | return resultobj; | |
27759 | fail: | |
27760 | return NULL; | |
27761 | } | |
27762 | ||
27763 | ||
27764 | SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
50efceee RD |
27765 | PyObject *resultobj = 0; |
27766 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27767 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27768 | wxDC *arg3 = 0 ; | |
27769 | wxRect *arg4 = 0 ; | |
27770 | int arg5 = (int) 0 ; | |
27771 | void *argp1 = 0 ; | |
27772 | int res1 = 0 ; | |
27773 | void *argp2 = 0 ; | |
27774 | int res2 = 0 ; | |
27775 | void *argp3 = 0 ; | |
27776 | int res3 = 0 ; | |
27777 | wxRect temp4 ; | |
27778 | int val5 ; | |
27779 | int ecode5 = 0 ; | |
27780 | PyObject * obj0 = 0 ; | |
27781 | PyObject * obj1 = 0 ; | |
27782 | PyObject * obj2 = 0 ; | |
27783 | PyObject * obj3 = 0 ; | |
27784 | PyObject * obj4 = 0 ; | |
27785 | char * kwnames[] = { | |
27786 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
27787 | }; | |
27788 | ||
01f6b6d3 | 27789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
50efceee RD |
27790 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
27791 | if (!SWIG_IsOK(res1)) { | |
01f6b6d3 | 27792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'"); |
50efceee RD |
27793 | } |
27794 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27795 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27796 | if (!SWIG_IsOK(res2)) { | |
01f6b6d3 | 27797 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'"); |
50efceee RD |
27798 | } |
27799 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27800 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
27801 | if (!SWIG_IsOK(res3)) { | |
01f6b6d3 | 27802 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
27803 | } |
27804 | if (!argp3) { | |
01f6b6d3 | 27805 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
27806 | } |
27807 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
27808 | { | |
27809 | arg4 = &temp4; | |
27810 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
27811 | } | |
27812 | if (obj4) { | |
27813 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
27814 | if (!SWIG_IsOK(ecode5)) { | |
01f6b6d3 | 27815 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'"); |
50efceee RD |
27816 | } |
27817 | arg5 = static_cast< int >(val5); | |
27818 | } | |
27819 | { | |
27820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
01f6b6d3 | 27821 | (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5); |
50efceee RD |
27822 | wxPyEndAllowThreads(__tstate); |
27823 | if (PyErr_Occurred()) SWIG_fail; | |
27824 | } | |
27825 | resultobj = SWIG_Py_Void(); | |
27826 | return resultobj; | |
27827 | fail: | |
27828 | return NULL; | |
27829 | } | |
27830 | ||
27831 | ||
0085ce49 RD |
27832 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27833 | PyObject *resultobj = 0; | |
27834 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27835 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27836 | SwigValueWrapper<wxSplitterRenderParams > result; | |
27837 | void *argp1 = 0 ; | |
27838 | int res1 = 0 ; | |
27839 | void *argp2 = 0 ; | |
27840 | int res2 = 0 ; | |
27841 | PyObject * obj0 = 0 ; | |
27842 | PyObject * obj1 = 0 ; | |
27843 | char * kwnames[] = { | |
27844 | (char *) "self",(char *) "win", NULL | |
27845 | }; | |
27846 | ||
27847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
27848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27849 | if (!SWIG_IsOK(res1)) { | |
27850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
27851 | } | |
27852 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27853 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
27854 | if (!SWIG_IsOK(res2)) { | |
27855 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
27856 | } | |
27857 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
27858 | { | |
27859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27860 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
27861 | wxPyEndAllowThreads(__tstate); | |
27862 | if (PyErr_Occurred()) SWIG_fail; | |
27863 | } | |
27864 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
27865 | return resultobj; | |
27866 | fail: | |
27867 | return NULL; | |
27868 | } | |
27869 | ||
27870 | ||
27871 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27872 | PyObject *resultobj = 0; | |
27873 | wxRendererNative *result = 0 ; | |
27874 | ||
27875 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
27876 | { | |
704eda0c | 27877 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 27878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 27879 | { |
0085ce49 RD |
27880 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
27881 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 27882 | } |
0085ce49 RD |
27883 | wxPyEndAllowThreads(__tstate); |
27884 | if (PyErr_Occurred()) SWIG_fail; | |
27885 | } | |
27886 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27887 | return resultobj; | |
27888 | fail: | |
27889 | return NULL; | |
27890 | } | |
27891 | ||
27892 | ||
27893 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27894 | PyObject *resultobj = 0; | |
27895 | wxRendererNative *result = 0 ; | |
27896 | ||
27897 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
27898 | { | |
704eda0c | 27899 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 27900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 27901 | { |
0085ce49 RD |
27902 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
27903 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 27904 | } |
0085ce49 RD |
27905 | wxPyEndAllowThreads(__tstate); |
27906 | if (PyErr_Occurred()) SWIG_fail; | |
27907 | } | |
27908 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27909 | return resultobj; | |
27910 | fail: | |
27911 | return NULL; | |
27912 | } | |
27913 | ||
27914 | ||
27915 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27916 | PyObject *resultobj = 0; | |
27917 | wxRendererNative *result = 0 ; | |
27918 | ||
27919 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
27920 | { | |
704eda0c | 27921 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 | 27922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8d38bd1d | 27923 | { |
0085ce49 RD |
27924 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
27925 | result = (wxRendererNative *) &_result_ref; | |
8d38bd1d | 27926 | } |
0085ce49 RD |
27927 | wxPyEndAllowThreads(__tstate); |
27928 | if (PyErr_Occurred()) SWIG_fail; | |
27929 | } | |
27930 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27931 | return resultobj; | |
27932 | fail: | |
27933 | return NULL; | |
27934 | } | |
27935 | ||
27936 | ||
27937 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27938 | PyObject *resultobj = 0; | |
27939 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27940 | wxRendererNative *result = 0 ; | |
27941 | void *argp1 = 0 ; | |
27942 | int res1 = 0 ; | |
27943 | PyObject * obj0 = 0 ; | |
27944 | char * kwnames[] = { | |
27945 | (char *) "renderer", NULL | |
27946 | }; | |
27947 | ||
27948 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
27949 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27950 | if (!SWIG_IsOK(res1)) { | |
27951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
27952 | } | |
27953 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27954 | { | |
704eda0c | 27955 | if (!wxPyCheckForApp()) SWIG_fail; |
0085ce49 RD |
27956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27957 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
27958 | wxPyEndAllowThreads(__tstate); | |
27959 | if (PyErr_Occurred()) SWIG_fail; | |
27960 | } | |
27961 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27962 | return resultobj; | |
27963 | fail: | |
27964 | return NULL; | |
27965 | } | |
27966 | ||
27967 | ||
27968 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27969 | PyObject *resultobj = 0; | |
27970 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
27971 | SwigValueWrapper<wxRendererVersion > result; | |
27972 | void *argp1 = 0 ; | |
27973 | int res1 = 0 ; | |
27974 | PyObject *swig_obj[1] ; | |
27975 | ||
27976 | if (!args) SWIG_fail; | |
27977 | swig_obj[0] = args; | |
27978 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
27979 | if (!SWIG_IsOK(res1)) { | |
27980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
27981 | } | |
27982 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
27983 | { | |
27984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27985 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
27986 | wxPyEndAllowThreads(__tstate); | |
27987 | if (PyErr_Occurred()) SWIG_fail; | |
27988 | } | |
27989 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
27990 | return resultobj; | |
27991 | fail: | |
27992 | return NULL; | |
27993 | } | |
27994 | ||
27995 | ||
27996 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27997 | PyObject *obj; | |
27998 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27999 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
28000 | return SWIG_Py_Void(); | |
28001 | } | |
28002 | ||
27e45892 RD |
28003 | SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28004 | PyObject *resultobj = 0; | |
28005 | wxPseudoDC *result = 0 ; | |
28006 | ||
28007 | if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail; | |
28008 | { | |
28009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28010 | result = (wxPseudoDC *)new wxPseudoDC(); | |
28011 | wxPyEndAllowThreads(__tstate); | |
28012 | if (PyErr_Occurred()) SWIG_fail; | |
28013 | } | |
28014 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 ); | |
28015 | return resultobj; | |
28016 | fail: | |
28017 | return NULL; | |
28018 | } | |
28019 | ||
28020 | ||
28021 | SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28022 | PyObject *resultobj = 0; | |
28023 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28024 | void *argp1 = 0 ; | |
28025 | int res1 = 0 ; | |
28026 | PyObject *swig_obj[1] ; | |
28027 | ||
28028 | if (!args) SWIG_fail; | |
28029 | swig_obj[0] = args; | |
28030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28031 | if (!SWIG_IsOK(res1)) { | |
28032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28033 | } | |
28034 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28035 | { | |
28036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28037 | (arg1)->BeginDrawing(); | |
28038 | wxPyEndAllowThreads(__tstate); | |
28039 | if (PyErr_Occurred()) SWIG_fail; | |
28040 | } | |
28041 | resultobj = SWIG_Py_Void(); | |
28042 | return resultobj; | |
28043 | fail: | |
28044 | return NULL; | |
28045 | } | |
28046 | ||
28047 | ||
28048 | SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28049 | PyObject *resultobj = 0; | |
28050 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28051 | void *argp1 = 0 ; | |
28052 | int res1 = 0 ; | |
28053 | PyObject *swig_obj[1] ; | |
28054 | ||
28055 | if (!args) SWIG_fail; | |
28056 | swig_obj[0] = args; | |
28057 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28058 | if (!SWIG_IsOK(res1)) { | |
28059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28060 | } | |
28061 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28062 | { | |
28063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28064 | (arg1)->EndDrawing(); | |
28065 | wxPyEndAllowThreads(__tstate); | |
28066 | if (PyErr_Occurred()) SWIG_fail; | |
28067 | } | |
28068 | resultobj = SWIG_Py_Void(); | |
28069 | return resultobj; | |
28070 | fail: | |
28071 | return NULL; | |
28072 | } | |
28073 | ||
28074 | ||
28075 | SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28076 | PyObject *resultobj = 0; | |
28077 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28078 | void *argp1 = 0 ; | |
28079 | int res1 = 0 ; | |
28080 | PyObject *swig_obj[1] ; | |
28081 | ||
28082 | if (!args) SWIG_fail; | |
28083 | swig_obj[0] = args; | |
28084 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 ); | |
28085 | if (!SWIG_IsOK(res1)) { | |
28086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28087 | } | |
28088 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28089 | { | |
28090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28091 | delete arg1; | |
28092 | ||
28093 | wxPyEndAllowThreads(__tstate); | |
28094 | if (PyErr_Occurred()) SWIG_fail; | |
28095 | } | |
28096 | resultobj = SWIG_Py_Void(); | |
28097 | return resultobj; | |
28098 | fail: | |
28099 | return NULL; | |
28100 | } | |
28101 | ||
28102 | ||
28103 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28104 | PyObject *resultobj = 0; | |
28105 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28106 | void *argp1 = 0 ; | |
28107 | int res1 = 0 ; | |
28108 | PyObject *swig_obj[1] ; | |
28109 | ||
28110 | if (!args) SWIG_fail; | |
28111 | swig_obj[0] = args; | |
28112 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28113 | if (!SWIG_IsOK(res1)) { | |
28114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28115 | } | |
28116 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28117 | { | |
28118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28119 | (arg1)->RemoveAll(); | |
28120 | wxPyEndAllowThreads(__tstate); | |
28121 | if (PyErr_Occurred()) SWIG_fail; | |
28122 | } | |
28123 | resultobj = SWIG_Py_Void(); | |
28124 | return resultobj; | |
28125 | fail: | |
28126 | return NULL; | |
28127 | } | |
28128 | ||
28129 | ||
28130 | SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28131 | PyObject *resultobj = 0; | |
28132 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28133 | int result; | |
28134 | void *argp1 = 0 ; | |
28135 | int res1 = 0 ; | |
28136 | PyObject *swig_obj[1] ; | |
28137 | ||
28138 | if (!args) SWIG_fail; | |
28139 | swig_obj[0] = args; | |
28140 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28141 | if (!SWIG_IsOK(res1)) { | |
28142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28143 | } | |
28144 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28145 | { | |
28146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28147 | result = (int)(arg1)->GetLen(); | |
28148 | wxPyEndAllowThreads(__tstate); | |
28149 | if (PyErr_Occurred()) SWIG_fail; | |
28150 | } | |
28151 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28152 | return resultobj; | |
28153 | fail: | |
28154 | return NULL; | |
28155 | } | |
28156 | ||
28157 | ||
28158 | SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28159 | PyObject *resultobj = 0; | |
28160 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28161 | int arg2 ; | |
28162 | void *argp1 = 0 ; | |
28163 | int res1 = 0 ; | |
28164 | int val2 ; | |
28165 | int ecode2 = 0 ; | |
28166 | PyObject * obj0 = 0 ; | |
28167 | PyObject * obj1 = 0 ; | |
28168 | char * kwnames[] = { | |
28169 | (char *) "self",(char *) "id", NULL | |
28170 | }; | |
28171 | ||
28172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
28173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28174 | if (!SWIG_IsOK(res1)) { | |
28175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28176 | } | |
28177 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28178 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28179 | if (!SWIG_IsOK(ecode2)) { | |
28180 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'"); | |
28181 | } | |
28182 | arg2 = static_cast< int >(val2); | |
28183 | { | |
28184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28185 | (arg1)->SetId(arg2); | |
28186 | wxPyEndAllowThreads(__tstate); | |
28187 | if (PyErr_Occurred()) SWIG_fail; | |
28188 | } | |
28189 | resultobj = SWIG_Py_Void(); | |
28190 | return resultobj; | |
28191 | fail: | |
28192 | return NULL; | |
28193 | } | |
28194 | ||
28195 | ||
28196 | SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28197 | PyObject *resultobj = 0; | |
28198 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28199 | int arg2 ; | |
28200 | void *argp1 = 0 ; | |
28201 | int res1 = 0 ; | |
28202 | int val2 ; | |
28203 | int ecode2 = 0 ; | |
28204 | PyObject * obj0 = 0 ; | |
28205 | PyObject * obj1 = 0 ; | |
28206 | char * kwnames[] = { | |
28207 | (char *) "self",(char *) "id", NULL | |
28208 | }; | |
28209 | ||
28210 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail; | |
28211 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28212 | if (!SWIG_IsOK(res1)) { | |
28213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28214 | } | |
28215 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28216 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28217 | if (!SWIG_IsOK(ecode2)) { | |
28218 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'"); | |
28219 | } | |
28220 | arg2 = static_cast< int >(val2); | |
28221 | { | |
28222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28223 | (arg1)->ClearId(arg2); | |
28224 | wxPyEndAllowThreads(__tstate); | |
28225 | if (PyErr_Occurred()) SWIG_fail; | |
28226 | } | |
28227 | resultobj = SWIG_Py_Void(); | |
28228 | return resultobj; | |
28229 | fail: | |
28230 | return NULL; | |
28231 | } | |
28232 | ||
28233 | ||
28234 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28235 | PyObject *resultobj = 0; | |
28236 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28237 | int arg2 ; | |
28238 | void *argp1 = 0 ; | |
28239 | int res1 = 0 ; | |
28240 | int val2 ; | |
28241 | int ecode2 = 0 ; | |
28242 | PyObject * obj0 = 0 ; | |
28243 | PyObject * obj1 = 0 ; | |
28244 | char * kwnames[] = { | |
28245 | (char *) "self",(char *) "id", NULL | |
28246 | }; | |
28247 | ||
28248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail; | |
28249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28250 | if (!SWIG_IsOK(res1)) { | |
28251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28252 | } | |
28253 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28254 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28255 | if (!SWIG_IsOK(ecode2)) { | |
28256 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'"); | |
28257 | } | |
28258 | arg2 = static_cast< int >(val2); | |
28259 | { | |
28260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28261 | (arg1)->RemoveId(arg2); | |
28262 | wxPyEndAllowThreads(__tstate); | |
28263 | if (PyErr_Occurred()) SWIG_fail; | |
28264 | } | |
28265 | resultobj = SWIG_Py_Void(); | |
28266 | return resultobj; | |
28267 | fail: | |
28268 | return NULL; | |
28269 | } | |
28270 | ||
28271 | ||
28272 | SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28273 | PyObject *resultobj = 0; | |
28274 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28275 | int arg2 ; | |
28276 | int arg3 ; | |
28277 | int arg4 ; | |
28278 | void *argp1 = 0 ; | |
28279 | int res1 = 0 ; | |
28280 | int val2 ; | |
28281 | int ecode2 = 0 ; | |
28282 | int val3 ; | |
28283 | int ecode3 = 0 ; | |
28284 | int val4 ; | |
28285 | int ecode4 = 0 ; | |
28286 | PyObject * obj0 = 0 ; | |
28287 | PyObject * obj1 = 0 ; | |
28288 | PyObject * obj2 = 0 ; | |
28289 | PyObject * obj3 = 0 ; | |
28290 | char * kwnames[] = { | |
28291 | (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL | |
28292 | }; | |
28293 | ||
28294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
28295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28296 | if (!SWIG_IsOK(res1)) { | |
28297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28298 | } | |
28299 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28300 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28301 | if (!SWIG_IsOK(ecode2)) { | |
28302 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'"); | |
28303 | } | |
28304 | arg2 = static_cast< int >(val2); | |
28305 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28306 | if (!SWIG_IsOK(ecode3)) { | |
28307 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'"); | |
28308 | } | |
28309 | arg3 = static_cast< int >(val3); | |
28310 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
28311 | if (!SWIG_IsOK(ecode4)) { | |
28312 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'"); | |
28313 | } | |
28314 | arg4 = static_cast< int >(val4); | |
28315 | { | |
28316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28317 | (arg1)->TranslateId(arg2,arg3,arg4); | |
28318 | wxPyEndAllowThreads(__tstate); | |
28319 | if (PyErr_Occurred()) SWIG_fail; | |
28320 | } | |
28321 | resultobj = SWIG_Py_Void(); | |
28322 | return resultobj; | |
28323 | fail: | |
28324 | return NULL; | |
28325 | } | |
28326 | ||
28327 | ||
28328 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28329 | PyObject *resultobj = 0; | |
28330 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28331 | int arg2 ; | |
28332 | wxDC *arg3 = (wxDC *) 0 ; | |
28333 | void *argp1 = 0 ; | |
28334 | int res1 = 0 ; | |
28335 | int val2 ; | |
28336 | int ecode2 = 0 ; | |
28337 | void *argp3 = 0 ; | |
28338 | int res3 = 0 ; | |
28339 | PyObject * obj0 = 0 ; | |
28340 | PyObject * obj1 = 0 ; | |
28341 | PyObject * obj2 = 0 ; | |
28342 | char * kwnames[] = { | |
28343 | (char *) "self",(char *) "id",(char *) "dc", NULL | |
28344 | }; | |
28345 | ||
28346 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28347 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28348 | if (!SWIG_IsOK(res1)) { | |
28349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28350 | } | |
28351 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28352 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28353 | if (!SWIG_IsOK(ecode2)) { | |
28354 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'"); | |
28355 | } | |
28356 | arg2 = static_cast< int >(val2); | |
28357 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 ); | |
28358 | if (!SWIG_IsOK(res3)) { | |
28359 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'"); | |
28360 | } | |
28361 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
28362 | { | |
28363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28364 | (arg1)->DrawIdToDC(arg2,arg3); | |
28365 | wxPyEndAllowThreads(__tstate); | |
28366 | if (PyErr_Occurred()) SWIG_fail; | |
28367 | } | |
28368 | resultobj = SWIG_Py_Void(); | |
28369 | return resultobj; | |
28370 | fail: | |
28371 | return NULL; | |
28372 | } | |
28373 | ||
28374 | ||
28375 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28376 | PyObject *resultobj = 0; | |
28377 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28378 | int arg2 ; | |
28379 | wxRect *arg3 = 0 ; | |
28380 | void *argp1 = 0 ; | |
28381 | int res1 = 0 ; | |
28382 | int val2 ; | |
28383 | int ecode2 = 0 ; | |
28384 | wxRect temp3 ; | |
28385 | PyObject * obj0 = 0 ; | |
28386 | PyObject * obj1 = 0 ; | |
28387 | PyObject * obj2 = 0 ; | |
28388 | char * kwnames[] = { | |
28389 | (char *) "self",(char *) "id",(char *) "rect", NULL | |
28390 | }; | |
28391 | ||
28392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28394 | if (!SWIG_IsOK(res1)) { | |
28395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28396 | } | |
28397 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28398 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28399 | if (!SWIG_IsOK(ecode2)) { | |
28400 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
28401 | } | |
28402 | arg2 = static_cast< int >(val2); | |
28403 | { | |
28404 | arg3 = &temp3; | |
28405 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
28406 | } | |
28407 | { | |
28408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28409 | (arg1)->SetIdBounds(arg2,*arg3); | |
28410 | wxPyEndAllowThreads(__tstate); | |
28411 | if (PyErr_Occurred()) SWIG_fail; | |
28412 | } | |
28413 | resultobj = SWIG_Py_Void(); | |
28414 | return resultobj; | |
28415 | fail: | |
28416 | return NULL; | |
28417 | } | |
28418 | ||
28419 | ||
28420 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28421 | PyObject *resultobj = 0; | |
28422 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28423 | int arg2 ; | |
28424 | wxRect result; | |
28425 | void *argp1 = 0 ; | |
28426 | int res1 = 0 ; | |
28427 | int val2 ; | |
28428 | int ecode2 = 0 ; | |
28429 | PyObject * obj0 = 0 ; | |
28430 | PyObject * obj1 = 0 ; | |
28431 | char * kwnames[] = { | |
28432 | (char *) "self",(char *) "id", NULL | |
28433 | }; | |
28434 | ||
28435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail; | |
28436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28437 | if (!SWIG_IsOK(res1)) { | |
28438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28439 | } | |
28440 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28441 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28442 | if (!SWIG_IsOK(ecode2)) { | |
28443 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
28444 | } | |
28445 | arg2 = static_cast< int >(val2); | |
28446 | { | |
28447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28448 | result = wxPseudoDC_GetIdBounds(arg1,arg2); | |
28449 | wxPyEndAllowThreads(__tstate); | |
28450 | if (PyErr_Occurred()) SWIG_fail; | |
28451 | } | |
28452 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
28453 | return resultobj; | |
28454 | fail: | |
28455 | return NULL; | |
28456 | } | |
28457 | ||
28458 | ||
28459 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28460 | PyObject *resultobj = 0; | |
28461 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28462 | wxDC *arg2 = (wxDC *) 0 ; | |
28463 | wxRect *arg3 = 0 ; | |
28464 | void *argp1 = 0 ; | |
28465 | int res1 = 0 ; | |
28466 | void *argp2 = 0 ; | |
28467 | int res2 = 0 ; | |
28468 | wxRect temp3 ; | |
28469 | PyObject * obj0 = 0 ; | |
28470 | PyObject * obj1 = 0 ; | |
28471 | PyObject * obj2 = 0 ; | |
28472 | char * kwnames[] = { | |
28473 | (char *) "self",(char *) "dc",(char *) "rect", NULL | |
28474 | }; | |
28475 | ||
28476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28478 | if (!SWIG_IsOK(res1)) { | |
28479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28480 | } | |
28481 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28482 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
28483 | if (!SWIG_IsOK(res2)) { | |
28484 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'"); | |
28485 | } | |
28486 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
28487 | { | |
28488 | arg3 = &temp3; | |
28489 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
28490 | } | |
28491 | { | |
28492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28493 | (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3); | |
28494 | wxPyEndAllowThreads(__tstate); | |
28495 | if (PyErr_Occurred()) SWIG_fail; | |
28496 | } | |
28497 | resultobj = SWIG_Py_Void(); | |
28498 | return resultobj; | |
28499 | fail: | |
28500 | return NULL; | |
28501 | } | |
28502 | ||
28503 | ||
28504 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28505 | PyObject *resultobj = 0; | |
28506 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28507 | wxDC *arg2 = (wxDC *) 0 ; | |
28508 | wxRegion *arg3 = 0 ; | |
28509 | void *argp1 = 0 ; | |
28510 | int res1 = 0 ; | |
28511 | void *argp2 = 0 ; | |
28512 | int res2 = 0 ; | |
28513 | void *argp3 = 0 ; | |
28514 | int res3 = 0 ; | |
28515 | PyObject * obj0 = 0 ; | |
28516 | PyObject * obj1 = 0 ; | |
28517 | PyObject * obj2 = 0 ; | |
28518 | char * kwnames[] = { | |
28519 | (char *) "self",(char *) "dc",(char *) "region", NULL | |
28520 | }; | |
28521 | ||
28522 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28523 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28524 | if (!SWIG_IsOK(res1)) { | |
28525 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28526 | } | |
28527 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28528 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
28529 | if (!SWIG_IsOK(res2)) { | |
28530 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'"); | |
28531 | } | |
28532 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
28533 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0); | |
28534 | if (!SWIG_IsOK(res3)) { | |
28535 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
28536 | } | |
28537 | if (!argp3) { | |
28538 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
28539 | } | |
28540 | arg3 = reinterpret_cast< wxRegion * >(argp3); | |
28541 | { | |
28542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28543 | (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3); | |
28544 | wxPyEndAllowThreads(__tstate); | |
28545 | if (PyErr_Occurred()) SWIG_fail; | |
28546 | } | |
28547 | resultobj = SWIG_Py_Void(); | |
28548 | return resultobj; | |
28549 | fail: | |
28550 | return NULL; | |
28551 | } | |
28552 | ||
28553 | ||
28554 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28555 | PyObject *resultobj = 0; | |
28556 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28557 | wxDC *arg2 = (wxDC *) 0 ; | |
28558 | void *argp1 = 0 ; | |
28559 | int res1 = 0 ; | |
28560 | void *argp2 = 0 ; | |
28561 | int res2 = 0 ; | |
28562 | PyObject * obj0 = 0 ; | |
28563 | PyObject * obj1 = 0 ; | |
28564 | char * kwnames[] = { | |
28565 | (char *) "self",(char *) "dc", NULL | |
28566 | }; | |
28567 | ||
28568 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
28569 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28570 | if (!SWIG_IsOK(res1)) { | |
28571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28572 | } | |
28573 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28574 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
28575 | if (!SWIG_IsOK(res2)) { | |
28576 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
28577 | } | |
28578 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
28579 | { | |
28580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28581 | (arg1)->DrawToDC(arg2); | |
28582 | wxPyEndAllowThreads(__tstate); | |
28583 | if (PyErr_Occurred()) SWIG_fail; | |
28584 | } | |
28585 | resultobj = SWIG_Py_Void(); | |
28586 | return resultobj; | |
28587 | fail: | |
28588 | return NULL; | |
28589 | } | |
28590 | ||
28591 | ||
28592 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28593 | PyObject *resultobj = 0; | |
28594 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28595 | int arg2 ; | |
28596 | int arg3 ; | |
28597 | wxColour *arg4 = 0 ; | |
28598 | int arg5 = (int) wxFLOOD_SURFACE ; | |
28599 | void *argp1 = 0 ; | |
28600 | int res1 = 0 ; | |
28601 | int val2 ; | |
28602 | int ecode2 = 0 ; | |
28603 | int val3 ; | |
28604 | int ecode3 = 0 ; | |
28605 | wxColour temp4 ; | |
28606 | int val5 ; | |
28607 | int ecode5 = 0 ; | |
28608 | PyObject * obj0 = 0 ; | |
28609 | PyObject * obj1 = 0 ; | |
28610 | PyObject * obj2 = 0 ; | |
28611 | PyObject * obj3 = 0 ; | |
28612 | PyObject * obj4 = 0 ; | |
28613 | char * kwnames[] = { | |
28614 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
28615 | }; | |
28616 | ||
28617 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
28618 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28619 | if (!SWIG_IsOK(res1)) { | |
28620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28621 | } | |
28622 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28623 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28624 | if (!SWIG_IsOK(ecode2)) { | |
28625 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
28626 | } | |
28627 | arg2 = static_cast< int >(val2); | |
28628 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28629 | if (!SWIG_IsOK(ecode3)) { | |
28630 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
28631 | } | |
28632 | arg3 = static_cast< int >(val3); | |
28633 | { | |
28634 | arg4 = &temp4; | |
28635 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
28636 | } | |
28637 | if (obj4) { | |
28638 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
28639 | if (!SWIG_IsOK(ecode5)) { | |
28640 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
28641 | } | |
28642 | arg5 = static_cast< int >(val5); | |
28643 | } | |
28644 | { | |
28645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28646 | (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
28647 | wxPyEndAllowThreads(__tstate); | |
28648 | if (PyErr_Occurred()) SWIG_fail; | |
28649 | } | |
28650 | resultobj = SWIG_Py_Void(); | |
28651 | return resultobj; | |
28652 | fail: | |
28653 | return NULL; | |
28654 | } | |
28655 | ||
28656 | ||
28657 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28658 | PyObject *resultobj = 0; | |
28659 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28660 | wxPoint *arg2 = 0 ; | |
28661 | wxColour *arg3 = 0 ; | |
28662 | int arg4 = (int) wxFLOOD_SURFACE ; | |
28663 | void *argp1 = 0 ; | |
28664 | int res1 = 0 ; | |
28665 | wxPoint temp2 ; | |
28666 | wxColour temp3 ; | |
28667 | int val4 ; | |
28668 | int ecode4 = 0 ; | |
28669 | PyObject * obj0 = 0 ; | |
28670 | PyObject * obj1 = 0 ; | |
28671 | PyObject * obj2 = 0 ; | |
28672 | PyObject * obj3 = 0 ; | |
28673 | char * kwnames[] = { | |
28674 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
28675 | }; | |
28676 | ||
28677 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
28678 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28679 | if (!SWIG_IsOK(res1)) { | |
28680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28681 | } | |
28682 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28683 | { | |
28684 | arg2 = &temp2; | |
28685 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28686 | } | |
28687 | { | |
28688 | arg3 = &temp3; | |
28689 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
28690 | } | |
28691 | if (obj3) { | |
28692 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
28693 | if (!SWIG_IsOK(ecode4)) { | |
28694 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
28695 | } | |
28696 | arg4 = static_cast< int >(val4); | |
28697 | } | |
28698 | { | |
28699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28700 | (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
28701 | wxPyEndAllowThreads(__tstate); | |
28702 | if (PyErr_Occurred()) SWIG_fail; | |
28703 | } | |
28704 | resultobj = SWIG_Py_Void(); | |
28705 | return resultobj; | |
28706 | fail: | |
28707 | return NULL; | |
28708 | } | |
28709 | ||
28710 | ||
28711 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28712 | PyObject *resultobj = 0; | |
28713 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28714 | int arg2 ; | |
28715 | int arg3 ; | |
28716 | int arg4 ; | |
28717 | int arg5 ; | |
28718 | void *argp1 = 0 ; | |
28719 | int res1 = 0 ; | |
28720 | int val2 ; | |
28721 | int ecode2 = 0 ; | |
28722 | int val3 ; | |
28723 | int ecode3 = 0 ; | |
28724 | int val4 ; | |
28725 | int ecode4 = 0 ; | |
28726 | int val5 ; | |
28727 | int ecode5 = 0 ; | |
28728 | PyObject * obj0 = 0 ; | |
28729 | PyObject * obj1 = 0 ; | |
28730 | PyObject * obj2 = 0 ; | |
28731 | PyObject * obj3 = 0 ; | |
28732 | PyObject * obj4 = 0 ; | |
28733 | char * kwnames[] = { | |
28734 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
28735 | }; | |
28736 | ||
28737 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
28738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28739 | if (!SWIG_IsOK(res1)) { | |
28740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28741 | } | |
28742 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28743 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28744 | if (!SWIG_IsOK(ecode2)) { | |
28745 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
28746 | } | |
28747 | arg2 = static_cast< int >(val2); | |
28748 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28749 | if (!SWIG_IsOK(ecode3)) { | |
28750 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
28751 | } | |
28752 | arg3 = static_cast< int >(val3); | |
28753 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
28754 | if (!SWIG_IsOK(ecode4)) { | |
28755 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
28756 | } | |
28757 | arg4 = static_cast< int >(val4); | |
28758 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
28759 | if (!SWIG_IsOK(ecode5)) { | |
28760 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
28761 | } | |
28762 | arg5 = static_cast< int >(val5); | |
28763 | { | |
28764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28765 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
28766 | wxPyEndAllowThreads(__tstate); | |
28767 | if (PyErr_Occurred()) SWIG_fail; | |
28768 | } | |
28769 | resultobj = SWIG_Py_Void(); | |
28770 | return resultobj; | |
28771 | fail: | |
28772 | return NULL; | |
28773 | } | |
28774 | ||
28775 | ||
28776 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28777 | PyObject *resultobj = 0; | |
28778 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28779 | wxPoint *arg2 = 0 ; | |
28780 | wxPoint *arg3 = 0 ; | |
28781 | void *argp1 = 0 ; | |
28782 | int res1 = 0 ; | |
28783 | wxPoint temp2 ; | |
28784 | wxPoint temp3 ; | |
28785 | PyObject * obj0 = 0 ; | |
28786 | PyObject * obj1 = 0 ; | |
28787 | PyObject * obj2 = 0 ; | |
28788 | char * kwnames[] = { | |
28789 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
28790 | }; | |
28791 | ||
28792 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28793 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28794 | if (!SWIG_IsOK(res1)) { | |
28795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28796 | } | |
28797 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28798 | { | |
28799 | arg2 = &temp2; | |
28800 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28801 | } | |
28802 | { | |
28803 | arg3 = &temp3; | |
28804 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28805 | } | |
28806 | { | |
28807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28808 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
28809 | wxPyEndAllowThreads(__tstate); | |
28810 | if (PyErr_Occurred()) SWIG_fail; | |
28811 | } | |
28812 | resultobj = SWIG_Py_Void(); | |
28813 | return resultobj; | |
28814 | fail: | |
28815 | return NULL; | |
28816 | } | |
28817 | ||
28818 | ||
28819 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28820 | PyObject *resultobj = 0; | |
28821 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28822 | int arg2 ; | |
28823 | int arg3 ; | |
28824 | void *argp1 = 0 ; | |
28825 | int res1 = 0 ; | |
28826 | int val2 ; | |
28827 | int ecode2 = 0 ; | |
28828 | int val3 ; | |
28829 | int ecode3 = 0 ; | |
28830 | PyObject * obj0 = 0 ; | |
28831 | PyObject * obj1 = 0 ; | |
28832 | PyObject * obj2 = 0 ; | |
28833 | char * kwnames[] = { | |
28834 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28835 | }; | |
28836 | ||
28837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28839 | if (!SWIG_IsOK(res1)) { | |
28840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28841 | } | |
28842 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28843 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28844 | if (!SWIG_IsOK(ecode2)) { | |
28845 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
28846 | } | |
28847 | arg2 = static_cast< int >(val2); | |
28848 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28849 | if (!SWIG_IsOK(ecode3)) { | |
28850 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
28851 | } | |
28852 | arg3 = static_cast< int >(val3); | |
28853 | { | |
28854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28855 | (arg1)->CrossHair(arg2,arg3); | |
28856 | wxPyEndAllowThreads(__tstate); | |
28857 | if (PyErr_Occurred()) SWIG_fail; | |
28858 | } | |
28859 | resultobj = SWIG_Py_Void(); | |
28860 | return resultobj; | |
28861 | fail: | |
28862 | return NULL; | |
28863 | } | |
28864 | ||
28865 | ||
28866 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28867 | PyObject *resultobj = 0; | |
28868 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28869 | wxPoint *arg2 = 0 ; | |
28870 | void *argp1 = 0 ; | |
28871 | int res1 = 0 ; | |
28872 | wxPoint temp2 ; | |
28873 | PyObject * obj0 = 0 ; | |
28874 | PyObject * obj1 = 0 ; | |
28875 | char * kwnames[] = { | |
28876 | (char *) "self",(char *) "pt", NULL | |
28877 | }; | |
28878 | ||
28879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
28880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28881 | if (!SWIG_IsOK(res1)) { | |
28882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28883 | } | |
28884 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28885 | { | |
28886 | arg2 = &temp2; | |
28887 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28888 | } | |
28889 | { | |
28890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28891 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
28892 | wxPyEndAllowThreads(__tstate); | |
28893 | if (PyErr_Occurred()) SWIG_fail; | |
28894 | } | |
28895 | resultobj = SWIG_Py_Void(); | |
28896 | return resultobj; | |
28897 | fail: | |
28898 | return NULL; | |
28899 | } | |
28900 | ||
28901 | ||
28902 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28903 | PyObject *resultobj = 0; | |
28904 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28905 | int arg2 ; | |
28906 | int arg3 ; | |
28907 | int arg4 ; | |
28908 | int arg5 ; | |
28909 | int arg6 ; | |
28910 | int arg7 ; | |
28911 | void *argp1 = 0 ; | |
28912 | int res1 = 0 ; | |
28913 | int val2 ; | |
28914 | int ecode2 = 0 ; | |
28915 | int val3 ; | |
28916 | int ecode3 = 0 ; | |
28917 | int val4 ; | |
28918 | int ecode4 = 0 ; | |
28919 | int val5 ; | |
28920 | int ecode5 = 0 ; | |
28921 | int val6 ; | |
28922 | int ecode6 = 0 ; | |
28923 | int val7 ; | |
28924 | int ecode7 = 0 ; | |
28925 | PyObject * obj0 = 0 ; | |
28926 | PyObject * obj1 = 0 ; | |
28927 | PyObject * obj2 = 0 ; | |
28928 | PyObject * obj3 = 0 ; | |
28929 | PyObject * obj4 = 0 ; | |
28930 | PyObject * obj5 = 0 ; | |
28931 | PyObject * obj6 = 0 ; | |
28932 | char * kwnames[] = { | |
28933 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
28934 | }; | |
28935 | ||
28936 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28937 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
28938 | if (!SWIG_IsOK(res1)) { | |
28939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
28940 | } | |
28941 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
28942 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28943 | if (!SWIG_IsOK(ecode2)) { | |
28944 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
28945 | } | |
28946 | arg2 = static_cast< int >(val2); | |
28947 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28948 | if (!SWIG_IsOK(ecode3)) { | |
28949 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
28950 | } | |
28951 | arg3 = static_cast< int >(val3); | |
28952 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
28953 | if (!SWIG_IsOK(ecode4)) { | |
28954 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
28955 | } | |
28956 | arg4 = static_cast< int >(val4); | |
28957 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
28958 | if (!SWIG_IsOK(ecode5)) { | |
28959 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
28960 | } | |
28961 | arg5 = static_cast< int >(val5); | |
28962 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
28963 | if (!SWIG_IsOK(ecode6)) { | |
28964 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
28965 | } | |
28966 | arg6 = static_cast< int >(val6); | |
28967 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
28968 | if (!SWIG_IsOK(ecode7)) { | |
28969 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
28970 | } | |
28971 | arg7 = static_cast< int >(val7); | |
28972 | { | |
28973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28974 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
28975 | wxPyEndAllowThreads(__tstate); | |
28976 | if (PyErr_Occurred()) SWIG_fail; | |
28977 | } | |
28978 | resultobj = SWIG_Py_Void(); | |
28979 | return resultobj; | |
28980 | fail: | |
28981 | return NULL; | |
28982 | } | |
28983 | ||
28984 | ||
28985 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28986 | PyObject *resultobj = 0; | |
28987 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
28988 | wxPoint *arg2 = 0 ; | |
28989 | wxPoint *arg3 = 0 ; | |
28990 | wxPoint *arg4 = 0 ; | |
28991 | void *argp1 = 0 ; | |
28992 | int res1 = 0 ; | |
28993 | wxPoint temp2 ; | |
28994 | wxPoint temp3 ; | |
28995 | wxPoint temp4 ; | |
28996 | PyObject * obj0 = 0 ; | |
28997 | PyObject * obj1 = 0 ; | |
28998 | PyObject * obj2 = 0 ; | |
28999 | PyObject * obj3 = 0 ; | |
29000 | char * kwnames[] = { | |
29001 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
29002 | }; | |
29003 | ||
29004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29006 | if (!SWIG_IsOK(res1)) { | |
29007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29008 | } | |
29009 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29010 | { | |
29011 | arg2 = &temp2; | |
29012 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29013 | } | |
29014 | { | |
29015 | arg3 = &temp3; | |
29016 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29017 | } | |
29018 | { | |
29019 | arg4 = &temp4; | |
29020 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
29021 | } | |
29022 | { | |
29023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29024 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
29025 | wxPyEndAllowThreads(__tstate); | |
29026 | if (PyErr_Occurred()) SWIG_fail; | |
29027 | } | |
29028 | resultobj = SWIG_Py_Void(); | |
29029 | return resultobj; | |
29030 | fail: | |
29031 | return NULL; | |
29032 | } | |
29033 | ||
29034 | ||
29035 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29036 | PyObject *resultobj = 0; | |
29037 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29038 | int arg2 ; | |
29039 | int arg3 ; | |
29040 | int arg4 ; | |
29041 | int arg5 ; | |
29042 | void *argp1 = 0 ; | |
29043 | int res1 = 0 ; | |
29044 | int val2 ; | |
29045 | int ecode2 = 0 ; | |
29046 | int val3 ; | |
29047 | int ecode3 = 0 ; | |
29048 | int val4 ; | |
29049 | int ecode4 = 0 ; | |
29050 | int val5 ; | |
29051 | int ecode5 = 0 ; | |
29052 | PyObject * obj0 = 0 ; | |
29053 | PyObject * obj1 = 0 ; | |
29054 | PyObject * obj2 = 0 ; | |
29055 | PyObject * obj3 = 0 ; | |
29056 | PyObject * obj4 = 0 ; | |
29057 | char * kwnames[] = { | |
29058 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
29059 | }; | |
29060 | ||
29061 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29062 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29063 | if (!SWIG_IsOK(res1)) { | |
29064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29065 | } | |
29066 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29067 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29068 | if (!SWIG_IsOK(ecode2)) { | |
29069 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
29070 | } | |
29071 | arg2 = static_cast< int >(val2); | |
29072 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29073 | if (!SWIG_IsOK(ecode3)) { | |
29074 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
29075 | } | |
29076 | arg3 = static_cast< int >(val3); | |
29077 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29078 | if (!SWIG_IsOK(ecode4)) { | |
29079 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
29080 | } | |
29081 | arg4 = static_cast< int >(val4); | |
29082 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
29083 | if (!SWIG_IsOK(ecode5)) { | |
29084 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
29085 | } | |
29086 | arg5 = static_cast< int >(val5); | |
29087 | { | |
29088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29089 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
29090 | wxPyEndAllowThreads(__tstate); | |
29091 | if (PyErr_Occurred()) SWIG_fail; | |
29092 | } | |
29093 | resultobj = SWIG_Py_Void(); | |
29094 | return resultobj; | |
29095 | fail: | |
29096 | return NULL; | |
29097 | } | |
29098 | ||
29099 | ||
29100 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29101 | PyObject *resultobj = 0; | |
29102 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29103 | wxRect *arg2 = 0 ; | |
29104 | void *argp1 = 0 ; | |
29105 | int res1 = 0 ; | |
29106 | wxRect temp2 ; | |
29107 | PyObject * obj0 = 0 ; | |
29108 | PyObject * obj1 = 0 ; | |
29109 | char * kwnames[] = { | |
29110 | (char *) "self",(char *) "rect", NULL | |
29111 | }; | |
29112 | ||
29113 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
29114 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29115 | if (!SWIG_IsOK(res1)) { | |
29116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29117 | } | |
29118 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29119 | { | |
29120 | arg2 = &temp2; | |
29121 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
29122 | } | |
29123 | { | |
29124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29125 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
29126 | wxPyEndAllowThreads(__tstate); | |
29127 | if (PyErr_Occurred()) SWIG_fail; | |
29128 | } | |
29129 | resultobj = SWIG_Py_Void(); | |
29130 | return resultobj; | |
29131 | fail: | |
29132 | return NULL; | |
29133 | } | |
29134 | ||
29135 | ||
29136 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29137 | PyObject *resultobj = 0; | |
29138 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29139 | int arg2 ; | |
29140 | int arg3 ; | |
29141 | int arg4 ; | |
29142 | int arg5 ; | |
29143 | double arg6 ; | |
29144 | double arg7 ; | |
29145 | void *argp1 = 0 ; | |
29146 | int res1 = 0 ; | |
29147 | int val2 ; | |
29148 | int ecode2 = 0 ; | |
29149 | int val3 ; | |
29150 | int ecode3 = 0 ; | |
29151 | int val4 ; | |
29152 | int ecode4 = 0 ; | |
29153 | int val5 ; | |
29154 | int ecode5 = 0 ; | |
29155 | double val6 ; | |
29156 | int ecode6 = 0 ; | |
29157 | double val7 ; | |
29158 | int ecode7 = 0 ; | |
29159 | PyObject * obj0 = 0 ; | |
29160 | PyObject * obj1 = 0 ; | |
29161 | PyObject * obj2 = 0 ; | |
29162 | PyObject * obj3 = 0 ; | |
29163 | PyObject * obj4 = 0 ; | |
29164 | PyObject * obj5 = 0 ; | |
29165 | PyObject * obj6 = 0 ; | |
29166 | char * kwnames[] = { | |
29167 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
29168 | }; | |
29169 | ||
29170 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
29171 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29172 | if (!SWIG_IsOK(res1)) { | |
29173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29174 | } | |
29175 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29176 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29177 | if (!SWIG_IsOK(ecode2)) { | |
29178 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
29179 | } | |
29180 | arg2 = static_cast< int >(val2); | |
29181 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29182 | if (!SWIG_IsOK(ecode3)) { | |
29183 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
29184 | } | |
29185 | arg3 = static_cast< int >(val3); | |
29186 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29187 | if (!SWIG_IsOK(ecode4)) { | |
29188 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
29189 | } | |
29190 | arg4 = static_cast< int >(val4); | |
29191 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
29192 | if (!SWIG_IsOK(ecode5)) { | |
29193 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
29194 | } | |
29195 | arg5 = static_cast< int >(val5); | |
29196 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29197 | if (!SWIG_IsOK(ecode6)) { | |
29198 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
29199 | } | |
29200 | arg6 = static_cast< double >(val6); | |
29201 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
29202 | if (!SWIG_IsOK(ecode7)) { | |
29203 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
29204 | } | |
29205 | arg7 = static_cast< double >(val7); | |
29206 | { | |
29207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29208 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
29209 | wxPyEndAllowThreads(__tstate); | |
29210 | if (PyErr_Occurred()) SWIG_fail; | |
29211 | } | |
29212 | resultobj = SWIG_Py_Void(); | |
29213 | return resultobj; | |
29214 | fail: | |
29215 | return NULL; | |
29216 | } | |
29217 | ||
29218 | ||
29219 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29220 | PyObject *resultobj = 0; | |
29221 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29222 | wxPoint *arg2 = 0 ; | |
29223 | wxSize *arg3 = 0 ; | |
29224 | double arg4 ; | |
29225 | double arg5 ; | |
29226 | void *argp1 = 0 ; | |
29227 | int res1 = 0 ; | |
29228 | wxPoint temp2 ; | |
29229 | wxSize temp3 ; | |
29230 | double val4 ; | |
29231 | int ecode4 = 0 ; | |
29232 | double val5 ; | |
29233 | int ecode5 = 0 ; | |
29234 | PyObject * obj0 = 0 ; | |
29235 | PyObject * obj1 = 0 ; | |
29236 | PyObject * obj2 = 0 ; | |
29237 | PyObject * obj3 = 0 ; | |
29238 | PyObject * obj4 = 0 ; | |
29239 | char * kwnames[] = { | |
29240 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
29241 | }; | |
29242 | ||
29243 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29244 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29245 | if (!SWIG_IsOK(res1)) { | |
29246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29247 | } | |
29248 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29249 | { | |
29250 | arg2 = &temp2; | |
29251 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29252 | } | |
29253 | { | |
29254 | arg3 = &temp3; | |
29255 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
29256 | } | |
29257 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29258 | if (!SWIG_IsOK(ecode4)) { | |
29259 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
29260 | } | |
29261 | arg4 = static_cast< double >(val4); | |
29262 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29263 | if (!SWIG_IsOK(ecode5)) { | |
29264 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
29265 | } | |
29266 | arg5 = static_cast< double >(val5); | |
29267 | { | |
29268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29269 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
29270 | wxPyEndAllowThreads(__tstate); | |
29271 | if (PyErr_Occurred()) SWIG_fail; | |
29272 | } | |
29273 | resultobj = SWIG_Py_Void(); | |
29274 | return resultobj; | |
29275 | fail: | |
29276 | return NULL; | |
29277 | } | |
29278 | ||
29279 | ||
29280 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29281 | PyObject *resultobj = 0; | |
29282 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29283 | int arg2 ; | |
29284 | int arg3 ; | |
29285 | void *argp1 = 0 ; | |
29286 | int res1 = 0 ; | |
29287 | int val2 ; | |
29288 | int ecode2 = 0 ; | |
29289 | int val3 ; | |
29290 | int ecode3 = 0 ; | |
29291 | PyObject * obj0 = 0 ; | |
29292 | PyObject * obj1 = 0 ; | |
29293 | PyObject * obj2 = 0 ; | |
29294 | char * kwnames[] = { | |
29295 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29296 | }; | |
29297 | ||
29298 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29299 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29300 | if (!SWIG_IsOK(res1)) { | |
29301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29302 | } | |
29303 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29304 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29305 | if (!SWIG_IsOK(ecode2)) { | |
29306 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
29307 | } | |
29308 | arg2 = static_cast< int >(val2); | |
29309 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29310 | if (!SWIG_IsOK(ecode3)) { | |
29311 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
29312 | } | |
29313 | arg3 = static_cast< int >(val3); | |
29314 | { | |
29315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29316 | (arg1)->DrawPoint(arg2,arg3); | |
29317 | wxPyEndAllowThreads(__tstate); | |
29318 | if (PyErr_Occurred()) SWIG_fail; | |
29319 | } | |
29320 | resultobj = SWIG_Py_Void(); | |
29321 | return resultobj; | |
29322 | fail: | |
29323 | return NULL; | |
29324 | } | |
29325 | ||
29326 | ||
29327 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29328 | PyObject *resultobj = 0; | |
29329 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29330 | wxPoint *arg2 = 0 ; | |
29331 | void *argp1 = 0 ; | |
29332 | int res1 = 0 ; | |
29333 | wxPoint temp2 ; | |
29334 | PyObject * obj0 = 0 ; | |
29335 | PyObject * obj1 = 0 ; | |
29336 | char * kwnames[] = { | |
29337 | (char *) "self",(char *) "pt", NULL | |
29338 | }; | |
29339 | ||
29340 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
29341 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29342 | if (!SWIG_IsOK(res1)) { | |
29343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29344 | } | |
29345 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29346 | { | |
29347 | arg2 = &temp2; | |
29348 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29349 | } | |
29350 | { | |
29351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29352 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
29353 | wxPyEndAllowThreads(__tstate); | |
29354 | if (PyErr_Occurred()) SWIG_fail; | |
29355 | } | |
29356 | resultobj = SWIG_Py_Void(); | |
29357 | return resultobj; | |
29358 | fail: | |
29359 | return NULL; | |
29360 | } | |
29361 | ||
29362 | ||
29363 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29364 | PyObject *resultobj = 0; | |
29365 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29366 | int arg2 ; | |
29367 | int arg3 ; | |
29368 | int arg4 ; | |
29369 | int arg5 ; | |
29370 | void *argp1 = 0 ; | |
29371 | int res1 = 0 ; | |
29372 | int val2 ; | |
29373 | int ecode2 = 0 ; | |
29374 | int val3 ; | |
29375 | int ecode3 = 0 ; | |
29376 | int val4 ; | |
29377 | int ecode4 = 0 ; | |
29378 | int val5 ; | |
29379 | int ecode5 = 0 ; | |
29380 | PyObject * obj0 = 0 ; | |
29381 | PyObject * obj1 = 0 ; | |
29382 | PyObject * obj2 = 0 ; | |
29383 | PyObject * obj3 = 0 ; | |
29384 | PyObject * obj4 = 0 ; | |
29385 | char * kwnames[] = { | |
29386 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
29387 | }; | |
29388 | ||
29389 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29390 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29391 | if (!SWIG_IsOK(res1)) { | |
29392 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29393 | } | |
29394 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29395 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29396 | if (!SWIG_IsOK(ecode2)) { | |
29397 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
29398 | } | |
29399 | arg2 = static_cast< int >(val2); | |
29400 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29401 | if (!SWIG_IsOK(ecode3)) { | |
29402 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
29403 | } | |
29404 | arg3 = static_cast< int >(val3); | |
29405 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29406 | if (!SWIG_IsOK(ecode4)) { | |
29407 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
29408 | } | |
29409 | arg4 = static_cast< int >(val4); | |
29410 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
29411 | if (!SWIG_IsOK(ecode5)) { | |
29412 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
29413 | } | |
29414 | arg5 = static_cast< int >(val5); | |
29415 | { | |
29416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29417 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
29418 | wxPyEndAllowThreads(__tstate); | |
29419 | if (PyErr_Occurred()) SWIG_fail; | |
29420 | } | |
29421 | resultobj = SWIG_Py_Void(); | |
29422 | return resultobj; | |
29423 | fail: | |
29424 | return NULL; | |
29425 | } | |
29426 | ||
29427 | ||
29428 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29429 | PyObject *resultobj = 0; | |
29430 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29431 | wxRect *arg2 = 0 ; | |
29432 | void *argp1 = 0 ; | |
29433 | int res1 = 0 ; | |
29434 | wxRect temp2 ; | |
29435 | PyObject * obj0 = 0 ; | |
29436 | PyObject * obj1 = 0 ; | |
29437 | char * kwnames[] = { | |
29438 | (char *) "self",(char *) "rect", NULL | |
29439 | }; | |
29440 | ||
29441 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
29442 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29443 | if (!SWIG_IsOK(res1)) { | |
29444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29445 | } | |
29446 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29447 | { | |
29448 | arg2 = &temp2; | |
29449 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
29450 | } | |
29451 | { | |
29452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29453 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
29454 | wxPyEndAllowThreads(__tstate); | |
29455 | if (PyErr_Occurred()) SWIG_fail; | |
29456 | } | |
29457 | resultobj = SWIG_Py_Void(); | |
29458 | return resultobj; | |
29459 | fail: | |
29460 | return NULL; | |
29461 | } | |
29462 | ||
29463 | ||
29464 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29465 | PyObject *resultobj = 0; | |
29466 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29467 | wxPoint *arg2 = 0 ; | |
29468 | wxSize *arg3 = 0 ; | |
29469 | void *argp1 = 0 ; | |
29470 | int res1 = 0 ; | |
29471 | wxPoint temp2 ; | |
29472 | wxSize temp3 ; | |
29473 | PyObject * obj0 = 0 ; | |
29474 | PyObject * obj1 = 0 ; | |
29475 | PyObject * obj2 = 0 ; | |
29476 | char * kwnames[] = { | |
29477 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
29478 | }; | |
29479 | ||
29480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29482 | if (!SWIG_IsOK(res1)) { | |
29483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29484 | } | |
29485 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29486 | { | |
29487 | arg2 = &temp2; | |
29488 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29489 | } | |
29490 | { | |
29491 | arg3 = &temp3; | |
29492 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
29493 | } | |
29494 | { | |
29495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29496 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
29497 | wxPyEndAllowThreads(__tstate); | |
29498 | if (PyErr_Occurred()) SWIG_fail; | |
29499 | } | |
29500 | resultobj = SWIG_Py_Void(); | |
29501 | return resultobj; | |
29502 | fail: | |
29503 | return NULL; | |
29504 | } | |
29505 | ||
29506 | ||
29507 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29508 | PyObject *resultobj = 0; | |
29509 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29510 | int arg2 ; | |
29511 | int arg3 ; | |
29512 | int arg4 ; | |
29513 | int arg5 ; | |
29514 | double arg6 ; | |
29515 | void *argp1 = 0 ; | |
29516 | int res1 = 0 ; | |
29517 | int val2 ; | |
29518 | int ecode2 = 0 ; | |
29519 | int val3 ; | |
29520 | int ecode3 = 0 ; | |
29521 | int val4 ; | |
29522 | int ecode4 = 0 ; | |
29523 | int val5 ; | |
29524 | int ecode5 = 0 ; | |
29525 | double val6 ; | |
29526 | int ecode6 = 0 ; | |
29527 | PyObject * obj0 = 0 ; | |
29528 | PyObject * obj1 = 0 ; | |
29529 | PyObject * obj2 = 0 ; | |
29530 | PyObject * obj3 = 0 ; | |
29531 | PyObject * obj4 = 0 ; | |
29532 | PyObject * obj5 = 0 ; | |
29533 | char * kwnames[] = { | |
29534 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
29535 | }; | |
29536 | ||
29537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
29538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29539 | if (!SWIG_IsOK(res1)) { | |
29540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29541 | } | |
29542 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29543 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29544 | if (!SWIG_IsOK(ecode2)) { | |
29545 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
29546 | } | |
29547 | arg2 = static_cast< int >(val2); | |
29548 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29549 | if (!SWIG_IsOK(ecode3)) { | |
29550 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
29551 | } | |
29552 | arg3 = static_cast< int >(val3); | |
29553 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29554 | if (!SWIG_IsOK(ecode4)) { | |
29555 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
29556 | } | |
29557 | arg4 = static_cast< int >(val4); | |
29558 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
29559 | if (!SWIG_IsOK(ecode5)) { | |
29560 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
29561 | } | |
29562 | arg5 = static_cast< int >(val5); | |
29563 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
29564 | if (!SWIG_IsOK(ecode6)) { | |
29565 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
29566 | } | |
29567 | arg6 = static_cast< double >(val6); | |
29568 | { | |
29569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29570 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
29571 | wxPyEndAllowThreads(__tstate); | |
29572 | if (PyErr_Occurred()) SWIG_fail; | |
29573 | } | |
29574 | resultobj = SWIG_Py_Void(); | |
29575 | return resultobj; | |
29576 | fail: | |
29577 | return NULL; | |
29578 | } | |
29579 | ||
29580 | ||
29581 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29582 | PyObject *resultobj = 0; | |
29583 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29584 | wxRect *arg2 = 0 ; | |
29585 | double arg3 ; | |
29586 | void *argp1 = 0 ; | |
29587 | int res1 = 0 ; | |
29588 | wxRect temp2 ; | |
29589 | double val3 ; | |
29590 | int ecode3 = 0 ; | |
29591 | PyObject * obj0 = 0 ; | |
29592 | PyObject * obj1 = 0 ; | |
29593 | PyObject * obj2 = 0 ; | |
29594 | char * kwnames[] = { | |
29595 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
29596 | }; | |
29597 | ||
29598 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29599 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29600 | if (!SWIG_IsOK(res1)) { | |
29601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29602 | } | |
29603 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29604 | { | |
29605 | arg2 = &temp2; | |
29606 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
29607 | } | |
29608 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29609 | if (!SWIG_IsOK(ecode3)) { | |
29610 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
29611 | } | |
29612 | arg3 = static_cast< double >(val3); | |
29613 | { | |
29614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29615 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
29616 | wxPyEndAllowThreads(__tstate); | |
29617 | if (PyErr_Occurred()) SWIG_fail; | |
29618 | } | |
29619 | resultobj = SWIG_Py_Void(); | |
29620 | return resultobj; | |
29621 | fail: | |
29622 | return NULL; | |
29623 | } | |
29624 | ||
29625 | ||
29626 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29627 | PyObject *resultobj = 0; | |
29628 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29629 | wxPoint *arg2 = 0 ; | |
29630 | wxSize *arg3 = 0 ; | |
29631 | double arg4 ; | |
29632 | void *argp1 = 0 ; | |
29633 | int res1 = 0 ; | |
29634 | wxPoint temp2 ; | |
29635 | wxSize temp3 ; | |
29636 | double val4 ; | |
29637 | int ecode4 = 0 ; | |
29638 | PyObject * obj0 = 0 ; | |
29639 | PyObject * obj1 = 0 ; | |
29640 | PyObject * obj2 = 0 ; | |
29641 | PyObject * obj3 = 0 ; | |
29642 | char * kwnames[] = { | |
29643 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
29644 | }; | |
29645 | ||
29646 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29647 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29648 | if (!SWIG_IsOK(res1)) { | |
29649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29650 | } | |
29651 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29652 | { | |
29653 | arg2 = &temp2; | |
29654 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29655 | } | |
29656 | { | |
29657 | arg3 = &temp3; | |
29658 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
29659 | } | |
29660 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29661 | if (!SWIG_IsOK(ecode4)) { | |
29662 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
29663 | } | |
29664 | arg4 = static_cast< double >(val4); | |
29665 | { | |
29666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29667 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
29668 | wxPyEndAllowThreads(__tstate); | |
29669 | if (PyErr_Occurred()) SWIG_fail; | |
29670 | } | |
29671 | resultobj = SWIG_Py_Void(); | |
29672 | return resultobj; | |
29673 | fail: | |
29674 | return NULL; | |
29675 | } | |
29676 | ||
29677 | ||
29678 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29679 | PyObject *resultobj = 0; | |
29680 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29681 | int arg2 ; | |
29682 | int arg3 ; | |
29683 | int arg4 ; | |
29684 | void *argp1 = 0 ; | |
29685 | int res1 = 0 ; | |
29686 | int val2 ; | |
29687 | int ecode2 = 0 ; | |
29688 | int val3 ; | |
29689 | int ecode3 = 0 ; | |
29690 | int val4 ; | |
29691 | int ecode4 = 0 ; | |
29692 | PyObject * obj0 = 0 ; | |
29693 | PyObject * obj1 = 0 ; | |
29694 | PyObject * obj2 = 0 ; | |
29695 | PyObject * obj3 = 0 ; | |
29696 | char * kwnames[] = { | |
29697 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
29698 | }; | |
29699 | ||
29700 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29701 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29702 | if (!SWIG_IsOK(res1)) { | |
29703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29704 | } | |
29705 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29706 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29707 | if (!SWIG_IsOK(ecode2)) { | |
29708 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
29709 | } | |
29710 | arg2 = static_cast< int >(val2); | |
29711 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29712 | if (!SWIG_IsOK(ecode3)) { | |
29713 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
29714 | } | |
29715 | arg3 = static_cast< int >(val3); | |
29716 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29717 | if (!SWIG_IsOK(ecode4)) { | |
29718 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
29719 | } | |
29720 | arg4 = static_cast< int >(val4); | |
29721 | { | |
29722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29723 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
29724 | wxPyEndAllowThreads(__tstate); | |
29725 | if (PyErr_Occurred()) SWIG_fail; | |
29726 | } | |
29727 | resultobj = SWIG_Py_Void(); | |
29728 | return resultobj; | |
29729 | fail: | |
29730 | return NULL; | |
29731 | } | |
29732 | ||
29733 | ||
29734 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29735 | PyObject *resultobj = 0; | |
29736 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29737 | wxPoint *arg2 = 0 ; | |
29738 | int arg3 ; | |
29739 | void *argp1 = 0 ; | |
29740 | int res1 = 0 ; | |
29741 | wxPoint temp2 ; | |
29742 | int val3 ; | |
29743 | int ecode3 = 0 ; | |
29744 | PyObject * obj0 = 0 ; | |
29745 | PyObject * obj1 = 0 ; | |
29746 | PyObject * obj2 = 0 ; | |
29747 | char * kwnames[] = { | |
29748 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
29749 | }; | |
29750 | ||
29751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29753 | if (!SWIG_IsOK(res1)) { | |
29754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29755 | } | |
29756 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29757 | { | |
29758 | arg2 = &temp2; | |
29759 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29760 | } | |
29761 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29762 | if (!SWIG_IsOK(ecode3)) { | |
29763 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
29764 | } | |
29765 | arg3 = static_cast< int >(val3); | |
29766 | { | |
29767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29768 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
29769 | wxPyEndAllowThreads(__tstate); | |
29770 | if (PyErr_Occurred()) SWIG_fail; | |
29771 | } | |
29772 | resultobj = SWIG_Py_Void(); | |
29773 | return resultobj; | |
29774 | fail: | |
29775 | return NULL; | |
29776 | } | |
29777 | ||
29778 | ||
29779 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29780 | PyObject *resultobj = 0; | |
29781 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29782 | int arg2 ; | |
29783 | int arg3 ; | |
29784 | int arg4 ; | |
29785 | int arg5 ; | |
29786 | void *argp1 = 0 ; | |
29787 | int res1 = 0 ; | |
29788 | int val2 ; | |
29789 | int ecode2 = 0 ; | |
29790 | int val3 ; | |
29791 | int ecode3 = 0 ; | |
29792 | int val4 ; | |
29793 | int ecode4 = 0 ; | |
29794 | int val5 ; | |
29795 | int ecode5 = 0 ; | |
29796 | PyObject * obj0 = 0 ; | |
29797 | PyObject * obj1 = 0 ; | |
29798 | PyObject * obj2 = 0 ; | |
29799 | PyObject * obj3 = 0 ; | |
29800 | PyObject * obj4 = 0 ; | |
29801 | char * kwnames[] = { | |
29802 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
29803 | }; | |
29804 | ||
29805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29807 | if (!SWIG_IsOK(res1)) { | |
29808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29809 | } | |
29810 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29811 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29812 | if (!SWIG_IsOK(ecode2)) { | |
29813 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
29814 | } | |
29815 | arg2 = static_cast< int >(val2); | |
29816 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29817 | if (!SWIG_IsOK(ecode3)) { | |
29818 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
29819 | } | |
29820 | arg3 = static_cast< int >(val3); | |
29821 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29822 | if (!SWIG_IsOK(ecode4)) { | |
29823 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
29824 | } | |
29825 | arg4 = static_cast< int >(val4); | |
29826 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
29827 | if (!SWIG_IsOK(ecode5)) { | |
29828 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
29829 | } | |
29830 | arg5 = static_cast< int >(val5); | |
29831 | { | |
29832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29833 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
29834 | wxPyEndAllowThreads(__tstate); | |
29835 | if (PyErr_Occurred()) SWIG_fail; | |
29836 | } | |
29837 | resultobj = SWIG_Py_Void(); | |
29838 | return resultobj; | |
29839 | fail: | |
29840 | return NULL; | |
29841 | } | |
29842 | ||
29843 | ||
29844 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29845 | PyObject *resultobj = 0; | |
29846 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29847 | wxRect *arg2 = 0 ; | |
29848 | void *argp1 = 0 ; | |
29849 | int res1 = 0 ; | |
29850 | wxRect temp2 ; | |
29851 | PyObject * obj0 = 0 ; | |
29852 | PyObject * obj1 = 0 ; | |
29853 | char * kwnames[] = { | |
29854 | (char *) "self",(char *) "rect", NULL | |
29855 | }; | |
29856 | ||
29857 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
29858 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29859 | if (!SWIG_IsOK(res1)) { | |
29860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29861 | } | |
29862 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29863 | { | |
29864 | arg2 = &temp2; | |
29865 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
29866 | } | |
29867 | { | |
29868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29869 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
29870 | wxPyEndAllowThreads(__tstate); | |
29871 | if (PyErr_Occurred()) SWIG_fail; | |
29872 | } | |
29873 | resultobj = SWIG_Py_Void(); | |
29874 | return resultobj; | |
29875 | fail: | |
29876 | return NULL; | |
29877 | } | |
29878 | ||
29879 | ||
29880 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29881 | PyObject *resultobj = 0; | |
29882 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29883 | wxPoint *arg2 = 0 ; | |
29884 | wxSize *arg3 = 0 ; | |
29885 | void *argp1 = 0 ; | |
29886 | int res1 = 0 ; | |
29887 | wxPoint temp2 ; | |
29888 | wxSize temp3 ; | |
29889 | PyObject * obj0 = 0 ; | |
29890 | PyObject * obj1 = 0 ; | |
29891 | PyObject * obj2 = 0 ; | |
29892 | char * kwnames[] = { | |
29893 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
29894 | }; | |
29895 | ||
29896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29898 | if (!SWIG_IsOK(res1)) { | |
29899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29900 | } | |
29901 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29902 | { | |
29903 | arg2 = &temp2; | |
29904 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29905 | } | |
29906 | { | |
29907 | arg3 = &temp3; | |
29908 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
29909 | } | |
29910 | { | |
29911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29912 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
29913 | wxPyEndAllowThreads(__tstate); | |
29914 | if (PyErr_Occurred()) SWIG_fail; | |
29915 | } | |
29916 | resultobj = SWIG_Py_Void(); | |
29917 | return resultobj; | |
29918 | fail: | |
29919 | return NULL; | |
29920 | } | |
29921 | ||
29922 | ||
29923 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29924 | PyObject *resultobj = 0; | |
29925 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29926 | wxIcon *arg2 = 0 ; | |
29927 | int arg3 ; | |
29928 | int arg4 ; | |
29929 | void *argp1 = 0 ; | |
29930 | int res1 = 0 ; | |
29931 | void *argp2 = 0 ; | |
29932 | int res2 = 0 ; | |
29933 | int val3 ; | |
29934 | int ecode3 = 0 ; | |
29935 | int val4 ; | |
29936 | int ecode4 = 0 ; | |
29937 | PyObject * obj0 = 0 ; | |
29938 | PyObject * obj1 = 0 ; | |
29939 | PyObject * obj2 = 0 ; | |
29940 | PyObject * obj3 = 0 ; | |
29941 | char * kwnames[] = { | |
29942 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
29943 | }; | |
29944 | ||
29945 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29946 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
29947 | if (!SWIG_IsOK(res1)) { | |
29948 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
29949 | } | |
29950 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
29951 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
29952 | if (!SWIG_IsOK(res2)) { | |
29953 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
29954 | } | |
29955 | if (!argp2) { | |
29956 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
29957 | } | |
29958 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
29959 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29960 | if (!SWIG_IsOK(ecode3)) { | |
29961 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
29962 | } | |
29963 | arg3 = static_cast< int >(val3); | |
29964 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29965 | if (!SWIG_IsOK(ecode4)) { | |
29966 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
29967 | } | |
29968 | arg4 = static_cast< int >(val4); | |
29969 | { | |
29970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29971 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
29972 | wxPyEndAllowThreads(__tstate); | |
29973 | if (PyErr_Occurred()) SWIG_fail; | |
29974 | } | |
29975 | resultobj = SWIG_Py_Void(); | |
29976 | return resultobj; | |
29977 | fail: | |
29978 | return NULL; | |
29979 | } | |
29980 | ||
29981 | ||
29982 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29983 | PyObject *resultobj = 0; | |
29984 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
29985 | wxIcon *arg2 = 0 ; | |
29986 | wxPoint *arg3 = 0 ; | |
29987 | void *argp1 = 0 ; | |
29988 | int res1 = 0 ; | |
29989 | void *argp2 = 0 ; | |
29990 | int res2 = 0 ; | |
29991 | wxPoint temp3 ; | |
29992 | PyObject * obj0 = 0 ; | |
29993 | PyObject * obj1 = 0 ; | |
29994 | PyObject * obj2 = 0 ; | |
29995 | char * kwnames[] = { | |
29996 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
29997 | }; | |
29998 | ||
29999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30000 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30001 | if (!SWIG_IsOK(res1)) { | |
30002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30003 | } | |
30004 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30005 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
30006 | if (!SWIG_IsOK(res2)) { | |
30007 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30008 | } | |
30009 | if (!argp2) { | |
30010 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30011 | } | |
30012 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
30013 | { | |
30014 | arg3 = &temp3; | |
30015 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30016 | } | |
30017 | { | |
30018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30019 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
30020 | wxPyEndAllowThreads(__tstate); | |
30021 | if (PyErr_Occurred()) SWIG_fail; | |
30022 | } | |
30023 | resultobj = SWIG_Py_Void(); | |
30024 | return resultobj; | |
30025 | fail: | |
30026 | return NULL; | |
30027 | } | |
30028 | ||
30029 | ||
30030 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30031 | PyObject *resultobj = 0; | |
30032 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30033 | wxBitmap *arg2 = 0 ; | |
30034 | int arg3 ; | |
30035 | int arg4 ; | |
30036 | bool arg5 = (bool) false ; | |
30037 | void *argp1 = 0 ; | |
30038 | int res1 = 0 ; | |
30039 | void *argp2 = 0 ; | |
30040 | int res2 = 0 ; | |
30041 | int val3 ; | |
30042 | int ecode3 = 0 ; | |
30043 | int val4 ; | |
30044 | int ecode4 = 0 ; | |
30045 | bool val5 ; | |
30046 | int ecode5 = 0 ; | |
30047 | PyObject * obj0 = 0 ; | |
30048 | PyObject * obj1 = 0 ; | |
30049 | PyObject * obj2 = 0 ; | |
30050 | PyObject * obj3 = 0 ; | |
30051 | PyObject * obj4 = 0 ; | |
30052 | char * kwnames[] = { | |
30053 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
30054 | }; | |
30055 | ||
30056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30058 | if (!SWIG_IsOK(res1)) { | |
30059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30060 | } | |
30061 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30062 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30063 | if (!SWIG_IsOK(res2)) { | |
30064 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30065 | } | |
30066 | if (!argp2) { | |
30067 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30068 | } | |
30069 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
30070 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30071 | if (!SWIG_IsOK(ecode3)) { | |
30072 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
30073 | } | |
30074 | arg3 = static_cast< int >(val3); | |
30075 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30076 | if (!SWIG_IsOK(ecode4)) { | |
30077 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
30078 | } | |
30079 | arg4 = static_cast< int >(val4); | |
30080 | if (obj4) { | |
30081 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
30082 | if (!SWIG_IsOK(ecode5)) { | |
30083 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
30084 | } | |
30085 | arg5 = static_cast< bool >(val5); | |
30086 | } | |
30087 | { | |
30088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30089 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
30090 | wxPyEndAllowThreads(__tstate); | |
30091 | if (PyErr_Occurred()) SWIG_fail; | |
30092 | } | |
30093 | resultobj = SWIG_Py_Void(); | |
30094 | return resultobj; | |
30095 | fail: | |
30096 | return NULL; | |
30097 | } | |
30098 | ||
30099 | ||
30100 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30101 | PyObject *resultobj = 0; | |
30102 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30103 | wxBitmap *arg2 = 0 ; | |
30104 | wxPoint *arg3 = 0 ; | |
30105 | bool arg4 = (bool) false ; | |
30106 | void *argp1 = 0 ; | |
30107 | int res1 = 0 ; | |
30108 | void *argp2 = 0 ; | |
30109 | int res2 = 0 ; | |
30110 | wxPoint temp3 ; | |
30111 | bool val4 ; | |
30112 | int ecode4 = 0 ; | |
30113 | PyObject * obj0 = 0 ; | |
30114 | PyObject * obj1 = 0 ; | |
30115 | PyObject * obj2 = 0 ; | |
30116 | PyObject * obj3 = 0 ; | |
30117 | char * kwnames[] = { | |
30118 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
30119 | }; | |
30120 | ||
30121 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30122 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30123 | if (!SWIG_IsOK(res1)) { | |
30124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30125 | } | |
30126 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30127 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30128 | if (!SWIG_IsOK(res2)) { | |
30129 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30130 | } | |
30131 | if (!argp2) { | |
30132 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30133 | } | |
30134 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
30135 | { | |
30136 | arg3 = &temp3; | |
30137 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30138 | } | |
30139 | if (obj3) { | |
30140 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
30141 | if (!SWIG_IsOK(ecode4)) { | |
30142 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
30143 | } | |
30144 | arg4 = static_cast< bool >(val4); | |
30145 | } | |
30146 | { | |
30147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30148 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
30149 | wxPyEndAllowThreads(__tstate); | |
30150 | if (PyErr_Occurred()) SWIG_fail; | |
30151 | } | |
30152 | resultobj = SWIG_Py_Void(); | |
30153 | return resultobj; | |
30154 | fail: | |
30155 | return NULL; | |
30156 | } | |
30157 | ||
30158 | ||
30159 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30160 | PyObject *resultobj = 0; | |
30161 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30162 | wxString *arg2 = 0 ; | |
30163 | int arg3 ; | |
30164 | int arg4 ; | |
30165 | void *argp1 = 0 ; | |
30166 | int res1 = 0 ; | |
30167 | bool temp2 = false ; | |
30168 | int val3 ; | |
30169 | int ecode3 = 0 ; | |
30170 | int val4 ; | |
30171 | int ecode4 = 0 ; | |
30172 | PyObject * obj0 = 0 ; | |
30173 | PyObject * obj1 = 0 ; | |
30174 | PyObject * obj2 = 0 ; | |
30175 | PyObject * obj3 = 0 ; | |
30176 | char * kwnames[] = { | |
30177 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
30178 | }; | |
30179 | ||
30180 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30181 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30182 | if (!SWIG_IsOK(res1)) { | |
30183 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30184 | } | |
30185 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30186 | { | |
30187 | arg2 = wxString_in_helper(obj1); | |
30188 | if (arg2 == NULL) SWIG_fail; | |
30189 | temp2 = true; | |
30190 | } | |
30191 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30192 | if (!SWIG_IsOK(ecode3)) { | |
30193 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
30194 | } | |
30195 | arg3 = static_cast< int >(val3); | |
30196 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30197 | if (!SWIG_IsOK(ecode4)) { | |
30198 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
30199 | } | |
30200 | arg4 = static_cast< int >(val4); | |
30201 | { | |
30202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30203 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
30204 | wxPyEndAllowThreads(__tstate); | |
30205 | if (PyErr_Occurred()) SWIG_fail; | |
30206 | } | |
30207 | resultobj = SWIG_Py_Void(); | |
30208 | { | |
30209 | if (temp2) | |
30210 | delete arg2; | |
30211 | } | |
30212 | return resultobj; | |
30213 | fail: | |
30214 | { | |
30215 | if (temp2) | |
30216 | delete arg2; | |
30217 | } | |
30218 | return NULL; | |
30219 | } | |
30220 | ||
30221 | ||
30222 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30223 | PyObject *resultobj = 0; | |
30224 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30225 | wxString *arg2 = 0 ; | |
30226 | wxPoint *arg3 = 0 ; | |
30227 | void *argp1 = 0 ; | |
30228 | int res1 = 0 ; | |
30229 | bool temp2 = false ; | |
30230 | wxPoint temp3 ; | |
30231 | PyObject * obj0 = 0 ; | |
30232 | PyObject * obj1 = 0 ; | |
30233 | PyObject * obj2 = 0 ; | |
30234 | char * kwnames[] = { | |
30235 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
30236 | }; | |
30237 | ||
30238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30240 | if (!SWIG_IsOK(res1)) { | |
30241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30242 | } | |
30243 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30244 | { | |
30245 | arg2 = wxString_in_helper(obj1); | |
30246 | if (arg2 == NULL) SWIG_fail; | |
30247 | temp2 = true; | |
30248 | } | |
30249 | { | |
30250 | arg3 = &temp3; | |
30251 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30252 | } | |
30253 | { | |
30254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30255 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
30256 | wxPyEndAllowThreads(__tstate); | |
30257 | if (PyErr_Occurred()) SWIG_fail; | |
30258 | } | |
30259 | resultobj = SWIG_Py_Void(); | |
30260 | { | |
30261 | if (temp2) | |
30262 | delete arg2; | |
30263 | } | |
30264 | return resultobj; | |
30265 | fail: | |
30266 | { | |
30267 | if (temp2) | |
30268 | delete arg2; | |
30269 | } | |
30270 | return NULL; | |
30271 | } | |
30272 | ||
30273 | ||
30274 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30275 | PyObject *resultobj = 0; | |
30276 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30277 | wxString *arg2 = 0 ; | |
30278 | int arg3 ; | |
30279 | int arg4 ; | |
30280 | double arg5 ; | |
30281 | void *argp1 = 0 ; | |
30282 | int res1 = 0 ; | |
30283 | bool temp2 = false ; | |
30284 | int val3 ; | |
30285 | int ecode3 = 0 ; | |
30286 | int val4 ; | |
30287 | int ecode4 = 0 ; | |
30288 | double val5 ; | |
30289 | int ecode5 = 0 ; | |
30290 | PyObject * obj0 = 0 ; | |
30291 | PyObject * obj1 = 0 ; | |
30292 | PyObject * obj2 = 0 ; | |
30293 | PyObject * obj3 = 0 ; | |
30294 | PyObject * obj4 = 0 ; | |
30295 | char * kwnames[] = { | |
30296 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
30297 | }; | |
30298 | ||
30299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30301 | if (!SWIG_IsOK(res1)) { | |
30302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30303 | } | |
30304 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30305 | { | |
30306 | arg2 = wxString_in_helper(obj1); | |
30307 | if (arg2 == NULL) SWIG_fail; | |
30308 | temp2 = true; | |
30309 | } | |
30310 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
30311 | if (!SWIG_IsOK(ecode3)) { | |
30312 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
30313 | } | |
30314 | arg3 = static_cast< int >(val3); | |
30315 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30316 | if (!SWIG_IsOK(ecode4)) { | |
30317 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
30318 | } | |
30319 | arg4 = static_cast< int >(val4); | |
30320 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30321 | if (!SWIG_IsOK(ecode5)) { | |
30322 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
30323 | } | |
30324 | arg5 = static_cast< double >(val5); | |
30325 | { | |
30326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30327 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
30328 | wxPyEndAllowThreads(__tstate); | |
30329 | if (PyErr_Occurred()) SWIG_fail; | |
30330 | } | |
30331 | resultobj = SWIG_Py_Void(); | |
30332 | { | |
30333 | if (temp2) | |
30334 | delete arg2; | |
30335 | } | |
30336 | return resultobj; | |
30337 | fail: | |
30338 | { | |
30339 | if (temp2) | |
30340 | delete arg2; | |
30341 | } | |
30342 | return NULL; | |
30343 | } | |
30344 | ||
30345 | ||
30346 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30347 | PyObject *resultobj = 0; | |
30348 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30349 | wxString *arg2 = 0 ; | |
30350 | wxPoint *arg3 = 0 ; | |
30351 | double arg4 ; | |
30352 | void *argp1 = 0 ; | |
30353 | int res1 = 0 ; | |
30354 | bool temp2 = false ; | |
30355 | wxPoint temp3 ; | |
30356 | double val4 ; | |
30357 | int ecode4 = 0 ; | |
30358 | PyObject * obj0 = 0 ; | |
30359 | PyObject * obj1 = 0 ; | |
30360 | PyObject * obj2 = 0 ; | |
30361 | PyObject * obj3 = 0 ; | |
30362 | char * kwnames[] = { | |
30363 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
30364 | }; | |
30365 | ||
30366 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30367 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30368 | if (!SWIG_IsOK(res1)) { | |
30369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30370 | } | |
30371 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30372 | { | |
30373 | arg2 = wxString_in_helper(obj1); | |
30374 | if (arg2 == NULL) SWIG_fail; | |
30375 | temp2 = true; | |
30376 | } | |
30377 | { | |
30378 | arg3 = &temp3; | |
30379 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30380 | } | |
30381 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30382 | if (!SWIG_IsOK(ecode4)) { | |
30383 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
30384 | } | |
30385 | arg4 = static_cast< double >(val4); | |
30386 | { | |
30387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30388 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
30389 | wxPyEndAllowThreads(__tstate); | |
30390 | if (PyErr_Occurred()) SWIG_fail; | |
30391 | } | |
30392 | resultobj = SWIG_Py_Void(); | |
30393 | { | |
30394 | if (temp2) | |
30395 | delete arg2; | |
30396 | } | |
30397 | return resultobj; | |
30398 | fail: | |
30399 | { | |
30400 | if (temp2) | |
30401 | delete arg2; | |
30402 | } | |
30403 | return NULL; | |
30404 | } | |
30405 | ||
30406 | ||
30407 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30408 | PyObject *resultobj = 0; | |
30409 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30410 | int arg2 ; | |
30411 | wxPoint *arg3 = (wxPoint *) 0 ; | |
30412 | int arg4 = (int) 0 ; | |
30413 | int arg5 = (int) 0 ; | |
30414 | void *argp1 = 0 ; | |
30415 | int res1 = 0 ; | |
30416 | int val4 ; | |
30417 | int ecode4 = 0 ; | |
30418 | int val5 ; | |
30419 | int ecode5 = 0 ; | |
30420 | PyObject * obj0 = 0 ; | |
30421 | PyObject * obj1 = 0 ; | |
30422 | PyObject * obj2 = 0 ; | |
30423 | PyObject * obj3 = 0 ; | |
30424 | char * kwnames[] = { | |
30425 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
30426 | }; | |
30427 | ||
30428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30430 | if (!SWIG_IsOK(res1)) { | |
30431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30432 | } | |
30433 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30434 | { | |
30435 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
30436 | if (arg3 == NULL) SWIG_fail; | |
30437 | } | |
30438 | if (obj2) { | |
30439 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
30440 | if (!SWIG_IsOK(ecode4)) { | |
30441 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
30442 | } | |
30443 | arg4 = static_cast< int >(val4); | |
30444 | } | |
30445 | if (obj3) { | |
30446 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
30447 | if (!SWIG_IsOK(ecode5)) { | |
30448 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
30449 | } | |
30450 | arg5 = static_cast< int >(val5); | |
30451 | } | |
30452 | { | |
30453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30454 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
30455 | wxPyEndAllowThreads(__tstate); | |
30456 | if (PyErr_Occurred()) SWIG_fail; | |
30457 | } | |
30458 | resultobj = SWIG_Py_Void(); | |
30459 | { | |
30460 | if (arg3) delete [] arg3; | |
30461 | } | |
30462 | return resultobj; | |
30463 | fail: | |
30464 | { | |
30465 | if (arg3) delete [] arg3; | |
30466 | } | |
30467 | return NULL; | |
30468 | } | |
30469 | ||
30470 | ||
30471 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30472 | PyObject *resultobj = 0; | |
30473 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30474 | int arg2 ; | |
30475 | wxPoint *arg3 = (wxPoint *) 0 ; | |
30476 | int arg4 = (int) 0 ; | |
30477 | int arg5 = (int) 0 ; | |
30478 | int arg6 = (int) wxODDEVEN_RULE ; | |
30479 | void *argp1 = 0 ; | |
30480 | int res1 = 0 ; | |
30481 | int val4 ; | |
30482 | int ecode4 = 0 ; | |
30483 | int val5 ; | |
30484 | int ecode5 = 0 ; | |
30485 | int val6 ; | |
30486 | int ecode6 = 0 ; | |
30487 | PyObject * obj0 = 0 ; | |
30488 | PyObject * obj1 = 0 ; | |
30489 | PyObject * obj2 = 0 ; | |
30490 | PyObject * obj3 = 0 ; | |
30491 | PyObject * obj4 = 0 ; | |
30492 | char * kwnames[] = { | |
30493 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
30494 | }; | |
30495 | ||
30496 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30497 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30498 | if (!SWIG_IsOK(res1)) { | |
30499 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30500 | } | |
30501 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30502 | { | |
30503 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
30504 | if (arg3 == NULL) SWIG_fail; | |
30505 | } | |
30506 | if (obj2) { | |
30507 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
30508 | if (!SWIG_IsOK(ecode4)) { | |
30509 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
30510 | } | |
30511 | arg4 = static_cast< int >(val4); | |
30512 | } | |
30513 | if (obj3) { | |
30514 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
30515 | if (!SWIG_IsOK(ecode5)) { | |
30516 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
30517 | } | |
30518 | arg5 = static_cast< int >(val5); | |
30519 | } | |
30520 | if (obj4) { | |
30521 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
30522 | if (!SWIG_IsOK(ecode6)) { | |
30523 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
30524 | } | |
30525 | arg6 = static_cast< int >(val6); | |
30526 | } | |
30527 | { | |
30528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30529 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
30530 | wxPyEndAllowThreads(__tstate); | |
30531 | if (PyErr_Occurred()) SWIG_fail; | |
30532 | } | |
30533 | resultobj = SWIG_Py_Void(); | |
30534 | { | |
30535 | if (arg3) delete [] arg3; | |
30536 | } | |
30537 | return resultobj; | |
30538 | fail: | |
30539 | { | |
30540 | if (arg3) delete [] arg3; | |
30541 | } | |
30542 | return NULL; | |
30543 | } | |
30544 | ||
30545 | ||
30546 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30547 | PyObject *resultobj = 0; | |
30548 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30549 | wxString *arg2 = 0 ; | |
30550 | wxRect *arg3 = 0 ; | |
30551 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
30552 | int arg5 = (int) -1 ; | |
30553 | void *argp1 = 0 ; | |
30554 | int res1 = 0 ; | |
30555 | bool temp2 = false ; | |
30556 | wxRect temp3 ; | |
30557 | int val4 ; | |
30558 | int ecode4 = 0 ; | |
30559 | int val5 ; | |
30560 | int ecode5 = 0 ; | |
30561 | PyObject * obj0 = 0 ; | |
30562 | PyObject * obj1 = 0 ; | |
30563 | PyObject * obj2 = 0 ; | |
30564 | PyObject * obj3 = 0 ; | |
30565 | PyObject * obj4 = 0 ; | |
30566 | char * kwnames[] = { | |
30567 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
30568 | }; | |
30569 | ||
30570 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30571 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30572 | if (!SWIG_IsOK(res1)) { | |
30573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30574 | } | |
30575 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30576 | { | |
30577 | arg2 = wxString_in_helper(obj1); | |
30578 | if (arg2 == NULL) SWIG_fail; | |
30579 | temp2 = true; | |
30580 | } | |
30581 | { | |
30582 | arg3 = &temp3; | |
30583 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
30584 | } | |
30585 | if (obj3) { | |
30586 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30587 | if (!SWIG_IsOK(ecode4)) { | |
30588 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
30589 | } | |
30590 | arg4 = static_cast< int >(val4); | |
30591 | } | |
30592 | if (obj4) { | |
30593 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
30594 | if (!SWIG_IsOK(ecode5)) { | |
30595 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
30596 | } | |
30597 | arg5 = static_cast< int >(val5); | |
30598 | } | |
30599 | { | |
30600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30601 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
30602 | wxPyEndAllowThreads(__tstate); | |
30603 | if (PyErr_Occurred()) SWIG_fail; | |
30604 | } | |
30605 | resultobj = SWIG_Py_Void(); | |
30606 | { | |
30607 | if (temp2) | |
30608 | delete arg2; | |
30609 | } | |
30610 | return resultobj; | |
30611 | fail: | |
30612 | { | |
30613 | if (temp2) | |
30614 | delete arg2; | |
30615 | } | |
30616 | return NULL; | |
30617 | } | |
30618 | ||
30619 | ||
30620 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30621 | PyObject *resultobj = 0; | |
30622 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30623 | wxString *arg2 = 0 ; | |
30624 | wxBitmap *arg3 = 0 ; | |
30625 | wxRect *arg4 = 0 ; | |
30626 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
30627 | int arg6 = (int) -1 ; | |
30628 | void *argp1 = 0 ; | |
30629 | int res1 = 0 ; | |
30630 | bool temp2 = false ; | |
30631 | void *argp3 = 0 ; | |
30632 | int res3 = 0 ; | |
30633 | wxRect temp4 ; | |
30634 | int val5 ; | |
30635 | int ecode5 = 0 ; | |
30636 | int val6 ; | |
30637 | int ecode6 = 0 ; | |
30638 | PyObject * obj0 = 0 ; | |
30639 | PyObject * obj1 = 0 ; | |
30640 | PyObject * obj2 = 0 ; | |
30641 | PyObject * obj3 = 0 ; | |
30642 | PyObject * obj4 = 0 ; | |
30643 | PyObject * obj5 = 0 ; | |
30644 | char * kwnames[] = { | |
30645 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
30646 | }; | |
30647 | ||
30648 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
30649 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30650 | if (!SWIG_IsOK(res1)) { | |
30651 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30652 | } | |
30653 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30654 | { | |
30655 | arg2 = wxString_in_helper(obj1); | |
30656 | if (arg2 == NULL) SWIG_fail; | |
30657 | temp2 = true; | |
30658 | } | |
30659 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30660 | if (!SWIG_IsOK(res3)) { | |
30661 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
30662 | } | |
30663 | if (!argp3) { | |
30664 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
30665 | } | |
30666 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
30667 | { | |
30668 | arg4 = &temp4; | |
30669 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
30670 | } | |
30671 | if (obj4) { | |
30672 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
30673 | if (!SWIG_IsOK(ecode5)) { | |
30674 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
30675 | } | |
30676 | arg5 = static_cast< int >(val5); | |
30677 | } | |
30678 | if (obj5) { | |
30679 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
30680 | if (!SWIG_IsOK(ecode6)) { | |
30681 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
30682 | } | |
30683 | arg6 = static_cast< int >(val6); | |
30684 | } | |
30685 | { | |
30686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30687 | (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
30688 | wxPyEndAllowThreads(__tstate); | |
30689 | if (PyErr_Occurred()) SWIG_fail; | |
30690 | } | |
30691 | resultobj = SWIG_Py_Void(); | |
30692 | { | |
30693 | if (temp2) | |
30694 | delete arg2; | |
30695 | } | |
30696 | return resultobj; | |
30697 | fail: | |
30698 | { | |
30699 | if (temp2) | |
30700 | delete arg2; | |
30701 | } | |
30702 | return NULL; | |
30703 | } | |
30704 | ||
30705 | ||
30706 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30707 | PyObject *resultobj = 0; | |
30708 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30709 | int arg2 ; | |
30710 | wxPoint *arg3 = (wxPoint *) 0 ; | |
30711 | void *argp1 = 0 ; | |
30712 | int res1 = 0 ; | |
30713 | PyObject * obj0 = 0 ; | |
30714 | PyObject * obj1 = 0 ; | |
30715 | char * kwnames[] = { | |
30716 | (char *) "self",(char *) "points", NULL | |
30717 | }; | |
30718 | ||
30719 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
30720 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30721 | if (!SWIG_IsOK(res1)) { | |
30722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30723 | } | |
30724 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30725 | { | |
30726 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
30727 | if (arg3 == NULL) SWIG_fail; | |
30728 | } | |
30729 | { | |
30730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30731 | (arg1)->DrawSpline(arg2,arg3); | |
30732 | wxPyEndAllowThreads(__tstate); | |
30733 | if (PyErr_Occurred()) SWIG_fail; | |
30734 | } | |
30735 | resultobj = SWIG_Py_Void(); | |
30736 | { | |
30737 | if (arg3) delete [] arg3; | |
30738 | } | |
30739 | return resultobj; | |
30740 | fail: | |
30741 | { | |
30742 | if (arg3) delete [] arg3; | |
30743 | } | |
30744 | return NULL; | |
30745 | } | |
30746 | ||
30747 | ||
30748 | SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30749 | PyObject *resultobj = 0; | |
30750 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30751 | void *argp1 = 0 ; | |
30752 | int res1 = 0 ; | |
30753 | PyObject *swig_obj[1] ; | |
30754 | ||
30755 | if (!args) SWIG_fail; | |
30756 | swig_obj[0] = args; | |
30757 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30758 | if (!SWIG_IsOK(res1)) { | |
30759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30760 | } | |
30761 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30762 | { | |
30763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30764 | (arg1)->Clear(); | |
30765 | wxPyEndAllowThreads(__tstate); | |
30766 | if (PyErr_Occurred()) SWIG_fail; | |
30767 | } | |
30768 | resultobj = SWIG_Py_Void(); | |
30769 | return resultobj; | |
30770 | fail: | |
30771 | return NULL; | |
30772 | } | |
30773 | ||
30774 | ||
30775 | SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30776 | PyObject *resultobj = 0; | |
30777 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30778 | wxFont *arg2 = 0 ; | |
30779 | void *argp1 = 0 ; | |
30780 | int res1 = 0 ; | |
30781 | void *argp2 = 0 ; | |
30782 | int res2 = 0 ; | |
30783 | PyObject * obj0 = 0 ; | |
30784 | PyObject * obj1 = 0 ; | |
30785 | char * kwnames[] = { | |
30786 | (char *) "self",(char *) "font", NULL | |
30787 | }; | |
30788 | ||
30789 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
30790 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30791 | if (!SWIG_IsOK(res1)) { | |
30792 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30793 | } | |
30794 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30795 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
30796 | if (!SWIG_IsOK(res2)) { | |
30797 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
30798 | } | |
30799 | if (!argp2) { | |
30800 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
30801 | } | |
30802 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
30803 | { | |
30804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30805 | (arg1)->SetFont((wxFont const &)*arg2); | |
30806 | wxPyEndAllowThreads(__tstate); | |
30807 | if (PyErr_Occurred()) SWIG_fail; | |
30808 | } | |
30809 | resultobj = SWIG_Py_Void(); | |
30810 | return resultobj; | |
30811 | fail: | |
30812 | return NULL; | |
30813 | } | |
30814 | ||
30815 | ||
30816 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30817 | PyObject *resultobj = 0; | |
30818 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30819 | wxPen *arg2 = 0 ; | |
30820 | void *argp1 = 0 ; | |
30821 | int res1 = 0 ; | |
30822 | void *argp2 = 0 ; | |
30823 | int res2 = 0 ; | |
30824 | PyObject * obj0 = 0 ; | |
30825 | PyObject * obj1 = 0 ; | |
30826 | char * kwnames[] = { | |
30827 | (char *) "self",(char *) "pen", NULL | |
30828 | }; | |
30829 | ||
30830 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
30831 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30832 | if (!SWIG_IsOK(res1)) { | |
30833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30834 | } | |
30835 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30836 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
30837 | if (!SWIG_IsOK(res2)) { | |
30838 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
30839 | } | |
30840 | if (!argp2) { | |
30841 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
30842 | } | |
30843 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
30844 | { | |
30845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30846 | (arg1)->SetPen((wxPen const &)*arg2); | |
30847 | wxPyEndAllowThreads(__tstate); | |
30848 | if (PyErr_Occurred()) SWIG_fail; | |
30849 | } | |
30850 | resultobj = SWIG_Py_Void(); | |
30851 | return resultobj; | |
30852 | fail: | |
30853 | return NULL; | |
30854 | } | |
30855 | ||
30856 | ||
30857 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30858 | PyObject *resultobj = 0; | |
30859 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30860 | wxBrush *arg2 = 0 ; | |
30861 | void *argp1 = 0 ; | |
30862 | int res1 = 0 ; | |
30863 | void *argp2 = 0 ; | |
30864 | int res2 = 0 ; | |
30865 | PyObject * obj0 = 0 ; | |
30866 | PyObject * obj1 = 0 ; | |
30867 | char * kwnames[] = { | |
30868 | (char *) "self",(char *) "brush", NULL | |
30869 | }; | |
30870 | ||
30871 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
30872 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30873 | if (!SWIG_IsOK(res1)) { | |
30874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30875 | } | |
30876 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30877 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
30878 | if (!SWIG_IsOK(res2)) { | |
30879 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
30880 | } | |
30881 | if (!argp2) { | |
30882 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
30883 | } | |
30884 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
30885 | { | |
30886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30887 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
30888 | wxPyEndAllowThreads(__tstate); | |
30889 | if (PyErr_Occurred()) SWIG_fail; | |
30890 | } | |
30891 | resultobj = SWIG_Py_Void(); | |
30892 | return resultobj; | |
30893 | fail: | |
30894 | return NULL; | |
30895 | } | |
30896 | ||
30897 | ||
30898 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30899 | PyObject *resultobj = 0; | |
30900 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30901 | wxBrush *arg2 = 0 ; | |
30902 | void *argp1 = 0 ; | |
30903 | int res1 = 0 ; | |
30904 | void *argp2 = 0 ; | |
30905 | int res2 = 0 ; | |
30906 | PyObject * obj0 = 0 ; | |
30907 | PyObject * obj1 = 0 ; | |
30908 | char * kwnames[] = { | |
30909 | (char *) "self",(char *) "brush", NULL | |
30910 | }; | |
30911 | ||
30912 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
30913 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30914 | if (!SWIG_IsOK(res1)) { | |
30915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30916 | } | |
30917 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30918 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
30919 | if (!SWIG_IsOK(res2)) { | |
30920 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
30921 | } | |
30922 | if (!argp2) { | |
30923 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
30924 | } | |
30925 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
30926 | { | |
30927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30928 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
30929 | wxPyEndAllowThreads(__tstate); | |
30930 | if (PyErr_Occurred()) SWIG_fail; | |
30931 | } | |
30932 | resultobj = SWIG_Py_Void(); | |
30933 | return resultobj; | |
30934 | fail: | |
30935 | return NULL; | |
30936 | } | |
30937 | ||
30938 | ||
30939 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30940 | PyObject *resultobj = 0; | |
30941 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30942 | int arg2 ; | |
30943 | void *argp1 = 0 ; | |
30944 | int res1 = 0 ; | |
30945 | int val2 ; | |
30946 | int ecode2 = 0 ; | |
30947 | PyObject * obj0 = 0 ; | |
30948 | PyObject * obj1 = 0 ; | |
30949 | char * kwnames[] = { | |
30950 | (char *) "self",(char *) "mode", NULL | |
30951 | }; | |
30952 | ||
30953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
30954 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30955 | if (!SWIG_IsOK(res1)) { | |
30956 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30957 | } | |
30958 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30959 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30960 | if (!SWIG_IsOK(ecode2)) { | |
30961 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
30962 | } | |
30963 | arg2 = static_cast< int >(val2); | |
30964 | { | |
30965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30966 | (arg1)->SetBackgroundMode(arg2); | |
30967 | wxPyEndAllowThreads(__tstate); | |
30968 | if (PyErr_Occurred()) SWIG_fail; | |
30969 | } | |
30970 | resultobj = SWIG_Py_Void(); | |
30971 | return resultobj; | |
30972 | fail: | |
30973 | return NULL; | |
30974 | } | |
30975 | ||
30976 | ||
30977 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30978 | PyObject *resultobj = 0; | |
30979 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
30980 | wxPalette *arg2 = 0 ; | |
30981 | void *argp1 = 0 ; | |
30982 | int res1 = 0 ; | |
30983 | void *argp2 = 0 ; | |
30984 | int res2 = 0 ; | |
30985 | PyObject * obj0 = 0 ; | |
30986 | PyObject * obj1 = 0 ; | |
30987 | char * kwnames[] = { | |
30988 | (char *) "self",(char *) "palette", NULL | |
30989 | }; | |
30990 | ||
30991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
30992 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
30993 | if (!SWIG_IsOK(res1)) { | |
30994 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
30995 | } | |
30996 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
30997 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
30998 | if (!SWIG_IsOK(res2)) { | |
30999 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
31000 | } | |
31001 | if (!argp2) { | |
31002 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
31003 | } | |
31004 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
31005 | { | |
31006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31007 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
31008 | wxPyEndAllowThreads(__tstate); | |
31009 | if (PyErr_Occurred()) SWIG_fail; | |
31010 | } | |
31011 | resultobj = SWIG_Py_Void(); | |
31012 | return resultobj; | |
31013 | fail: | |
31014 | return NULL; | |
31015 | } | |
31016 | ||
31017 | ||
31018 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31019 | PyObject *resultobj = 0; | |
31020 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
31021 | wxColour *arg2 = 0 ; | |
31022 | void *argp1 = 0 ; | |
31023 | int res1 = 0 ; | |
31024 | wxColour temp2 ; | |
31025 | PyObject * obj0 = 0 ; | |
31026 | PyObject * obj1 = 0 ; | |
31027 | char * kwnames[] = { | |
31028 | (char *) "self",(char *) "colour", NULL | |
31029 | }; | |
31030 | ||
31031 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
31032 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
31033 | if (!SWIG_IsOK(res1)) { | |
31034 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
31035 | } | |
31036 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
31037 | { | |
31038 | arg2 = &temp2; | |
31039 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31040 | } | |
31041 | { | |
31042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31043 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
31044 | wxPyEndAllowThreads(__tstate); | |
31045 | if (PyErr_Occurred()) SWIG_fail; | |
31046 | } | |
31047 | resultobj = SWIG_Py_Void(); | |
31048 | return resultobj; | |
31049 | fail: | |
31050 | return NULL; | |
31051 | } | |
31052 | ||
31053 | ||
31054 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31055 | PyObject *resultobj = 0; | |
31056 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
31057 | wxColour *arg2 = 0 ; | |
31058 | void *argp1 = 0 ; | |
31059 | int res1 = 0 ; | |
31060 | wxColour temp2 ; | |
31061 | PyObject * obj0 = 0 ; | |
31062 | PyObject * obj1 = 0 ; | |
31063 | char * kwnames[] = { | |
31064 | (char *) "self",(char *) "colour", NULL | |
31065 | }; | |
31066 | ||
31067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
31068 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
31069 | if (!SWIG_IsOK(res1)) { | |
31070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
31071 | } | |
31072 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
31073 | { | |
31074 | arg2 = &temp2; | |
31075 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
31076 | } | |
31077 | { | |
31078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31079 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
31080 | wxPyEndAllowThreads(__tstate); | |
31081 | if (PyErr_Occurred()) SWIG_fail; | |
31082 | } | |
31083 | resultobj = SWIG_Py_Void(); | |
31084 | return resultobj; | |
31085 | fail: | |
31086 | return NULL; | |
31087 | } | |
31088 | ||
31089 | ||
31090 | SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31091 | PyObject *resultobj = 0; | |
31092 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
31093 | int arg2 ; | |
31094 | void *argp1 = 0 ; | |
31095 | int res1 = 0 ; | |
31096 | int val2 ; | |
31097 | int ecode2 = 0 ; | |
31098 | PyObject * obj0 = 0 ; | |
31099 | PyObject * obj1 = 0 ; | |
31100 | char * kwnames[] = { | |
31101 | (char *) "self",(char *) "function", NULL | |
31102 | }; | |
31103 | ||
31104 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
31105 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
31106 | if (!SWIG_IsOK(res1)) { | |
31107 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
31108 | } | |
31109 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
31110 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31111 | if (!SWIG_IsOK(ecode2)) { | |
31112 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
31113 | } | |
31114 | arg2 = static_cast< int >(val2); | |
31115 | { | |
31116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31117 | (arg1)->SetLogicalFunction(arg2); | |
31118 | wxPyEndAllowThreads(__tstate); | |
31119 | if (PyErr_Occurred()) SWIG_fail; | |
31120 | } | |
31121 | resultobj = SWIG_Py_Void(); | |
31122 | return resultobj; | |
31123 | fail: | |
31124 | return NULL; | |
31125 | } | |
31126 | ||
31127 | ||
31128 | SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31129 | PyObject *obj; | |
31130 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31131 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj)); | |
31132 | return SWIG_Py_Void(); | |
31133 | } | |
31134 | ||
31135 | SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31136 | return SWIG_Python_InitShadowInstance(args); | |
31137 | } | |
31138 | ||
31139 | static PyMethodDef SwigMethods[] = { | |
31140 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
31141 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
31142 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
31143 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
31144 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
31145 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31146 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31147 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31148 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
31149 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
31150 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
31151 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
fc46b7f3 | 31152 | { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL}, |
27e45892 RD |
31153 | { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL}, |
31154 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31155 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31156 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31157 | { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31158 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
31159 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31160 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fc46b7f3 | 31161 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
31162 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, |
31163 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
31164 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
31165 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31166 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
31167 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31168 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31169 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
31170 | { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL}, | |
31171 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, | |
31172 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
31173 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31174 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
31175 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
31176 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
31177 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
31178 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
31179 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
31180 | { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL}, | |
31181 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31182 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31183 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31184 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31185 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31186 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31187 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
31188 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31189 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
31190 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31191 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31192 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
31193 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
31194 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31195 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31196 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
31197 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31198 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31199 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31200 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
31201 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
31202 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
31203 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
31204 | { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL}, | |
31205 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, | |
31206 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
31207 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31208 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
31209 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31210 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31211 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31212 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31213 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31214 | { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL}, | |
31215 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, | |
31216 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
31217 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
31218 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
31219 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
31220 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
31221 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31222 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31223 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31224 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31225 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31226 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
31227 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31228 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31229 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31230 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31231 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31232 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31233 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31234 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
31235 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
31236 | { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
31237 | { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31238 | { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31239 | { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL}, | |
31240 | { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL}, | |
31241 | { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL}, | |
31242 | { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL}, | |
31243 | { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL}, | |
31244 | { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL}, | |
31245 | { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL}, | |
31246 | { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL}, | |
31247 | { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL}, | |
31248 | { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL}, | |
31249 | { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL}, | |
31250 | { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL}, | |
31251 | { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL}, | |
31252 | { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL}, | |
31253 | { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL}, | |
31254 | { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31255 | { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL}, | |
31256 | { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL}, | |
31257 | { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31258 | { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31259 | { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31260 | { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31261 | { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31262 | { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL}, | |
31263 | { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
31264 | { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
31265 | { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL}, | |
31266 | { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL}, | |
31267 | { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL}, | |
31268 | { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL}, | |
31269 | { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL}, | |
31270 | { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL}, | |
31271 | { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL}, | |
31272 | { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL}, | |
31273 | { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL}, | |
31274 | { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31275 | { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL}, | |
31276 | { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL}, | |
31277 | { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31278 | { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31279 | { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31280 | { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31281 | { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31282 | { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL}, | |
31283 | { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
31284 | { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
27e45892 RD |
31285 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, |
31286 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
31287 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
31288 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
31289 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31290 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
31291 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
31292 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31293 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31294 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31295 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31296 | { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL}, | |
31297 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, | |
31298 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
31299 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
31300 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31301 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31302 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31303 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31304 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
31305 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
31306 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31307 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
31308 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
31309 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31310 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
31311 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31312 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
31313 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
31314 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
31315 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
31316 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31317 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31318 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
31319 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31320 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31321 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31322 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
31323 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
31324 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31325 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
31326 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31327 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31328 | { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL}, | |
31329 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, | |
31330 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
31331 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31332 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31333 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31334 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31335 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
31336 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
31337 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31338 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31339 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31340 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31341 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31342 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
31343 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31344 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31345 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31346 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
31347 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31348 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31349 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31350 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31351 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31352 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31353 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31354 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31355 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31356 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
31357 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31358 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31359 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
31360 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
31361 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31362 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
31363 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
31364 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
31365 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
31366 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
31367 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
31368 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
31369 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
31370 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
31371 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
31372 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
31373 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
31374 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
31375 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
31376 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
31377 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
31378 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
31379 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31380 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
31381 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
31382 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
31383 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
31384 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
31385 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
31386 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
31387 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31388 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31389 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31390 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31391 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31392 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31393 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31394 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31395 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
31396 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
31397 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31398 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
31399 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
31400 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
31401 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
31402 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
31403 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
31404 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
31405 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
31406 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
31407 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31408 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
31409 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
31410 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
31411 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31412 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31413 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
31414 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
31415 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
31416 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31417 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31418 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
31419 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31420 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31421 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31422 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31423 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31424 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
31425 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31426 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31427 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31428 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31429 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
31430 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
31431 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31432 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
31433 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31434 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31435 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31436 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31437 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31438 | { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL}, | |
31439 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31440 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, |
31441 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
31442 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
31443 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
31444 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
31445 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
31446 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
31447 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
31448 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
31449 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
31450 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
31451 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
31452 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
31453 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
31454 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31455 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31456 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31457 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31458 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31459 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31460 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31461 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31462 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31463 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31464 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31465 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
31466 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
31467 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
31468 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31469 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
31470 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
31471 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31472 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
31473 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
31474 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
31475 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
31476 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31477 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31478 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
31479 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL}, |
31480 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL}, | |
31481 | { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31482 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, |
31483 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
31484 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
31485 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
31486 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
31487 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
31488 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
31489 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
31490 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
31491 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31492 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
31493 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31494 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31495 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
31496 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
31497 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
31498 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
31499 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
31500 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
31501 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
31502 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
31503 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31504 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b | 31505 | { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 RD |
31506 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, |
31507 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31508 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31509 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31510 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31511 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31512 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
31513 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
31514 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
31515 | { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL}, |
31516 | { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL}, | |
31517 | { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31518 | { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31519 | { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31520 | { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL}, | |
31521 | { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
31522 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, |
31523 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
31524 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
31525 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
31526 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31527 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31528 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31529 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31530 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31531 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
31532 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
31533 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
31534 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31535 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31536 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31537 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31538 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31539 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31540 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31541 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31542 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31543 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31544 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31545 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31546 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31547 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31548 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31549 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31550 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31551 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31552 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31553 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31554 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31555 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31556 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31557 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31558 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31559 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31560 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31561 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31562 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31563 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31564 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31565 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31566 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31567 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31568 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31569 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31570 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31571 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31572 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31573 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31574 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31575 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31576 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31577 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31578 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31579 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31580 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31581 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31582 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
31583 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31584 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
31585 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
31586 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
31587 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31588 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31589 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31590 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31591 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31592 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31593 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
31594 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
31595 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
31596 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
31597 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
31598 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31599 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31600 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31601 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31602 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
31603 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
31604 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
31605 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
31606 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31607 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31608 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31609 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31610 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31611 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31612 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31613 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31614 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
31615 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
31616 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
31617 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
31618 | { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL}, | |
31619 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, | |
31620 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
31621 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
31622 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
31623 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
31624 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
31625 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
31626 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31627 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31628 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
31629 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31630 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
31631 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31632 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
31633 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31634 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
31635 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
31636 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31637 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31638 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
31639 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
31640 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31641 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31642 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31643 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
31644 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31645 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
31646 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31647 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31648 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
31649 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
31650 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
31651 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
31652 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
31653 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
31654 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31655 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31656 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31657 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31658 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31659 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31660 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
31661 | { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL}, | |
31662 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31663 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31664 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
31665 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
31666 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, | |
31667 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
31668 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
31669 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, | |
31670 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
31671 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31672 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
31673 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
31674 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, | |
31675 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31676 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31677 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
31678 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
31679 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
31680 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31681 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
31682 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
31683 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31684 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
31685 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
31686 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31687 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
31688 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
31689 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31690 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
31691 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
31692 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31693 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
31694 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31695 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31696 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
31697 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
31698 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
31699 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31700 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
31701 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
31702 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31703 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
31704 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
31705 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31706 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
31707 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
31708 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31709 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
31710 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31711 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31712 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31713 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31714 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31715 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31716 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31717 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
31718 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31719 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
31720 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31721 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
31722 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
31723 | { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL}, |
31724 | { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL}, | |
31725 | { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL}, | |
31726 | { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL}, | |
31727 | { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31728 | { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31729 | { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31730 | { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31731 | { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31732 | { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL}, | |
31733 | { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL}, | |
31734 | { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL}, | |
31735 | { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL}, | |
31736 | { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL}, | |
31737 | { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL}, | |
0085ce49 | 31738 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 31739 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31740 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31741 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, |
0085ce49 | 31742 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 31743 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31744 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
0085ce49 | 31745 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, |
50efceee RD |
31746 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
31747 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31748 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31749 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
0085ce49 RD |
31750 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, |
31751 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
31752 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31753 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31754 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31755 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31756 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
31757 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
31758 | { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL}, |
31759 | { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL}, | |
31760 | { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL}, | |
31761 | { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL}, | |
0085ce49 RD |
31762 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, |
31763 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
31764 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
31765 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
31766 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
31767 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
31768 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31769 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31770 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31771 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31772 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31773 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31774 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31775 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31776 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
31777 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
31778 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31779 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
31780 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
31781 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
31782 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
31783 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
31784 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
33d6fd3b RD |
31785 | { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL}, |
31786 | { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL}, | |
31787 | { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL}, | |
31788 | { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL}, | |
31789 | { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL}, | |
31790 | { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL}, | |
31791 | { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL}, | |
31792 | { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL}, | |
31793 | { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL}, | |
31794 | { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL}, | |
31795 | { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL}, | |
31796 | { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL}, | |
31797 | { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL}, | |
31798 | { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL}, | |
31799 | { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL}, | |
31800 | { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL}, | |
31801 | { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL}, | |
31802 | { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
31803 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
31804 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
31805 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31806 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
31807 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
31808 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
31809 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
31810 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b RD |
31811 | { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL}, |
31812 | { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31813 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
31814 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31815 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31816 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31817 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
01f6b6d3 RD |
31818 | { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
31819 | { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31820 | { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
0085ce49 RD |
31821 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
31822 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
31823 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
31824 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
31825 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31826 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
31827 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
27e45892 RD |
31828 | { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL}, |
31829 | { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL}, | |
31830 | { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL}, | |
31831 | { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL}, | |
31832 | { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL}, | |
31833 | { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL}, | |
31834 | { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31835 | { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31836 | { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31837 | { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31838 | { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31839 | { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31840 | { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31841 | { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31842 | { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31843 | { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31844 | { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31845 | { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31846 | { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31847 | { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31848 | { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31849 | { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31850 | { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31851 | { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31852 | { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31853 | { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31854 | { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31855 | { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31856 | { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31857 | { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31858 | { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31859 | { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31860 | { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31861 | { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31862 | { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31863 | { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31864 | { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31865 | { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31866 | { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31867 | { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31868 | { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31869 | { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31870 | { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31871 | { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31872 | { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31873 | { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31874 | { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31875 | { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31876 | { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31877 | { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31878 | { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31879 | { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31880 | { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31881 | { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31882 | { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL}, | |
31883 | { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31884 | { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31885 | { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31886 | { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31887 | { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31888 | { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31889 | { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31890 | { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31891 | { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
31892 | { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL}, | |
31893 | { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL}, | |
0085ce49 RD |
31894 | { NULL, NULL, 0, NULL } |
31895 | }; | |
31896 | ||
31897 | ||
31898 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
31899 | ||
31900 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { | |
31901 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
31902 | } | |
31903 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
31904 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
31905 | } | |
fc46b7f3 RD |
31906 | static void *_p_wxPyLocaleTo_p_wxLocale(void *x) { |
31907 | return (void *)((wxLocale *) ((wxPyLocale *) x)); | |
31908 | } | |
0085ce49 RD |
31909 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
31910 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
31911 | } | |
31912 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
31913 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
31914 | } | |
31915 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
31916 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
31917 | } | |
31918 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
31919 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
31920 | } | |
31921 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
31922 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
31923 | } | |
31924 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
31925 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
31926 | } | |
31927 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
31928 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
31929 | } | |
31930 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
31931 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
31932 | } | |
31933 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { | |
31934 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
31935 | } | |
31936 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { | |
31937 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
31938 | } | |
31939 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { | |
31940 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
31941 | } | |
31942 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
31943 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
31944 | } | |
31945 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
31946 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
31947 | } | |
31948 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
31949 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
31950 | } | |
31951 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { | |
31952 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
31953 | } | |
31954 | static void *_p_wxClientDCTo_p_wxDC(void *x) { | |
31955 | return (void *)((wxDC *) ((wxClientDC *) x)); | |
31956 | } | |
31957 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
31958 | return (void *)((wxDC *) ((wxPaintDC *) x)); | |
31959 | } | |
31960 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { | |
31961 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
31962 | } | |
31963 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
31964 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
31965 | } | |
50efceee RD |
31966 | static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) { |
31967 | return (void *)((wxGDIObjListBase *) ((wxBrushList *) x)); | |
31968 | } | |
31969 | static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) { | |
31970 | return (void *)((wxGDIObjListBase *) ((wxFontList *) x)); | |
31971 | } | |
31972 | static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) { | |
31973 | return (void *)((wxGDIObjListBase *) ((wxPenList *) x)); | |
31974 | } | |
0085ce49 RD |
31975 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
31976 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
31977 | } | |
31978 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
31979 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
31980 | } | |
31981 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
31982 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
31983 | } | |
31984 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
31985 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
31986 | } | |
0085ce49 RD |
31987 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
31988 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
31989 | } | |
34e0a3bb RD |
31990 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
31991 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
31992 | } | |
0085ce49 RD |
31993 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
31994 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
31995 | } | |
31996 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
31997 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
31998 | } | |
31999 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
32000 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
32001 | } | |
32002 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32003 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32004 | } | |
32005 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32006 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32007 | } | |
32008 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32009 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32010 | } | |
32011 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32012 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32013 | } | |
32014 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32015 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32016 | } | |
0085ce49 RD |
32017 | static void *_p_wxEventTo_p_wxObject(void *x) { |
32018 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32019 | } | |
32020 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32021 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32022 | } | |
32023 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32024 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32025 | } | |
32026 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32027 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32028 | } | |
27e45892 RD |
32029 | static void *_p_wxPseudoDCTo_p_wxObject(void *x) { |
32030 | return (void *)((wxObject *) ((wxPseudoDC *) x)); | |
32031 | } | |
2131d850 RD |
32032 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
32033 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
32034 | } | |
0085ce49 RD |
32035 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
32036 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32037 | } | |
32038 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32039 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32040 | } | |
32041 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
32042 | return (void *)((wxObject *) ((wxDC *) x)); | |
32043 | } | |
32044 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32045 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32046 | } | |
32047 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32048 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32049 | } | |
32050 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32051 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32052 | } | |
32053 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32054 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32055 | } | |
32056 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32057 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32058 | } | |
32059 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32060 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32061 | } | |
32062 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
32063 | return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x)); | |
32064 | } | |
32065 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32066 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32067 | } | |
32068 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
32069 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
32070 | } | |
32071 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
32072 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
32073 | } | |
32074 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32075 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32076 | } | |
32077 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
32078 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
32079 | } | |
32080 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
32081 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
32082 | } | |
32083 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
32084 | return (void *)((wxObject *) ((wxEffects *) x)); | |
32085 | } | |
32086 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32087 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32088 | } | |
32089 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32090 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32091 | } | |
32092 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
32093 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
32094 | } | |
32095 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32096 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32097 | } | |
32098 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32099 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32100 | } | |
32101 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
32102 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
32103 | } | |
32104 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
32105 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32106 | } | |
32107 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32108 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32109 | } | |
32110 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32111 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32112 | } | |
32113 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32114 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32115 | } | |
32116 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32117 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32118 | } | |
32119 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32120 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32121 | } | |
32122 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32123 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32124 | } | |
32125 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32126 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32127 | } | |
32128 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
32129 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32130 | } | |
32131 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32132 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32133 | } | |
32134 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32135 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32136 | } | |
32137 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32138 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32139 | } | |
32140 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32141 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32142 | } | |
32143 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32144 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32145 | } | |
32146 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32147 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32148 | } | |
32149 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32150 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32151 | } | |
32152 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32153 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32154 | } | |
32155 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
32156 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
32157 | } | |
32158 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
32159 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32160 | } | |
32161 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
32162 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32163 | } | |
32164 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
32165 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32166 | } | |
32167 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32168 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32169 | } | |
34e0a3bb RD |
32170 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
32171 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
32172 | } | |
0085ce49 RD |
32173 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { |
32174 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
32175 | } | |
32176 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { | |
32177 | return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x)); | |
32178 | } | |
32179 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
32180 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
32181 | } | |
32182 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
32183 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
32184 | } | |
32185 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
32186 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
32187 | } | |
32188 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
32189 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32190 | } | |
32191 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32192 | return (void *)((wxObject *) ((wxImage *) x)); | |
32193 | } | |
32194 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32195 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32196 | } | |
32197 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
32198 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
32199 | } | |
32200 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
32201 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); | |
32202 | } | |
32203 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
32204 | return (void *)((wxObject *) ((wxImageList *) x)); | |
32205 | } | |
32206 | static void *_p_wxCursorTo_p_wxObject(void *x) { | |
32207 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
32208 | } | |
32209 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
32210 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
32211 | } | |
32212 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
32213 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
32214 | } | |
32215 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32216 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32217 | } | |
32218 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32219 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32220 | } | |
32221 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32222 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32223 | } | |
32224 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32225 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32226 | } | |
32227 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32228 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32229 | } | |
32230 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32231 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32232 | } | |
32233 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
32234 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
32235 | } | |
0085ce49 RD |
32236 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
32237 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32238 | } | |
32239 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
32240 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
32241 | } | |
32242 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
32243 | return (void *)((wxObject *) ((wxMask *) x)); | |
32244 | } | |
32245 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32246 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32247 | } | |
32248 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32249 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32250 | } | |
32251 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32252 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32253 | } | |
32254 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32255 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32256 | } | |
32257 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32258 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32259 | } | |
32260 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32261 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32262 | } | |
32263 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32264 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32265 | } | |
32266 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32267 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32268 | } | |
32269 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32270 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32271 | } | |
32272 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32273 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32274 | } | |
32275 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32276 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32277 | } | |
32278 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
32279 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
32280 | } | |
32281 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
32282 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
32283 | } | |
32284 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
32285 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
32286 | } | |
32287 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32288 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32289 | } | |
32290 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
32291 | return (void *)((wxObject *) ((wxColour *) x)); | |
32292 | } | |
0085ce49 RD |
32293 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
32294 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32295 | } | |
32296 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32297 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32298 | } | |
32299 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32300 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32301 | } | |
32302 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32303 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32304 | } | |
32305 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32306 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32307 | } | |
fc46b7f3 RD |
32308 | static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) { |
32309 | return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x)); | |
32310 | } | |
32311 | static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) { | |
32312 | return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x)); | |
32313 | } | |
32314 | static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
32315 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
32316 | static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0}; | |
32317 | 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}; | |
32318 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
32319 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
32320 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
32321 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
fc46b7f3 RD |
32322 | static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0}; |
32323 | static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
32324 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; |
32325 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
32326 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
32327 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
32328 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 32329 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
32330 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; |
32331 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; | |
32332 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
32333 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
32334 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
32335 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; | |
32336 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
32337 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
32338 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
32339 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
32340 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
32341 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
50efceee | 32342 | static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0}; |
0085ce49 | 32343 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; |
33d6fd3b | 32344 | static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
32345 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
32346 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
32347 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
32348 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
32349 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
32350 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
32351 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
32352 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
32353 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
32354 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
32355 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
32356 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
32357 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
32358 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
fc46b7f3 RD |
32359 | static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0}; |
32360 | static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0}; | |
0085ce49 RD |
32361 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
32362 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
0085ce49 | 32363 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
34e0a3bb | 32364 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
0085ce49 RD |
32365 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
32366 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
32367 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
32368 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
32369 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
32370 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
32371 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
32372 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
32373 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
32374 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
32375 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
32376 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 32377 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
32378 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
32379 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
32380 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
32381 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
32382 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
32383 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
32384 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
32385 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
32386 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
32387 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
32388 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
32389 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
32390 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
32391 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
32392 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
32393 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
32394 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
32395 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
32396 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
32397 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
32398 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
32399 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
32400 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
32401 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; | |
32402 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; | |
32403 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
32404 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
32405 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
32406 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
32407 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
32408 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
32409 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; | |
27e45892 | 32410 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
2131d850 | 32411 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
0085ce49 RD |
32412 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
32413 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
32414 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
34e0a3bb | 32415 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
0085ce49 RD |
32416 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
32417 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
32418 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
32419 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
32420 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
32421 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
32422 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
32423 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
32424 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
32425 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
32426 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
32427 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
32428 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
32429 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
32430 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
32431 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
32432 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
32433 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
32434 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
32435 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
32436 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
32437 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
32438 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; | |
32439 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
32440 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
32441 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
32442 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 32443 | static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
32444 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
32445 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; | |
32446 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
32447 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
27e45892 | 32448 | static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0}; |
0085ce49 | 32449 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; |
fc46b7f3 | 32450 | static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
32451 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; |
32452 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; | |
32453 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
32454 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
32455 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
32456 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
32457 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
32458 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
50efceee | 32459 | static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0}; |
0085ce49 RD |
32460 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; |
32461 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
32462 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
32463 | ||
32464 | static swig_type_info *swig_type_initial[] = { | |
fc46b7f3 | 32465 | &_swigt__p_buffer, |
0085ce49 RD |
32466 | &_swigt__p_char, |
32467 | &_swigt__p_double, | |
32468 | &_swigt__p_form_ops_t, | |
32469 | &_swigt__p_int, | |
32470 | &_swigt__p_unsigned_char, | |
32471 | &_swigt__p_unsigned_int, | |
32472 | &_swigt__p_unsigned_long, | |
32473 | &_swigt__p_wxANIHandler, | |
32474 | &_swigt__p_wxAcceleratorTable, | |
32475 | &_swigt__p_wxActivateEvent, | |
fc46b7f3 RD |
32476 | &_swigt__p_wxAlphaPixelData, |
32477 | &_swigt__p_wxAlphaPixelData_Accessor, | |
0085ce49 RD |
32478 | &_swigt__p_wxBMPHandler, |
32479 | &_swigt__p_wxBitmap, | |
32480 | &_swigt__p_wxBoxSizer, | |
32481 | &_swigt__p_wxBrush, | |
32482 | &_swigt__p_wxBrushList, | |
32483 | &_swigt__p_wxBufferedDC, | |
32484 | &_swigt__p_wxBufferedPaintDC, | |
32485 | &_swigt__p_wxCURHandler, | |
fc46b7f3 | 32486 | &_swigt__p_wxChar, |
0085ce49 RD |
32487 | &_swigt__p_wxChildFocusEvent, |
32488 | &_swigt__p_wxClientDC, | |
2131d850 | 32489 | &_swigt__p_wxClipboardTextEvent, |
0085ce49 RD |
32490 | &_swigt__p_wxCloseEvent, |
32491 | &_swigt__p_wxColour, | |
32492 | &_swigt__p_wxColourDatabase, | |
32493 | &_swigt__p_wxCommandEvent, | |
32494 | &_swigt__p_wxContextMenuEvent, | |
32495 | &_swigt__p_wxControl, | |
32496 | &_swigt__p_wxControlWithItems, | |
32497 | &_swigt__p_wxCursor, | |
32498 | &_swigt__p_wxDC, | |
32499 | &_swigt__p_wxDash, | |
32500 | &_swigt__p_wxDateEvent, | |
32501 | &_swigt__p_wxDisplayChangedEvent, | |
32502 | &_swigt__p_wxDropFilesEvent, | |
32503 | &_swigt__p_wxDuplexMode, | |
32504 | &_swigt__p_wxEffects, | |
32505 | &_swigt__p_wxEncodingConverter, | |
32506 | &_swigt__p_wxEraseEvent, | |
32507 | &_swigt__p_wxEvent, | |
32508 | &_swigt__p_wxEvtHandler, | |
32509 | &_swigt__p_wxFSFile, | |
32510 | &_swigt__p_wxFileSystem, | |
32511 | &_swigt__p_wxFlexGridSizer, | |
32512 | &_swigt__p_wxFocusEvent, | |
32513 | &_swigt__p_wxFont, | |
32514 | &_swigt__p_wxFontList, | |
32515 | &_swigt__p_wxFontMapper, | |
32516 | &_swigt__p_wxGBSizerItem, | |
50efceee | 32517 | &_swigt__p_wxGDIObjListBase, |
0085ce49 RD |
32518 | &_swigt__p_wxGDIObject, |
32519 | &_swigt__p_wxGIFHandler, | |
32520 | &_swigt__p_wxGridBagSizer, | |
32521 | &_swigt__p_wxGridSizer, | |
33d6fd3b | 32522 | &_swigt__p_wxHeaderButtonParams, |
0085ce49 RD |
32523 | &_swigt__p_wxICOHandler, |
32524 | &_swigt__p_wxIcon, | |
32525 | &_swigt__p_wxIconBundle, | |
32526 | &_swigt__p_wxIconLocation, | |
32527 | &_swigt__p_wxIconizeEvent, | |
32528 | &_swigt__p_wxIdleEvent, | |
32529 | &_swigt__p_wxImage, | |
32530 | &_swigt__p_wxImageHandler, | |
32531 | &_swigt__p_wxImageList, | |
32532 | &_swigt__p_wxIndividualLayoutConstraint, | |
32533 | &_swigt__p_wxInitDialogEvent, | |
32534 | &_swigt__p_wxJPEGHandler, | |
32535 | &_swigt__p_wxKeyEvent, | |
32536 | &_swigt__p_wxLanguageInfo, | |
32537 | &_swigt__p_wxLayoutConstraints, | |
32538 | &_swigt__p_wxLocale, | |
32539 | &_swigt__p_wxMask, | |
32540 | &_swigt__p_wxMaximizeEvent, | |
32541 | &_swigt__p_wxMemoryDC, | |
32542 | &_swigt__p_wxMenu, | |
32543 | &_swigt__p_wxMenuBar, | |
32544 | &_swigt__p_wxMenuEvent, | |
32545 | &_swigt__p_wxMenuItem, | |
32546 | &_swigt__p_wxMetaFile, | |
32547 | &_swigt__p_wxMetaFileDC, | |
32548 | &_swigt__p_wxMirrorDC, | |
32549 | &_swigt__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 32550 | &_swigt__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
32551 | &_swigt__p_wxMouseEvent, |
32552 | &_swigt__p_wxMoveEvent, | |
32553 | &_swigt__p_wxNativeEncodingInfo, | |
32554 | &_swigt__p_wxNativeFontInfo, | |
fc46b7f3 RD |
32555 | &_swigt__p_wxNativePixelData, |
32556 | &_swigt__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
32557 | &_swigt__p_wxNavigationKeyEvent, |
32558 | &_swigt__p_wxNcPaintEvent, | |
32559 | &_swigt__p_wxNotifyEvent, | |
32560 | &_swigt__p_wxObject, | |
32561 | &_swigt__p_wxPCXHandler, | |
32562 | &_swigt__p_wxPNGHandler, | |
32563 | &_swigt__p_wxPNMHandler, | |
32564 | &_swigt__p_wxPaintDC, | |
32565 | &_swigt__p_wxPaintEvent, | |
32566 | &_swigt__p_wxPalette, | |
32567 | &_swigt__p_wxPaletteChangedEvent, | |
32568 | &_swigt__p_wxPaperSize, | |
32569 | &_swigt__p_wxPen, | |
32570 | &_swigt__p_wxPenList, | |
fc46b7f3 | 32571 | &_swigt__p_wxPixelDataBase, |
0085ce49 RD |
32572 | &_swigt__p_wxPoint, |
32573 | &_swigt__p_wxPostScriptDC, | |
32574 | &_swigt__p_wxPrintData, | |
32575 | &_swigt__p_wxPrinterDC, | |
27e45892 | 32576 | &_swigt__p_wxPseudoDC, |
0085ce49 RD |
32577 | &_swigt__p_wxPyApp, |
32578 | &_swigt__p_wxPyCommandEvent, | |
32579 | &_swigt__p_wxPyEvent, | |
32580 | &_swigt__p_wxPyFontEnumerator, | |
32581 | &_swigt__p_wxPyImageHandler, | |
fc46b7f3 | 32582 | &_swigt__p_wxPyLocale, |
0085ce49 RD |
32583 | &_swigt__p_wxPySizer, |
32584 | &_swigt__p_wxPyValidator, | |
32585 | &_swigt__p_wxQueryNewPaletteEvent, | |
32586 | &_swigt__p_wxRect, | |
32587 | &_swigt__p_wxRegion, | |
32588 | &_swigt__p_wxRegionIterator, | |
32589 | &_swigt__p_wxRendererNative, | |
32590 | &_swigt__p_wxRendererVersion, | |
32591 | &_swigt__p_wxScreenDC, | |
32592 | &_swigt__p_wxScrollEvent, | |
32593 | &_swigt__p_wxScrollWinEvent, | |
32594 | &_swigt__p_wxSetCursorEvent, | |
32595 | &_swigt__p_wxShowEvent, | |
32596 | &_swigt__p_wxSize, | |
32597 | &_swigt__p_wxSizeEvent, | |
32598 | &_swigt__p_wxSizer, | |
32599 | &_swigt__p_wxSizerItem, | |
32600 | &_swigt__p_wxSplitterRenderParams, | |
32601 | &_swigt__p_wxStaticBoxSizer, | |
32602 | &_swigt__p_wxStdDialogButtonSizer, | |
50efceee | 32603 | &_swigt__p_wxStockGDI, |
0085ce49 RD |
32604 | &_swigt__p_wxString, |
32605 | &_swigt__p_wxSysColourChangedEvent, | |
32606 | &_swigt__p_wxTIFFHandler, | |
32607 | &_swigt__p_wxUpdateUIEvent, | |
32608 | &_swigt__p_wxValidator, | |
32609 | &_swigt__p_wxWindow, | |
32610 | &_swigt__p_wxWindowCreateEvent, | |
32611 | &_swigt__p_wxWindowDC, | |
32612 | &_swigt__p_wxWindowDestroyEvent, | |
32613 | &_swigt__p_wxXPMHandler, | |
32614 | }; | |
32615 | ||
fc46b7f3 | 32616 | static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
32617 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
32618 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
32619 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
32620 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
32621 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
32622 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
32623 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 RD |
32624 | static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}}; |
32625 | static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 RD |
32626 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; |
32627 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
32628 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
32629 | 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}}; | |
32630 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 32631 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
32632 | static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}}; |
32633 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; | |
32634 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
32635 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
32636 | 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}}; | |
32637 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; | |
32638 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
32639 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
32640 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
32641 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
32642 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
32643 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
50efceee | 32644 | 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}}; |
0085ce49 | 32645 | 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}}; |
33d6fd3b | 32646 | static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
32647 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
32648 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
32649 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
32650 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
32651 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
32652 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 32653 | static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxPyLocale, _p_wxPyLocaleTo_p_wxLocale, 0, 0}, {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
32654 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; |
32655 | 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}}; | |
32656 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; | |
32657 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
32658 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
32659 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
32660 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 RD |
32661 | static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}}; |
32662 | static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
0085ce49 | 32663 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 32664 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
34e0a3bb | 32665 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
32666 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32667 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
32668 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32669 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32670 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32671 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32672 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32673 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
32674 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32675 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32676 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32677 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 32678 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
32679 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
32680 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32681 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32682 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32683 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32684 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32685 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
32686 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32687 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
32688 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
32689 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32690 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32691 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32692 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
32693 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32694 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32695 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32696 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32697 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32698 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32699 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32700 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32701 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32702 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32703 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32704 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32705 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32706 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32707 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32708 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32709 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32710 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 32711 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 32712 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
32713 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
32714 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
32715 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 32716 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
32717 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
32718 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
32719 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32720 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32721 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32722 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32723 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
32724 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
32725 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32726 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32727 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
32728 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32729 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32730 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32731 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32732 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32733 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32734 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32735 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
32736 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
32737 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
32738 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
34e0a3bb | 32739 | 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_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_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_wxPseudoDC, _p_wxPseudoDCTo_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_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_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}}; |
0085ce49 RD |
32740 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
32741 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
32742 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
32743 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
32744 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 32745 | static swig_cast_info _swigc__p_wxPixelDataBase[] = { {&_swigt__p_wxPixelDataBase, 0, 0, 0}, {&_swigt__p_wxNativePixelData, _p_wxNativePixelDataTo_p_wxPixelDataBase, 0, 0}, {&_swigt__p_wxAlphaPixelData, _p_wxAlphaPixelDataTo_p_wxPixelDataBase, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
32746 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
32747 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; | |
32748 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
32749 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 32750 | static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 | 32751 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 | 32752 | static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
32753 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; |
32754 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
32755 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
32756 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
32757 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
32758 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
32759 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
32760 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
50efceee | 32761 | static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}}; |
0085ce49 RD |
32762 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; |
32763 | 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}}; | |
32764 | static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}}; | |
32765 | ||
32766 | static swig_cast_info *swig_cast_initial[] = { | |
fc46b7f3 | 32767 | _swigc__p_buffer, |
0085ce49 RD |
32768 | _swigc__p_char, |
32769 | _swigc__p_double, | |
32770 | _swigc__p_form_ops_t, | |
32771 | _swigc__p_int, | |
32772 | _swigc__p_unsigned_char, | |
32773 | _swigc__p_unsigned_int, | |
32774 | _swigc__p_unsigned_long, | |
32775 | _swigc__p_wxANIHandler, | |
32776 | _swigc__p_wxAcceleratorTable, | |
32777 | _swigc__p_wxActivateEvent, | |
fc46b7f3 RD |
32778 | _swigc__p_wxAlphaPixelData, |
32779 | _swigc__p_wxAlphaPixelData_Accessor, | |
0085ce49 RD |
32780 | _swigc__p_wxBMPHandler, |
32781 | _swigc__p_wxBitmap, | |
32782 | _swigc__p_wxBoxSizer, | |
32783 | _swigc__p_wxBrush, | |
32784 | _swigc__p_wxBrushList, | |
32785 | _swigc__p_wxBufferedDC, | |
32786 | _swigc__p_wxBufferedPaintDC, | |
32787 | _swigc__p_wxCURHandler, | |
fc46b7f3 | 32788 | _swigc__p_wxChar, |
0085ce49 RD |
32789 | _swigc__p_wxChildFocusEvent, |
32790 | _swigc__p_wxClientDC, | |
2131d850 | 32791 | _swigc__p_wxClipboardTextEvent, |
0085ce49 RD |
32792 | _swigc__p_wxCloseEvent, |
32793 | _swigc__p_wxColour, | |
32794 | _swigc__p_wxColourDatabase, | |
32795 | _swigc__p_wxCommandEvent, | |
32796 | _swigc__p_wxContextMenuEvent, | |
32797 | _swigc__p_wxControl, | |
32798 | _swigc__p_wxControlWithItems, | |
32799 | _swigc__p_wxCursor, | |
32800 | _swigc__p_wxDC, | |
32801 | _swigc__p_wxDash, | |
32802 | _swigc__p_wxDateEvent, | |
32803 | _swigc__p_wxDisplayChangedEvent, | |
32804 | _swigc__p_wxDropFilesEvent, | |
32805 | _swigc__p_wxDuplexMode, | |
32806 | _swigc__p_wxEffects, | |
32807 | _swigc__p_wxEncodingConverter, | |
32808 | _swigc__p_wxEraseEvent, | |
32809 | _swigc__p_wxEvent, | |
32810 | _swigc__p_wxEvtHandler, | |
32811 | _swigc__p_wxFSFile, | |
32812 | _swigc__p_wxFileSystem, | |
32813 | _swigc__p_wxFlexGridSizer, | |
32814 | _swigc__p_wxFocusEvent, | |
32815 | _swigc__p_wxFont, | |
32816 | _swigc__p_wxFontList, | |
32817 | _swigc__p_wxFontMapper, | |
32818 | _swigc__p_wxGBSizerItem, | |
50efceee | 32819 | _swigc__p_wxGDIObjListBase, |
0085ce49 RD |
32820 | _swigc__p_wxGDIObject, |
32821 | _swigc__p_wxGIFHandler, | |
32822 | _swigc__p_wxGridBagSizer, | |
32823 | _swigc__p_wxGridSizer, | |
33d6fd3b | 32824 | _swigc__p_wxHeaderButtonParams, |
0085ce49 RD |
32825 | _swigc__p_wxICOHandler, |
32826 | _swigc__p_wxIcon, | |
32827 | _swigc__p_wxIconBundle, | |
32828 | _swigc__p_wxIconLocation, | |
32829 | _swigc__p_wxIconizeEvent, | |
32830 | _swigc__p_wxIdleEvent, | |
32831 | _swigc__p_wxImage, | |
32832 | _swigc__p_wxImageHandler, | |
32833 | _swigc__p_wxImageList, | |
32834 | _swigc__p_wxIndividualLayoutConstraint, | |
32835 | _swigc__p_wxInitDialogEvent, | |
32836 | _swigc__p_wxJPEGHandler, | |
32837 | _swigc__p_wxKeyEvent, | |
32838 | _swigc__p_wxLanguageInfo, | |
32839 | _swigc__p_wxLayoutConstraints, | |
32840 | _swigc__p_wxLocale, | |
32841 | _swigc__p_wxMask, | |
32842 | _swigc__p_wxMaximizeEvent, | |
32843 | _swigc__p_wxMemoryDC, | |
32844 | _swigc__p_wxMenu, | |
32845 | _swigc__p_wxMenuBar, | |
32846 | _swigc__p_wxMenuEvent, | |
32847 | _swigc__p_wxMenuItem, | |
32848 | _swigc__p_wxMetaFile, | |
32849 | _swigc__p_wxMetaFileDC, | |
32850 | _swigc__p_wxMirrorDC, | |
32851 | _swigc__p_wxMouseCaptureChangedEvent, | |
34e0a3bb | 32852 | _swigc__p_wxMouseCaptureLostEvent, |
0085ce49 RD |
32853 | _swigc__p_wxMouseEvent, |
32854 | _swigc__p_wxMoveEvent, | |
32855 | _swigc__p_wxNativeEncodingInfo, | |
32856 | _swigc__p_wxNativeFontInfo, | |
fc46b7f3 RD |
32857 | _swigc__p_wxNativePixelData, |
32858 | _swigc__p_wxNativePixelData_Accessor, | |
0085ce49 RD |
32859 | _swigc__p_wxNavigationKeyEvent, |
32860 | _swigc__p_wxNcPaintEvent, | |
32861 | _swigc__p_wxNotifyEvent, | |
32862 | _swigc__p_wxObject, | |
32863 | _swigc__p_wxPCXHandler, | |
32864 | _swigc__p_wxPNGHandler, | |
32865 | _swigc__p_wxPNMHandler, | |
32866 | _swigc__p_wxPaintDC, | |
32867 | _swigc__p_wxPaintEvent, | |
32868 | _swigc__p_wxPalette, | |
32869 | _swigc__p_wxPaletteChangedEvent, | |
32870 | _swigc__p_wxPaperSize, | |
32871 | _swigc__p_wxPen, | |
32872 | _swigc__p_wxPenList, | |
fc46b7f3 | 32873 | _swigc__p_wxPixelDataBase, |
0085ce49 RD |
32874 | _swigc__p_wxPoint, |
32875 | _swigc__p_wxPostScriptDC, | |
32876 | _swigc__p_wxPrintData, | |
32877 | _swigc__p_wxPrinterDC, | |
27e45892 | 32878 | _swigc__p_wxPseudoDC, |
0085ce49 RD |
32879 | _swigc__p_wxPyApp, |
32880 | _swigc__p_wxPyCommandEvent, | |
32881 | _swigc__p_wxPyEvent, | |
32882 | _swigc__p_wxPyFontEnumerator, | |
32883 | _swigc__p_wxPyImageHandler, | |
fc46b7f3 | 32884 | _swigc__p_wxPyLocale, |
0085ce49 RD |
32885 | _swigc__p_wxPySizer, |
32886 | _swigc__p_wxPyValidator, | |
32887 | _swigc__p_wxQueryNewPaletteEvent, | |
32888 | _swigc__p_wxRect, | |
32889 | _swigc__p_wxRegion, | |
32890 | _swigc__p_wxRegionIterator, | |
32891 | _swigc__p_wxRendererNative, | |
32892 | _swigc__p_wxRendererVersion, | |
32893 | _swigc__p_wxScreenDC, | |
32894 | _swigc__p_wxScrollEvent, | |
32895 | _swigc__p_wxScrollWinEvent, | |
32896 | _swigc__p_wxSetCursorEvent, | |
32897 | _swigc__p_wxShowEvent, | |
32898 | _swigc__p_wxSize, | |
32899 | _swigc__p_wxSizeEvent, | |
32900 | _swigc__p_wxSizer, | |
32901 | _swigc__p_wxSizerItem, | |
32902 | _swigc__p_wxSplitterRenderParams, | |
32903 | _swigc__p_wxStaticBoxSizer, | |
32904 | _swigc__p_wxStdDialogButtonSizer, | |
50efceee | 32905 | _swigc__p_wxStockGDI, |
0085ce49 RD |
32906 | _swigc__p_wxString, |
32907 | _swigc__p_wxSysColourChangedEvent, | |
32908 | _swigc__p_wxTIFFHandler, | |
32909 | _swigc__p_wxUpdateUIEvent, | |
32910 | _swigc__p_wxValidator, | |
32911 | _swigc__p_wxWindow, | |
32912 | _swigc__p_wxWindowCreateEvent, | |
32913 | _swigc__p_wxWindowDC, | |
32914 | _swigc__p_wxWindowDestroyEvent, | |
32915 | _swigc__p_wxXPMHandler, | |
32916 | }; | |
32917 | ||
32918 | ||
32919 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
32920 | ||
32921 | static swig_const_info swig_const_table[] = { | |
32922 | {0, 0, 0, 0.0, 0, 0}}; | |
32923 | ||
32924 | #ifdef __cplusplus | |
32925 | } | |
32926 | #endif | |
32927 | /* ----------------------------------------------------------------------------- | |
32928 | * Type initialization: | |
32929 | * This problem is tough by the requirement that no dynamic | |
32930 | * memory is used. Also, since swig_type_info structures store pointers to | |
32931 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
32932 | * to swig_type_info structures, we need some lookup code at initialization. | |
32933 | * The idea is that swig generates all the structures that are needed. | |
32934 | * The runtime then collects these partially filled structures. | |
32935 | * The SWIG_InitializeModule function takes these initial arrays out of | |
32936 | * swig_module, and does all the lookup, filling in the swig_module.types | |
32937 | * array with the correct data and linking the correct swig_cast_info | |
32938 | * structures together. | |
32939 | * | |
32940 | * The generated swig_type_info structures are assigned staticly to an initial | |
32941 | * array. We just loop though that array, and handle each type individually. | |
32942 | * First we lookup if this type has been already loaded, and if so, use the | |
32943 | * loaded structure instead of the generated one. Then we have to fill in the | |
32944 | * cast linked list. The cast data is initially stored in something like a | |
32945 | * two-dimensional array. Each row corresponds to a type (there are the same | |
32946 | * number of rows as there are in the swig_type_initial array). Each entry in | |
32947 | * a column is one of the swig_cast_info structures for that type. | |
32948 | * The cast_initial array is actually an array of arrays, because each row has | |
32949 | * a variable number of columns. So to actually build the cast linked list, | |
32950 | * we find the array of casts associated with the type, and loop through it | |
32951 | * adding the casts to the list. The one last trick we need to do is making | |
32952 | * sure the type pointer in the swig_cast_info struct is correct. | |
32953 | * | |
32954 | * First off, we lookup the cast->type name to see if it is already loaded. | |
32955 | * There are three cases to handle: | |
32956 | * 1) If the cast->type has already been loaded AND the type we are adding | |
32957 | * casting info to has not been loaded (it is in this module), THEN we | |
32958 | * replace the cast->type pointer with the type pointer that has already | |
32959 | * been loaded. | |
32960 | * 2) If BOTH types (the one we are adding casting info to, and the | |
32961 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
32962 | * the previous module so we just ignore it. | |
32963 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
32964 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
32965 | * be correct. | |
32966 | * ----------------------------------------------------------------------------- */ | |
32967 | ||
32968 | #ifdef __cplusplus | |
32969 | extern "C" { | |
32970 | #if 0 | |
32971 | } /* c-mode */ | |
32972 | #endif | |
32973 | #endif | |
32974 | ||
32975 | #if 0 | |
32976 | #define SWIGRUNTIME_DEBUG | |
32977 | #endif | |
32978 | ||
32979 | SWIGRUNTIME void | |
32980 | SWIG_InitializeModule(void *clientdata) { | |
32981 | size_t i; | |
32982 | swig_module_info *module_head; | |
32983 | static int init_run = 0; | |
32984 | ||
32985 | clientdata = clientdata; | |
32986 | ||
32987 | if (init_run) return; | |
32988 | init_run = 1; | |
32989 | ||
32990 | /* Initialize the swig_module */ | |
32991 | swig_module.type_initial = swig_type_initial; | |
32992 | swig_module.cast_initial = swig_cast_initial; | |
32993 | ||
32994 | /* Try and load any already created modules */ | |
32995 | module_head = SWIG_GetModule(clientdata); | |
32996 | if (module_head) { | |
32997 | swig_module.next = module_head->next; | |
32998 | module_head->next = &swig_module; | |
32999 | } else { | |
33000 | /* This is the first module loaded */ | |
33001 | swig_module.next = &swig_module; | |
33002 | SWIG_SetModule(clientdata, &swig_module); | |
33003 | } | |
33004 | ||
33005 | /* Now work on filling in swig_module.types */ | |
33006 | #ifdef SWIGRUNTIME_DEBUG | |
33007 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
33008 | #endif | |
33009 | for (i = 0; i < swig_module.size; ++i) { | |
33010 | swig_type_info *type = 0; | |
33011 | swig_type_info *ret; | |
33012 | swig_cast_info *cast; | |
33013 | ||
33014 | #ifdef SWIGRUNTIME_DEBUG | |
33015 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
33016 | #endif | |
33017 | ||
33018 | /* if there is another module already loaded */ | |
33019 | if (swig_module.next != &swig_module) { | |
33020 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
8d38bd1d | 33021 | } |
0085ce49 RD |
33022 | if (type) { |
33023 | /* Overwrite clientdata field */ | |
33024 | #ifdef SWIGRUNTIME_DEBUG | |
33025 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
33026 | #endif | |
33027 | if (swig_module.type_initial[i]->clientdata) { | |
33028 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
33029 | #ifdef SWIGRUNTIME_DEBUG | |
33030 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
33031 | #endif | |
33032 | } | |
33033 | } else { | |
33034 | type = swig_module.type_initial[i]; | |
8d38bd1d | 33035 | } |
0085ce49 RD |
33036 | |
33037 | /* Insert casting types */ | |
33038 | cast = swig_module.cast_initial[i]; | |
33039 | while (cast->type) { | |
33040 | /* Don't need to add information already in the list */ | |
33041 | ret = 0; | |
33042 | #ifdef SWIGRUNTIME_DEBUG | |
33043 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
33044 | #endif | |
33045 | if (swig_module.next != &swig_module) { | |
33046 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
33047 | #ifdef SWIGRUNTIME_DEBUG | |
33048 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
33049 | #endif | |
33050 | } | |
33051 | if (ret) { | |
33052 | if (type == swig_module.type_initial[i]) { | |
33053 | #ifdef SWIGRUNTIME_DEBUG | |
33054 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
33055 | #endif | |
33056 | cast->type = ret; | |
33057 | ret = 0; | |
33058 | } else { | |
33059 | /* Check for casting already in the list */ | |
33060 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
33061 | #ifdef SWIGRUNTIME_DEBUG | |
33062 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
33063 | #endif | |
33064 | if (!ocast) ret = 0; | |
33065 | } | |
33066 | } | |
33067 | ||
33068 | if (!ret) { | |
33069 | #ifdef SWIGRUNTIME_DEBUG | |
33070 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
33071 | #endif | |
33072 | if (type->cast) { | |
33073 | type->cast->prev = cast; | |
33074 | cast->next = type->cast; | |
33075 | } | |
33076 | type->cast = cast; | |
33077 | } | |
33078 | cast++; | |
8d38bd1d | 33079 | } |
0085ce49 RD |
33080 | /* Set entry in modules->types array equal to the type */ |
33081 | swig_module.types[i] = type; | |
33082 | } | |
33083 | swig_module.types[i] = 0; | |
33084 | ||
33085 | #ifdef SWIGRUNTIME_DEBUG | |
33086 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
33087 | for (i = 0; i < swig_module.size; ++i) { | |
33088 | int j = 0; | |
33089 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
33090 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
33091 | while (cast->type) { | |
33092 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
33093 | cast++; | |
33094 | ++j; | |
33095 | } | |
33096 | printf("---- Total casts: %d\n",j); | |
33097 | } | |
33098 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
33099 | #endif | |
33100 | } | |
33101 | ||
33102 | /* This function will propagate the clientdata field of type to | |
33103 | * any new swig_type_info structures that have been added into the list | |
33104 | * of equivalent types. It is like calling | |
33105 | * SWIG_TypeClientData(type, clientdata) a second time. | |
33106 | */ | |
33107 | SWIGRUNTIME void | |
33108 | SWIG_PropagateClientData(void) { | |
33109 | size_t i; | |
33110 | swig_cast_info *equiv; | |
33111 | static int init_run = 0; | |
33112 | ||
33113 | if (init_run) return; | |
33114 | init_run = 1; | |
33115 | ||
33116 | for (i = 0; i < swig_module.size; i++) { | |
33117 | if (swig_module.types[i]->clientdata) { | |
33118 | equiv = swig_module.types[i]->cast; | |
33119 | while (equiv) { | |
33120 | if (!equiv->converter) { | |
33121 | if (equiv->type && !equiv->type->clientdata) | |
33122 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
33123 | } | |
33124 | equiv = equiv->next; | |
33125 | } | |
8d38bd1d | 33126 | } |
0085ce49 RD |
33127 | } |
33128 | } | |
33129 | ||
33130 | #ifdef __cplusplus | |
33131 | #if 0 | |
33132 | { | |
33133 | /* c-mode */ | |
33134 | #endif | |
33135 | } | |
33136 | #endif | |
33137 | ||
33138 | ||
33139 | ||
33140 | #ifdef __cplusplus | |
33141 | extern "C" { | |
33142 | #endif | |
33143 | ||
33144 | /* Python-specific SWIG API */ | |
33145 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
33146 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
33147 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
33148 | ||
33149 | /* ----------------------------------------------------------------------------- | |
33150 | * global variable support code. | |
33151 | * ----------------------------------------------------------------------------- */ | |
33152 | ||
33153 | typedef struct swig_globalvar { | |
33154 | char *name; /* Name of global variable */ | |
33155 | PyObject *(*get_attr)(void); /* Return the current value */ | |
33156 | int (*set_attr)(PyObject *); /* Set the value */ | |
33157 | struct swig_globalvar *next; | |
33158 | } swig_globalvar; | |
33159 | ||
33160 | typedef struct swig_varlinkobject { | |
33161 | PyObject_HEAD | |
33162 | swig_globalvar *vars; | |
33163 | } swig_varlinkobject; | |
33164 | ||
33165 | SWIGINTERN PyObject * | |
33166 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
33167 | return PyString_FromString("<Swig global variables>"); | |
33168 | } | |
33169 | ||
33170 | SWIGINTERN PyObject * | |
33171 | swig_varlink_str(swig_varlinkobject *v) { | |
33172 | PyObject *str = PyString_FromString("("); | |
33173 | swig_globalvar *var; | |
33174 | for (var = v->vars; var; var=var->next) { | |
33175 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
33176 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
33177 | } | |
33178 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
33179 | return str; | |
33180 | } | |
33181 | ||
33182 | SWIGINTERN int | |
33183 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
33184 | PyObject *str = swig_varlink_str(v); | |
33185 | fprintf(fp,"Swig global variables "); | |
33186 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
33187 | Py_DECREF(str); | |
33188 | return 0; | |
33189 | } | |
33190 | ||
33191 | SWIGINTERN void | |
33192 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
33193 | swig_globalvar *var = v->vars; | |
33194 | while (var) { | |
33195 | swig_globalvar *n = var->next; | |
33196 | free(var->name); | |
33197 | free(var); | |
33198 | var = n; | |
8d38bd1d | 33199 | } |
0085ce49 RD |
33200 | } |
33201 | ||
33202 | SWIGINTERN PyObject * | |
33203 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
33204 | PyObject *res = NULL; | |
33205 | swig_globalvar *var = v->vars; | |
33206 | while (var) { | |
33207 | if (strcmp(var->name,n) == 0) { | |
33208 | res = (*var->get_attr)(); | |
33209 | break; | |
33210 | } | |
33211 | var = var->next; | |
8d38bd1d | 33212 | } |
0085ce49 RD |
33213 | if (res == NULL && !PyErr_Occurred()) { |
33214 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 33215 | } |
0085ce49 RD |
33216 | return res; |
33217 | } | |
33218 | ||
33219 | SWIGINTERN int | |
33220 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
33221 | int res = 1; | |
33222 | swig_globalvar *var = v->vars; | |
33223 | while (var) { | |
33224 | if (strcmp(var->name,n) == 0) { | |
33225 | res = (*var->set_attr)(p); | |
33226 | break; | |
33227 | } | |
33228 | var = var->next; | |
8d38bd1d | 33229 | } |
0085ce49 RD |
33230 | if (res == 1 && !PyErr_Occurred()) { |
33231 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
8d38bd1d | 33232 | } |
0085ce49 RD |
33233 | return res; |
33234 | } | |
33235 | ||
33236 | SWIGINTERN PyTypeObject* | |
33237 | swig_varlink_type(void) { | |
33238 | static char varlink__doc__[] = "Swig var link object"; | |
33239 | static PyTypeObject varlink_type; | |
33240 | static int type_init = 0; | |
33241 | if (!type_init) { | |
33242 | const PyTypeObject tmp | |
33243 | = { | |
33244 | PyObject_HEAD_INIT(NULL) | |
33245 | 0, /* Number of items in variable part (ob_size) */ | |
33246 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
33247 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
33248 | 0, /* Itemsize (tp_itemsize) */ | |
33249 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
33250 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
33251 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
33252 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
33253 | 0, /* tp_compare */ | |
33254 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
33255 | 0, /* tp_as_number */ | |
33256 | 0, /* tp_as_sequence */ | |
33257 | 0, /* tp_as_mapping */ | |
33258 | 0, /* tp_hash */ | |
33259 | 0, /* tp_call */ | |
33260 | (reprfunc)swig_varlink_str, /* tp_str */ | |
33261 | 0, /* tp_getattro */ | |
33262 | 0, /* tp_setattro */ | |
33263 | 0, /* tp_as_buffer */ | |
33264 | 0, /* tp_flags */ | |
33265 | varlink__doc__, /* tp_doc */ | |
33266 | 0, /* tp_traverse */ | |
33267 | 0, /* tp_clear */ | |
33268 | 0, /* tp_richcompare */ | |
33269 | 0, /* tp_weaklistoffset */ | |
33270 | #if PY_VERSION_HEX >= 0x02020000 | |
33271 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
33272 | #endif | |
33273 | #if PY_VERSION_HEX >= 0x02030000 | |
33274 | 0, /* tp_del */ | |
33275 | #endif | |
33276 | #ifdef COUNT_ALLOCS | |
33277 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
33278 | #endif | |
33279 | }; | |
33280 | varlink_type = tmp; | |
33281 | varlink_type.ob_type = &PyType_Type; | |
33282 | type_init = 1; | |
8d38bd1d | 33283 | } |
0085ce49 RD |
33284 | return &varlink_type; |
33285 | } | |
33286 | ||
33287 | /* Create a variable linking object for use later */ | |
33288 | SWIGINTERN PyObject * | |
33289 | SWIG_Python_newvarlink(void) { | |
33290 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
33291 | if (result) { | |
33292 | result->vars = 0; | |
33293 | } | |
33294 | return ((PyObject*) result); | |
33295 | } | |
33296 | ||
33297 | SWIGINTERN void | |
33298 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
33299 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
33300 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
33301 | if (gv) { | |
33302 | size_t size = strlen(name)+1; | |
33303 | gv->name = (char *)malloc(size); | |
33304 | if (gv->name) { | |
33305 | strncpy(gv->name,name,size); | |
33306 | gv->get_attr = get_attr; | |
33307 | gv->set_attr = set_attr; | |
33308 | gv->next = v->vars; | |
33309 | } | |
8d38bd1d | 33310 | } |
0085ce49 RD |
33311 | v->vars = gv; |
33312 | } | |
33313 | ||
33314 | SWIGINTERN PyObject * | |
33315 | SWIG_globals() { | |
33316 | static PyObject *_SWIG_globals = 0; | |
33317 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
33318 | return _SWIG_globals; | |
33319 | } | |
33320 | ||
33321 | /* ----------------------------------------------------------------------------- | |
33322 | * constants/methods manipulation | |
33323 | * ----------------------------------------------------------------------------- */ | |
33324 | ||
33325 | /* Install Constants */ | |
33326 | SWIGINTERN void | |
33327 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
33328 | PyObject *obj = 0; | |
33329 | size_t i; | |
33330 | for (i = 0; constants[i].type; ++i) { | |
33331 | switch(constants[i].type) { | |
33332 | case SWIG_PY_POINTER: | |
33333 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
33334 | break; | |
33335 | case SWIG_PY_BINARY: | |
33336 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
33337 | break; | |
33338 | default: | |
33339 | obj = 0; | |
33340 | break; | |
33341 | } | |
33342 | if (obj) { | |
33343 | PyDict_SetItemString(d, constants[i].name, obj); | |
33344 | Py_DECREF(obj); | |
33345 | } | |
8d38bd1d | 33346 | } |
0085ce49 RD |
33347 | } |
33348 | ||
33349 | /* -----------------------------------------------------------------------------*/ | |
33350 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33351 | /* -----------------------------------------------------------------------------*/ | |
33352 | ||
33353 | SWIGINTERN void | |
33354 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
33355 | swig_const_info *const_table, | |
33356 | swig_type_info **types, | |
33357 | swig_type_info **types_initial) { | |
33358 | size_t i; | |
33359 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 33360 | const char *c = methods[i].ml_doc; |
0085ce49 RD |
33361 | if (c && (c = strstr(c, "swig_ptr: "))) { |
33362 | int j; | |
33363 | swig_const_info *ci = 0; | |
453fb36b | 33364 | const char *name = c + 10; |
0085ce49 RD |
33365 | for (j = 0; const_table[j].type; ++j) { |
33366 | if (strncmp(const_table[j].name, name, | |
33367 | strlen(const_table[j].name)) == 0) { | |
33368 | ci = &(const_table[j]); | |
33369 | break; | |
33370 | } | |
33371 | } | |
33372 | if (ci) { | |
33373 | size_t shift = (ci->ptype) - types; | |
33374 | swig_type_info *ty = types_initial[shift]; | |
33375 | size_t ldoc = (c - methods[i].ml_doc); | |
33376 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
33377 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
33378 | if (ndoc) { | |
33379 | char *buff = ndoc; | |
33380 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
33381 | if (ptr) { | |
33382 | strncpy(buff, methods[i].ml_doc, ldoc); | |
33383 | buff += ldoc; | |
33384 | strncpy(buff, "swig_ptr: ", 10); | |
33385 | buff += 10; | |
33386 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
33387 | methods[i].ml_doc = ndoc; | |
33388 | } | |
33389 | } | |
33390 | } | |
33391 | } | |
8d38bd1d | 33392 | } |
0085ce49 RD |
33393 | } |
33394 | ||
33395 | #ifdef __cplusplus | |
33396 | } | |
33397 | #endif | |
33398 | ||
33399 | /* -----------------------------------------------------------------------------* | |
33400 | * Partial Init method | |
33401 | * -----------------------------------------------------------------------------*/ | |
33402 | ||
33403 | #ifdef __cplusplus | |
33404 | extern "C" | |
33405 | #endif | |
33406 | SWIGEXPORT void SWIG_init(void) { | |
33407 | PyObject *m, *d; | |
33408 | ||
33409 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
33410 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
33411 | ||
33412 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33413 | d = PyModule_GetDict(m); | |
33414 | ||
33415 | SWIG_InitializeModule(0); | |
33416 | SWIG_InstallConstants(d,swig_const_table); | |
33417 | ||
33418 | ||
01f6b6d3 RD |
33419 | SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME))); |
33420 | SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX))); | |
33421 | SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX))); | |
fc46b7f3 RD |
33422 | SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT))); |
33423 | SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE))); | |
0085ce49 RD |
33424 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); |
33425 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
33426 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
33427 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
33428 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
33429 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
33430 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
33431 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
33432 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
33433 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
33434 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
33435 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
33436 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
33437 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
33438 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
33439 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
33440 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
33441 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
33442 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
33443 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
33444 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
33445 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
33446 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
33447 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
33448 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
33449 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
33450 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
33451 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
33452 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
33453 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
33454 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
33455 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
33456 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
33457 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
33458 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
33459 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
33460 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
33461 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
33462 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
33463 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
33464 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
33465 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
33466 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
33467 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
33468 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
33469 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
33470 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
33471 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
33472 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
33473 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
33474 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
33475 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
33476 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
33477 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
33478 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
33479 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
33480 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
33481 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
33482 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
33483 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
33484 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
33485 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
33486 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
33487 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
33488 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
33489 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
33490 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
33491 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
33492 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
33493 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
33494 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
33495 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
33496 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
33497 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
33498 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
33499 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
33500 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
33501 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
33502 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
33503 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
33504 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
33505 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
33506 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
33507 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
33508 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
33509 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
33510 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
33511 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
33512 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
33513 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
33514 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
33515 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
33516 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
33517 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
33518 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
33519 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
33520 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
33521 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
33522 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
33523 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
33524 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
33525 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
33526 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
33527 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
33528 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
33529 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
33530 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
33531 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
33532 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
33533 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
33534 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
33535 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
33536 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
33537 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
33538 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
33539 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
33540 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
33541 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
33542 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
33543 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
33544 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
33545 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
33546 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
33547 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
33548 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
33549 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
33550 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
33551 | ||
33552 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
33553 | ||
33554 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
33555 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
33556 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
33557 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
33558 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
33559 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
33560 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
33561 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
33562 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
33563 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
33564 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
33565 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
33566 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
33567 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
33568 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
33569 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
33570 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
33571 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
33572 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
33573 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
33574 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
33575 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
33576 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
33577 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
33578 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
33579 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
33580 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
33581 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
33582 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
33583 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
33584 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
33585 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
33586 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
33587 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
33588 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
33589 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
33590 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
33591 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
33592 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
33593 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
33594 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
33595 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
33596 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
33597 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
33598 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
33599 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
33600 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
33601 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
33602 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
33603 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
33604 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
33605 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
33606 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
33607 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
33608 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
33609 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
33610 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
33611 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
33612 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
33613 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
33614 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
33615 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
33616 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
33617 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
33618 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
33619 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
33620 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
33621 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
33622 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
33623 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
33624 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
33625 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
33626 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
33627 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
33628 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
33629 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
33630 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
33631 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
33632 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
33633 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
33634 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
33635 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
33636 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
33637 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
33638 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
33639 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
33640 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
33641 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
33642 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
33643 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
33644 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
33645 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
33646 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
33647 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
33648 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
33649 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
33650 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
33651 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
33652 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
33653 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
33654 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
33655 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
33656 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
33657 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
33658 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
33659 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
33660 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
33661 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
33662 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
33663 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
33664 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
33665 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
33666 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
33667 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
33668 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
33669 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
33670 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
33671 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
33672 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
33673 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
33674 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
33675 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
33676 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
33677 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
33678 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
33679 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
33680 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
33681 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
33682 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
33683 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
33684 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
33685 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
33686 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
33687 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
33688 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
33689 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
33690 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
33691 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
33692 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
33693 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
33694 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
33695 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
33696 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
33697 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
33698 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
33699 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
33700 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
33701 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
33702 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
33703 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
33704 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
33705 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
33706 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
33707 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
33708 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
33709 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
33710 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
33711 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
33712 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
33713 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
33714 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
33715 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
33716 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
33717 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
33718 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
33719 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
33720 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
33721 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
33722 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
33723 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
33724 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
33725 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
33726 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
33727 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
33728 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
33729 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
33730 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
33731 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
33732 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
33733 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
33734 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
33735 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
33736 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
33737 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
33738 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
33739 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
33740 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
33741 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
33742 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
33743 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
33744 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
33745 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
33746 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
33747 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
33748 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
33749 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
33750 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
33751 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
33752 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
33753 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
33754 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
33755 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
33756 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
33757 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
33758 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
33759 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
33760 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
33761 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
33762 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
33763 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
33764 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
33765 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
33766 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
33767 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
33768 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
33769 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
33770 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
33771 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
33772 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
33773 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
33774 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
33775 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
33776 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
33777 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
33778 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
33779 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
33780 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
33781 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
33782 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
33783 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
33784 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
33785 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
33786 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
33787 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
33788 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
33789 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
33790 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
33791 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
33792 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
33793 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
33794 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
33795 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
33796 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
33797 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
33798 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
33799 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
33800 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
33801 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
33802 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); | |
33803 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
33804 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
33805 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
33806 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
33807 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
33808 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
50efceee RD |
33809 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK))); |
33810 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE))); | |
33811 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN))); | |
33812 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN))); | |
33813 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY))); | |
33814 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY))); | |
33815 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY))); | |
33816 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED))); | |
33817 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT))); | |
33818 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE))); | |
33819 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK))); | |
33820 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE))); | |
33821 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN))); | |
33822 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN))); | |
33823 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY))); | |
33824 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED))); | |
33825 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE))); | |
33826 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS))); | |
33827 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS))); | |
33828 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD))); | |
33829 | SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC))); | |
33830 | SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL))); | |
33831 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL))); | |
33832 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS))); | |
33833 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK))); | |
33834 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED))); | |
33835 | SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN))); | |
33836 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN))); | |
33837 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY))); | |
33838 | SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY))); | |
33839 | SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY))); | |
33840 | SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED))); | |
33841 | SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT))); | |
33842 | SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE))); | |
33843 | SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT))); | |
0085ce49 | 33844 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); |
0085ce49 RD |
33845 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); |
33846 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
33847 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
33848 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
33849 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
33850 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
33851 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
33852 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
0085ce49 RD |
33853 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); |
33854 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
33855 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
33856 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); | |
33857 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
33858 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
33859 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); | |
33860 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
33861 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
33862 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
33863 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
33864 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
33865 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
33d6fd3b RD |
33866 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE))); |
33867 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP))); | |
33868 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN))); | |
0085ce49 RD |
33869 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); |
33870 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
33871 | ||
33872 | // Work around a chicken/egg problem in drawlist.cpp | |
33873 | wxPyDrawList_SetAPIPtr(); | |
33874 | ||
d14a1e28 RD |
33875 | } |
33876 |