]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
554f62e9 | 3 | * Version 1.3.29 |
d55e5bfc RD |
4 | * |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
554f62e9 | 12 | #define SWIG_PYTHON_DIRECTOR_NO_VTABLE |
d55e5bfc RD |
13 | |
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
093d3ff1 | 27 | }; |
d55e5bfc RD |
28 | #endif |
29 | ||
554f62e9 | 30 | /* ----------------------------------------------------------------------------- |
7449af73 RD |
31 | * This section contains generic SWIG labels for method/variable |
32 | * declarations/attributes, and other compiler dependent labels. | |
554f62e9 | 33 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 34 | |
7449af73 RD |
35 | /* template workaround for compilers that cannot correctly implement the C++ standard */ |
36 | #ifndef SWIGTEMPLATEDISAMBIGUATOR | |
554f62e9 RD |
37 | # if defined(__SUNPRO_CC) |
38 | # if (__SUNPRO_CC <= 0x560) | |
39 | # define SWIGTEMPLATEDISAMBIGUATOR template | |
40 | # else | |
41 | # define SWIGTEMPLATEDISAMBIGUATOR | |
42 | # endif | |
43 | # else | |
44 | # define SWIGTEMPLATEDISAMBIGUATOR | |
45 | # endif | |
093d3ff1 | 46 | #endif |
d55e5bfc | 47 | |
7449af73 RD |
48 | /* inline attribute */ |
49 | #ifndef SWIGINLINE | |
50 | # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__)) | |
51 | # define SWIGINLINE inline | |
52 | # else | |
53 | # define SWIGINLINE | |
54 | # endif | |
55 | #endif | |
56 | ||
57 | /* attribute recognised by some compilers to avoid 'unused' warnings */ | |
58 | #ifndef SWIGUNUSED | |
554f62e9 RD |
59 | # if defined(__GNUC__) |
60 | # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)) | |
61 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
62 | # else | |
63 | # define SWIGUNUSED | |
64 | # endif | |
65 | # elif defined(__ICC) | |
66 | # define SWIGUNUSED __attribute__ ((__unused__)) | |
7449af73 RD |
67 | # else |
68 | # define SWIGUNUSED | |
69 | # endif | |
70 | #endif | |
71 | ||
554f62e9 RD |
72 | #ifndef SWIGUNUSEDPARM |
73 | # ifdef __cplusplus | |
74 | # define SWIGUNUSEDPARM(p) | |
75 | # else | |
76 | # define SWIGUNUSEDPARM(p) p SWIGUNUSED | |
77 | # endif | |
78 | #endif | |
79 | ||
7449af73 RD |
80 | /* internal SWIG method */ |
81 | #ifndef SWIGINTERN | |
82 | # define SWIGINTERN static SWIGUNUSED | |
83 | #endif | |
84 | ||
85 | /* internal inline SWIG method */ | |
86 | #ifndef SWIGINTERNINLINE | |
87 | # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE | |
88 | #endif | |
89 | ||
554f62e9 RD |
90 | /* exporting methods */ |
91 | #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) | |
92 | # ifndef GCC_HASCLASSVISIBILITY | |
93 | # define GCC_HASCLASSVISIBILITY | |
94 | # endif | |
95 | #endif | |
96 | ||
7449af73 RD |
97 | #ifndef SWIGEXPORT |
98 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
99 | # if defined(STATIC_LINKED) | |
100 | # define SWIGEXPORT | |
101 | # else | |
102 | # define SWIGEXPORT __declspec(dllexport) | |
103 | # endif | |
104 | # else | |
554f62e9 RD |
105 | # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY) |
106 | # define SWIGEXPORT __attribute__ ((visibility("default"))) | |
107 | # else | |
108 | # define SWIGEXPORT | |
109 | # endif | |
7449af73 RD |
110 | # endif |
111 | #endif | |
112 | ||
113 | /* calling conventions for Windows */ | |
114 | #ifndef SWIGSTDCALL | |
115 | # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
116 | # define SWIGSTDCALL __stdcall | |
117 | # else | |
118 | # define SWIGSTDCALL | |
119 | # endif | |
120 | #endif | |
121 | ||
554f62e9 RD |
122 | /* Deal with Microsoft's attempt at deprecating C standard runtime functions */ |
123 | #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) | |
124 | # define _CRT_SECURE_NO_DEPRECATE | |
125 | #endif | |
7449af73 | 126 | |
d55e5bfc | 127 | |
554f62e9 | 128 | /* Python.h has to appear first */ |
093d3ff1 | 129 | #include <Python.h> |
d55e5bfc | 130 | |
554f62e9 | 131 | /* ----------------------------------------------------------------------------- |
093d3ff1 | 132 | * swigrun.swg |
d55e5bfc | 133 | * |
554f62e9 RD |
134 | * This file contains generic CAPI SWIG runtime support for pointer |
135 | * type checking. | |
136 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 137 | |
093d3ff1 RD |
138 | /* This should only be incremented when either the layout of swig_type_info changes, |
139 | or for whatever reason, the runtime changes incompatibly */ | |
7449af73 | 140 | #define SWIG_RUNTIME_VERSION "2" |
d55e5bfc | 141 | |
093d3ff1 RD |
142 | /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */ |
143 | #ifdef SWIG_TYPE_TABLE | |
7449af73 RD |
144 | # define SWIG_QUOTE_STRING(x) #x |
145 | # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x) | |
146 | # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE) | |
d55e5bfc | 147 | #else |
7449af73 | 148 | # define SWIG_TYPE_TABLE_NAME |
093d3ff1 RD |
149 | #endif |
150 | ||
151 | /* | |
152 | You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for | |
153 | creating a static or dynamic library from the swig runtime code. | |
154 | In 99.9% of the cases, swig just needs to declare them as 'static'. | |
155 | ||
156 | But only do this if is strictly necessary, ie, if you have problems | |
157 | with your compiler or so. | |
158 | */ | |
7449af73 | 159 | |
093d3ff1 | 160 | #ifndef SWIGRUNTIME |
7449af73 | 161 | # define SWIGRUNTIME SWIGINTERN |
093d3ff1 | 162 | #endif |
7449af73 | 163 | |
093d3ff1 | 164 | #ifndef SWIGRUNTIMEINLINE |
7449af73 | 165 | # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE |
d55e5bfc RD |
166 | #endif |
167 | ||
554f62e9 RD |
168 | /* Generic buffer size */ |
169 | #ifndef SWIG_BUFFER_SIZE | |
170 | # define SWIG_BUFFER_SIZE 1024 | |
171 | #endif | |
172 | ||
173 | /* Flags for pointer conversions */ | |
174 | #define SWIG_POINTER_DISOWN 0x1 | |
175 | ||
176 | /* Flags for new pointer objects */ | |
177 | #define SWIG_POINTER_OWN 0x1 | |
178 | ||
179 | ||
180 | /* | |
181 | Flags/methods for returning states. | |
182 | ||
183 | The swig conversion methods, as ConvertPtr, return and integer | |
184 | that tells if the conversion was successful or not. And if not, | |
185 | an error code can be returned (see swigerrors.swg for the codes). | |
186 | ||
187 | Use the following macros/flags to set or process the returning | |
188 | states. | |
189 | ||
190 | In old swig versions, you usually write code as: | |
191 | ||
192 | if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { | |
193 | // success code | |
194 | } else { | |
195 | //fail code | |
196 | } | |
197 | ||
198 | Now you can be more explicit as: | |
199 | ||
200 | int res = SWIG_ConvertPtr(obj,vptr,ty.flags); | |
201 | if (SWIG_IsOK(res)) { | |
202 | // success code | |
203 | } else { | |
204 | // fail code | |
205 | } | |
206 | ||
207 | that seems to be the same, but now you can also do | |
208 | ||
209 | Type *ptr; | |
210 | int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); | |
211 | if (SWIG_IsOK(res)) { | |
212 | // success code | |
213 | if (SWIG_IsNewObj(res) { | |
214 | ... | |
215 | delete *ptr; | |
216 | } else { | |
217 | ... | |
218 | } | |
219 | } else { | |
220 | // fail code | |
221 | } | |
222 | ||
223 | I.e., now SWIG_ConvertPtr can return new objects and you can | |
224 | identify the case and take care of the deallocation. Of course that | |
225 | requires also to SWIG_ConvertPtr to return new result values, as | |
226 | ||
227 | int SWIG_ConvertPtr(obj, ptr,...) { | |
228 | if (<obj is ok>) { | |
229 | if (<need new object>) { | |
230 | *ptr = <ptr to new allocated object>; | |
231 | return SWIG_NEWOBJ; | |
232 | } else { | |
233 | *ptr = <ptr to old object>; | |
234 | return SWIG_OLDOBJ; | |
235 | } | |
236 | } else { | |
237 | return SWIG_BADOBJ; | |
238 | } | |
239 | } | |
240 | ||
241 | Of course, returning the plain '0(success)/-1(fail)' still works, but you can be | |
242 | more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the | |
243 | swig errors code. | |
244 | ||
245 | Finally, if the SWIG_CASTRANK_MODE is enabled, the result code | |
246 | allows to return the 'cast rank', for example, if you have this | |
247 | ||
248 | int food(double) | |
249 | int fooi(int); | |
250 | ||
251 | and you call | |
252 | ||
253 | food(1) // cast rank '1' (1 -> 1.0) | |
254 | fooi(1) // cast rank '0' | |
255 | ||
256 | just use the SWIG_AddCast()/SWIG_CheckState() | |
257 | ||
258 | ||
259 | */ | |
260 | #define SWIG_OK (0) | |
261 | #define SWIG_ERROR (-1) | |
262 | #define SWIG_IsOK(r) (r >= 0) | |
263 | #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError) | |
264 | ||
265 | /* The CastRankLimit says how many bits are used for the cast rank */ | |
266 | #define SWIG_CASTRANKLIMIT (1 << 8) | |
267 | /* The NewMask denotes the object was created (using new/malloc) */ | |
268 | #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1) | |
269 | /* The TmpMask is for in/out typemaps that use temporal objects */ | |
270 | #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1) | |
271 | /* Simple returning values */ | |
272 | #define SWIG_BADOBJ (SWIG_ERROR) | |
273 | #define SWIG_OLDOBJ (SWIG_OK) | |
274 | #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK) | |
275 | #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK) | |
276 | /* Check, add and del mask methods */ | |
277 | #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r) | |
278 | #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r) | |
279 | #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK)) | |
280 | #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r) | |
281 | #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r) | |
282 | #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK)) | |
283 | ||
284 | ||
285 | /* Cast-Rank Mode */ | |
286 | #if defined(SWIG_CASTRANK_MODE) | |
287 | # ifndef SWIG_TypeRank | |
288 | # define SWIG_TypeRank unsigned long | |
289 | # endif | |
290 | # ifndef SWIG_MAXCASTRANK /* Default cast allowed */ | |
291 | # define SWIG_MAXCASTRANK (2) | |
292 | # endif | |
293 | # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1) | |
294 | # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK) | |
295 | SWIGINTERNINLINE int SWIG_AddCast(int r) { | |
296 | return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r; | |
297 | } | |
298 | SWIGINTERNINLINE int SWIG_CheckState(int r) { | |
299 | return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0; | |
300 | } | |
301 | #else /* no cast-rank mode */ | |
302 | # define SWIG_AddCast | |
303 | # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0) | |
304 | #endif | |
305 | ||
306 | ||
307 | ||
308 | ||
7449af73 RD |
309 | #include <string.h> |
310 | ||
d55e5bfc RD |
311 | #ifdef __cplusplus |
312 | extern "C" { | |
313 | #endif | |
314 | ||
315 | typedef void *(*swig_converter_func)(void *); | |
316 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
317 | ||
7449af73 | 318 | /* Structure to store inforomation on one type */ |
d55e5bfc | 319 | typedef struct swig_type_info { |
7449af73 RD |
320 | const char *name; /* mangled name of this type */ |
321 | const char *str; /* human readable name of this type */ | |
322 | swig_dycast_func dcast; /* dynamic cast function down a hierarchy */ | |
323 | struct swig_cast_info *cast; /* linked list of types that can cast into this type */ | |
324 | void *clientdata; /* language specific type data */ | |
554f62e9 | 325 | int owndata; /* flag if the structure owns the clientdata */ |
d55e5bfc RD |
326 | } swig_type_info; |
327 | ||
7449af73 RD |
328 | /* Structure to store a type and conversion function used for casting */ |
329 | typedef struct swig_cast_info { | |
330 | swig_type_info *type; /* pointer to type that is equivalent to this type */ | |
331 | swig_converter_func converter; /* function to cast the void pointers */ | |
332 | struct swig_cast_info *next; /* pointer to next cast in linked list */ | |
333 | struct swig_cast_info *prev; /* pointer to the previous cast */ | |
334 | } swig_cast_info; | |
335 | ||
336 | /* Structure used to store module information | |
337 | * Each module generates one structure like this, and the runtime collects | |
338 | * all of these structures and stores them in a circularly linked list.*/ | |
339 | typedef struct swig_module_info { | |
340 | swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */ | |
341 | size_t size; /* Number of types in this module */ | |
342 | struct swig_module_info *next; /* Pointer to next element in circularly linked list */ | |
343 | swig_type_info **type_initial; /* Array of initially generated type structures */ | |
344 | swig_cast_info **cast_initial; /* Array of initially generated casting structures */ | |
345 | void *clientdata; /* Language specific module data */ | |
346 | } swig_module_info; | |
347 | ||
093d3ff1 RD |
348 | /* |
349 | Compare two type names skipping the space characters, therefore | |
350 | "char*" == "char *" and "Class<int>" == "Class<int >", etc. | |
351 | ||
352 | Return 0 when the two name types are equivalent, as in | |
353 | strncmp, but skipping ' '. | |
354 | */ | |
355 | SWIGRUNTIME int | |
356 | SWIG_TypeNameComp(const char *f1, const char *l1, | |
357 | const char *f2, const char *l2) { | |
358 | for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) { | |
359 | while ((*f1 == ' ') && (f1 != l1)) ++f1; | |
360 | while ((*f2 == ' ') && (f2 != l2)) ++f2; | |
554f62e9 | 361 | if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1; |
093d3ff1 RD |
362 | } |
363 | return (l1 - f1) - (l2 - f2); | |
364 | } | |
365 | ||
366 | /* | |
367 | Check type equivalence in a name list like <name1>|<name2>|... | |
7449af73 | 368 | Return 0 if not equal, 1 if equal |
093d3ff1 RD |
369 | */ |
370 | SWIGRUNTIME int | |
371 | SWIG_TypeEquiv(const char *nb, const char *tb) { | |
372 | int equiv = 0; | |
373 | const char* te = tb + strlen(tb); | |
374 | const char* ne = nb; | |
375 | while (!equiv && *ne) { | |
376 | for (nb = ne; *ne; ++ne) { | |
377 | if (*ne == '|') break; | |
378 | } | |
7449af73 | 379 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
093d3ff1 RD |
380 | if (*ne) ++ne; |
381 | } | |
382 | return equiv; | |
383 | } | |
384 | ||
385 | /* | |
7449af73 RD |
386 | Check type equivalence in a name list like <name1>|<name2>|... |
387 | Return 0 if equal, -1 if nb < tb, 1 if nb > tb | |
093d3ff1 | 388 | */ |
7449af73 RD |
389 | SWIGRUNTIME int |
390 | SWIG_TypeCompare(const char *nb, const char *tb) { | |
391 | int equiv = 0; | |
392 | const char* te = tb + strlen(tb); | |
393 | const char* ne = nb; | |
394 | while (!equiv && *ne) { | |
395 | for (nb = ne; *ne; ++ne) { | |
396 | if (*ne == '|') break; | |
093d3ff1 | 397 | } |
7449af73 RD |
398 | equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0; |
399 | if (*ne) ++ne; | |
093d3ff1 | 400 | } |
7449af73 | 401 | return equiv; |
093d3ff1 RD |
402 | } |
403 | ||
7449af73 RD |
404 | |
405 | /* think of this as a c++ template<> or a scheme macro */ | |
406 | #define SWIG_TypeCheck_Template(comparison, ty) \ | |
407 | if (ty) { \ | |
408 | swig_cast_info *iter = ty->cast; \ | |
409 | while (iter) { \ | |
410 | if (comparison) { \ | |
411 | if (iter == ty->cast) return iter; \ | |
412 | /* Move iter to the top of the linked list */ \ | |
413 | iter->prev->next = iter->next; \ | |
414 | if (iter->next) \ | |
415 | iter->next->prev = iter->prev; \ | |
416 | iter->next = ty->cast; \ | |
417 | iter->prev = 0; \ | |
418 | if (ty->cast) ty->cast->prev = iter; \ | |
419 | ty->cast = iter; \ | |
420 | return iter; \ | |
421 | } \ | |
422 | iter = iter->next; \ | |
423 | } \ | |
424 | } \ | |
425 | return 0 | |
426 | ||
093d3ff1 RD |
427 | /* |
428 | Check the typename | |
429 | */ | |
7449af73 | 430 | SWIGRUNTIME swig_cast_info * |
093d3ff1 | 431 | SWIG_TypeCheck(const char *c, swig_type_info *ty) { |
7449af73 RD |
432 | SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty); |
433 | } | |
434 | ||
435 | /* Same as previous function, except strcmp is replaced with a pointer comparison */ | |
436 | SWIGRUNTIME swig_cast_info * | |
437 | SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) { | |
438 | SWIG_TypeCheck_Template(iter->type == from, into); | |
093d3ff1 RD |
439 | } |
440 | ||
441 | /* | |
442 | Cast a pointer up an inheritance hierarchy | |
443 | */ | |
444 | SWIGRUNTIMEINLINE void * | |
7449af73 | 445 | SWIG_TypeCast(swig_cast_info *ty, void *ptr) { |
093d3ff1 RD |
446 | return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr); |
447 | } | |
448 | ||
449 | /* | |
450 | Dynamic pointer casting. Down an inheritance hierarchy | |
451 | */ | |
452 | SWIGRUNTIME swig_type_info * | |
453 | SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) { | |
454 | swig_type_info *lastty = ty; | |
455 | if (!ty || !ty->dcast) return ty; | |
456 | while (ty && (ty->dcast)) { | |
457 | ty = (*ty->dcast)(ptr); | |
458 | if (ty) lastty = ty; | |
459 | } | |
460 | return lastty; | |
461 | } | |
462 | ||
463 | /* | |
464 | Return the name associated with this type | |
465 | */ | |
466 | SWIGRUNTIMEINLINE const char * | |
467 | SWIG_TypeName(const swig_type_info *ty) { | |
468 | return ty->name; | |
469 | } | |
470 | ||
471 | /* | |
472 | Return the pretty name associated with this type, | |
473 | that is an unmangled type name in a form presentable to the user. | |
474 | */ | |
475 | SWIGRUNTIME const char * | |
476 | SWIG_TypePrettyName(const swig_type_info *type) { | |
477 | /* The "str" field contains the equivalent pretty names of the | |
478 | type, separated by vertical-bar characters. We choose | |
479 | to print the last name, as it is often (?) the most | |
480 | specific. */ | |
554f62e9 | 481 | if (!type) return NULL; |
093d3ff1 RD |
482 | if (type->str != NULL) { |
483 | const char *last_name = type->str; | |
484 | const char *s; | |
485 | for (s = type->str; *s; s++) | |
486 | if (*s == '|') last_name = s+1; | |
487 | return last_name; | |
488 | } | |
489 | else | |
490 | return type->name; | |
491 | } | |
492 | ||
093d3ff1 RD |
493 | /* |
494 | Set the clientdata field for a type | |
495 | */ | |
496 | SWIGRUNTIME void | |
7449af73 RD |
497 | SWIG_TypeClientData(swig_type_info *ti, void *clientdata) { |
498 | swig_cast_info *cast = ti->cast; | |
093d3ff1 RD |
499 | /* if (ti->clientdata == clientdata) return; */ |
500 | ti->clientdata = clientdata; | |
7449af73 RD |
501 | |
502 | while (cast) { | |
503 | if (!cast->converter) { | |
504 | swig_type_info *tc = cast->type; | |
505 | if (!tc->clientdata) { | |
506 | SWIG_TypeClientData(tc, clientdata); | |
093d3ff1 | 507 | } |
7449af73 RD |
508 | } |
509 | cast = cast->next; | |
510 | } | |
511 | } | |
554f62e9 RD |
512 | SWIGRUNTIME void |
513 | SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) { | |
514 | SWIG_TypeClientData(ti, clientdata); | |
515 | ti->owndata = 1; | |
516 | } | |
517 | ||
7449af73 RD |
518 | /* |
519 | Search for a swig_type_info structure only by mangled name | |
520 | Search is a O(log #types) | |
521 | ||
522 | We start searching at module start, and finish searching when start == end. | |
523 | Note: if start == end at the beginning of the function, we go all the way around | |
524 | the circular list. | |
525 | */ | |
526 | SWIGRUNTIME swig_type_info * | |
527 | SWIG_MangledTypeQueryModule(swig_module_info *start, | |
528 | swig_module_info *end, | |
529 | const char *name) { | |
530 | swig_module_info *iter = start; | |
531 | do { | |
532 | if (iter->size) { | |
533 | register size_t l = 0; | |
534 | register size_t r = iter->size - 1; | |
535 | do { | |
536 | /* since l+r >= 0, we can (>> 1) instead (/ 2) */ | |
537 | register size_t i = (l + r) >> 1; | |
538 | const char *iname = iter->types[i]->name; | |
539 | if (iname) { | |
540 | register int compare = strcmp(name, iname); | |
541 | if (compare == 0) { | |
542 | return iter->types[i]; | |
543 | } else if (compare < 0) { | |
544 | if (i) { | |
545 | r = i - 1; | |
546 | } else { | |
547 | break; | |
548 | } | |
549 | } else if (compare > 0) { | |
550 | l = i + 1; | |
551 | } | |
552 | } else { | |
553 | break; /* should never happen */ | |
554 | } | |
555 | } while (l <= r); | |
093d3ff1 | 556 | } |
7449af73 RD |
557 | iter = iter->next; |
558 | } while (iter != end); | |
559 | return 0; | |
560 | } | |
561 | ||
562 | /* | |
563 | Search for a swig_type_info structure for either a mangled name or a human readable name. | |
564 | It first searches the mangled names of the types, which is a O(log #types) | |
565 | If a type is not found it then searches the human readable names, which is O(#types). | |
566 | ||
567 | We start searching at module start, and finish searching when start == end. | |
568 | Note: if start == end at the beginning of the function, we go all the way around | |
569 | the circular list. | |
570 | */ | |
571 | SWIGRUNTIME swig_type_info * | |
572 | SWIG_TypeQueryModule(swig_module_info *start, | |
573 | swig_module_info *end, | |
574 | const char *name) { | |
575 | /* STEP 1: Search the name field using binary search */ | |
576 | swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name); | |
577 | if (ret) { | |
578 | return ret; | |
579 | } else { | |
580 | /* STEP 2: If the type hasn't been found, do a complete search | |
581 | of the str field (the human readable name) */ | |
582 | swig_module_info *iter = start; | |
583 | do { | |
584 | register size_t i = 0; | |
585 | for (; i < iter->size; ++i) { | |
586 | if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name))) | |
587 | return iter->types[i]; | |
588 | } | |
589 | iter = iter->next; | |
590 | } while (iter != end); | |
093d3ff1 | 591 | } |
7449af73 RD |
592 | |
593 | /* neither found a match */ | |
594 | return 0; | |
093d3ff1 RD |
595 | } |
596 | ||
597 | /* | |
598 | Pack binary data into a string | |
599 | */ | |
600 | SWIGRUNTIME char * | |
601 | SWIG_PackData(char *c, void *ptr, size_t sz) { | |
7449af73 RD |
602 | static const char hex[17] = "0123456789abcdef"; |
603 | register const unsigned char *u = (unsigned char *) ptr; | |
604 | register const unsigned char *eu = u + sz; | |
093d3ff1 | 605 | for (; u != eu; ++u) { |
7449af73 | 606 | register unsigned char uu = *u; |
093d3ff1 RD |
607 | *(c++) = hex[(uu & 0xf0) >> 4]; |
608 | *(c++) = hex[uu & 0xf]; | |
609 | } | |
610 | return c; | |
611 | } | |
612 | ||
613 | /* | |
614 | Unpack binary data from a string | |
615 | */ | |
616 | SWIGRUNTIME const char * | |
617 | SWIG_UnpackData(const char *c, void *ptr, size_t sz) { | |
618 | register unsigned char *u = (unsigned char *) ptr; | |
7449af73 | 619 | register const unsigned char *eu = u + sz; |
093d3ff1 | 620 | for (; u != eu; ++u) { |
7449af73 | 621 | register char d = *(c++); |
554f62e9 | 622 | register unsigned char uu; |
093d3ff1 RD |
623 | if ((d >= '0') && (d <= '9')) |
624 | uu = ((d - '0') << 4); | |
625 | else if ((d >= 'a') && (d <= 'f')) | |
626 | uu = ((d - ('a'-10)) << 4); | |
627 | else | |
628 | return (char *) 0; | |
629 | d = *(c++); | |
630 | if ((d >= '0') && (d <= '9')) | |
631 | uu |= (d - '0'); | |
632 | else if ((d >= 'a') && (d <= 'f')) | |
633 | uu |= (d - ('a'-10)); | |
634 | else | |
635 | return (char *) 0; | |
636 | *u = uu; | |
637 | } | |
638 | return c; | |
639 | } | |
640 | ||
093d3ff1 RD |
641 | /* |
642 | Pack 'void *' into a string buffer. | |
643 | */ | |
644 | SWIGRUNTIME char * | |
645 | SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) { | |
646 | char *r = buff; | |
647 | if ((2*sizeof(void *) + 2) > bsz) return 0; | |
648 | *(r++) = '_'; | |
649 | r = SWIG_PackData(r,&ptr,sizeof(void *)); | |
650 | if (strlen(name) + 1 > (bsz - (r - buff))) return 0; | |
651 | strcpy(r,name); | |
652 | return buff; | |
653 | } | |
654 | ||
655 | SWIGRUNTIME const char * | |
656 | SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) { | |
657 | if (*c != '_') { | |
658 | if (strcmp(c,"NULL") == 0) { | |
659 | *ptr = (void *) 0; | |
660 | return name; | |
661 | } else { | |
662 | return 0; | |
663 | } | |
664 | } | |
665 | return SWIG_UnpackData(++c,ptr,sizeof(void *)); | |
666 | } | |
667 | ||
668 | SWIGRUNTIME char * | |
669 | SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) { | |
670 | char *r = buff; | |
671 | size_t lname = (name ? strlen(name) : 0); | |
672 | if ((2*sz + 2 + lname) > bsz) return 0; | |
673 | *(r++) = '_'; | |
674 | r = SWIG_PackData(r,ptr,sz); | |
675 | if (lname) { | |
676 | strncpy(r,name,lname+1); | |
677 | } else { | |
678 | *r = 0; | |
679 | } | |
680 | return buff; | |
681 | } | |
d55e5bfc | 682 | |
093d3ff1 RD |
683 | SWIGRUNTIME const char * |
684 | SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) { | |
685 | if (*c != '_') { | |
686 | if (strcmp(c,"NULL") == 0) { | |
687 | memset(ptr,0,sz); | |
688 | return name; | |
689 | } else { | |
690 | return 0; | |
691 | } | |
692 | } | |
693 | return SWIG_UnpackData(++c,ptr,sz); | |
694 | } | |
d55e5bfc RD |
695 | |
696 | #ifdef __cplusplus | |
697 | } | |
698 | #endif | |
699 | ||
554f62e9 RD |
700 | /* Errors in SWIG */ |
701 | #define SWIG_UnknownError -1 | |
702 | #define SWIG_IOError -2 | |
703 | #define SWIG_RuntimeError -3 | |
704 | #define SWIG_IndexError -4 | |
705 | #define SWIG_TypeError -5 | |
706 | #define SWIG_DivisionByZero -6 | |
707 | #define SWIG_OverflowError -7 | |
708 | #define SWIG_SyntaxError -8 | |
709 | #define SWIG_ValueError -9 | |
710 | #define SWIG_SystemError -10 | |
711 | #define SWIG_AttributeError -11 | |
712 | #define SWIG_MemoryError -12 | |
713 | #define SWIG_NullReferenceError -13 | |
d55e5bfc | 714 | |
554f62e9 RD |
715 | |
716 | ||
717 | /* Python.h has to appear first */ | |
718 | #include <Python.h> | |
719 | ||
720 | /* Add PyOS_snprintf for old Pythons */ | |
721 | #if PY_VERSION_HEX < 0x02020000 | |
722 | # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM) | |
723 | # define PyOS_snprintf _snprintf | |
724 | # else | |
725 | # define PyOS_snprintf snprintf | |
726 | # endif | |
727 | #endif | |
728 | ||
729 | /* A crude PyString_FromFormat implementation for old Pythons */ | |
730 | #if PY_VERSION_HEX < 0x02020000 | |
731 | ||
732 | #ifndef SWIG_PYBUFFER_SIZE | |
733 | # define SWIG_PYBUFFER_SIZE 1024 | |
734 | #endif | |
735 | ||
736 | static PyObject * | |
737 | PyString_FromFormat(const char *fmt, ...) { | |
738 | va_list ap; | |
739 | char buf[SWIG_PYBUFFER_SIZE * 2]; | |
740 | int res; | |
741 | va_start(ap, fmt); | |
742 | res = vsnprintf(buf, sizeof(buf), fmt, ap); | |
743 | va_end(ap); | |
744 | return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf); | |
745 | } | |
746 | #endif | |
747 | ||
748 | /* Add PyObject_Del for old Pythons */ | |
749 | #if PY_VERSION_HEX < 0x01060000 | |
750 | # define PyObject_Del(op) PyMem_DEL((op)) | |
751 | #endif | |
752 | #ifndef PyObject_DEL | |
753 | # define PyObject_DEL PyObject_Del | |
754 | #endif | |
755 | ||
756 | /* A crude PyExc_StopIteration exception for old Pythons */ | |
757 | #if PY_VERSION_HEX < 0x02020000 | |
758 | # ifndef PyExc_StopIteration | |
759 | # define PyExc_StopIteration PyExc_RuntimeError | |
760 | # endif | |
761 | # ifndef PyObject_GenericGetAttr | |
762 | # define PyObject_GenericGetAttr 0 | |
763 | # endif | |
093d3ff1 | 764 | #endif |
554f62e9 RD |
765 | /* Py_NotImplemented is defined in 2.1 and up. */ |
766 | #if PY_VERSION_HEX < 0x02010000 | |
767 | # ifndef Py_NotImplemented | |
768 | # define Py_NotImplemented PyExc_RuntimeError | |
769 | # endif | |
770 | #endif | |
771 | ||
772 | ||
773 | /* A crude PyString_AsStringAndSize implementation for old Pythons */ | |
774 | #if PY_VERSION_HEX < 0x02010000 | |
775 | # ifndef PyString_AsStringAndSize | |
776 | # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;} | |
777 | # endif | |
778 | #endif | |
779 | ||
780 | /* PySequence_Size for old Pythons */ | |
781 | #if PY_VERSION_HEX < 0x02000000 | |
782 | # ifndef PySequence_Size | |
783 | # define PySequence_Size PySequence_Length | |
784 | # endif | |
785 | #endif | |
786 | ||
787 | ||
788 | /* PyBool_FromLong for old Pythons */ | |
789 | #if PY_VERSION_HEX < 0x02030000 | |
790 | static | |
791 | PyObject *PyBool_FromLong(long ok) | |
792 | { | |
793 | PyObject *result = ok ? Py_True : Py_False; | |
794 | Py_INCREF(result); | |
795 | return result; | |
796 | } | |
797 | #endif | |
798 | ||
c32bde28 | 799 | |
093d3ff1 | 800 | /* ----------------------------------------------------------------------------- |
554f62e9 | 801 | * error manipulation |
093d3ff1 | 802 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 803 | |
554f62e9 RD |
804 | SWIGRUNTIME PyObject* |
805 | SWIG_Python_ErrorType(int code) { | |
806 | PyObject* type = 0; | |
807 | switch(code) { | |
808 | case SWIG_MemoryError: | |
809 | type = PyExc_MemoryError; | |
810 | break; | |
811 | case SWIG_IOError: | |
812 | type = PyExc_IOError; | |
813 | break; | |
814 | case SWIG_RuntimeError: | |
815 | type = PyExc_RuntimeError; | |
816 | break; | |
817 | case SWIG_IndexError: | |
818 | type = PyExc_IndexError; | |
819 | break; | |
820 | case SWIG_TypeError: | |
821 | type = PyExc_TypeError; | |
822 | break; | |
823 | case SWIG_DivisionByZero: | |
824 | type = PyExc_ZeroDivisionError; | |
825 | break; | |
826 | case SWIG_OverflowError: | |
827 | type = PyExc_OverflowError; | |
828 | break; | |
829 | case SWIG_SyntaxError: | |
830 | type = PyExc_SyntaxError; | |
831 | break; | |
832 | case SWIG_ValueError: | |
833 | type = PyExc_ValueError; | |
834 | break; | |
835 | case SWIG_SystemError: | |
836 | type = PyExc_SystemError; | |
837 | break; | |
838 | case SWIG_AttributeError: | |
839 | type = PyExc_AttributeError; | |
840 | break; | |
841 | default: | |
842 | type = PyExc_RuntimeError; | |
843 | } | |
844 | return type; | |
845 | } | |
d55e5bfc | 846 | |
554f62e9 RD |
847 | |
848 | SWIGRUNTIME void | |
849 | SWIG_Python_AddErrorMsg(const char* mesg) | |
850 | { | |
851 | PyObject *type = 0; | |
852 | PyObject *value = 0; | |
853 | PyObject *traceback = 0; | |
854 | ||
855 | if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback); | |
856 | if (value) { | |
857 | PyObject *old_str = PyObject_Str(value); | |
858 | PyErr_Clear(); | |
859 | Py_XINCREF(type); | |
860 | PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg); | |
861 | Py_DECREF(old_str); | |
862 | Py_DECREF(value); | |
863 | } else { | |
864 | PyErr_Format(PyExc_RuntimeError, mesg); | |
865 | } | |
866 | } | |
867 | ||
868 | ||
869 | ||
870 | #if defined(SWIG_PYTHON_NO_THREADS) | |
871 | # if defined(SWIG_PYTHON_THREADS) | |
872 | # undef SWIG_PYTHON_THREADS | |
873 | # endif | |
874 | #endif | |
875 | #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */ | |
876 | # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL) | |
877 | # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */ | |
878 | # define SWIG_PYTHON_USE_GIL | |
879 | # endif | |
880 | # endif | |
881 | # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */ | |
882 | # ifndef SWIG_PYTHON_INITIALIZE_THREADS | |
883 | # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads() | |
884 | # endif | |
885 | # ifdef __cplusplus /* C++ code */ | |
886 | class SWIG_Python_Thread_Block { | |
887 | bool status; | |
888 | PyGILState_STATE state; | |
889 | public: | |
890 | void end() { if (status) { PyGILState_Release(state); status = false;} } | |
891 | SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {} | |
892 | ~SWIG_Python_Thread_Block() { end(); } | |
893 | }; | |
894 | class SWIG_Python_Thread_Allow { | |
895 | bool status; | |
896 | PyThreadState *save; | |
897 | public: | |
898 | void end() { if (status) { PyEval_RestoreThread(save); status = false; }} | |
899 | SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {} | |
900 | ~SWIG_Python_Thread_Allow() { end(); } | |
901 | }; | |
902 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block | |
903 | # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end() | |
904 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow | |
905 | # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end() | |
906 | # else /* C code */ | |
907 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure() | |
908 | # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block) | |
909 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread() | |
910 | # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow) | |
911 | # endif | |
912 | # else /* Old thread way, not implemented, user must provide it */ | |
913 | # if !defined(SWIG_PYTHON_INITIALIZE_THREADS) | |
914 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
915 | # endif | |
916 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK) | |
917 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
918 | # endif | |
919 | # if !defined(SWIG_PYTHON_THREAD_END_BLOCK) | |
920 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
921 | # endif | |
922 | # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW) | |
923 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
924 | # endif | |
925 | # if !defined(SWIG_PYTHON_THREAD_END_ALLOW) | |
926 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
927 | # endif | |
928 | # endif | |
929 | #else /* No thread support */ | |
930 | # define SWIG_PYTHON_INITIALIZE_THREADS | |
931 | # define SWIG_PYTHON_THREAD_BEGIN_BLOCK | |
932 | # define SWIG_PYTHON_THREAD_END_BLOCK | |
933 | # define SWIG_PYTHON_THREAD_BEGIN_ALLOW | |
934 | # define SWIG_PYTHON_THREAD_END_ALLOW | |
093d3ff1 | 935 | #endif |
d55e5bfc | 936 | |
554f62e9 RD |
937 | /* ----------------------------------------------------------------------------- |
938 | * Python API portion that goes into the runtime | |
939 | * ----------------------------------------------------------------------------- */ | |
093d3ff1 | 940 | |
554f62e9 RD |
941 | #ifdef __cplusplus |
942 | extern "C" { | |
943 | #if 0 | |
944 | } /* cc-mode */ | |
945 | #endif | |
946 | #endif | |
093d3ff1 RD |
947 | |
948 | /* ----------------------------------------------------------------------------- | |
949 | * Constant declarations | |
950 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 951 | |
093d3ff1 | 952 | /* Constant Types */ |
093d3ff1 RD |
953 | #define SWIG_PY_POINTER 4 |
954 | #define SWIG_PY_BINARY 5 | |
955 | ||
956 | /* Constant information structure */ | |
957 | typedef struct swig_const_info { | |
554f62e9 RD |
958 | int type; |
959 | char *name; | |
960 | long lvalue; | |
961 | double dvalue; | |
962 | void *pvalue; | |
963 | swig_type_info **ptype; | |
093d3ff1 | 964 | } swig_const_info; |
d55e5bfc | 965 | |
d55e5bfc | 966 | #ifdef __cplusplus |
554f62e9 RD |
967 | #if 0 |
968 | { /* cc-mode */ | |
969 | #endif | |
093d3ff1 RD |
970 | } |
971 | #endif | |
d55e5bfc | 972 | |
d55e5bfc | 973 | |
554f62e9 RD |
974 | /* ----------------------------------------------------------------------------- |
975 | * See the LICENSE file for information on copyright, usage and redistribution | |
976 | * of SWIG, and the README file for authors - http://www.swig.org/release.html. | |
977 | * | |
093d3ff1 RD |
978 | * pyrun.swg |
979 | * | |
554f62e9 RD |
980 | * This file contains the runtime support for Python modules |
981 | * and includes code for managing global variables and pointer | |
982 | * type checking. | |
093d3ff1 | 983 | * |
554f62e9 | 984 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 985 | |
093d3ff1 | 986 | /* Common SWIG API */ |
d55e5bfc | 987 | |
96221a45 RD |
988 | #if PY_VERSION_HEX < 0x02050000 |
989 | typedef int Py_ssize_t; | |
990 | #endif | |
991 | ||
554f62e9 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 | |
d55e5bfc | 1000 | |
554f62e9 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) | |
d55e5bfc | 1004 | |
554f62e9 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) | |
d55e5bfc | 1008 | |
554f62e9 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) | |
d55e5bfc | 1012 | |
554f62e9 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) | |
7449af73 | 1016 | |
c32bde28 | 1017 | |
554f62e9 | 1018 | /* Runtime API */ |
d55e5bfc | 1019 | |
554f62e9 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) | |
7449af73 | 1023 | |
554f62e9 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 | |
7449af73 | 1029 | |
d55e5bfc | 1030 | |
554f62e9 | 1031 | /* Runtime API implementation */ |
c32bde28 | 1032 | |
554f62e9 | 1033 | /* Error manipulation */ |
c32bde28 | 1034 | |
554f62e9 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 | } |
d55e5bfc | 1042 | |
554f62e9 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 | } |
d55e5bfc | 1049 | |
554f62e9 | 1050 | #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj) |
7449af73 | 1051 | |
554f62e9 | 1052 | /* Set a constant value */ |
c32bde28 | 1053 | |
554f62e9 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); | |
d55e5bfc RD |
1058 | } |
1059 | ||
554f62e9 | 1060 | /* Append a value to the result obj */ |
d55e5bfc | 1061 | |
554f62e9 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 { |
554f62e9 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); | |
d55e5bfc | 1100 | } |
554f62e9 RD |
1101 | return result; |
1102 | #endif | |
093d3ff1 | 1103 | } |
d55e5bfc | 1104 | |
554f62e9 | 1105 | /* Unpack the argument tuple */ |
d55e5bfc | 1106 | |
554f62e9 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*/ | |
7449af73 | 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 */ |
7449af73 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 | ||
554f62e9 | 1616 | static PyTypeObject pyswigobject_type; |
7449af73 | 1617 | static int type_init = 0; |
093d3ff1 | 1618 | if (!type_init) { |
554f62e9 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 |
554f62e9 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 |
554f62e9 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 | |
554f62e9 | 1674 | 0, /* tp_del */ |
093d3ff1 RD |
1675 | #endif |
1676 | #ifdef COUNT_ALLOCS | |
554f62e9 | 1677 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1678 | #endif |
554f62e9 | 1679 | }; |
7449af73 | 1680 | pyswigobject_type = tmp; |
554f62e9 | 1681 | pyswigobject_type.ob_type = &PyType_Type; |
093d3ff1 | 1682 | type_init = 1; |
c32bde28 | 1683 | } |
7449af73 | 1684 | return &pyswigobject_type; |
d55e5bfc RD |
1685 | } |
1686 | ||
093d3ff1 | 1687 | SWIGRUNTIME PyObject * |
554f62e9 | 1688 | PySwigObject_New(void *ptr, swig_type_info *ty, int own) |
093d3ff1 | 1689 | { |
554f62e9 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; | |
7449af73 | 1696 | } |
554f62e9 | 1697 | return (PyObject *)sobj; |
093d3ff1 | 1698 | } |
c32bde28 | 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; | |
554f62e9 | 1707 | swig_type_info *ty; |
093d3ff1 RD |
1708 | size_t size; |
1709 | } PySwigPacked; | |
1710 | ||
1711 | SWIGRUNTIME int | |
554f62e9 | 1712 | PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags)) |
c32bde28 | 1713 | { |
093d3ff1 RD |
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); | |
d55e5bfc | 1719 | } |
554f62e9 | 1720 | fputs(v->ty->name,fp); |
093d3ff1 RD |
1721 | fputs(">", fp); |
1722 | return 0; | |
c32bde28 | 1723 | } |
9d7dfdff | 1724 | |
093d3ff1 RD |
1725 | SWIGRUNTIME PyObject * |
1726 | PySwigPacked_repr(PySwigPacked *v) | |
c32bde28 | 1727 | { |
093d3ff1 RD |
1728 | char result[SWIG_BUFFER_SIZE]; |
1729 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) { | |
554f62e9 | 1730 | return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name); |
093d3ff1 | 1731 | } else { |
554f62e9 | 1732 | return PyString_FromFormat("<Swig Packed %s>", v->ty->name); |
093d3ff1 | 1733 | } |
d55e5bfc RD |
1734 | } |
1735 | ||
093d3ff1 RD |
1736 | SWIGRUNTIME PyObject * |
1737 | PySwigPacked_str(PySwigPacked *v) | |
d55e5bfc | 1738 | { |
093d3ff1 RD |
1739 | char result[SWIG_BUFFER_SIZE]; |
1740 | if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){ | |
554f62e9 | 1741 | return PyString_FromFormat("%s%s", result, v->ty->name); |
093d3ff1 | 1742 | } else { |
554f62e9 | 1743 | return PyString_FromString(v->ty->name); |
093d3ff1 | 1744 | } |
d55e5bfc RD |
1745 | } |
1746 | ||
093d3ff1 RD |
1747 | SWIGRUNTIME int |
1748 | PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w) | |
d55e5bfc | 1749 | { |
554f62e9 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); | |
d55e5bfc RD |
1754 | } |
1755 | ||
554f62e9 | 1756 | SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void); |
d55e5bfc | 1757 | |
093d3ff1 | 1758 | SWIGRUNTIME PyTypeObject* |
7449af73 | 1759 | PySwigPacked_type(void) { |
554f62e9 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 | |
554f62e9 | 1837 | 0, /* tp_del */ |
093d3ff1 RD |
1838 | #endif |
1839 | #ifdef COUNT_ALLOCS | |
554f62e9 | 1840 | 0,0,0,0 /* tp_alloc -> tp_next */ |
093d3ff1 | 1841 | #endif |
554f62e9 | 1842 | }; |
7449af73 | 1843 | pyswigpacked_type = tmp; |
554f62e9 | 1844 | pyswigpacked_type.ob_type = &PyType_Type; |
093d3ff1 RD |
1845 | type_init = 1; |
1846 | } | |
7449af73 | 1847 | return &pyswigpacked_type; |
093d3ff1 RD |
1848 | } |
1849 | ||
1850 | SWIGRUNTIME PyObject * | |
554f62e9 | 1851 | PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty) |
093d3ff1 | 1852 | { |
554f62e9 RD |
1853 | PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type()); |
1854 | if (sobj) { | |
093d3ff1 | 1855 | void *pack = malloc(size); |
7449af73 RD |
1856 | if (pack) { |
1857 | memcpy(pack, ptr, size); | |
554f62e9 RD |
1858 | sobj->pack = pack; |
1859 | sobj->ty = ty; | |
1860 | sobj->size = size; | |
1861 | } else { | |
1862 | PyObject_DEL((PyObject *) sobj); | |
1863 | sobj = 0; | |
7449af73 | 1864 | } |
7e63a440 | 1865 | } |
554f62e9 | 1866 | return (PyObject *) sobj; |
093d3ff1 | 1867 | } |
d55e5bfc | 1868 | |
554f62e9 | 1869 | SWIGRUNTIME swig_type_info * |
093d3ff1 RD |
1870 | PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size) |
1871 | { | |
554f62e9 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 | } |
d55e5bfc | 1881 | |
093d3ff1 | 1882 | /* ----------------------------------------------------------------------------- |
554f62e9 | 1883 | * pointers/data manipulation |
093d3ff1 | 1884 | * ----------------------------------------------------------------------------- */ |
d55e5bfc | 1885 | |
554f62e9 RD |
1886 | SWIGRUNTIMEINLINE PyObject * |
1887 | _SWIG_This(void) | |
1888 | { | |
1889 | return PyString_FromString("this"); | |
1890 | } | |
d55e5bfc | 1891 | |
554f62e9 RD |
1892 | SWIGRUNTIME PyObject * |
1893 | SWIG_This(void) | |
1894 | { | |
1895 | static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This(); | |
1896 | return swig_this; | |
1897 | } | |
d55e5bfc | 1898 | |
554f62e9 | 1899 | /* #define SWIG_PYTHON_SLOW_GETSET_THIS */ |
d55e5bfc | 1900 | |
554f62e9 RD |
1901 | SWIGRUNTIME PySwigObject * |
1902 | SWIG_Python_GetSwigThis(PyObject *pyobj) | |
093d3ff1 | 1903 | { |
554f62e9 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 { |
554f62e9 RD |
1927 | if (PyErr_Occurred()) PyErr_Clear(); |
1928 | return 0; | |
093d3ff1 | 1929 | } |
093d3ff1 | 1930 | } |
554f62e9 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; | |
093d3ff1 RD |
1947 | } |
1948 | } | |
d55e5bfc | 1949 | |
554f62e9 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 | } | |
d55e5bfc | 1961 | } |
554f62e9 | 1962 | return 0; |
c32bde28 RD |
1963 | } |
1964 | ||
554f62e9 RD |
1965 | /* Convert a pointer value */ |
1966 | ||
093d3ff1 | 1967 | SWIGRUNTIME int |
554f62e9 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 { |
554f62e9 RD |
1993 | if (ptr) *ptr = vptr; |
1994 | break; | |
093d3ff1 | 1995 | } |
093d3ff1 | 1996 | } |
554f62e9 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 | 2042 | } |
d55e5bfc RD |
2043 | } |
2044 | ||
554f62e9 RD |
2045 | /* Convert a function ptr value */ |
2046 | ||
093d3ff1 | 2047 | SWIGRUNTIME int |
554f62e9 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 { |
554f62e9 RD |
2052 | void *vptr = 0; |
2053 | ||
2054 | /* here we get the method pointer for callbacks */ | |
96221a45 | 2055 | const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc); |
554f62e9 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 | } | |
d55e5bfc | 2071 | |
554f62e9 | 2072 | /* Convert a packed value value */ |
d55e5bfc | 2073 | |
093d3ff1 | 2074 | SWIGRUNTIME int |
554f62e9 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 | } | |
093d3ff1 | 2084 | } |
554f62e9 RD |
2085 | return SWIG_OK; |
2086 | } | |
d55e5bfc | 2087 | |
554f62e9 RD |
2088 | /* ----------------------------------------------------------------------------- |
2089 | * Create a new pointer object | |
2090 | * ----------------------------------------------------------------------------- */ | |
d55e5bfc | 2091 | |
554f62e9 RD |
2092 | /* |
2093 | Create a new instance object, whitout calling __init__, and set the | |
2094 | 'this' attribute. | |
2095 | */ | |
d55e5bfc | 2096 | |
554f62e9 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 | } |
554f62e9 RD |
2116 | #else |
2117 | PyObject *key = SWIG_This(); | |
2118 | PyObject_SetAttr(inst, key, swig_this); | |
2119 | #endif | |
093d3ff1 | 2120 | } |
554f62e9 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 | } |
554f62e9 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 | } |
554f62e9 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 | } |
554f62e9 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 | } |
d55e5bfc | 2159 | |
554f62e9 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 |
554f62e9 RD |
2176 | dict = PyObject_GetAttrString(inst, "__dict__"); |
2177 | PyDict_SetItem(dict, SWIG_This(), swig_this); | |
2178 | Py_DECREF(dict); | |
2179 | } | |
d55e5bfc | 2180 | |
554f62e9 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 { |
554f62e9 | 2192 | SWIG_Python_SetSwigThis(obj[0], obj[1]); |
093d3ff1 | 2193 | } |
554f62e9 | 2194 | return SWIG_Py_Void(); |
093d3ff1 | 2195 | } |
554f62e9 RD |
2196 | } |
2197 | ||
2198 | /* Create a new pointer object */ | |
093d3ff1 | 2199 | |
093d3ff1 | 2200 | SWIGRUNTIME PyObject * |
554f62e9 | 2201 | SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) { |
093d3ff1 | 2202 | if (!ptr) { |
554f62e9 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 | } |
554f62e9 | 2215 | return robj; |
093d3ff1 | 2216 | } |
093d3ff1 RD |
2217 | } |
2218 | ||
554f62e9 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) { |
554f62e9 | 2223 | return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void(); |
093d3ff1 | 2224 | } |
d55e5bfc | 2225 | |
093d3ff1 RD |
2226 | /* -----------------------------------------------------------------------------* |
2227 | * Get type list | |
2228 | * -----------------------------------------------------------------------------*/ | |
d55e5bfc | 2229 | |
093d3ff1 RD |
2230 | #ifdef SWIG_LINK_RUNTIME |
2231 | void *SWIG_ReturnGlobalTypeList(void *); | |
2232 | #endif | |
d55e5bfc | 2233 | |
7449af73 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); | |
d55e5bfc | 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 | } | |
d55e5bfc | 2248 | #endif |
7449af73 RD |
2249 | } |
2250 | return (swig_module_info *) type_pointer; | |
093d3ff1 | 2251 | } |
d55e5bfc | 2252 | |
7449af73 RD |
2253 | #if PY_MAJOR_VERSION < 2 |
2254 | /* PyModule_AddObject function was introduced in Python 2.0. The following function | |
554f62e9 | 2255 | is copied out of Python/modsupport.c in python version 2.3.4 */ |
7449af73 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"); | |
554f62e9 | 2263 | return SWIG_ERROR; |
7449af73 RD |
2264 | } |
2265 | if (!o) { | |
2266 | PyErr_SetString(PyExc_TypeError, | |
2267 | "PyModule_AddObject() needs non-NULL value"); | |
554f62e9 | 2268 | return SWIG_ERROR; |
7449af73 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)); | |
554f62e9 | 2276 | return SWIG_ERROR; |
7449af73 RD |
2277 | } |
2278 | if (PyDict_SetItemString(dict, name, o)) | |
554f62e9 | 2279 | return SWIG_ERROR; |
7449af73 | 2280 | Py_DECREF(o); |
554f62e9 | 2281 | return SWIG_OK; |
093d3ff1 | 2282 | } |
7449af73 | 2283 | #endif |
d55e5bfc | 2284 | |
554f62e9 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 | ||
7449af73 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); | |
554f62e9 | 2307 | PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule); |
7449af73 RD |
2308 | if (pointer && module) { |
2309 | PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer); | |
554f62e9 RD |
2310 | } else { |
2311 | Py_XDECREF(pointer); | |
7449af73 RD |
2312 | } |
2313 | } | |
d55e5bfc | 2314 | |
554f62e9 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 | } |
5e483524 | 2321 | |
554f62e9 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] | |
0a27f394 RD |
2474 | #define SWIGTYPE_p_void swig_types[8] |
2475 | #define SWIGTYPE_p_wxANIHandler swig_types[9] | |
2476 | #define SWIGTYPE_p_wxAcceleratorTable swig_types[10] | |
2477 | #define SWIGTYPE_p_wxActivateEvent swig_types[11] | |
2478 | #define SWIGTYPE_p_wxAlphaPixelData swig_types[12] | |
2479 | #define SWIGTYPE_p_wxAlphaPixelData_Accessor swig_types[13] | |
2480 | #define SWIGTYPE_p_wxAutoBufferedPaintDC swig_types[14] | |
2481 | #define SWIGTYPE_p_wxBMPHandler swig_types[15] | |
2482 | #define SWIGTYPE_p_wxBitmap swig_types[16] | |
2483 | #define SWIGTYPE_p_wxBoxSizer swig_types[17] | |
2484 | #define SWIGTYPE_p_wxBrush swig_types[18] | |
2485 | #define SWIGTYPE_p_wxBrushList swig_types[19] | |
2486 | #define SWIGTYPE_p_wxBufferedDC swig_types[20] | |
2487 | #define SWIGTYPE_p_wxBufferedPaintDC swig_types[21] | |
2488 | #define SWIGTYPE_p_wxCURHandler swig_types[22] | |
2489 | #define SWIGTYPE_p_wxChar swig_types[23] | |
2490 | #define SWIGTYPE_p_wxChildFocusEvent swig_types[24] | |
2491 | #define SWIGTYPE_p_wxClientDC swig_types[25] | |
2492 | #define SWIGTYPE_p_wxClipboardTextEvent swig_types[26] | |
2493 | #define SWIGTYPE_p_wxCloseEvent swig_types[27] | |
2494 | #define SWIGTYPE_p_wxColor swig_types[28] | |
2495 | #define SWIGTYPE_p_wxColour swig_types[29] | |
2496 | #define SWIGTYPE_p_wxColourDatabase swig_types[30] | |
2497 | #define SWIGTYPE_p_wxCommandEvent swig_types[31] | |
2498 | #define SWIGTYPE_p_wxContextMenuEvent swig_types[32] | |
2499 | #define SWIGTYPE_p_wxControl swig_types[33] | |
2500 | #define SWIGTYPE_p_wxControlWithItems swig_types[34] | |
2501 | #define SWIGTYPE_p_wxCursor swig_types[35] | |
2502 | #define SWIGTYPE_p_wxDC swig_types[36] | |
2503 | #define SWIGTYPE_p_wxDCOverlay swig_types[37] | |
2504 | #define SWIGTYPE_p_wxDash swig_types[38] | |
2505 | #define SWIGTYPE_p_wxDateEvent swig_types[39] | |
2506 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[40] | |
2507 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[41] | |
2508 | #define SWIGTYPE_p_wxDuplexMode swig_types[42] | |
2509 | #define SWIGTYPE_p_wxEffects swig_types[43] | |
2510 | #define SWIGTYPE_p_wxEncodingConverter swig_types[44] | |
2511 | #define SWIGTYPE_p_wxEraseEvent swig_types[45] | |
2512 | #define SWIGTYPE_p_wxEvent swig_types[46] | |
2513 | #define SWIGTYPE_p_wxEvtHandler swig_types[47] | |
2514 | #define SWIGTYPE_p_wxFSFile swig_types[48] | |
2515 | #define SWIGTYPE_p_wxFileSystem swig_types[49] | |
2516 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[50] | |
2517 | #define SWIGTYPE_p_wxFocusEvent swig_types[51] | |
2518 | #define SWIGTYPE_p_wxFont swig_types[52] | |
2519 | #define SWIGTYPE_p_wxFontList swig_types[53] | |
2520 | #define SWIGTYPE_p_wxFontMapper swig_types[54] | |
2521 | #define SWIGTYPE_p_wxGBSizerItem swig_types[55] | |
2522 | #define SWIGTYPE_p_wxGCDC swig_types[56] | |
2523 | #define SWIGTYPE_p_wxGDIObjListBase swig_types[57] | |
2524 | #define SWIGTYPE_p_wxGDIObject swig_types[58] | |
2525 | #define SWIGTYPE_p_wxGIFHandler swig_types[59] | |
2526 | #define SWIGTYPE_p_wxGraphicsContext swig_types[60] | |
2527 | #define SWIGTYPE_p_wxGraphicsPath swig_types[61] | |
2528 | #define SWIGTYPE_p_wxGridBagSizer swig_types[62] | |
2529 | #define SWIGTYPE_p_wxGridSizer swig_types[63] | |
2530 | #define SWIGTYPE_p_wxHeaderButtonParams swig_types[64] | |
2531 | #define SWIGTYPE_p_wxICOHandler swig_types[65] | |
2532 | #define SWIGTYPE_p_wxIcon swig_types[66] | |
2533 | #define SWIGTYPE_p_wxIconBundle swig_types[67] | |
2534 | #define SWIGTYPE_p_wxIconLocation swig_types[68] | |
2535 | #define SWIGTYPE_p_wxIconizeEvent swig_types[69] | |
2536 | #define SWIGTYPE_p_wxIdleEvent swig_types[70] | |
2537 | #define SWIGTYPE_p_wxImage swig_types[71] | |
2538 | #define SWIGTYPE_p_wxImageHandler swig_types[72] | |
2539 | #define SWIGTYPE_p_wxImageList swig_types[73] | |
2540 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[74] | |
2541 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[75] | |
2542 | #define SWIGTYPE_p_wxJPEGHandler swig_types[76] | |
2543 | #define SWIGTYPE_p_wxKeyEvent swig_types[77] | |
2544 | #define SWIGTYPE_p_wxLanguageInfo swig_types[78] | |
2545 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[79] | |
2546 | #define SWIGTYPE_p_wxLocale swig_types[80] | |
2547 | #define SWIGTYPE_p_wxMask swig_types[81] | |
2548 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[82] | |
2549 | #define SWIGTYPE_p_wxMemoryDC swig_types[83] | |
2550 | #define SWIGTYPE_p_wxMenu swig_types[84] | |
2551 | #define SWIGTYPE_p_wxMenuBar swig_types[85] | |
2552 | #define SWIGTYPE_p_wxMenuEvent swig_types[86] | |
2553 | #define SWIGTYPE_p_wxMenuItem swig_types[87] | |
2554 | #define SWIGTYPE_p_wxMetaFile swig_types[88] | |
2555 | #define SWIGTYPE_p_wxMetaFileDC swig_types[89] | |
2556 | #define SWIGTYPE_p_wxMirrorDC swig_types[90] | |
2557 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[91] | |
2558 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[92] | |
2559 | #define SWIGTYPE_p_wxMouseEvent swig_types[93] | |
2560 | #define SWIGTYPE_p_wxMoveEvent swig_types[94] | |
2561 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[95] | |
2562 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[96] | |
2563 | #define SWIGTYPE_p_wxNativePixelData swig_types[97] | |
2564 | #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[98] | |
2565 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[99] | |
2566 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[100] | |
2567 | #define SWIGTYPE_p_wxNotifyEvent swig_types[101] | |
2568 | #define SWIGTYPE_p_wxObject swig_types[102] | |
2569 | #define SWIGTYPE_p_wxOverlay swig_types[103] | |
2570 | #define SWIGTYPE_p_wxPCXHandler swig_types[104] | |
2571 | #define SWIGTYPE_p_wxPNGHandler swig_types[105] | |
2572 | #define SWIGTYPE_p_wxPNMHandler swig_types[106] | |
2573 | #define SWIGTYPE_p_wxPaintDC swig_types[107] | |
2574 | #define SWIGTYPE_p_wxPaintEvent swig_types[108] | |
2575 | #define SWIGTYPE_p_wxPalette swig_types[109] | |
2576 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[110] | |
2577 | #define SWIGTYPE_p_wxPaperSize swig_types[111] | |
2578 | #define SWIGTYPE_p_wxPen swig_types[112] | |
2579 | #define SWIGTYPE_p_wxPenList swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPixelDataBase swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPoint swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPoint2D swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPostScriptDC swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPrintData swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPrinterDC swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPseudoDC swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPyApp swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPyEvent swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[124] | |
2591 | #define SWIGTYPE_p_wxPyImageHandler swig_types[125] | |
2592 | #define SWIGTYPE_p_wxPyLocale swig_types[126] | |
2593 | #define SWIGTYPE_p_wxPySizer swig_types[127] | |
2594 | #define SWIGTYPE_p_wxPyValidator swig_types[128] | |
2595 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[129] | |
2596 | #define SWIGTYPE_p_wxRect swig_types[130] | |
2597 | #define SWIGTYPE_p_wxRegion swig_types[131] | |
2598 | #define SWIGTYPE_p_wxRegionIterator swig_types[132] | |
2599 | #define SWIGTYPE_p_wxRendererNative swig_types[133] | |
2600 | #define SWIGTYPE_p_wxRendererVersion swig_types[134] | |
2601 | #define SWIGTYPE_p_wxScreenDC swig_types[135] | |
2602 | #define SWIGTYPE_p_wxScrollEvent swig_types[136] | |
2603 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[137] | |
2604 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[138] | |
2605 | #define SWIGTYPE_p_wxShowEvent swig_types[139] | |
2606 | #define SWIGTYPE_p_wxSize swig_types[140] | |
2607 | #define SWIGTYPE_p_wxSizeEvent swig_types[141] | |
2608 | #define SWIGTYPE_p_wxSizer swig_types[142] | |
2609 | #define SWIGTYPE_p_wxSizerItem swig_types[143] | |
2610 | #define SWIGTYPE_p_wxSplitterRenderParams swig_types[144] | |
2611 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[145] | |
2612 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[146] | |
2613 | #define SWIGTYPE_p_wxStockGDI swig_types[147] | |
2614 | #define SWIGTYPE_p_wxString swig_types[148] | |
2615 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[149] | |
2616 | #define SWIGTYPE_p_wxTIFFHandler swig_types[150] | |
2617 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[151] | |
2618 | #define SWIGTYPE_p_wxValidator swig_types[152] | |
2619 | #define SWIGTYPE_p_wxWindow swig_types[153] | |
2620 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[154] | |
2621 | #define SWIGTYPE_p_wxWindowDC swig_types[155] | |
2622 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[156] | |
2623 | #define SWIGTYPE_p_wxXPMHandler swig_types[157] | |
2624 | static swig_type_info *swig_types[159]; | |
2625 | static swig_module_info swig_module = {swig_types, 158, 0, 0, 0, 0}; | |
7449af73 RD |
2626 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2627 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
d55e5bfc | 2628 | |
093d3ff1 | 2629 | /* -------- TYPES TABLE (END) -------- */ |
d55e5bfc | 2630 | |
554f62e9 RD |
2631 | #if (PY_VERSION_HEX <= 0x02000000) |
2632 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2633 | # error "This python version requires to use swig with the '-classic' option" | |
2634 | # endif | |
2635 | #endif | |
2636 | #if (PY_VERSION_HEX <= 0x02020000) | |
2637 | # error "This python version requires to use swig with the '-nomodern' option" | |
2638 | #endif | |
2639 | #if (PY_VERSION_HEX <= 0x02020000) | |
2640 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2641 | #endif | |
2642 | #ifndef METH_O | |
2643 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2644 | #endif | |
d55e5bfc | 2645 | |
093d3ff1 RD |
2646 | /*----------------------------------------------- |
2647 | @(target):= _gdi_.so | |
2648 | ------------------------------------------------*/ | |
2649 | #define SWIG_init init_gdi_ | |
d55e5bfc | 2650 | |
093d3ff1 | 2651 | #define SWIG_name "_gdi_" |
d55e5bfc | 2652 | |
554f62e9 | 2653 | #define SWIGVERSION 0x010329 |
d55e5bfc | 2654 | |
d55e5bfc | 2655 | |
554f62e9 RD |
2656 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2657 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
d55e5bfc RD |
2658 | |
2659 | ||
554f62e9 RD |
2660 | #include <stdexcept> |
2661 | ||
2662 | ||
2663 | namespace swig { | |
2664 | class PyObject_ptr { | |
2665 | protected: | |
2666 | PyObject *_obj; | |
2667 | ||
2668 | public: | |
2669 | PyObject_ptr() :_obj(0) | |
2670 | { | |
093d3ff1 | 2671 | } |
554f62e9 RD |
2672 | |
2673 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2674 | { | |
2675 | Py_XINCREF(_obj); | |
093d3ff1 | 2676 | } |
554f62e9 RD |
2677 | |
2678 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2679 | { | |
2680 | if (initial_ref) Py_XINCREF(_obj); | |
2681 | } | |
2682 | ||
2683 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2684 | { | |
2685 | Py_XINCREF(item._obj); | |
2686 | Py_XDECREF(_obj); | |
2687 | _obj = item._obj; | |
2688 | return *this; | |
2689 | } | |
2690 | ||
2691 | ~PyObject_ptr() | |
2692 | { | |
2693 | Py_XDECREF(_obj); | |
2694 | } | |
2695 | ||
2696 | operator PyObject *() const | |
2697 | { | |
2698 | return _obj; | |
2699 | } | |
2700 | ||
2701 | PyObject *operator->() const | |
2702 | { | |
2703 | return _obj; | |
2704 | } | |
2705 | }; | |
093d3ff1 | 2706 | } |
d55e5bfc | 2707 | |
d55e5bfc | 2708 | |
554f62e9 RD |
2709 | namespace swig { |
2710 | struct PyObject_var : PyObject_ptr { | |
2711 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2712 | ||
2713 | PyObject_var & operator = (PyObject* obj) | |
2714 | { | |
2715 | Py_XDECREF(_obj); | |
2716 | _obj = obj; | |
2717 | return *this; | |
d55e5bfc | 2718 | } |
554f62e9 | 2719 | }; |
d55e5bfc RD |
2720 | } |
2721 | ||
2722 | ||
554f62e9 RD |
2723 | #include "wx/wxPython/wxPython.h" |
2724 | #include "wx/wxPython/pyclasses.h" | |
2725 | ||
2726 | ||
2727 | static const wxString wxPyEmptyString(wxEmptyString); | |
2728 | ||
f460c29d RD |
2729 | #define SWIG_From_long PyInt_FromLong |
2730 | ||
2731 | ||
2732 | SWIGINTERNINLINE PyObject * | |
2733 | SWIG_From_int (int value) | |
2734 | { | |
2735 | return SWIG_From_long (value); | |
2736 | } | |
2737 | ||
2738 | ||
554f62e9 RD |
2739 | #include <limits.h> |
2740 | #ifndef LLONG_MIN | |
2741 | # define LLONG_MIN LONG_LONG_MIN | |
2742 | #endif | |
2743 | #ifndef LLONG_MAX | |
2744 | # define LLONG_MAX LONG_LONG_MAX | |
2745 | #endif | |
2746 | #ifndef ULLONG_MAX | |
2747 | # define ULLONG_MAX ULONG_LONG_MAX | |
2748 | #endif | |
d55e5bfc | 2749 | |
c32bde28 | 2750 | |
50efceee RD |
2751 | SWIGINTERN int |
2752 | SWIG_AsVal_long (PyObject* obj, long* val) | |
2753 | { | |
2754 | if (PyNumber_Check(obj)) { | |
2755 | if (val) *val = PyInt_AsLong(obj); | |
2756 | return SWIG_OK; | |
2757 | } | |
2758 | return SWIG_TypeError; | |
2759 | } | |
2760 | ||
2761 | ||
093d3ff1 | 2762 | SWIGINTERN int |
554f62e9 | 2763 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) |
093d3ff1 RD |
2764 | { |
2765 | long v = 0; | |
2766 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
554f62e9 | 2767 | return SWIG_TypeError; |
093d3ff1 RD |
2768 | } |
2769 | else if (val) | |
2770 | *val = (unsigned long)v; | |
554f62e9 | 2771 | return SWIG_OK; |
093d3ff1 | 2772 | } |
c32bde28 | 2773 | |
d55e5bfc | 2774 | |
093d3ff1 | 2775 | SWIGINTERN int |
554f62e9 RD |
2776 | SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) |
2777 | { | |
093d3ff1 | 2778 | unsigned long v; |
554f62e9 RD |
2779 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); |
2780 | if (SWIG_IsOK(res)) { | |
2781 | if ((v > UCHAR_MAX)) { | |
2782 | return SWIG_OverflowError; | |
093d3ff1 | 2783 | } else { |
554f62e9 | 2784 | if (val) *val = static_cast< unsigned char >(v); |
093d3ff1 | 2785 | } |
554f62e9 RD |
2786 | } |
2787 | return res; | |
093d3ff1 | 2788 | } |
d55e5bfc RD |
2789 | |
2790 | ||
554f62e9 RD |
2791 | SWIGINTERNINLINE PyObject* |
2792 | SWIG_From_unsigned_SS_long (unsigned long value) | |
093d3ff1 | 2793 | { |
554f62e9 RD |
2794 | return (value > LONG_MAX) ? |
2795 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
093d3ff1 | 2796 | } |
d55e5bfc RD |
2797 | |
2798 | ||
554f62e9 RD |
2799 | SWIGINTERNINLINE PyObject * |
2800 | SWIG_From_unsigned_SS_char (unsigned char value) | |
2801 | { | |
2802 | return SWIG_From_unsigned_SS_long (value); | |
2803 | } | |
d55e5bfc | 2804 | |
e9d6f3a4 RD |
2805 | SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){ |
2806 | wxColour temp, *obj = &temp; | |
2807 | if ( other == Py_None ) return false; | |
2808 | if ( ! wxColour_helper(other, &obj) ) { | |
2809 | PyErr_Clear(); | |
2810 | return false; | |
2811 | } | |
2812 | return self->operator==(*obj); | |
2813 | } | |
2814 | SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){ | |
2815 | wxColour temp, *obj = &temp; | |
2816 | if ( other == Py_None ) return true; | |
2817 | if ( ! wxColour_helper(other, &obj)) { | |
2818 | PyErr_Clear(); | |
2819 | return true; | |
2820 | } | |
2821 | return self->operator!=(*obj); | |
2822 | } | |
fc46b7f3 RD |
2823 | |
2824 | SWIGINTERN int | |
2825 | SWIG_AsVal_bool (PyObject *obj, bool *val) | |
2826 | { | |
2827 | if (obj == Py_True) { | |
2828 | if (val) *val = true; | |
2829 | return SWIG_OK; | |
2830 | } else if (obj == Py_False) { | |
2831 | if (val) *val = false; | |
2832 | return SWIG_OK; | |
2833 | } else { | |
2834 | long v = 0; | |
2835 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2836 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2837 | return res; | |
2838 | } | |
2839 | } | |
2840 | ||
2841 | SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){ | |
2842 | PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3); | |
093d3ff1 RD |
2843 | int red = -1; |
2844 | int green = -1; | |
2845 | int blue = -1; | |
fc46b7f3 | 2846 | int alpha = wxALPHA_OPAQUE; |
b39fe951 | 2847 | if (self->IsOk()) { |
093d3ff1 RD |
2848 | red = self->Red(); |
2849 | green = self->Green(); | |
2850 | blue = self->Blue(); | |
fc46b7f3 | 2851 | alpha = self->Alpha(); |
093d3ff1 RD |
2852 | } |
2853 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
2854 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
2855 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
fc46b7f3 RD |
2856 | if (includeAlpha) |
2857 | PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha)); | |
093d3ff1 RD |
2858 | return rv; |
2859 | } | |
554f62e9 | 2860 | SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){ |
093d3ff1 RD |
2861 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); |
2862 | } | |
2863 | ||
554f62e9 RD |
2864 | SWIGINTERN int |
2865 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2866 | { |
554f62e9 RD |
2867 | long v; |
2868 | int res = SWIG_AsVal_long (obj, &v); | |
2869 | if (SWIG_IsOK(res)) { | |
2870 | if ((v < INT_MIN || v > INT_MAX)) { | |
2871 | return SWIG_OverflowError; | |
2872 | } else { | |
2873 | if (val) *val = static_cast< int >(v); | |
2874 | } | |
2875 | } | |
2876 | return res; | |
d55e5bfc RD |
2877 | } |
2878 | ||
554f62e9 | 2879 | SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){ |
093d3ff1 RD |
2880 | wxDash* dashes; |
2881 | int count = self->GetDashes(&dashes); | |
5a446332 | 2882 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2883 | PyObject* retval = PyList_New(0); |
2884 | for (int x=0; x<count; x++) { | |
2885 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
2886 | PyList_Append(retval, pyint); | |
2887 | Py_DECREF(pyint); | |
2888 | } | |
2889 | wxPyEndBlockThreads(blocked); | |
2890 | return retval; | |
2891 | } | |
554f62e9 | 2892 | SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
5a446332 | 2893 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2894 | int size = PyList_Size(pyDashes); |
2895 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
d55e5bfc | 2896 | |
093d3ff1 RD |
2897 | // black magic warning! The array of wxDashes needs to exist as |
2898 | // long as the pen does because wxPen does not copy the array. So | |
2899 | // stick a copy in a Python string object and attach it to _self, | |
2900 | // and then call SetDashes with a pointer to that array. Then | |
2901 | // when the Python pen object is destroyed the array will be | |
2902 | // cleaned up too. | |
2903 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
2904 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
2905 | ||
2906 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
2907 | delete [] dashes; | |
2908 | Py_DECREF(strDashes); | |
2909 | wxPyEndBlockThreads(blocked); | |
2910 | } | |
554f62e9 RD |
2911 | SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } |
2912 | SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc | 2913 | |
fc46b7f3 RD |
2914 | #include <wx/rawbmp.h> |
2915 | ||
2916 | ||
093d3ff1 | 2917 | #include <wx/image.h> |
d55e5bfc | 2918 | |
093d3ff1 RD |
2919 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
2920 | char** cArray = NULL; | |
2921 | int count; | |
d55e5bfc | 2922 | |
093d3ff1 RD |
2923 | if (!PyList_Check(listOfStrings)) { |
2924 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
2925 | return NULL; | |
2926 | } | |
2927 | count = PyList_Size(listOfStrings); | |
2928 | cArray = new char*[count]; | |
d55e5bfc | 2929 | |
093d3ff1 RD |
2930 | for(int x=0; x<count; x++) { |
2931 | // TODO: Need some validation and error checking here | |
2932 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
2933 | } | |
2934 | return cArray; | |
d55e5bfc | 2935 | } |
d55e5bfc RD |
2936 | |
2937 | ||
554f62e9 | 2938 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
fc46b7f3 RD |
2939 | char** cArray = NULL; |
2940 | wxBitmap* bmp; | |
2941 | ||
2942 | cArray = ConvertListOfStrings(listOfStrings); | |
2943 | if (! cArray) | |
2944 | return NULL; | |
2945 | bmp = new wxBitmap(cArray); | |
2946 | delete [] cArray; | |
2947 | return bmp; | |
2948 | } | |
554f62e9 | 2949 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ |
fc46b7f3 RD |
2950 | char* buf; |
2951 | Py_ssize_t length; | |
2952 | PyString_AsStringAndSize(bits, &buf, &length); | |
2953 | return new wxBitmap(buf, width, height, depth); | |
2954 | } | |
554f62e9 RD |
2955 | SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
2956 | SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){ | |
093d3ff1 RD |
2957 | wxSize size(self->GetWidth(), self->GetHeight()); |
2958 | return size; | |
2959 | } | |
554f62e9 | 2960 | SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
093d3ff1 RD |
2961 | wxMask *mask = new wxMask(*self, colour); |
2962 | self->SetMask(mask); | |
2963 | } | |
554f62e9 | 2964 | SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
093d3ff1 RD |
2965 | self->SetWidth(size.x); |
2966 | self->SetHeight(size.y); | |
2967 | } | |
554f62e9 RD |
2968 | SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; } |
2969 | SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; } | |
fc46b7f3 RD |
2970 | |
2971 | // See http://tinyurl.com/e5adr for what premultiplying alpha means. It | |
2972 | // appears to me that the other platforms are already doing it, so I'll just | |
2973 | // automatically do it for wxMSW here. | |
2974 | #ifdef __WXMSW__ | |
195a89b4 RD |
2975 | #define wxPy_premultiply(p, a) ((p) * (a) / 0xff) |
2976 | #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p)) | |
fc46b7f3 RD |
2977 | #else |
2978 | #define wxPy_premultiply(p, a) (p) | |
2979 | #define wxPy_unpremultiply(p, a) (p) | |
2980 | #endif | |
2981 | ||
2982 | ||
2983 | wxBitmap* _BitmapFromBufferAlpha(int width, int height, | |
2984 | buffer data, int DATASIZE, | |
2985 | buffer alpha, int ALPHASIZE) | |
2986 | { | |
2987 | if (DATASIZE != width*height*3) { | |
2988 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
2989 | return NULL; | |
2990 | } | |
2991 | ||
2992 | if (ALPHASIZE != width*height) { | |
2993 | wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size."); | |
2994 | return NULL; | |
2995 | } | |
2996 | ||
2997 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
2998 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
2999 | if (! pixData) { | |
3000 | // raise an exception... | |
3001 | wxPyErr_SetString(PyExc_RuntimeError, | |
3002 | "Failed to gain raw access to bitmap data."); | |
3003 | return NULL; | |
3004 | } | |
3005 | ||
3006 | pixData.UseAlpha(); | |
3007 | wxAlphaPixelData::Iterator p(pixData); | |
3008 | for (int y=0; y<height; y++) { | |
3009 | wxAlphaPixelData::Iterator rowStart = p; | |
3010 | for (int x=0; x<width; x++) { | |
3011 | byte a = *(alpha++); | |
3012 | p.Red() = wxPy_premultiply(*(data++), a); | |
3013 | p.Green() = wxPy_premultiply(*(data++), a); | |
3014 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3015 | p.Alpha() = a; | |
3016 | ++p; | |
3017 | } | |
3018 | p = rowStart; | |
3019 | p.OffsetY(pixData, 1); | |
3020 | } | |
3021 | return bmp; | |
3022 | } | |
3023 | ||
3024 | wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE) | |
3025 | { | |
3026 | if (DATASIZE != width*height*3) { | |
3027 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3028 | return NULL; | |
3029 | } | |
3030 | ||
3031 | wxBitmap* bmp = new wxBitmap(width, height, 24); | |
3032 | wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3033 | if (! pixData) { | |
3034 | // raise an exception... | |
3035 | wxPyErr_SetString(PyExc_RuntimeError, | |
3036 | "Failed to gain raw access to bitmap data."); | |
3037 | return NULL; | |
3038 | } | |
3039 | ||
3040 | wxNativePixelData::Iterator p(pixData); | |
3041 | for (int y=0; y<height; y++) { | |
3042 | wxNativePixelData::Iterator rowStart = p; | |
3043 | for (int x=0; x<width; x++) { | |
3044 | p.Red() = *(data++); | |
3045 | p.Green() = *(data++); | |
3046 | p.Blue() = *(data++); | |
3047 | ++p; | |
3048 | } | |
3049 | p = rowStart; | |
3050 | p.OffsetY(pixData, 1); | |
3051 | } | |
3052 | return bmp; | |
3053 | } | |
3054 | ||
3055 | ||
3056 | wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE) | |
3057 | { | |
3058 | if (DATASIZE != width*height*4) { | |
3059 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3060 | return NULL; | |
3061 | } | |
3062 | ||
3063 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3064 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3065 | if (! pixData) { | |
3066 | // raise an exception... | |
3067 | wxPyErr_SetString(PyExc_RuntimeError, | |
3068 | "Failed to gain raw access to bitmap data."); | |
3069 | return NULL; | |
3070 | } | |
3071 | ||
3072 | pixData.UseAlpha(); | |
3073 | wxAlphaPixelData::Iterator p(pixData); | |
3074 | for (int y=0; y<height; y++) { | |
3075 | wxAlphaPixelData::Iterator rowStart = p; | |
3076 | for (int x=0; x<width; x++) { | |
3077 | byte a = data[3]; | |
3078 | p.Red() = wxPy_premultiply(*(data++), a); | |
3079 | p.Green() = wxPy_premultiply(*(data++), a); | |
3080 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3081 | p.Alpha() = a; data++; | |
3082 | ++p; | |
3083 | } | |
3084 | p = rowStart; | |
3085 | p.OffsetY(pixData, 1); | |
3086 | } | |
3087 | return bmp; | |
3088 | } | |
3089 | ||
3090 | ||
3091 | typedef wxNativePixelData::Iterator wxNativePixelData_Accessor; | |
3092 | ||
3093 | SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); } | |
3094 | SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); } | |
3095 | SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){ | |
3096 | self->Red() = red; | |
3097 | self->Green() = green; | |
3098 | self->Blue() = blue; | |
3099 | } | |
3100 | SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){ | |
3101 | PyObject* rv = PyTuple_New(3); | |
3102 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
3103 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
3104 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
3105 | return rv; | |
3106 | } | |
3107 | ||
3108 | typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor; | |
3109 | ||
3110 | SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); } | |
3111 | SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); } | |
3112 | SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){ | |
3113 | self->Red() = wxPy_premultiply(red, alpha); | |
3114 | self->Green() = wxPy_premultiply(green, alpha); | |
3115 | self->Blue() = wxPy_premultiply(blue, alpha); | |
3116 | self->Alpha() = alpha; | |
3117 | } | |
3118 | SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){ | |
3119 | PyObject* rv = PyTuple_New(4); | |
3120 | int red = self->Red(); | |
3121 | int green = self->Green(); | |
3122 | int blue = self->Blue(); | |
3123 | int alpha = self->Alpha(); | |
3124 | ||
3125 | PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) )); | |
3126 | PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) )); | |
3127 | PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) )); | |
3128 | PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha )); | |
3129 | return rv; | |
3130 | } | |
554f62e9 | 3131 | SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ |
b39fe951 | 3132 | if ( !colour.IsOk() ) |
093d3ff1 RD |
3133 | return new wxMask(bitmap, *wxBLACK); |
3134 | else | |
3135 | return new wxMask(bitmap, colour); | |
3136 | } | |
d55e5bfc | 3137 | |
093d3ff1 | 3138 | #include <wx/iconbndl.h> |
d55e5bfc | 3139 | |
554f62e9 | 3140 | SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){ |
093d3ff1 RD |
3141 | wxIcon* icon = new wxIcon(); |
3142 | icon->CopyFromBitmap(bmp); | |
3143 | return icon; | |
3144 | } | |
554f62e9 | 3145 | SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){ |
093d3ff1 RD |
3146 | char** cArray = NULL; |
3147 | wxIcon* icon; | |
d55e5bfc | 3148 | |
093d3ff1 RD |
3149 | cArray = ConvertListOfStrings(listOfStrings); |
3150 | if (! cArray) | |
3151 | return NULL; | |
3152 | icon = new wxIcon(cArray); | |
3153 | delete [] cArray; | |
3154 | return icon; | |
3155 | } | |
554f62e9 RD |
3156 | SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
3157 | SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ | |
d55e5bfc | 3158 | |
093d3ff1 | 3159 | return new wxIconLocation(*filename, num); |
d55e5bfc RD |
3160 | |
3161 | ||
d55e5bfc | 3162 | |
093d3ff1 | 3163 | } |
554f62e9 | 3164 | SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){ |
d55e5bfc | 3165 | |
093d3ff1 | 3166 | self->SetIndex(num); |
d55e5bfc RD |
3167 | |
3168 | ||
d55e5bfc | 3169 | |
093d3ff1 | 3170 | } |
554f62e9 | 3171 | SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){ |
d55e5bfc | 3172 | |
093d3ff1 | 3173 | return self->GetIndex(); |
d55e5bfc RD |
3174 | |
3175 | ||
d55e5bfc | 3176 | |
093d3ff1 | 3177 | } |
554f62e9 | 3178 | SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 3179 | #ifdef __WXGTK__ |
fef4c27a RD |
3180 | wxImage img(cursorName, type); |
3181 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
3182 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
3183 | return new wxCursor(img); | |
093d3ff1 | 3184 | #else |
fef4c27a | 3185 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
3186 | #endif |
3187 | } | |
554f62e9 | 3188 | SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
d55e5bfc | 3189 | |
093d3ff1 | 3190 | |
554f62e9 | 3191 | SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){ |
093d3ff1 RD |
3192 | (*self) ++; |
3193 | } | |
554f62e9 | 3194 | SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){ |
093d3ff1 RD |
3195 | return self->operator bool(); |
3196 | } | |
3197 | ||
3198 | #include <wx/fontutil.h> | |
3199 | #include <wx/fontmap.h> | |
3200 | #include <wx/fontenum.h> | |
3201 | ||
554f62e9 | 3202 | SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
093d3ff1 RD |
3203 | return self->ToString(); |
3204 | } | |
3205 | ||
3206 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
3207 | { wxPyRaiseNotImplemented(); return NULL; } | |
3208 | ||
3209 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
3210 | { wxPyRaiseNotImplemented(); return false; } | |
3211 | ||
554f62e9 RD |
3212 | |
3213 | SWIGINTERNINLINE PyObject * | |
3214 | SWIG_From_size_t (size_t value) | |
3215 | { | |
3216 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
3217 | } | |
3218 | ||
3219 | ||
3220 | SWIGINTERNINLINE int | |
3221 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) | |
3222 | { | |
3223 | unsigned long v; | |
3224 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
3225 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
3226 | return res; | |
3227 | } | |
3228 | ||
3229 | SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
093d3ff1 RD |
3230 | wxFontEncoding alt_enc; |
3231 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3232 | return PyInt_FromLong(alt_enc); | |
3233 | else { | |
3234 | Py_INCREF(Py_None); | |
3235 | return Py_None; | |
3236 | } | |
3237 | } | |
554f62e9 | 3238 | SWIGINTERN wxFont *new_wxFont(wxString const &info){ |
a97cefba RD |
3239 | wxNativeFontInfo nfi; |
3240 | nfi.FromString(info); | |
3241 | return new wxFont(nfi); | |
3242 | } | |
554f62e9 | 3243 | SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3244 | return wxFont::New(pointSize, family, flags, face, encoding); |
3245 | } | |
554f62e9 | 3246 | 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 |
3247 | return wxFontBase::New(pixelSize, family, |
3248 | style, weight, underlined, | |
3249 | face, encoding); | |
3250 | } | |
554f62e9 | 3251 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3252 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
3253 | } | |
554f62e9 RD |
3254 | SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
3255 | SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
093d3ff1 RD |
3256 | |
3257 | class wxPyFontEnumerator : public wxFontEnumerator { | |
3258 | public: | |
3259 | wxPyFontEnumerator() {} | |
3260 | ~wxPyFontEnumerator() {} | |
3261 | ||
3262 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
3263 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
3264 | ||
3265 | PYPRIVATE; | |
3266 | }; | |
3267 | ||
3268 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
3269 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
3270 | ||
3271 | ||
704eda0c | 3272 | SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){ |
e9d6f3a4 | 3273 | PyObject* ret; |
704eda0c | 3274 | wxArrayString arr = wxFontEnumerator::GetEncodings(); |
e9d6f3a4 | 3275 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3276 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3277 | wxPyEndBlockThreads(blocked); |
3278 | return ret; | |
093d3ff1 | 3279 | } |
704eda0c | 3280 | SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){ |
e9d6f3a4 | 3281 | PyObject* ret; |
704eda0c | 3282 | wxArrayString arr = wxFontEnumerator::GetFacenames(); |
e9d6f3a4 | 3283 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3284 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3285 | wxPyEndBlockThreads(blocked); |
3286 | return ret; | |
093d3ff1 RD |
3287 | } |
3288 | ||
3289 | #include <locale.h> | |
3290 | ||
554f62e9 | 3291 | SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3292 | wxLocale* loc; |
3293 | if (language == -1) | |
3294 | loc = new wxLocale(); | |
3295 | else | |
3296 | loc = new wxLocale(language, flags); | |
3297 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3298 | // for the floating point conversions and such to work right. | |
3299 | #if PY_VERSION_HEX < 0x02040000 | |
3300 | setlocale(LC_NUMERIC, "C"); | |
3301 | #endif | |
3302 | return loc; | |
3303 | } | |
554f62e9 | 3304 | 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 |
3305 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); |
3306 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3307 | // for the floating point conversions and such to work right. | |
3308 | #if PY_VERSION_HEX < 0x02040000 | |
3309 | setlocale(LC_NUMERIC, "C"); | |
3310 | #endif | |
3311 | return rc; | |
3312 | } | |
554f62e9 | 3313 | SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3314 | bool rc = self->Init(language, flags); |
3315 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3316 | // for the floating point conversions and such to work right. | |
3317 | #if PY_VERSION_HEX < 0x02040000 | |
3318 | setlocale(LC_NUMERIC, "C"); | |
3319 | #endif | |
3320 | return rc; | |
3321 | } | |
3322 | ||
fc46b7f3 RD |
3323 | class wxPyLocale : public wxLocale |
3324 | { | |
3325 | public: | |
3326 | wxPyLocale(); | |
3327 | ||
3328 | wxPyLocale(const wxChar *szName, // name (for messages) | |
3329 | const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files) | |
3330 | const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale) | |
3331 | bool bLoadDefault = true, // preload wxstd.mo? | |
3332 | bool bConvertEncoding = false); // convert Win<->Unix if necessary? | |
3333 | ||
3334 | wxPyLocale(int language, // wxLanguage id or custom language | |
3335 | int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); | |
3336 | ||
3337 | ~wxPyLocale(); | |
3338 | ||
3339 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3340 | const wxChar *szDomain = NULL) const; | |
3341 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3342 | const wxChar *szOrigString2, size_t n, | |
3343 | const wxChar *szDomain = NULL) const; | |
3344 | ||
3345 | virtual wxChar *GetSingularString(const wxChar *szOrigString, | |
3346 | const wxChar *szDomain = NULL) const; | |
3347 | virtual wxChar *GetPluralString(const wxChar *szOrigString, | |
3348 | const wxChar *szOrigString2, size_t n, | |
3349 | const wxChar *szDomain = NULL) const; | |
3350 | ||
3351 | PYPRIVATE; | |
3352 | private: | |
3353 | DECLARE_NO_COPY_CLASS(wxPyLocale) | |
3354 | }; | |
3355 | ||
3356 | wxPyLocale::wxPyLocale() : wxLocale() | |
3357 | { | |
3358 | } | |
3359 | ||
3360 | wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages) | |
3361 | const wxChar *szShort, // dir prefix (for msg files) | |
3362 | const wxChar *szLocale, // locale (for setlocale) | |
3363 | bool bLoadDefault, // preload wxstd.mo? | |
3364 | bool bConvertEncoding) // convert Win<->Unix if necessary? | |
3365 | : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding) | |
3366 | { | |
3367 | } | |
3368 | ||
3369 | wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language | |
3370 | int flags) : wxLocale(language, flags) | |
3371 | { | |
3372 | } | |
3373 | ||
3374 | wxPyLocale::~wxPyLocale() | |
3375 | { | |
3376 | } | |
3377 | ||
3378 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3379 | const wxChar *szDomain) const | |
3380 | { | |
3381 | wxChar *str = GetSingularString(szOrigString, szDomain); | |
3382 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain); | |
3383 | } | |
3384 | ||
3385 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3386 | const wxChar *szOrigString2, size_t n, | |
3387 | const wxChar *szDomain) const | |
3388 | { | |
3389 | wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain); | |
3390 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain); | |
3391 | } | |
3392 | ||
3393 | wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString, | |
3394 | const wxChar *szDomain) const | |
3395 | { | |
3396 | bool found; | |
3397 | static wxString str; | |
3398 | 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. | |
3399 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3400 | if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) { | |
3401 | PyObject* param1 = wx2PyString(szOrigString); | |
3402 | PyObject* param2 = wx2PyString(szDomain); | |
3403 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2)); | |
3404 | Py_DECREF(param1); | |
3405 | Py_DECREF(param2); | |
3406 | if (ret) { | |
3407 | str = Py2wxString(ret); | |
3408 | Py_DECREF(ret); | |
3409 | } | |
3410 | } | |
3411 | wxPyEndBlockThreads(blocked); | |
3412 | return (found ? (wxChar*)str.c_str() : NULL); | |
3413 | } | |
3414 | ||
3415 | wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString, | |
3416 | const wxChar *szOrigString2, size_t n, | |
3417 | const wxChar *szDomain) const | |
3418 | { | |
3419 | bool found; | |
3420 | static wxString str; | |
3421 | 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. | |
3422 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3423 | if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) { | |
3424 | PyObject* param1 = wx2PyString(szOrigString); | |
3425 | PyObject* param2 = wx2PyString(szOrigString2); | |
3426 | PyObject* param4 = wx2PyString(szDomain); | |
3427 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4)); | |
3428 | Py_DECREF(param1); | |
3429 | Py_DECREF(param2); | |
3430 | Py_DECREF(param4); | |
3431 | if( ret) { | |
3432 | str = Py2wxString(ret); | |
3433 | Py_DECREF(ret); | |
3434 | } | |
3435 | } | |
3436 | wxPyEndBlockThreads(blocked); | |
3437 | return (found ? (wxChar*)str.c_str() : NULL); | |
3438 | } | |
3439 | ||
3440 | SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
3441 | wxPyLocale* loc; | |
3442 | if (language == -1) | |
3443 | loc = new wxPyLocale(); | |
3444 | else | |
3445 | loc = new wxPyLocale(language, flags); | |
3446 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3447 | // for the floating point conversions and such to work right. | |
3448 | #if PY_VERSION_HEX < 0x02040000 | |
3449 | setlocale(LC_NUMERIC, "C"); | |
3450 | #endif | |
3451 | return loc; | |
3452 | } | |
3453 | ||
093d3ff1 RD |
3454 | #include "wx/wxPython/pydrawxxx.h" |
3455 | ||
554f62e9 | 3456 | SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
093d3ff1 RD |
3457 | wxColour col; |
3458 | self->GetPixel(x, y, &col); | |
3459 | return col; | |
3460 | } | |
554f62e9 | 3461 | SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
093d3ff1 RD |
3462 | wxColour col; |
3463 | self->GetPixel(pt, &col); | |
3464 | return col; | |
3465 | } | |
3466 | ||
3467 | SWIGINTERN int | |
554f62e9 | 3468 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
3469 | { |
3470 | if (PyNumber_Check(obj)) { | |
3471 | if (val) *val = PyFloat_AsDouble(obj); | |
554f62e9 | 3472 | return SWIG_OK; |
093d3ff1 | 3473 | } |
554f62e9 | 3474 | return SWIG_TypeError; |
093d3ff1 RD |
3475 | } |
3476 | ||
554f62e9 | 3477 | 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 |
3478 | wxRect rv; |
3479 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
3480 | return rv; | |
3481 | } | |
554f62e9 | 3482 | SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){ |
093d3ff1 RD |
3483 | wxRect rect; |
3484 | self->GetClippingBox(rect); | |
3485 | return rect; | |
3486 | } | |
554f62e9 | 3487 | SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
093d3ff1 RD |
3488 | wxArrayInt widths; |
3489 | self->GetPartialTextExtents(text, widths); | |
3490 | return widths; | |
3491 | } | |
3492 | ||
554f62e9 | 3493 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 | 3494 | |
554f62e9 | 3495 | SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3496 | self->SetLogicalOrigin(point.x, point.y); |
3497 | } | |
554f62e9 | 3498 | SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3499 | self->SetDeviceOrigin(point.x, point.y); |
3500 | } | |
554f62e9 | 3501 | SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3502 | self->CalcBoundingBox(point.x, point.y); |
3503 | } | |
554f62e9 | 3504 | SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3505 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); |
3506 | } | |
554f62e9 | 3507 | SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3508 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); |
3509 | } | |
554f62e9 | 3510 | SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3511 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); |
3512 | } | |
554f62e9 | 3513 | SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3514 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); |
3515 | } | |
554f62e9 | 3516 | SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3517 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); |
3518 | } | |
554f62e9 | 3519 | SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ |
093d3ff1 RD |
3520 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); |
3521 | } | |
3522 | ||
3523 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
3524 | *x1 = dc->MinX(); | |
3525 | *y1 = dc->MinY(); | |
3526 | *x2 = dc->MaxX(); | |
3527 | *y2 = dc->MaxY(); | |
3528 | } | |
3529 | ||
3530 | ||
3531 | #include <wx/dcbuffer.h> | |
3532 | ||
3533 | ||
3534 | #include <wx/dcps.h> | |
3535 | ||
3536 | ||
3537 | #include <wx/metafile.h> | |
3538 | ||
3539 | ||
72ef6efb RD |
3540 | #include <wx/graphics.h> |
3541 | ||
3542 | ||
3543 | #if !wxUSE_GRAPHICS_CONTEXT | |
3544 | // C++ stub classes for platforms that don't have wxGraphicsContext yet. | |
3545 | ||
3546 | class wxGraphicsPath | |
3547 | { | |
3548 | public : | |
3549 | wxGraphicsPath() { | |
3550 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3551 | PyErr_SetString(PyExc_NotImplementedError, | |
3552 | "wxGraphicsPath is not available on this platform."); | |
3553 | wxPyEndBlockThreads(blocked); | |
3554 | } | |
3555 | virtual ~wxGraphicsPath() {} | |
3556 | ||
3557 | void MoveToPoint( wxDouble, wxDouble ) {} | |
3558 | void AddLineToPoint( wxDouble, wxDouble ) {} | |
3559 | void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3560 | void CloseSubpath() {} | |
3561 | void GetCurrentPoint( wxDouble&, wxDouble&) {} | |
3562 | void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {} | |
3563 | ||
3564 | void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3565 | void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3566 | void AddCircle( wxDouble, wxDouble, wxDouble ) {} | |
3567 | void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {} | |
3568 | ||
3569 | wxPoint2DDouble GetCurrentPoint() { return wxPoint2DDouble(0,0); } | |
3570 | void MoveToPoint( const wxPoint2DDouble& ) {} | |
3571 | void AddLineToPoint( const wxPoint2DDouble&) {} | |
3572 | void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {} | |
3573 | void AddArc( const wxPoint2DDouble&, wxDouble, wxDouble, wxDouble, bool) {} | |
3574 | }; | |
3575 | ||
3576 | ||
3577 | class wxGraphicsContext | |
3578 | { | |
3579 | public: | |
3580 | wxGraphicsContext() { | |
3581 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3582 | PyErr_SetString(PyExc_NotImplementedError, | |
3583 | "wxGraphicsContext is not available on this platform."); | |
3584 | wxPyEndBlockThreads(blocked); | |
3585 | } | |
3586 | virtual ~wxGraphicsContext() {} | |
3587 | ||
3588 | static wxGraphicsContext* Create( const wxWindowDC&) { | |
3589 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3590 | PyErr_SetString(PyExc_NotImplementedError, | |
3591 | "wxGraphicsPath is not available on this platform."); | |
3592 | wxPyEndBlockThreads(blocked); | |
3593 | return NULL; | |
3594 | } | |
b876c1e4 RD |
3595 | |
3596 | static wxGraphicsContext* CreateFromNative( void * ) { | |
3597 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3598 | PyErr_SetString(PyExc_NotImplementedError, | |
3599 | "wxGraphicsContext is not available on this platform."); | |
3600 | wxPyEndBlockThreads(blocked); | |
3601 | return NULL; | |
3602 | } | |
3603 | ||
72ef6efb RD |
3604 | wxGraphicsPath * CreatePath() { return NULL; } |
3605 | void PushState() {} | |
3606 | void PopState() {} | |
3607 | void Clip( const wxRegion & ) {} | |
b876c1e4 RD |
3608 | void Clip( wxDouble, wxDouble, wxDouble, wxDouble ) {} |
3609 | void ResetClip() {} | |
3610 | void * GetNativeContext() { return NULL; } | |
72ef6efb RD |
3611 | void Translate( wxDouble , wxDouble ) {} |
3612 | void Scale( wxDouble , wxDouble ) {} | |
3613 | void Rotate( wxDouble ) {} | |
3614 | void SetPen( const wxPen & ) {} | |
3615 | void SetBrush( const wxBrush & ) {} | |
3616 | void SetLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , | |
3617 | const wxColour&, const wxColour&) {} | |
3618 | void SetRadialGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble , | |
3619 | const wxColour &, const wxColour &) {} | |
3620 | void SetFont( const wxFont & ) {} | |
be68621e | 3621 | void SetTextColour( const wxColour & ) {} |
72ef6efb RD |
3622 | void StrokePath( const wxGraphicsPath * ) {} |
3623 | void FillPath( const wxGraphicsPath *, int ) {} | |
3624 | void DrawPath( const wxGraphicsPath *, int ) {} | |
3625 | void DrawText( const wxString &, wxDouble , wxDouble ) {} | |
3626 | void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {} | |
3627 | void GetTextExtent( const wxString &, wxDouble *, wxDouble *, | |
3628 | wxDouble *, wxDouble * ) const {} | |
3629 | void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {} | |
3630 | void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3631 | void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3632 | void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3633 | void StrokeLines( size_t , const wxPoint2DDouble *) {} | |
3634 | void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {} | |
3635 | void DrawLines( size_t , const wxPoint2DDouble *, int ) {} | |
3636 | void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3637 | void DrawEllipse( wxDouble , wxDouble, wxDouble , wxDouble) {} | |
3638 | void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3639 | }; | |
3640 | ||
3641 | ||
3642 | class wxGCDC: public wxWindowDC | |
3643 | { | |
3644 | public: | |
3645 | wxGCDC(const wxWindowDC&) { | |
3646 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3647 | PyErr_SetString(PyExc_NotImplementedError, | |
3648 | "wxGCDC is not available on this platform."); | |
3649 | wxPyEndBlockThreads(blocked); | |
3650 | } | |
3651 | ||
3652 | wxGCDC() { | |
3653 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3654 | PyErr_SetString(PyExc_NotImplementedError, | |
3655 | "wxGCDC is not available on this platform."); | |
3656 | wxPyEndBlockThreads(blocked); | |
3657 | } | |
3658 | ||
3659 | virtual ~wxGCDC() {} | |
3660 | ||
b876c1e4 RD |
3661 | wxGraphicsContext* GetGraphicsContext() { return NULL; } |
3662 | void SetGraphicsContext( wxGraphicsContext* ) {} | |
72ef6efb RD |
3663 | }; |
3664 | ||
3665 | #endif | |
3666 | ||
be68621e RD |
3667 | SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){ |
3668 | wxDouble width = 0.0, | |
3669 | height = 0.0; | |
3670 | self->GetTextExtent(text, &width, &height, NULL, NULL); | |
3671 | // thread wrapers are turned off for this .i file, so no need to acquire GIL... | |
3672 | PyObject* rv = PyTuple_New(2); | |
3673 | PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width)); | |
3674 | PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height)); | |
3675 | return rv; | |
3676 | } | |
b39fe951 RD |
3677 | SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){ |
3678 | wxArrayDouble widths; | |
3679 | self->GetPartialTextExtents(text, widths); | |
3680 | return widths; | |
3681 | } | |
f8eb59b9 | 3682 | SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){ |
b39fe951 RD |
3683 | size_t c1, c2, count; |
3684 | wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1); | |
3685 | wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2); | |
3686 | ||
3687 | if ( beginP != NULL && endP != NULL ) | |
3688 | { | |
3689 | count = wxMin(c1, c2); | |
3690 | self->StrokeLines(count, beginP, endP); | |
3691 | } | |
3692 | delete [] beginP; | |
3693 | delete [] endP; | |
3694 | } | |
72ef6efb | 3695 | |
0a27f394 RD |
3696 | #include "wx/dcgraph.h" |
3697 | ||
3698 | ||
66493fc7 RD |
3699 | #include <wx/overlay.h> |
3700 | ||
3701 | ||
093d3ff1 | 3702 | |
554f62e9 | 3703 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
093d3ff1 RD |
3704 | self->AddColour(name, wxColour(red, green, blue)); |
3705 | } | |
3706 | ||
50efceee RD |
3707 | wxFontList* _wxPyInitTheFontList() { return wxTheFontList; } |
3708 | wxPenList* _wxPyInitThePenList() { return wxThePenList; } | |
3709 | wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; } | |
3710 | wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; } | |
3711 | ||
3712 | ||
093d3ff1 RD |
3713 | #include <wx/effects.h> |
3714 | ||
be9b1dca RD |
3715 | |
3716 | #include "wx/renderer.h" | |
3717 | ||
3718 | ||
7449af73 | 3719 | SWIGINTERNINLINE PyObject* |
554f62e9 | 3720 | SWIG_From_bool (bool value) |
be9b1dca | 3721 | { |
554f62e9 | 3722 | return PyBool_FromLong(value ? 1 : 0); |
be9b1dca RD |
3723 | } |
3724 | ||
27e45892 RD |
3725 | |
3726 | #include "wx/wxPython/pseudodc.h" | |
3727 | ||
3728 | SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){ | |
3729 | wxRect rect; | |
3730 | self->GetIdBounds(id, rect); | |
3731 | return rect; | |
3732 | } | |
093d3ff1 RD |
3733 | #ifdef __cplusplus |
3734 | extern "C" { | |
3735 | #endif | |
554f62e9 RD |
3736 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3737 | PyObject *resultobj = 0; | |
3738 | wxGDIObject *result = 0 ; | |
3739 | ||
3740 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
3741 | { | |
3742 | if (!wxPyCheckForApp()) SWIG_fail; | |
3743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3744 | result = (wxGDIObject *)new wxGDIObject(); | |
3745 | wxPyEndAllowThreads(__tstate); | |
3746 | if (PyErr_Occurred()) SWIG_fail; | |
3747 | } | |
3748 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
3749 | return resultobj; | |
3750 | fail: | |
3751 | return NULL; | |
d55e5bfc RD |
3752 | } |
3753 | ||
3754 | ||
554f62e9 RD |
3755 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3756 | PyObject *resultobj = 0; | |
3757 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3758 | void *argp1 = 0 ; | |
3759 | int res1 = 0 ; | |
3760 | PyObject *swig_obj[1] ; | |
3761 | ||
3762 | if (!args) SWIG_fail; | |
3763 | swig_obj[0] = args; | |
3764 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
3765 | if (!SWIG_IsOK(res1)) { | |
3766 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3767 | } | |
3768 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3769 | { | |
3770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3771 | delete arg1; | |
d55e5bfc | 3772 | |
554f62e9 RD |
3773 | wxPyEndAllowThreads(__tstate); |
3774 | if (PyErr_Occurred()) SWIG_fail; | |
3775 | } | |
3776 | resultobj = SWIG_Py_Void(); | |
3777 | return resultobj; | |
3778 | fail: | |
3779 | return NULL; | |
d55e5bfc RD |
3780 | } |
3781 | ||
3782 | ||
554f62e9 RD |
3783 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3784 | PyObject *resultobj = 0; | |
3785 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
3786 | bool result; | |
3787 | void *argp1 = 0 ; | |
3788 | int res1 = 0 ; | |
3789 | PyObject *swig_obj[1] ; | |
3790 | ||
3791 | if (!args) SWIG_fail; | |
3792 | swig_obj[0] = args; | |
3793 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
3794 | if (!SWIG_IsOK(res1)) { | |
3795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
3796 | } | |
3797 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
3798 | { | |
3799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3800 | result = (bool)(arg1)->IsNull(); | |
3801 | wxPyEndAllowThreads(__tstate); | |
3802 | if (PyErr_Occurred()) SWIG_fail; | |
3803 | } | |
3804 | { | |
3805 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3806 | } | |
3807 | return resultobj; | |
3808 | fail: | |
3809 | return NULL; | |
3810 | } | |
3811 | ||
3812 | ||
3813 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3814 | PyObject *obj; | |
3815 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
3816 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
3817 | return SWIG_Py_Void(); | |
3818 | } | |
3819 | ||
3820 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
3821 | return SWIG_Python_InitShadowInstance(args); | |
3822 | } | |
3823 | ||
3824 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
3825 | PyObject *resultobj = 0; | |
3826 | byte arg1 = (byte) 0 ; | |
3827 | byte arg2 = (byte) 0 ; | |
3828 | byte arg3 = (byte) 0 ; | |
fc46b7f3 | 3829 | byte arg4 = (byte) wxALPHA_OPAQUE ; |
554f62e9 RD |
3830 | wxColour *result = 0 ; |
3831 | unsigned char val1 ; | |
3832 | int ecode1 = 0 ; | |
3833 | unsigned char val2 ; | |
3834 | int ecode2 = 0 ; | |
3835 | unsigned char val3 ; | |
3836 | int ecode3 = 0 ; | |
fc46b7f3 RD |
3837 | unsigned char val4 ; |
3838 | int ecode4 = 0 ; | |
554f62e9 RD |
3839 | PyObject * obj0 = 0 ; |
3840 | PyObject * obj1 = 0 ; | |
3841 | PyObject * obj2 = 0 ; | |
fc46b7f3 | 3842 | PyObject * obj3 = 0 ; |
554f62e9 | 3843 | char * kwnames[] = { |
fc46b7f3 | 3844 | (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
554f62e9 RD |
3845 | }; |
3846 | ||
fc46b7f3 | 3847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
554f62e9 RD |
3848 | if (obj0) { |
3849 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
3850 | if (!SWIG_IsOK(ecode1)) { | |
3851 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
3852 | } | |
3853 | arg1 = static_cast< byte >(val1); | |
3854 | } | |
3855 | if (obj1) { | |
3856 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
3857 | if (!SWIG_IsOK(ecode2)) { | |
3858 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
3859 | } | |
3860 | arg2 = static_cast< byte >(val2); | |
3861 | } | |
3862 | if (obj2) { | |
3863 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
3864 | if (!SWIG_IsOK(ecode3)) { | |
3865 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
3866 | } | |
3867 | arg3 = static_cast< byte >(val3); | |
3868 | } | |
fc46b7f3 RD |
3869 | if (obj3) { |
3870 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
3871 | if (!SWIG_IsOK(ecode4)) { | |
3872 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'"); | |
3873 | } | |
3874 | arg4 = static_cast< byte >(val4); | |
3875 | } | |
554f62e9 RD |
3876 | { |
3877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 3878 | result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4); |
554f62e9 RD |
3879 | wxPyEndAllowThreads(__tstate); |
3880 | if (PyErr_Occurred()) SWIG_fail; | |
3881 | } | |
3882 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
3883 | return resultobj; | |
3884 | fail: | |
3885 | return NULL; | |
d55e5bfc RD |
3886 | } |
3887 | ||
3888 | ||
554f62e9 RD |
3889 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3890 | PyObject *resultobj = 0; | |
3891 | wxString *arg1 = 0 ; | |
3892 | wxColour *result = 0 ; | |
3893 | bool temp1 = false ; | |
3894 | PyObject * obj0 = 0 ; | |
3895 | char * kwnames[] = { | |
3896 | (char *) "colorName", NULL | |
3897 | }; | |
3898 | ||
3899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
3900 | { | |
3901 | arg1 = wxString_in_helper(obj0); | |
3902 | if (arg1 == NULL) SWIG_fail; | |
3903 | temp1 = true; | |
3904 | } | |
3905 | { | |
3906 | if (!wxPyCheckForApp()) SWIG_fail; | |
3907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3908 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
3909 | wxPyEndAllowThreads(__tstate); | |
3910 | if (PyErr_Occurred()) SWIG_fail; | |
3911 | } | |
3912 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
3913 | { | |
3914 | if (temp1) | |
3915 | delete arg1; | |
3916 | } | |
3917 | return resultobj; | |
3918 | fail: | |
3919 | { | |
3920 | if (temp1) | |
3921 | delete arg1; | |
3922 | } | |
3923 | return NULL; | |
b519803b RD |
3924 | } |
3925 | ||
3926 | ||
554f62e9 RD |
3927 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
3928 | PyObject *resultobj = 0; | |
3929 | unsigned long arg1 ; | |
3930 | wxColour *result = 0 ; | |
3931 | unsigned long val1 ; | |
3932 | int ecode1 = 0 ; | |
3933 | PyObject * obj0 = 0 ; | |
3934 | char * kwnames[] = { | |
3935 | (char *) "colRGB", NULL | |
3936 | }; | |
3937 | ||
3938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
3939 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
3940 | if (!SWIG_IsOK(ecode1)) { | |
3941 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
3942 | } | |
3943 | arg1 = static_cast< unsigned long >(val1); | |
3944 | { | |
3945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3946 | result = (wxColour *)new wxColour(arg1); | |
3947 | wxPyEndAllowThreads(__tstate); | |
3948 | if (PyErr_Occurred()) SWIG_fail; | |
3949 | } | |
3950 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
3951 | return resultobj; | |
3952 | fail: | |
3953 | return NULL; | |
d55e5bfc RD |
3954 | } |
3955 | ||
3956 | ||
554f62e9 RD |
3957 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3958 | PyObject *resultobj = 0; | |
3959 | wxColour *arg1 = (wxColour *) 0 ; | |
3960 | void *argp1 = 0 ; | |
3961 | int res1 = 0 ; | |
3962 | PyObject *swig_obj[1] ; | |
3963 | ||
3964 | if (!args) SWIG_fail; | |
3965 | swig_obj[0] = args; | |
3966 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 ); | |
3967 | if (!SWIG_IsOK(res1)) { | |
3968 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3969 | } | |
3970 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
3971 | { | |
3972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3973 | delete arg1; | |
d55e5bfc | 3974 | |
554f62e9 RD |
3975 | wxPyEndAllowThreads(__tstate); |
3976 | if (PyErr_Occurred()) SWIG_fail; | |
3977 | } | |
3978 | resultobj = SWIG_Py_Void(); | |
3979 | return resultobj; | |
3980 | fail: | |
3981 | return NULL; | |
d55e5bfc RD |
3982 | } |
3983 | ||
3984 | ||
554f62e9 RD |
3985 | SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3986 | PyObject *resultobj = 0; | |
3987 | wxColour *arg1 = (wxColour *) 0 ; | |
3988 | byte result; | |
3989 | void *argp1 = 0 ; | |
3990 | int res1 = 0 ; | |
3991 | PyObject *swig_obj[1] ; | |
3992 | ||
3993 | if (!args) SWIG_fail; | |
3994 | swig_obj[0] = args; | |
3995 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
3996 | if (!SWIG_IsOK(res1)) { | |
3997 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
3998 | } | |
3999 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4000 | { | |
4001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4002 | result = (byte)(arg1)->Red(); | |
4003 | wxPyEndAllowThreads(__tstate); | |
4004 | if (PyErr_Occurred()) SWIG_fail; | |
4005 | } | |
4006 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4007 | return resultobj; | |
4008 | fail: | |
4009 | return NULL; | |
d55e5bfc RD |
4010 | } |
4011 | ||
4012 | ||
554f62e9 RD |
4013 | SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4014 | PyObject *resultobj = 0; | |
4015 | wxColour *arg1 = (wxColour *) 0 ; | |
4016 | byte result; | |
4017 | void *argp1 = 0 ; | |
4018 | int res1 = 0 ; | |
4019 | PyObject *swig_obj[1] ; | |
4020 | ||
4021 | if (!args) SWIG_fail; | |
4022 | swig_obj[0] = args; | |
4023 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4024 | if (!SWIG_IsOK(res1)) { | |
4025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4026 | } | |
4027 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4028 | { | |
4029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4030 | result = (byte)(arg1)->Green(); | |
4031 | wxPyEndAllowThreads(__tstate); | |
4032 | if (PyErr_Occurred()) SWIG_fail; | |
4033 | } | |
4034 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4035 | return resultobj; | |
4036 | fail: | |
4037 | return NULL; | |
d55e5bfc RD |
4038 | } |
4039 | ||
4040 | ||
554f62e9 RD |
4041 | SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4042 | PyObject *resultobj = 0; | |
4043 | wxColour *arg1 = (wxColour *) 0 ; | |
4044 | byte result; | |
4045 | void *argp1 = 0 ; | |
4046 | int res1 = 0 ; | |
4047 | PyObject *swig_obj[1] ; | |
4048 | ||
4049 | if (!args) SWIG_fail; | |
4050 | swig_obj[0] = args; | |
4051 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4052 | if (!SWIG_IsOK(res1)) { | |
4053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4054 | } | |
4055 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4056 | { | |
4057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4058 | result = (byte)(arg1)->Blue(); | |
4059 | wxPyEndAllowThreads(__tstate); | |
4060 | if (PyErr_Occurred()) SWIG_fail; | |
4061 | } | |
4062 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4063 | return resultobj; | |
4064 | fail: | |
4065 | return NULL; | |
d55e5bfc RD |
4066 | } |
4067 | ||
4068 | ||
fc46b7f3 RD |
4069 | SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4070 | PyObject *resultobj = 0; | |
4071 | wxColour *arg1 = (wxColour *) 0 ; | |
4072 | byte result; | |
4073 | void *argp1 = 0 ; | |
4074 | int res1 = 0 ; | |
4075 | PyObject *swig_obj[1] ; | |
4076 | ||
4077 | if (!args) SWIG_fail; | |
4078 | swig_obj[0] = args; | |
4079 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4080 | if (!SWIG_IsOK(res1)) { | |
4081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4082 | } | |
4083 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4084 | { | |
4085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4086 | result = (byte)(arg1)->Alpha(); | |
4087 | wxPyEndAllowThreads(__tstate); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | } | |
4090 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4091 | return resultobj; | |
4092 | fail: | |
4093 | return NULL; | |
4094 | } | |
4095 | ||
4096 | ||
b39fe951 | 4097 | SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
4098 | PyObject *resultobj = 0; |
4099 | wxColour *arg1 = (wxColour *) 0 ; | |
4100 | bool result; | |
4101 | void *argp1 = 0 ; | |
4102 | int res1 = 0 ; | |
4103 | PyObject *swig_obj[1] ; | |
4104 | ||
4105 | if (!args) SWIG_fail; | |
4106 | swig_obj[0] = args; | |
4107 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4108 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4109 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
4110 | } |
4111 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4112 | { | |
4113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4114 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
4115 | wxPyEndAllowThreads(__tstate); |
4116 | if (PyErr_Occurred()) SWIG_fail; | |
4117 | } | |
4118 | { | |
4119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4120 | } | |
4121 | return resultobj; | |
4122 | fail: | |
4123 | return NULL; | |
4124 | } | |
4125 | ||
4126 | ||
4127 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4128 | PyObject *resultobj = 0; | |
4129 | wxColour *arg1 = (wxColour *) 0 ; | |
4130 | byte arg2 ; | |
4131 | byte arg3 ; | |
4132 | byte arg4 ; | |
fc46b7f3 | 4133 | byte arg5 = (byte) wxALPHA_OPAQUE ; |
554f62e9 RD |
4134 | void *argp1 = 0 ; |
4135 | int res1 = 0 ; | |
4136 | unsigned char val2 ; | |
4137 | int ecode2 = 0 ; | |
4138 | unsigned char val3 ; | |
4139 | int ecode3 = 0 ; | |
4140 | unsigned char val4 ; | |
4141 | int ecode4 = 0 ; | |
fc46b7f3 RD |
4142 | unsigned char val5 ; |
4143 | int ecode5 = 0 ; | |
554f62e9 RD |
4144 | PyObject * obj0 = 0 ; |
4145 | PyObject * obj1 = 0 ; | |
4146 | PyObject * obj2 = 0 ; | |
4147 | PyObject * obj3 = 0 ; | |
fc46b7f3 | 4148 | PyObject * obj4 = 0 ; |
554f62e9 | 4149 | char * kwnames[] = { |
fc46b7f3 | 4150 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
554f62e9 RD |
4151 | }; |
4152 | ||
fc46b7f3 | 4153 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
554f62e9 RD |
4154 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); |
4155 | if (!SWIG_IsOK(res1)) { | |
4156 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4157 | } | |
4158 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4159 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4160 | if (!SWIG_IsOK(ecode2)) { | |
4161 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
4162 | } | |
4163 | arg2 = static_cast< byte >(val2); | |
4164 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4165 | if (!SWIG_IsOK(ecode3)) { | |
4166 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
4167 | } | |
4168 | arg3 = static_cast< byte >(val3); | |
4169 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4170 | if (!SWIG_IsOK(ecode4)) { | |
4171 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
4172 | } | |
4173 | arg4 = static_cast< byte >(val4); | |
fc46b7f3 RD |
4174 | if (obj4) { |
4175 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
4176 | if (!SWIG_IsOK(ecode5)) { | |
4177 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'"); | |
4178 | } | |
4179 | arg5 = static_cast< byte >(val5); | |
4180 | } | |
554f62e9 RD |
4181 | { |
4182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4183 | (arg1)->Set(arg2,arg3,arg4,arg5); |
554f62e9 RD |
4184 | wxPyEndAllowThreads(__tstate); |
4185 | if (PyErr_Occurred()) SWIG_fail; | |
4186 | } | |
4187 | resultobj = SWIG_Py_Void(); | |
4188 | return resultobj; | |
4189 | fail: | |
4190 | return NULL; | |
4191 | } | |
4192 | ||
4193 | ||
4194 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4195 | PyObject *resultobj = 0; | |
4196 | wxColour *arg1 = (wxColour *) 0 ; | |
4197 | unsigned long arg2 ; | |
4198 | void *argp1 = 0 ; | |
4199 | int res1 = 0 ; | |
4200 | unsigned long val2 ; | |
4201 | int ecode2 = 0 ; | |
4202 | PyObject * obj0 = 0 ; | |
4203 | PyObject * obj1 = 0 ; | |
4204 | char * kwnames[] = { | |
4205 | (char *) "self",(char *) "colRGB", NULL | |
4206 | }; | |
4207 | ||
4208 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4209 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4210 | if (!SWIG_IsOK(res1)) { | |
4211 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4212 | } | |
4213 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4214 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
4215 | if (!SWIG_IsOK(ecode2)) { | |
4216 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
4217 | } | |
4218 | arg2 = static_cast< unsigned long >(val2); | |
4219 | { | |
4220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4221 | (arg1)->Set(arg2); | |
4222 | wxPyEndAllowThreads(__tstate); | |
4223 | if (PyErr_Occurred()) SWIG_fail; | |
4224 | } | |
4225 | resultobj = SWIG_Py_Void(); | |
4226 | return resultobj; | |
4227 | fail: | |
4228 | return NULL; | |
4229 | } | |
4230 | ||
4231 | ||
4232 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4233 | PyObject *resultobj = 0; | |
4234 | wxColour *arg1 = (wxColour *) 0 ; | |
4235 | wxString *arg2 = 0 ; | |
4236 | void *argp1 = 0 ; | |
4237 | int res1 = 0 ; | |
4238 | bool temp2 = false ; | |
4239 | PyObject * obj0 = 0 ; | |
4240 | PyObject * obj1 = 0 ; | |
4241 | char * kwnames[] = { | |
4242 | (char *) "self",(char *) "colourName", NULL | |
4243 | }; | |
4244 | ||
4245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4247 | if (!SWIG_IsOK(res1)) { | |
4248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4249 | } | |
4250 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4251 | { | |
4252 | arg2 = wxString_in_helper(obj1); | |
4253 | if (arg2 == NULL) SWIG_fail; | |
4254 | temp2 = true; | |
4255 | } | |
4256 | { | |
4257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
72ef6efb | 4258 | (arg1)->Set((wxString const &)*arg2); |
554f62e9 RD |
4259 | wxPyEndAllowThreads(__tstate); |
4260 | if (PyErr_Occurred()) SWIG_fail; | |
4261 | } | |
4262 | resultobj = SWIG_Py_Void(); | |
4263 | { | |
4264 | if (temp2) | |
4265 | delete arg2; | |
4266 | } | |
4267 | return resultobj; | |
4268 | fail: | |
4269 | { | |
4270 | if (temp2) | |
4271 | delete arg2; | |
4272 | } | |
4273 | return NULL; | |
d55e5bfc RD |
4274 | } |
4275 | ||
4276 | ||
f460c29d RD |
4277 | SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4278 | PyObject *resultobj = 0; | |
4279 | wxColour *arg1 = (wxColour *) 0 ; | |
4280 | long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ; | |
4281 | wxString result; | |
4282 | void *argp1 = 0 ; | |
4283 | int res1 = 0 ; | |
4284 | long val2 ; | |
4285 | int ecode2 = 0 ; | |
4286 | PyObject * obj0 = 0 ; | |
4287 | PyObject * obj1 = 0 ; | |
4288 | char * kwnames[] = { | |
4289 | (char *) "self",(char *) "flags", NULL | |
4290 | }; | |
4291 | ||
4292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail; | |
4293 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4294 | if (!SWIG_IsOK(res1)) { | |
4295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4296 | } | |
4297 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4298 | if (obj1) { | |
4299 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4300 | if (!SWIG_IsOK(ecode2)) { | |
4301 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'"); | |
4302 | } | |
4303 | arg2 = static_cast< long >(val2); | |
4304 | } | |
4305 | { | |
4306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4307 | result = ((wxColour const *)arg1)->GetAsString(arg2); | |
4308 | wxPyEndAllowThreads(__tstate); | |
4309 | if (PyErr_Occurred()) SWIG_fail; | |
4310 | } | |
4311 | { | |
4312 | #if wxUSE_UNICODE | |
4313 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4314 | #else | |
4315 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4316 | #endif | |
4317 | } | |
4318 | return resultobj; | |
4319 | fail: | |
4320 | return NULL; | |
4321 | } | |
4322 | ||
4323 | ||
554f62e9 RD |
4324 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4325 | PyObject *resultobj = 0; | |
4326 | wxColour *arg1 = (wxColour *) 0 ; | |
4327 | long result; | |
4328 | void *argp1 = 0 ; | |
4329 | int res1 = 0 ; | |
4330 | PyObject *swig_obj[1] ; | |
4331 | ||
4332 | if (!args) SWIG_fail; | |
4333 | swig_obj[0] = args; | |
4334 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4335 | if (!SWIG_IsOK(res1)) { | |
4336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4337 | } | |
4338 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4339 | { | |
4340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4341 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
4342 | wxPyEndAllowThreads(__tstate); | |
4343 | if (PyErr_Occurred()) SWIG_fail; | |
4344 | } | |
4345 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4346 | return resultobj; | |
4347 | fail: | |
4348 | return NULL; | |
4349 | } | |
4350 | ||
4351 | ||
4352 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4353 | PyObject *resultobj = 0; | |
4354 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4355 | PyObject *arg2 = (PyObject *) 0 ; |
554f62e9 RD |
4356 | bool result; |
4357 | void *argp1 = 0 ; | |
4358 | int res1 = 0 ; | |
554f62e9 RD |
4359 | PyObject * obj0 = 0 ; |
4360 | PyObject * obj1 = 0 ; | |
4361 | char * kwnames[] = { | |
e9d6f3a4 | 4362 | (char *) "self",(char *) "other", NULL |
554f62e9 RD |
4363 | }; |
4364 | ||
4365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4367 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
4369 | } |
4370 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4371 | arg2 = obj1; |
554f62e9 | 4372 | { |
e9d6f3a4 | 4373 | result = (bool)wxColour___eq__(arg1,arg2); |
554f62e9 RD |
4374 | if (PyErr_Occurred()) SWIG_fail; |
4375 | } | |
4376 | { | |
4377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4378 | } | |
4379 | return resultobj; | |
4380 | fail: | |
4381 | return NULL; | |
4382 | } | |
4383 | ||
4384 | ||
4385 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4386 | PyObject *resultobj = 0; | |
4387 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4388 | PyObject *arg2 = (PyObject *) 0 ; |
554f62e9 RD |
4389 | bool result; |
4390 | void *argp1 = 0 ; | |
4391 | int res1 = 0 ; | |
554f62e9 RD |
4392 | PyObject * obj0 = 0 ; |
4393 | PyObject * obj1 = 0 ; | |
4394 | char * kwnames[] = { | |
e9d6f3a4 | 4395 | (char *) "self",(char *) "other", NULL |
554f62e9 RD |
4396 | }; |
4397 | ||
4398 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4399 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4400 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
4402 | } |
4403 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4404 | arg2 = obj1; |
554f62e9 | 4405 | { |
e9d6f3a4 | 4406 | result = (bool)wxColour___ne__(arg1,arg2); |
554f62e9 RD |
4407 | if (PyErr_Occurred()) SWIG_fail; |
4408 | } | |
4409 | { | |
4410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4411 | } | |
4412 | return resultobj; | |
4413 | fail: | |
4414 | return NULL; | |
d55e5bfc RD |
4415 | } |
4416 | ||
4417 | ||
fc46b7f3 | 4418 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
4419 | PyObject *resultobj = 0; |
4420 | wxColour *arg1 = (wxColour *) 0 ; | |
fc46b7f3 | 4421 | bool arg2 = (bool) false ; |
554f62e9 RD |
4422 | PyObject *result = 0 ; |
4423 | void *argp1 = 0 ; | |
4424 | int res1 = 0 ; | |
fc46b7f3 RD |
4425 | bool val2 ; |
4426 | int ecode2 = 0 ; | |
4427 | PyObject * obj0 = 0 ; | |
4428 | PyObject * obj1 = 0 ; | |
4429 | char * kwnames[] = { | |
4430 | (char *) "self",(char *) "includeAlpha", NULL | |
4431 | }; | |
554f62e9 | 4432 | |
fc46b7f3 RD |
4433 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail; |
4434 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
554f62e9 RD |
4435 | if (!SWIG_IsOK(res1)) { |
4436 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4437 | } | |
4438 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
fc46b7f3 RD |
4439 | if (obj1) { |
4440 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4441 | if (!SWIG_IsOK(ecode2)) { | |
4442 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'"); | |
4443 | } | |
4444 | arg2 = static_cast< bool >(val2); | |
4445 | } | |
554f62e9 | 4446 | { |
fc46b7f3 | 4447 | result = (PyObject *)wxColour_Get(arg1,arg2); |
554f62e9 RD |
4448 | if (PyErr_Occurred()) SWIG_fail; |
4449 | } | |
4450 | resultobj = result; | |
4451 | return resultobj; | |
4452 | fail: | |
4453 | return NULL; | |
d55e5bfc RD |
4454 | } |
4455 | ||
4456 | ||
554f62e9 RD |
4457 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4458 | PyObject *resultobj = 0; | |
4459 | wxColour *arg1 = (wxColour *) 0 ; | |
4460 | unsigned long result; | |
4461 | void *argp1 = 0 ; | |
4462 | int res1 = 0 ; | |
4463 | PyObject *swig_obj[1] ; | |
4464 | ||
4465 | if (!args) SWIG_fail; | |
4466 | swig_obj[0] = args; | |
4467 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4468 | if (!SWIG_IsOK(res1)) { | |
4469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4470 | } | |
4471 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4472 | { | |
554f62e9 | 4473 | result = (unsigned long)wxColour_GetRGB(arg1); |
554f62e9 RD |
4474 | if (PyErr_Occurred()) SWIG_fail; |
4475 | } | |
4476 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
4477 | return resultobj; | |
4478 | fail: | |
4479 | return NULL; | |
4480 | } | |
4481 | ||
4482 | ||
4483 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4484 | PyObject *obj; | |
4485 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4486 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
4487 | return SWIG_Py_Void(); | |
4488 | } | |
4489 | ||
4490 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4491 | return SWIG_Python_InitShadowInstance(args); | |
4492 | } | |
4493 | ||
4494 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4495 | PyObject *resultobj = 0; | |
4496 | int arg1 ; | |
4497 | unsigned char *arg2 = (unsigned char *) 0 ; | |
4498 | unsigned char *arg3 = (unsigned char *) 0 ; | |
4499 | unsigned char *arg4 = (unsigned char *) 0 ; | |
4500 | wxPalette *result = 0 ; | |
4501 | int val1 ; | |
4502 | int ecode1 = 0 ; | |
4503 | void *argp2 = 0 ; | |
4504 | int res2 = 0 ; | |
4505 | void *argp3 = 0 ; | |
4506 | int res3 = 0 ; | |
4507 | void *argp4 = 0 ; | |
4508 | int res4 = 0 ; | |
4509 | PyObject * obj0 = 0 ; | |
4510 | PyObject * obj1 = 0 ; | |
4511 | PyObject * obj2 = 0 ; | |
4512 | PyObject * obj3 = 0 ; | |
4513 | char * kwnames[] = { | |
4514 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4515 | }; | |
4516 | ||
4517 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4518 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4519 | if (!SWIG_IsOK(ecode1)) { | |
4520 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
4521 | } | |
4522 | arg1 = static_cast< int >(val1); | |
4523 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4524 | if (!SWIG_IsOK(res2)) { | |
4525 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
4526 | } | |
4527 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
4528 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4529 | if (!SWIG_IsOK(res3)) { | |
4530 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
4531 | } | |
4532 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
4533 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4534 | if (!SWIG_IsOK(res4)) { | |
4535 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
4536 | } | |
4537 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
4538 | { | |
4539 | if (!wxPyCheckForApp()) SWIG_fail; | |
4540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4541 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
4542 | wxPyEndAllowThreads(__tstate); | |
4543 | if (PyErr_Occurred()) SWIG_fail; | |
4544 | } | |
4545 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
4546 | return resultobj; | |
4547 | fail: | |
4548 | return NULL; | |
093d3ff1 RD |
4549 | } |
4550 | ||
4551 | ||
554f62e9 RD |
4552 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4553 | PyObject *resultobj = 0; | |
4554 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4555 | void *argp1 = 0 ; | |
4556 | int res1 = 0 ; | |
4557 | PyObject *swig_obj[1] ; | |
4558 | ||
4559 | if (!args) SWIG_fail; | |
4560 | swig_obj[0] = args; | |
4561 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4562 | if (!SWIG_IsOK(res1)) { | |
4563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4564 | } | |
4565 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4566 | { | |
4567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4568 | delete arg1; | |
093d3ff1 | 4569 | |
554f62e9 RD |
4570 | wxPyEndAllowThreads(__tstate); |
4571 | if (PyErr_Occurred()) SWIG_fail; | |
4572 | } | |
4573 | resultobj = SWIG_Py_Void(); | |
4574 | return resultobj; | |
4575 | fail: | |
4576 | return NULL; | |
4577 | } | |
4578 | ||
4579 | ||
4580 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4581 | PyObject *resultobj = 0; | |
4582 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4583 | byte arg2 ; | |
4584 | byte arg3 ; | |
4585 | byte arg4 ; | |
4586 | int result; | |
4587 | void *argp1 = 0 ; | |
4588 | int res1 = 0 ; | |
4589 | unsigned char val2 ; | |
4590 | int ecode2 = 0 ; | |
4591 | unsigned char val3 ; | |
4592 | int ecode3 = 0 ; | |
4593 | unsigned char val4 ; | |
4594 | int ecode4 = 0 ; | |
4595 | PyObject * obj0 = 0 ; | |
4596 | PyObject * obj1 = 0 ; | |
4597 | PyObject * obj2 = 0 ; | |
4598 | PyObject * obj3 = 0 ; | |
4599 | char * kwnames[] = { | |
4600 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4601 | }; | |
4602 | ||
4603 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4604 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4605 | if (!SWIG_IsOK(res1)) { | |
4606 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4607 | } | |
4608 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4609 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4610 | if (!SWIG_IsOK(ecode2)) { | |
4611 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4612 | } | |
4613 | arg2 = static_cast< byte >(val2); | |
4614 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4615 | if (!SWIG_IsOK(ecode3)) { | |
4616 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4617 | } | |
4618 | arg3 = static_cast< byte >(val3); | |
4619 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4620 | if (!SWIG_IsOK(ecode4)) { | |
4621 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4622 | } | |
4623 | arg4 = static_cast< byte >(val4); | |
4624 | { | |
4625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4626 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4627 | wxPyEndAllowThreads(__tstate); | |
4628 | if (PyErr_Occurred()) SWIG_fail; | |
4629 | } | |
4630 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4631 | return resultobj; | |
4632 | fail: | |
4633 | return NULL; | |
4634 | } | |
4635 | ||
4636 | ||
4637 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4638 | PyObject *resultobj = 0; | |
4639 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4640 | int arg2 ; | |
4641 | byte *arg3 = (byte *) 0 ; | |
4642 | byte *arg4 = (byte *) 0 ; | |
4643 | byte *arg5 = (byte *) 0 ; | |
4644 | bool result; | |
4645 | void *argp1 = 0 ; | |
4646 | int res1 = 0 ; | |
4647 | int val2 ; | |
4648 | int ecode2 = 0 ; | |
4649 | byte temp3 ; | |
4650 | int res3 = SWIG_TMPOBJ ; | |
4651 | byte temp4 ; | |
4652 | int res4 = SWIG_TMPOBJ ; | |
4653 | byte temp5 ; | |
4654 | int res5 = SWIG_TMPOBJ ; | |
4655 | PyObject * obj0 = 0 ; | |
4656 | PyObject * obj1 = 0 ; | |
4657 | char * kwnames[] = { | |
4658 | (char *) "self",(char *) "pixel", NULL | |
4659 | }; | |
4660 | ||
4661 | arg3 = &temp3; | |
4662 | arg4 = &temp4; | |
4663 | arg5 = &temp5; | |
4664 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4665 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4666 | if (!SWIG_IsOK(res1)) { | |
4667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4668 | } | |
4669 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4670 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4671 | if (!SWIG_IsOK(ecode2)) { | |
4672 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4673 | } | |
4674 | arg2 = static_cast< int >(val2); | |
4675 | { | |
4676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4677 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4678 | wxPyEndAllowThreads(__tstate); | |
4679 | if (PyErr_Occurred()) SWIG_fail; | |
4680 | } | |
4681 | { | |
4682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4683 | } | |
4684 | if (SWIG_IsTmpObj(res3)) { | |
4685 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4686 | } else { | |
4687 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4688 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4689 | } | |
4690 | if (SWIG_IsTmpObj(res4)) { | |
4691 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4692 | } else { | |
4693 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4694 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4695 | } | |
4696 | if (SWIG_IsTmpObj(res5)) { | |
4697 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4698 | } else { | |
4699 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4700 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4701 | } | |
4702 | return resultobj; | |
4703 | fail: | |
4704 | return NULL; | |
d55e5bfc RD |
4705 | } |
4706 | ||
4707 | ||
554f62e9 RD |
4708 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4709 | PyObject *resultobj = 0; | |
4710 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4711 | int result; | |
4712 | void *argp1 = 0 ; | |
4713 | int res1 = 0 ; | |
4714 | PyObject *swig_obj[1] ; | |
4715 | ||
4716 | if (!args) SWIG_fail; | |
4717 | swig_obj[0] = args; | |
4718 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4719 | if (!SWIG_IsOK(res1)) { | |
4720 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
4721 | } | |
4722 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4723 | { | |
4724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4725 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
4726 | wxPyEndAllowThreads(__tstate); | |
4727 | if (PyErr_Occurred()) SWIG_fail; | |
4728 | } | |
4729 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4730 | return resultobj; | |
4731 | fail: | |
4732 | return NULL; | |
d55e5bfc RD |
4733 | } |
4734 | ||
4735 | ||
b39fe951 | 4736 | SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
4737 | PyObject *resultobj = 0; |
4738 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4739 | bool result; | |
4740 | void *argp1 = 0 ; | |
4741 | int res1 = 0 ; | |
4742 | PyObject *swig_obj[1] ; | |
4743 | ||
4744 | if (!args) SWIG_fail; | |
4745 | swig_obj[0] = args; | |
4746 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4747 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4748 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'"); |
554f62e9 RD |
4749 | } |
4750 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4751 | { | |
4752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4753 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
4754 | wxPyEndAllowThreads(__tstate); |
4755 | if (PyErr_Occurred()) SWIG_fail; | |
4756 | } | |
4757 | { | |
4758 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4759 | } | |
4760 | return resultobj; | |
4761 | fail: | |
4762 | return NULL; | |
4763 | } | |
4764 | ||
4765 | ||
4766 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4767 | PyObject *obj; | |
4768 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4769 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
4770 | return SWIG_Py_Void(); | |
4771 | } | |
4772 | ||
4773 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4774 | return SWIG_Python_InitShadowInstance(args); | |
4775 | } | |
4776 | ||
4777 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4778 | PyObject *resultobj = 0; | |
4779 | wxColour *arg1 = 0 ; | |
4780 | int arg2 = (int) 1 ; | |
4781 | int arg3 = (int) wxSOLID ; | |
4782 | wxPen *result = 0 ; | |
4783 | wxColour temp1 ; | |
4784 | int val2 ; | |
4785 | int ecode2 = 0 ; | |
4786 | int val3 ; | |
4787 | int ecode3 = 0 ; | |
4788 | PyObject * obj0 = 0 ; | |
4789 | PyObject * obj1 = 0 ; | |
4790 | PyObject * obj2 = 0 ; | |
4791 | char * kwnames[] = { | |
4792 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
4793 | }; | |
4794 | ||
4795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
4796 | { | |
4797 | arg1 = &temp1; | |
4798 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
4799 | } | |
4800 | if (obj1) { | |
4801 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4802 | if (!SWIG_IsOK(ecode2)) { | |
4803 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
4804 | } | |
4805 | arg2 = static_cast< int >(val2); | |
4806 | } | |
4807 | if (obj2) { | |
4808 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
4809 | if (!SWIG_IsOK(ecode3)) { | |
4810 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
4811 | } | |
4812 | arg3 = static_cast< int >(val3); | |
4813 | } | |
4814 | { | |
4815 | if (!wxPyCheckForApp()) SWIG_fail; | |
4816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4817 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
4818 | wxPyEndAllowThreads(__tstate); | |
4819 | if (PyErr_Occurred()) SWIG_fail; | |
4820 | } | |
4821 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
4822 | return resultobj; | |
4823 | fail: | |
4824 | return NULL; | |
d55e5bfc RD |
4825 | } |
4826 | ||
4827 | ||
554f62e9 RD |
4828 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4829 | PyObject *resultobj = 0; | |
4830 | wxPen *arg1 = (wxPen *) 0 ; | |
4831 | void *argp1 = 0 ; | |
4832 | int res1 = 0 ; | |
4833 | PyObject *swig_obj[1] ; | |
4834 | ||
4835 | if (!args) SWIG_fail; | |
4836 | swig_obj[0] = args; | |
4837 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
4838 | if (!SWIG_IsOK(res1)) { | |
4839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4840 | } | |
4841 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4842 | { | |
4843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4844 | delete arg1; | |
d55e5bfc | 4845 | |
554f62e9 RD |
4846 | wxPyEndAllowThreads(__tstate); |
4847 | if (PyErr_Occurred()) SWIG_fail; | |
4848 | } | |
4849 | resultobj = SWIG_Py_Void(); | |
4850 | return resultobj; | |
4851 | fail: | |
4852 | return NULL; | |
d55e5bfc RD |
4853 | } |
4854 | ||
4855 | ||
554f62e9 RD |
4856 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4857 | PyObject *resultobj = 0; | |
4858 | wxPen *arg1 = (wxPen *) 0 ; | |
4859 | int result; | |
4860 | void *argp1 = 0 ; | |
4861 | int res1 = 0 ; | |
4862 | PyObject *swig_obj[1] ; | |
4863 | ||
4864 | if (!args) SWIG_fail; | |
4865 | swig_obj[0] = args; | |
4866 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4867 | if (!SWIG_IsOK(res1)) { | |
4868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4869 | } | |
4870 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4871 | { | |
4872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4873 | result = (int)(arg1)->GetCap(); | |
4874 | wxPyEndAllowThreads(__tstate); | |
4875 | if (PyErr_Occurred()) SWIG_fail; | |
4876 | } | |
4877 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4878 | return resultobj; | |
4879 | fail: | |
4880 | return NULL; | |
d55e5bfc RD |
4881 | } |
4882 | ||
4883 | ||
554f62e9 RD |
4884 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4885 | PyObject *resultobj = 0; | |
4886 | wxPen *arg1 = (wxPen *) 0 ; | |
4887 | wxColour result; | |
4888 | void *argp1 = 0 ; | |
4889 | int res1 = 0 ; | |
4890 | PyObject *swig_obj[1] ; | |
4891 | ||
4892 | if (!args) SWIG_fail; | |
4893 | swig_obj[0] = args; | |
4894 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4895 | if (!SWIG_IsOK(res1)) { | |
4896 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4897 | } | |
4898 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4899 | { | |
4900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4901 | result = (arg1)->GetColour(); | |
4902 | wxPyEndAllowThreads(__tstate); | |
4903 | if (PyErr_Occurred()) SWIG_fail; | |
4904 | } | |
4905 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4906 | return resultobj; | |
4907 | fail: | |
4908 | return NULL; | |
d55e5bfc RD |
4909 | } |
4910 | ||
4911 | ||
554f62e9 RD |
4912 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4913 | PyObject *resultobj = 0; | |
4914 | wxPen *arg1 = (wxPen *) 0 ; | |
4915 | int result; | |
4916 | void *argp1 = 0 ; | |
4917 | int res1 = 0 ; | |
4918 | PyObject *swig_obj[1] ; | |
4919 | ||
4920 | if (!args) SWIG_fail; | |
4921 | swig_obj[0] = args; | |
4922 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4923 | if (!SWIG_IsOK(res1)) { | |
4924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4925 | } | |
4926 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4927 | { | |
4928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4929 | result = (int)(arg1)->GetJoin(); | |
4930 | wxPyEndAllowThreads(__tstate); | |
4931 | if (PyErr_Occurred()) SWIG_fail; | |
4932 | } | |
4933 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4934 | return resultobj; | |
4935 | fail: | |
4936 | return NULL; | |
d55e5bfc RD |
4937 | } |
4938 | ||
4939 | ||
554f62e9 RD |
4940 | SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4941 | PyObject *resultobj = 0; | |
4942 | wxPen *arg1 = (wxPen *) 0 ; | |
4943 | int result; | |
4944 | void *argp1 = 0 ; | |
4945 | int res1 = 0 ; | |
4946 | PyObject *swig_obj[1] ; | |
4947 | ||
4948 | if (!args) SWIG_fail; | |
4949 | swig_obj[0] = args; | |
4950 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4951 | if (!SWIG_IsOK(res1)) { | |
4952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4953 | } | |
4954 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4955 | { | |
4956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4957 | result = (int)(arg1)->GetStyle(); | |
4958 | wxPyEndAllowThreads(__tstate); | |
4959 | if (PyErr_Occurred()) SWIG_fail; | |
4960 | } | |
4961 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4962 | return resultobj; | |
4963 | fail: | |
4964 | return NULL; | |
d55e5bfc RD |
4965 | } |
4966 | ||
4967 | ||
554f62e9 RD |
4968 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4969 | PyObject *resultobj = 0; | |
4970 | wxPen *arg1 = (wxPen *) 0 ; | |
4971 | int result; | |
4972 | void *argp1 = 0 ; | |
4973 | int res1 = 0 ; | |
4974 | PyObject *swig_obj[1] ; | |
4975 | ||
4976 | if (!args) SWIG_fail; | |
4977 | swig_obj[0] = args; | |
4978 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
4979 | if (!SWIG_IsOK(res1)) { | |
4980 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
4981 | } | |
4982 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
4983 | { | |
4984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4985 | result = (int)(arg1)->GetWidth(); | |
4986 | wxPyEndAllowThreads(__tstate); | |
4987 | if (PyErr_Occurred()) SWIG_fail; | |
4988 | } | |
4989 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4990 | return resultobj; | |
4991 | fail: | |
4992 | return NULL; | |
d55e5bfc RD |
4993 | } |
4994 | ||
4995 | ||
b39fe951 | 4996 | SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
4997 | PyObject *resultobj = 0; |
4998 | wxPen *arg1 = (wxPen *) 0 ; | |
4999 | bool result; | |
5000 | void *argp1 = 0 ; | |
5001 | int res1 = 0 ; | |
5002 | PyObject *swig_obj[1] ; | |
5003 | ||
5004 | if (!args) SWIG_fail; | |
5005 | swig_obj[0] = args; | |
5006 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5007 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5008 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'"); |
554f62e9 RD |
5009 | } |
5010 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5011 | { | |
5012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5013 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
5014 | wxPyEndAllowThreads(__tstate); |
5015 | if (PyErr_Occurred()) SWIG_fail; | |
5016 | } | |
5017 | { | |
5018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5019 | } | |
5020 | return resultobj; | |
5021 | fail: | |
5022 | return NULL; | |
5023 | } | |
5024 | ||
5025 | ||
5026 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5027 | PyObject *resultobj = 0; | |
5028 | wxPen *arg1 = (wxPen *) 0 ; | |
5029 | int arg2 ; | |
5030 | void *argp1 = 0 ; | |
5031 | int res1 = 0 ; | |
5032 | int val2 ; | |
5033 | int ecode2 = 0 ; | |
5034 | PyObject * obj0 = 0 ; | |
5035 | PyObject * obj1 = 0 ; | |
5036 | char * kwnames[] = { | |
5037 | (char *) "self",(char *) "cap_style", NULL | |
5038 | }; | |
5039 | ||
5040 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5042 | if (!SWIG_IsOK(res1)) { | |
5043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5044 | } | |
5045 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5046 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5047 | if (!SWIG_IsOK(ecode2)) { | |
5048 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
5049 | } | |
5050 | arg2 = static_cast< int >(val2); | |
5051 | { | |
5052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5053 | (arg1)->SetCap(arg2); | |
5054 | wxPyEndAllowThreads(__tstate); | |
5055 | if (PyErr_Occurred()) SWIG_fail; | |
5056 | } | |
5057 | resultobj = SWIG_Py_Void(); | |
5058 | return resultobj; | |
5059 | fail: | |
5060 | return NULL; | |
5061 | } | |
5062 | ||
5063 | ||
5064 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5065 | PyObject *resultobj = 0; | |
5066 | wxPen *arg1 = (wxPen *) 0 ; | |
5067 | wxColour *arg2 = 0 ; | |
5068 | void *argp1 = 0 ; | |
5069 | int res1 = 0 ; | |
5070 | wxColour temp2 ; | |
5071 | PyObject * obj0 = 0 ; | |
5072 | PyObject * obj1 = 0 ; | |
5073 | char * kwnames[] = { | |
5074 | (char *) "self",(char *) "colour", NULL | |
5075 | }; | |
5076 | ||
5077 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5078 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5079 | if (!SWIG_IsOK(res1)) { | |
5080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5081 | } | |
5082 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5083 | { | |
5084 | arg2 = &temp2; | |
5085 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5086 | } | |
5087 | { | |
5088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5089 | (arg1)->SetColour(*arg2); | |
5090 | wxPyEndAllowThreads(__tstate); | |
5091 | if (PyErr_Occurred()) SWIG_fail; | |
5092 | } | |
5093 | resultobj = SWIG_Py_Void(); | |
5094 | return resultobj; | |
5095 | fail: | |
5096 | return NULL; | |
5097 | } | |
5098 | ||
5099 | ||
5100 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5101 | PyObject *resultobj = 0; | |
5102 | wxPen *arg1 = (wxPen *) 0 ; | |
5103 | int arg2 ; | |
5104 | void *argp1 = 0 ; | |
5105 | int res1 = 0 ; | |
5106 | int val2 ; | |
5107 | int ecode2 = 0 ; | |
5108 | PyObject * obj0 = 0 ; | |
5109 | PyObject * obj1 = 0 ; | |
5110 | char * kwnames[] = { | |
5111 | (char *) "self",(char *) "join_style", NULL | |
5112 | }; | |
5113 | ||
5114 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
5115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5116 | if (!SWIG_IsOK(res1)) { | |
5117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5118 | } | |
5119 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5120 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5121 | if (!SWIG_IsOK(ecode2)) { | |
5122 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
5123 | } | |
5124 | arg2 = static_cast< int >(val2); | |
5125 | { | |
5126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5127 | (arg1)->SetJoin(arg2); | |
5128 | wxPyEndAllowThreads(__tstate); | |
5129 | if (PyErr_Occurred()) SWIG_fail; | |
5130 | } | |
5131 | resultobj = SWIG_Py_Void(); | |
5132 | return resultobj; | |
5133 | fail: | |
5134 | return NULL; | |
5135 | } | |
5136 | ||
5137 | ||
5138 | SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5139 | PyObject *resultobj = 0; | |
5140 | wxPen *arg1 = (wxPen *) 0 ; | |
5141 | int arg2 ; | |
5142 | void *argp1 = 0 ; | |
5143 | int res1 = 0 ; | |
5144 | int val2 ; | |
5145 | int ecode2 = 0 ; | |
5146 | PyObject * obj0 = 0 ; | |
5147 | PyObject * obj1 = 0 ; | |
5148 | char * kwnames[] = { | |
5149 | (char *) "self",(char *) "style", NULL | |
5150 | }; | |
5151 | ||
5152 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5153 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5154 | if (!SWIG_IsOK(res1)) { | |
5155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5156 | } | |
5157 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5158 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5159 | if (!SWIG_IsOK(ecode2)) { | |
5160 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5161 | } | |
5162 | arg2 = static_cast< int >(val2); | |
5163 | { | |
5164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5165 | (arg1)->SetStyle(arg2); | |
5166 | wxPyEndAllowThreads(__tstate); | |
5167 | if (PyErr_Occurred()) SWIG_fail; | |
5168 | } | |
5169 | resultobj = SWIG_Py_Void(); | |
5170 | return resultobj; | |
5171 | fail: | |
5172 | return NULL; | |
5173 | } | |
5174 | ||
5175 | ||
5176 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5177 | PyObject *resultobj = 0; | |
5178 | wxPen *arg1 = (wxPen *) 0 ; | |
5179 | int arg2 ; | |
5180 | void *argp1 = 0 ; | |
5181 | int res1 = 0 ; | |
5182 | int val2 ; | |
5183 | int ecode2 = 0 ; | |
5184 | PyObject * obj0 = 0 ; | |
5185 | PyObject * obj1 = 0 ; | |
5186 | char * kwnames[] = { | |
5187 | (char *) "self",(char *) "width", NULL | |
5188 | }; | |
5189 | ||
5190 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
5191 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5192 | if (!SWIG_IsOK(res1)) { | |
5193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5194 | } | |
5195 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5196 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5197 | if (!SWIG_IsOK(ecode2)) { | |
5198 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
5199 | } | |
5200 | arg2 = static_cast< int >(val2); | |
5201 | { | |
5202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5203 | (arg1)->SetWidth(arg2); | |
5204 | wxPyEndAllowThreads(__tstate); | |
5205 | if (PyErr_Occurred()) SWIG_fail; | |
5206 | } | |
5207 | resultobj = SWIG_Py_Void(); | |
5208 | return resultobj; | |
5209 | fail: | |
5210 | return NULL; | |
5211 | } | |
5212 | ||
5213 | ||
5214 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5215 | PyObject *resultobj = 0; | |
5216 | wxPen *arg1 = (wxPen *) 0 ; | |
5217 | int arg2 ; | |
5218 | wxDash *arg3 = (wxDash *) 0 ; | |
5219 | void *argp1 = 0 ; | |
5220 | int res1 = 0 ; | |
5221 | PyObject * obj0 = 0 ; | |
5222 | PyObject * obj1 = 0 ; | |
5223 | char * kwnames[] = { | |
5224 | (char *) "self",(char *) "dashes", NULL | |
5225 | }; | |
5226 | ||
5227 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
5228 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5229 | if (!SWIG_IsOK(res1)) { | |
5230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5231 | } | |
5232 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5233 | { | |
5234 | arg2 = PyList_Size(obj1); | |
5235 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
5236 | if (arg3 == NULL) SWIG_fail; | |
5237 | } | |
5238 | { | |
5239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5240 | (arg1)->SetDashes(arg2,arg3); | |
5241 | wxPyEndAllowThreads(__tstate); | |
5242 | if (PyErr_Occurred()) SWIG_fail; | |
5243 | } | |
5244 | resultobj = SWIG_Py_Void(); | |
5245 | { | |
5246 | if (arg3) delete [] arg3; | |
5247 | } | |
5248 | return resultobj; | |
5249 | fail: | |
5250 | { | |
5251 | if (arg3) delete [] arg3; | |
5252 | } | |
5253 | return NULL; | |
d55e5bfc RD |
5254 | } |
5255 | ||
5256 | ||
554f62e9 RD |
5257 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5258 | PyObject *resultobj = 0; | |
5259 | wxPen *arg1 = (wxPen *) 0 ; | |
5260 | PyObject *result = 0 ; | |
5261 | void *argp1 = 0 ; | |
5262 | int res1 = 0 ; | |
5263 | PyObject *swig_obj[1] ; | |
5264 | ||
5265 | if (!args) SWIG_fail; | |
5266 | swig_obj[0] = args; | |
5267 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5268 | if (!SWIG_IsOK(res1)) { | |
5269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5270 | } | |
5271 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5272 | { | |
5273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5274 | result = (PyObject *)wxPen_GetDashes(arg1); | |
5275 | wxPyEndAllowThreads(__tstate); | |
5276 | if (PyErr_Occurred()) SWIG_fail; | |
5277 | } | |
5278 | resultobj = result; | |
5279 | return resultobj; | |
5280 | fail: | |
5281 | return NULL; | |
5282 | } | |
5283 | ||
5284 | ||
5285 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5286 | PyObject *resultobj = 0; | |
5287 | wxPen *arg1 = (wxPen *) 0 ; | |
5288 | PyObject *arg2 = (PyObject *) 0 ; | |
5289 | PyObject *arg3 = (PyObject *) 0 ; | |
5290 | void *argp1 = 0 ; | |
5291 | int res1 = 0 ; | |
5292 | PyObject * obj0 = 0 ; | |
5293 | PyObject * obj1 = 0 ; | |
5294 | PyObject * obj2 = 0 ; | |
5295 | char * kwnames[] = { | |
5296 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
5297 | }; | |
5298 | ||
5299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5301 | if (!SWIG_IsOK(res1)) { | |
5302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5303 | } | |
5304 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5305 | arg2 = obj1; | |
5306 | arg3 = obj2; | |
5307 | { | |
5308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5309 | wxPen__SetDashes(arg1,arg2,arg3); | |
5310 | wxPyEndAllowThreads(__tstate); | |
5311 | if (PyErr_Occurred()) SWIG_fail; | |
5312 | } | |
5313 | resultobj = SWIG_Py_Void(); | |
5314 | return resultobj; | |
5315 | fail: | |
5316 | return NULL; | |
d55e5bfc RD |
5317 | } |
5318 | ||
5319 | ||
554f62e9 RD |
5320 | SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5321 | PyObject *resultobj = 0; | |
5322 | wxPen *arg1 = (wxPen *) 0 ; | |
5323 | int result; | |
5324 | void *argp1 = 0 ; | |
5325 | int res1 = 0 ; | |
5326 | PyObject *swig_obj[1] ; | |
5327 | ||
5328 | if (!args) SWIG_fail; | |
5329 | swig_obj[0] = args; | |
5330 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5331 | if (!SWIG_IsOK(res1)) { | |
5332 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'"); | |
5333 | } | |
5334 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5335 | { | |
5336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5337 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
5338 | wxPyEndAllowThreads(__tstate); | |
5339 | if (PyErr_Occurred()) SWIG_fail; | |
5340 | } | |
5341 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5342 | return resultobj; | |
5343 | fail: | |
5344 | return NULL; | |
d55e5bfc RD |
5345 | } |
5346 | ||
5347 | ||
554f62e9 RD |
5348 | SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5349 | PyObject *resultobj = 0; | |
5350 | wxPen *arg1 = (wxPen *) 0 ; | |
5351 | wxBitmap *result = 0 ; | |
5352 | void *argp1 = 0 ; | |
5353 | int res1 = 0 ; | |
5354 | PyObject *swig_obj[1] ; | |
5355 | ||
5356 | if (!args) SWIG_fail; | |
5357 | swig_obj[0] = args; | |
5358 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5359 | if (!SWIG_IsOK(res1)) { | |
5360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5361 | } | |
5362 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5363 | { | |
5364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5365 | result = (wxBitmap *)(arg1)->GetStipple(); | |
5366 | wxPyEndAllowThreads(__tstate); | |
5367 | if (PyErr_Occurred()) SWIG_fail; | |
5368 | } | |
5369 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5370 | return resultobj; | |
5371 | fail: | |
5372 | return NULL; | |
5373 | } | |
5374 | ||
5375 | ||
5376 | SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5377 | PyObject *resultobj = 0; | |
5378 | wxPen *arg1 = (wxPen *) 0 ; | |
5379 | wxBitmap *arg2 = 0 ; | |
5380 | void *argp1 = 0 ; | |
5381 | int res1 = 0 ; | |
5382 | void *argp2 = 0 ; | |
5383 | int res2 = 0 ; | |
5384 | PyObject * obj0 = 0 ; | |
5385 | PyObject * obj1 = 0 ; | |
5386 | char * kwnames[] = { | |
5387 | (char *) "self",(char *) "stipple", NULL | |
5388 | }; | |
5389 | ||
5390 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5392 | if (!SWIG_IsOK(res1)) { | |
5393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5394 | } | |
5395 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5396 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); | |
5397 | if (!SWIG_IsOK(res2)) { | |
5398 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
5399 | } | |
5400 | if (!argp2) { | |
5401 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
5402 | } | |
5403 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5404 | { | |
5405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5406 | (arg1)->SetStipple(*arg2); | |
5407 | wxPyEndAllowThreads(__tstate); | |
5408 | if (PyErr_Occurred()) SWIG_fail; | |
5409 | } | |
5410 | resultobj = SWIG_Py_Void(); | |
5411 | return resultobj; | |
5412 | fail: | |
5413 | return NULL; | |
5414 | } | |
5415 | ||
5416 | ||
5417 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5418 | PyObject *resultobj = 0; | |
5419 | wxPen *arg1 = (wxPen *) 0 ; | |
5420 | wxPen *arg2 = (wxPen *) 0 ; | |
5421 | bool result; | |
5422 | void *argp1 = 0 ; | |
5423 | int res1 = 0 ; | |
5424 | void *argp2 = 0 ; | |
5425 | int res2 = 0 ; | |
5426 | PyObject * obj0 = 0 ; | |
5427 | PyObject * obj1 = 0 ; | |
5428 | char * kwnames[] = { | |
5429 | (char *) "self",(char *) "other", NULL | |
5430 | }; | |
5431 | ||
5432 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5433 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5434 | if (!SWIG_IsOK(res1)) { | |
5435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5436 | } | |
5437 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5438 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5439 | if (!SWIG_IsOK(res2)) { | |
5440 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5441 | } | |
5442 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5443 | { | |
5444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5445 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
5446 | wxPyEndAllowThreads(__tstate); | |
5447 | if (PyErr_Occurred()) SWIG_fail; | |
5448 | } | |
5449 | { | |
5450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5451 | } | |
5452 | return resultobj; | |
5453 | fail: | |
5454 | return NULL; | |
5455 | } | |
5456 | ||
5457 | ||
5458 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5459 | PyObject *resultobj = 0; | |
5460 | wxPen *arg1 = (wxPen *) 0 ; | |
5461 | wxPen *arg2 = (wxPen *) 0 ; | |
5462 | bool result; | |
5463 | void *argp1 = 0 ; | |
5464 | int res1 = 0 ; | |
5465 | void *argp2 = 0 ; | |
5466 | int res2 = 0 ; | |
5467 | PyObject * obj0 = 0 ; | |
5468 | PyObject * obj1 = 0 ; | |
5469 | char * kwnames[] = { | |
5470 | (char *) "self",(char *) "other", NULL | |
5471 | }; | |
5472 | ||
5473 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5474 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5475 | if (!SWIG_IsOK(res1)) { | |
5476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5477 | } | |
5478 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5479 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5480 | if (!SWIG_IsOK(res2)) { | |
5481 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5482 | } | |
5483 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5484 | { | |
5485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5486 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
5487 | wxPyEndAllowThreads(__tstate); | |
5488 | if (PyErr_Occurred()) SWIG_fail; | |
5489 | } | |
5490 | { | |
5491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5492 | } | |
5493 | return resultobj; | |
5494 | fail: | |
5495 | return NULL; | |
d55e5bfc RD |
5496 | } |
5497 | ||
5498 | ||
554f62e9 RD |
5499 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5500 | PyObject *obj; | |
5501 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5502 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
5503 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5504 | } |
5505 | ||
554f62e9 RD |
5506 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5507 | return SWIG_Python_InitShadowInstance(args); | |
5508 | } | |
d55e5bfc | 5509 | |
554f62e9 RD |
5510 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5511 | PyObject *resultobj = 0; | |
5512 | wxColour *arg1 = 0 ; | |
5513 | int arg2 = (int) wxSOLID ; | |
5514 | wxBrush *result = 0 ; | |
5515 | wxColour temp1 ; | |
5516 | int val2 ; | |
5517 | int ecode2 = 0 ; | |
5518 | PyObject * obj0 = 0 ; | |
5519 | PyObject * obj1 = 0 ; | |
5520 | char * kwnames[] = { | |
5521 | (char *) "colour",(char *) "style", NULL | |
5522 | }; | |
5523 | ||
5524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
5525 | { | |
5526 | arg1 = &temp1; | |
5527 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5528 | } | |
5529 | if (obj1) { | |
5530 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5531 | if (!SWIG_IsOK(ecode2)) { | |
5532 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
5533 | } | |
5534 | arg2 = static_cast< int >(val2); | |
5535 | } | |
5536 | { | |
5537 | if (!wxPyCheckForApp()) SWIG_fail; | |
5538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5539 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
5540 | wxPyEndAllowThreads(__tstate); | |
5541 | if (PyErr_Occurred()) SWIG_fail; | |
5542 | } | |
5543 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
5544 | return resultobj; | |
5545 | fail: | |
5546 | return NULL; | |
5547 | } | |
5548 | ||
5549 | ||
5550 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5551 | PyObject *resultobj = 0; | |
5552 | wxBitmap *arg1 = 0 ; | |
5553 | wxBrush *result = 0 ; | |
5554 | void *argp1 = 0 ; | |
5555 | int res1 = 0 ; | |
5556 | PyObject * obj0 = 0 ; | |
5557 | char * kwnames[] = { | |
5558 | (char *) "stippleBitmap", NULL | |
5559 | }; | |
5560 | ||
5561 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
5562 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5563 | if (!SWIG_IsOK(res1)) { | |
5564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5565 | } | |
5566 | if (!argp1) { | |
5567 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5568 | } | |
5569 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5570 | { | |
5571 | if (!wxPyCheckForApp()) SWIG_fail; | |
5572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5573 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
5574 | wxPyEndAllowThreads(__tstate); | |
5575 | if (PyErr_Occurred()) SWIG_fail; | |
5576 | } | |
5577 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
5578 | return resultobj; | |
5579 | fail: | |
5580 | return NULL; | |
d55e5bfc RD |
5581 | } |
5582 | ||
5583 | ||
554f62e9 RD |
5584 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5585 | PyObject *resultobj = 0; | |
5586 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5587 | void *argp1 = 0 ; | |
5588 | int res1 = 0 ; | |
5589 | PyObject *swig_obj[1] ; | |
5590 | ||
5591 | if (!args) SWIG_fail; | |
5592 | swig_obj[0] = args; | |
5593 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
5594 | if (!SWIG_IsOK(res1)) { | |
5595 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5596 | } | |
5597 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5598 | { | |
5599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5600 | delete arg1; | |
d55e5bfc | 5601 | |
554f62e9 RD |
5602 | wxPyEndAllowThreads(__tstate); |
5603 | if (PyErr_Occurred()) SWIG_fail; | |
5604 | } | |
5605 | resultobj = SWIG_Py_Void(); | |
5606 | return resultobj; | |
5607 | fail: | |
5608 | return NULL; | |
5609 | } | |
5610 | ||
5611 | ||
5612 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5613 | PyObject *resultobj = 0; | |
5614 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5615 | wxColour *arg2 = 0 ; | |
5616 | void *argp1 = 0 ; | |
5617 | int res1 = 0 ; | |
5618 | wxColour temp2 ; | |
5619 | PyObject * obj0 = 0 ; | |
5620 | PyObject * obj1 = 0 ; | |
5621 | char * kwnames[] = { | |
5622 | (char *) "self",(char *) "col", NULL | |
5623 | }; | |
5624 | ||
5625 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5627 | if (!SWIG_IsOK(res1)) { | |
5628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5629 | } | |
5630 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5631 | { | |
5632 | arg2 = &temp2; | |
5633 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5634 | } | |
5635 | { | |
5636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5637 | (arg1)->SetColour((wxColour const &)*arg2); | |
5638 | wxPyEndAllowThreads(__tstate); | |
5639 | if (PyErr_Occurred()) SWIG_fail; | |
5640 | } | |
5641 | resultobj = SWIG_Py_Void(); | |
5642 | return resultobj; | |
5643 | fail: | |
5644 | return NULL; | |
5645 | } | |
5646 | ||
5647 | ||
5648 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5649 | PyObject *resultobj = 0; | |
5650 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5651 | int arg2 ; | |
5652 | void *argp1 = 0 ; | |
5653 | int res1 = 0 ; | |
5654 | int val2 ; | |
5655 | int ecode2 = 0 ; | |
5656 | PyObject * obj0 = 0 ; | |
5657 | PyObject * obj1 = 0 ; | |
5658 | char * kwnames[] = { | |
5659 | (char *) "self",(char *) "style", NULL | |
5660 | }; | |
5661 | ||
5662 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5663 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5664 | if (!SWIG_IsOK(res1)) { | |
5665 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5666 | } | |
5667 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5668 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5669 | if (!SWIG_IsOK(ecode2)) { | |
5670 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5671 | } | |
5672 | arg2 = static_cast< int >(val2); | |
5673 | { | |
5674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5675 | (arg1)->SetStyle(arg2); | |
5676 | wxPyEndAllowThreads(__tstate); | |
5677 | if (PyErr_Occurred()) SWIG_fail; | |
5678 | } | |
5679 | resultobj = SWIG_Py_Void(); | |
5680 | return resultobj; | |
5681 | fail: | |
5682 | return NULL; | |
5683 | } | |
5684 | ||
5685 | ||
5686 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5687 | PyObject *resultobj = 0; | |
5688 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5689 | wxBitmap *arg2 = 0 ; | |
5690 | void *argp1 = 0 ; | |
5691 | int res1 = 0 ; | |
5692 | void *argp2 = 0 ; | |
5693 | int res2 = 0 ; | |
5694 | PyObject * obj0 = 0 ; | |
5695 | PyObject * obj1 = 0 ; | |
5696 | char * kwnames[] = { | |
5697 | (char *) "self",(char *) "stipple", NULL | |
5698 | }; | |
5699 | ||
5700 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5701 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5702 | if (!SWIG_IsOK(res1)) { | |
5703 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5704 | } | |
5705 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5706 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5707 | if (!SWIG_IsOK(res2)) { | |
5708 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5709 | } | |
5710 | if (!argp2) { | |
5711 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5712 | } | |
5713 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5714 | { | |
5715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5716 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
5717 | wxPyEndAllowThreads(__tstate); | |
5718 | if (PyErr_Occurred()) SWIG_fail; | |
5719 | } | |
5720 | resultobj = SWIG_Py_Void(); | |
5721 | return resultobj; | |
5722 | fail: | |
5723 | return NULL; | |
d55e5bfc RD |
5724 | } |
5725 | ||
5726 | ||
554f62e9 RD |
5727 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5728 | PyObject *resultobj = 0; | |
5729 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5730 | wxColour result; | |
5731 | void *argp1 = 0 ; | |
5732 | int res1 = 0 ; | |
5733 | PyObject *swig_obj[1] ; | |
5734 | ||
5735 | if (!args) SWIG_fail; | |
5736 | swig_obj[0] = args; | |
5737 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5738 | if (!SWIG_IsOK(res1)) { | |
5739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5740 | } | |
5741 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5742 | { | |
5743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5744 | result = ((wxBrush const *)arg1)->GetColour(); | |
5745 | wxPyEndAllowThreads(__tstate); | |
5746 | if (PyErr_Occurred()) SWIG_fail; | |
5747 | } | |
5748 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5749 | return resultobj; | |
5750 | fail: | |
5751 | return NULL; | |
d55e5bfc RD |
5752 | } |
5753 | ||
5754 | ||
554f62e9 RD |
5755 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5756 | PyObject *resultobj = 0; | |
5757 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5758 | int result; | |
5759 | void *argp1 = 0 ; | |
5760 | int res1 = 0 ; | |
5761 | PyObject *swig_obj[1] ; | |
5762 | ||
5763 | if (!args) SWIG_fail; | |
5764 | swig_obj[0] = args; | |
5765 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5766 | if (!SWIG_IsOK(res1)) { | |
5767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5768 | } | |
5769 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5770 | { | |
5771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5772 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
5773 | wxPyEndAllowThreads(__tstate); | |
5774 | if (PyErr_Occurred()) SWIG_fail; | |
5775 | } | |
5776 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5777 | return resultobj; | |
5778 | fail: | |
5779 | return NULL; | |
d55e5bfc RD |
5780 | } |
5781 | ||
5782 | ||
554f62e9 RD |
5783 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5784 | PyObject *resultobj = 0; | |
5785 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5786 | wxBitmap *result = 0 ; | |
5787 | void *argp1 = 0 ; | |
5788 | int res1 = 0 ; | |
5789 | PyObject *swig_obj[1] ; | |
5790 | ||
5791 | if (!args) SWIG_fail; | |
5792 | swig_obj[0] = args; | |
5793 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5794 | if (!SWIG_IsOK(res1)) { | |
5795 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5796 | } | |
5797 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5798 | { | |
5799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5800 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
5801 | wxPyEndAllowThreads(__tstate); | |
5802 | if (PyErr_Occurred()) SWIG_fail; | |
5803 | } | |
5804 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5805 | return resultobj; | |
5806 | fail: | |
5807 | return NULL; | |
d55e5bfc RD |
5808 | } |
5809 | ||
5810 | ||
554f62e9 RD |
5811 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5812 | PyObject *resultobj = 0; | |
5813 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5814 | bool result; | |
5815 | void *argp1 = 0 ; | |
5816 | int res1 = 0 ; | |
5817 | PyObject *swig_obj[1] ; | |
5818 | ||
5819 | if (!args) SWIG_fail; | |
5820 | swig_obj[0] = args; | |
5821 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5822 | if (!SWIG_IsOK(res1)) { | |
5823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
5824 | } | |
5825 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5826 | { | |
5827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5828 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
5829 | wxPyEndAllowThreads(__tstate); | |
5830 | if (PyErr_Occurred()) SWIG_fail; | |
5831 | } | |
5832 | { | |
5833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5834 | } | |
5835 | return resultobj; | |
5836 | fail: | |
5837 | return NULL; | |
f78cc896 RD |
5838 | } |
5839 | ||
5840 | ||
b39fe951 | 5841 | SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
5842 | PyObject *resultobj = 0; |
5843 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5844 | bool result; | |
5845 | void *argp1 = 0 ; | |
5846 | int res1 = 0 ; | |
5847 | PyObject *swig_obj[1] ; | |
5848 | ||
5849 | if (!args) SWIG_fail; | |
5850 | swig_obj[0] = args; | |
5851 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5852 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5853 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'"); |
554f62e9 RD |
5854 | } |
5855 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5856 | { | |
5857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5858 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
5859 | wxPyEndAllowThreads(__tstate); |
5860 | if (PyErr_Occurred()) SWIG_fail; | |
5861 | } | |
5862 | { | |
5863 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5864 | } | |
5865 | return resultobj; | |
5866 | fail: | |
5867 | return NULL; | |
d55e5bfc RD |
5868 | } |
5869 | ||
5870 | ||
554f62e9 RD |
5871 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5872 | PyObject *obj; | |
5873 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5874 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
5875 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5876 | } |
5877 | ||
554f62e9 RD |
5878 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5879 | return SWIG_Python_InitShadowInstance(args); | |
5880 | } | |
d55e5bfc | 5881 | |
554f62e9 RD |
5882 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5883 | PyObject *resultobj = 0; | |
5884 | wxString *arg1 = 0 ; | |
5885 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
5886 | wxBitmap *result = 0 ; | |
5887 | bool temp1 = false ; | |
5888 | int val2 ; | |
5889 | int ecode2 = 0 ; | |
5890 | PyObject * obj0 = 0 ; | |
5891 | PyObject * obj1 = 0 ; | |
5892 | char * kwnames[] = { | |
5893 | (char *) "name",(char *) "type", NULL | |
5894 | }; | |
5895 | ||
5896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5897 | { | |
5898 | arg1 = wxString_in_helper(obj0); | |
5899 | if (arg1 == NULL) SWIG_fail; | |
5900 | temp1 = true; | |
5901 | } | |
5902 | if (obj1) { | |
5903 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5904 | if (!SWIG_IsOK(ecode2)) { | |
5905 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
5906 | } | |
5907 | arg2 = static_cast< wxBitmapType >(val2); | |
5908 | } | |
5909 | { | |
5910 | if (!wxPyCheckForApp()) SWIG_fail; | |
5911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5912 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
5913 | wxPyEndAllowThreads(__tstate); | |
5914 | if (PyErr_Occurred()) SWIG_fail; | |
5915 | } | |
5916 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
5917 | { | |
5918 | if (temp1) | |
5919 | delete arg1; | |
5920 | } | |
5921 | return resultobj; | |
5922 | fail: | |
5923 | { | |
5924 | if (temp1) | |
5925 | delete arg1; | |
5926 | } | |
5927 | return NULL; | |
d55e5bfc RD |
5928 | } |
5929 | ||
5930 | ||
554f62e9 RD |
5931 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5932 | PyObject *resultobj = 0; | |
5933 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
5934 | void *argp1 = 0 ; | |
5935 | int res1 = 0 ; | |
5936 | PyObject *swig_obj[1] ; | |
5937 | ||
5938 | if (!args) SWIG_fail; | |
5939 | swig_obj[0] = args; | |
5940 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
5941 | if (!SWIG_IsOK(res1)) { | |
5942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
5943 | } | |
5944 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5945 | { | |
554f62e9 | 5946 | delete arg1; |
c24da6d6 | 5947 | |
554f62e9 RD |
5948 | if (PyErr_Occurred()) SWIG_fail; |
5949 | } | |
5950 | resultobj = SWIG_Py_Void(); | |
5951 | return resultobj; | |
5952 | fail: | |
5953 | return NULL; | |
5954 | } | |
5955 | ||
5956 | ||
5957 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5958 | PyObject *resultobj = 0; | |
5959 | int arg1 ; | |
5960 | int arg2 ; | |
5961 | int arg3 = (int) -1 ; | |
5962 | wxBitmap *result = 0 ; | |
5963 | int val1 ; | |
5964 | int ecode1 = 0 ; | |
5965 | int val2 ; | |
5966 | int ecode2 = 0 ; | |
5967 | int val3 ; | |
5968 | int ecode3 = 0 ; | |
5969 | PyObject * obj0 = 0 ; | |
5970 | PyObject * obj1 = 0 ; | |
5971 | PyObject * obj2 = 0 ; | |
5972 | char * kwnames[] = { | |
5973 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
5974 | }; | |
5975 | ||
5976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5977 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
5978 | if (!SWIG_IsOK(ecode1)) { | |
5979 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
5980 | } | |
5981 | arg1 = static_cast< int >(val1); | |
5982 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5983 | if (!SWIG_IsOK(ecode2)) { | |
5984 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
5985 | } | |
5986 | arg2 = static_cast< int >(val2); | |
5987 | if (obj2) { | |
5988 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5989 | if (!SWIG_IsOK(ecode3)) { | |
5990 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
5991 | } | |
5992 | arg3 = static_cast< int >(val3); | |
5993 | } | |
5994 | { | |
5995 | if (!wxPyCheckForApp()) SWIG_fail; | |
5996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5997 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
5998 | wxPyEndAllowThreads(__tstate); | |
5999 | if (PyErr_Occurred()) SWIG_fail; | |
6000 | } | |
6001 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6002 | return resultobj; | |
6003 | fail: | |
6004 | return NULL; | |
6005 | } | |
6006 | ||
6007 | ||
6008 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6009 | PyObject *resultobj = 0; | |
6010 | wxIcon *arg1 = 0 ; | |
6011 | wxBitmap *result = 0 ; | |
6012 | void *argp1 = 0 ; | |
6013 | int res1 = 0 ; | |
6014 | PyObject * obj0 = 0 ; | |
6015 | char * kwnames[] = { | |
6016 | (char *) "icon", NULL | |
6017 | }; | |
6018 | ||
6019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
6020 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
6021 | if (!SWIG_IsOK(res1)) { | |
6022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6023 | } | |
6024 | if (!argp1) { | |
6025 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6026 | } | |
6027 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6028 | { | |
6029 | if (!wxPyCheckForApp()) SWIG_fail; | |
6030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6031 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
6032 | wxPyEndAllowThreads(__tstate); | |
6033 | if (PyErr_Occurred()) SWIG_fail; | |
6034 | } | |
6035 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6036 | return resultobj; | |
6037 | fail: | |
6038 | return NULL; | |
6039 | } | |
6040 | ||
6041 | ||
6042 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6043 | PyObject *resultobj = 0; | |
6044 | wxImage *arg1 = 0 ; | |
6045 | int arg2 = (int) -1 ; | |
6046 | wxBitmap *result = 0 ; | |
6047 | void *argp1 = 0 ; | |
6048 | int res1 = 0 ; | |
6049 | int val2 ; | |
6050 | int ecode2 = 0 ; | |
6051 | PyObject * obj0 = 0 ; | |
6052 | PyObject * obj1 = 0 ; | |
6053 | char * kwnames[] = { | |
6054 | (char *) "image",(char *) "depth", NULL | |
6055 | }; | |
6056 | ||
6057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
6058 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
6059 | if (!SWIG_IsOK(res1)) { | |
6060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6061 | } | |
6062 | if (!argp1) { | |
6063 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6064 | } | |
6065 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
6066 | if (obj1) { | |
6067 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6068 | if (!SWIG_IsOK(ecode2)) { | |
6069 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
6070 | } | |
6071 | arg2 = static_cast< int >(val2); | |
6072 | } | |
6073 | { | |
6074 | if (!wxPyCheckForApp()) SWIG_fail; | |
6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6076 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
6077 | wxPyEndAllowThreads(__tstate); | |
6078 | if (PyErr_Occurred()) SWIG_fail; | |
6079 | } | |
6080 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6081 | return resultobj; | |
6082 | fail: | |
6083 | return NULL; | |
c24da6d6 RD |
6084 | } |
6085 | ||
6086 | ||
554f62e9 RD |
6087 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6088 | PyObject *resultobj = 0; | |
6089 | PyObject *arg1 = (PyObject *) 0 ; | |
6090 | wxBitmap *result = 0 ; | |
6091 | PyObject * obj0 = 0 ; | |
6092 | char * kwnames[] = { | |
6093 | (char *) "listOfStrings", NULL | |
6094 | }; | |
6095 | ||
6096 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
6097 | arg1 = obj0; | |
6098 | { | |
6099 | if (!wxPyCheckForApp()) SWIG_fail; | |
6100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6101 | result = (wxBitmap *)new_wxBitmap(arg1); | |
6102 | wxPyEndAllowThreads(__tstate); | |
6103 | if (PyErr_Occurred()) SWIG_fail; | |
6104 | } | |
6105 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6106 | return resultobj; | |
6107 | fail: | |
6108 | return NULL; | |
6109 | } | |
6110 | ||
6111 | ||
6112 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6113 | PyObject *resultobj = 0; | |
6114 | PyObject *arg1 = (PyObject *) 0 ; | |
6115 | int arg2 ; | |
6116 | int arg3 ; | |
6117 | int arg4 = (int) 1 ; | |
6118 | wxBitmap *result = 0 ; | |
6119 | int val2 ; | |
6120 | int ecode2 = 0 ; | |
6121 | int val3 ; | |
6122 | int ecode3 = 0 ; | |
6123 | int val4 ; | |
6124 | int ecode4 = 0 ; | |
6125 | PyObject * obj0 = 0 ; | |
6126 | PyObject * obj1 = 0 ; | |
6127 | PyObject * obj2 = 0 ; | |
6128 | PyObject * obj3 = 0 ; | |
6129 | char * kwnames[] = { | |
6130 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
6131 | }; | |
6132 | ||
6133 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6134 | arg1 = obj0; | |
6135 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6136 | if (!SWIG_IsOK(ecode2)) { | |
6137 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
6138 | } | |
6139 | arg2 = static_cast< int >(val2); | |
6140 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6141 | if (!SWIG_IsOK(ecode3)) { | |
6142 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
6143 | } | |
6144 | arg3 = static_cast< int >(val3); | |
6145 | if (obj3) { | |
6146 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6147 | if (!SWIG_IsOK(ecode4)) { | |
6148 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
6149 | } | |
6150 | arg4 = static_cast< int >(val4); | |
6151 | } | |
6152 | { | |
6153 | if (!wxPyCheckForApp()) SWIG_fail; | |
6154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6155 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
6156 | wxPyEndAllowThreads(__tstate); | |
6157 | if (PyErr_Occurred()) SWIG_fail; | |
6158 | } | |
6159 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6160 | return resultobj; | |
6161 | fail: | |
6162 | return NULL; | |
d55e5bfc RD |
6163 | } |
6164 | ||
6165 | ||
554f62e9 RD |
6166 | SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6167 | PyObject *resultobj = 0; | |
6168 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6169 | long result; | |
6170 | void *argp1 = 0 ; | |
6171 | int res1 = 0 ; | |
6172 | PyObject *swig_obj[1] ; | |
6173 | ||
6174 | if (!args) SWIG_fail; | |
6175 | swig_obj[0] = args; | |
6176 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6177 | if (!SWIG_IsOK(res1)) { | |
6178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6179 | } | |
6180 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6181 | { | |
554f62e9 | 6182 | result = (long)(arg1)->GetHandle(); |
554f62e9 RD |
6183 | if (PyErr_Occurred()) SWIG_fail; |
6184 | } | |
6185 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6186 | return resultobj; | |
6187 | fail: | |
6188 | return NULL; | |
6189 | } | |
6190 | ||
6191 | ||
6192 | SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6193 | PyObject *resultobj = 0; | |
6194 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6195 | long arg2 ; | |
6196 | void *argp1 = 0 ; | |
6197 | int res1 = 0 ; | |
6198 | long val2 ; | |
6199 | int ecode2 = 0 ; | |
6200 | PyObject * obj0 = 0 ; | |
6201 | PyObject * obj1 = 0 ; | |
6202 | char * kwnames[] = { | |
6203 | (char *) "self",(char *) "handle", NULL | |
6204 | }; | |
6205 | ||
6206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
6207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6208 | if (!SWIG_IsOK(res1)) { | |
6209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6210 | } | |
6211 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6212 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6213 | if (!SWIG_IsOK(ecode2)) { | |
6214 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
6215 | } | |
6216 | arg2 = static_cast< long >(val2); | |
6217 | { | |
554f62e9 | 6218 | wxBitmap_SetHandle(arg1,arg2); |
554f62e9 RD |
6219 | if (PyErr_Occurred()) SWIG_fail; |
6220 | } | |
6221 | resultobj = SWIG_Py_Void(); | |
6222 | return resultobj; | |
6223 | fail: | |
6224 | return NULL; | |
d55e5bfc RD |
6225 | } |
6226 | ||
6227 | ||
b39fe951 | 6228 | SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
6229 | PyObject *resultobj = 0; |
6230 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6231 | bool result; | |
6232 | void *argp1 = 0 ; | |
6233 | int res1 = 0 ; | |
6234 | PyObject *swig_obj[1] ; | |
6235 | ||
6236 | if (!args) SWIG_fail; | |
6237 | swig_obj[0] = args; | |
6238 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6239 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'"); |
554f62e9 RD |
6241 | } |
6242 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6243 | { | |
b39fe951 | 6244 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
6245 | if (PyErr_Occurred()) SWIG_fail; |
6246 | } | |
6247 | { | |
6248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6249 | } | |
6250 | return resultobj; | |
6251 | fail: | |
6252 | return NULL; | |
d55e5bfc RD |
6253 | } |
6254 | ||
6255 | ||
554f62e9 RD |
6256 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6257 | PyObject *resultobj = 0; | |
6258 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6259 | int result; | |
6260 | void *argp1 = 0 ; | |
6261 | int res1 = 0 ; | |
6262 | PyObject *swig_obj[1] ; | |
6263 | ||
6264 | if (!args) SWIG_fail; | |
6265 | swig_obj[0] = args; | |
6266 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6267 | if (!SWIG_IsOK(res1)) { | |
6268 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6269 | } | |
6270 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6271 | { | |
554f62e9 | 6272 | result = (int)(arg1)->GetWidth(); |
554f62e9 RD |
6273 | if (PyErr_Occurred()) SWIG_fail; |
6274 | } | |
6275 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6276 | return resultobj; | |
6277 | fail: | |
6278 | return NULL; | |
d55e5bfc RD |
6279 | } |
6280 | ||
6281 | ||
554f62e9 RD |
6282 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6283 | PyObject *resultobj = 0; | |
6284 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6285 | int result; | |
6286 | void *argp1 = 0 ; | |
6287 | int res1 = 0 ; | |
6288 | PyObject *swig_obj[1] ; | |
6289 | ||
6290 | if (!args) SWIG_fail; | |
6291 | swig_obj[0] = args; | |
6292 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6293 | if (!SWIG_IsOK(res1)) { | |
6294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6295 | } | |
6296 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6297 | { | |
554f62e9 | 6298 | result = (int)(arg1)->GetHeight(); |
554f62e9 RD |
6299 | if (PyErr_Occurred()) SWIG_fail; |
6300 | } | |
6301 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6302 | return resultobj; | |
6303 | fail: | |
6304 | return NULL; | |
c24da6d6 RD |
6305 | } |
6306 | ||
6307 | ||
554f62e9 RD |
6308 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6309 | PyObject *resultobj = 0; | |
6310 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6311 | int result; | |
6312 | void *argp1 = 0 ; | |
6313 | int res1 = 0 ; | |
6314 | PyObject *swig_obj[1] ; | |
6315 | ||
6316 | if (!args) SWIG_fail; | |
6317 | swig_obj[0] = args; | |
6318 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6319 | if (!SWIG_IsOK(res1)) { | |
6320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6321 | } | |
6322 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6323 | { | |
554f62e9 | 6324 | result = (int)(arg1)->GetDepth(); |
554f62e9 RD |
6325 | if (PyErr_Occurred()) SWIG_fail; |
6326 | } | |
6327 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6328 | return resultobj; | |
6329 | fail: | |
6330 | return NULL; | |
d55e5bfc RD |
6331 | } |
6332 | ||
6333 | ||
554f62e9 RD |
6334 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6335 | PyObject *resultobj = 0; | |
6336 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6337 | wxSize result; | |
6338 | void *argp1 = 0 ; | |
6339 | int res1 = 0 ; | |
6340 | PyObject *swig_obj[1] ; | |
6341 | ||
6342 | if (!args) SWIG_fail; | |
6343 | swig_obj[0] = args; | |
6344 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6345 | if (!SWIG_IsOK(res1)) { | |
6346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6347 | } | |
6348 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6349 | { | |
554f62e9 | 6350 | result = wxBitmap_GetSize(arg1); |
554f62e9 RD |
6351 | if (PyErr_Occurred()) SWIG_fail; |
6352 | } | |
6353 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
6354 | return resultobj; | |
6355 | fail: | |
6356 | return NULL; | |
d55e5bfc RD |
6357 | } |
6358 | ||
6359 | ||
554f62e9 RD |
6360 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6361 | PyObject *resultobj = 0; | |
6362 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6363 | SwigValueWrapper<wxImage > result; | |
6364 | void *argp1 = 0 ; | |
6365 | int res1 = 0 ; | |
6366 | PyObject *swig_obj[1] ; | |
6367 | ||
6368 | if (!args) SWIG_fail; | |
6369 | swig_obj[0] = args; | |
6370 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6371 | if (!SWIG_IsOK(res1)) { | |
6372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6373 | } | |
6374 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6375 | { | |
554f62e9 | 6376 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
554f62e9 RD |
6377 | if (PyErr_Occurred()) SWIG_fail; |
6378 | } | |
6379 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
6380 | return resultobj; | |
6381 | fail: | |
6382 | return NULL; | |
d55e5bfc RD |
6383 | } |
6384 | ||
6385 | ||
554f62e9 RD |
6386 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6387 | PyObject *resultobj = 0; | |
6388 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6389 | wxMask *result = 0 ; | |
6390 | void *argp1 = 0 ; | |
6391 | int res1 = 0 ; | |
6392 | PyObject *swig_obj[1] ; | |
6393 | ||
6394 | if (!args) SWIG_fail; | |
6395 | swig_obj[0] = args; | |
6396 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6397 | if (!SWIG_IsOK(res1)) { | |
6398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6399 | } | |
6400 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6401 | { | |
554f62e9 | 6402 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
554f62e9 RD |
6403 | if (PyErr_Occurred()) SWIG_fail; |
6404 | } | |
6405 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
6406 | return resultobj; | |
6407 | fail: | |
6408 | return NULL; | |
6409 | } | |
6410 | ||
6411 | ||
6412 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6413 | PyObject *resultobj = 0; | |
6414 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6415 | wxMask *arg2 = (wxMask *) 0 ; | |
6416 | void *argp1 = 0 ; | |
6417 | int res1 = 0 ; | |
6418 | int res2 = 0 ; | |
6419 | PyObject * obj0 = 0 ; | |
6420 | PyObject * obj1 = 0 ; | |
6421 | char * kwnames[] = { | |
6422 | (char *) "self",(char *) "mask", NULL | |
6423 | }; | |
6424 | ||
6425 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6426 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6427 | if (!SWIG_IsOK(res1)) { | |
6428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6429 | } | |
6430 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6431 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6432 | if (!SWIG_IsOK(res2)) { | |
6433 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
6434 | } | |
6435 | { | |
554f62e9 | 6436 | (arg1)->SetMask(arg2); |
554f62e9 RD |
6437 | if (PyErr_Occurred()) SWIG_fail; |
6438 | } | |
6439 | resultobj = SWIG_Py_Void(); | |
6440 | return resultobj; | |
6441 | fail: | |
6442 | return NULL; | |
6443 | } | |
6444 | ||
6445 | ||
6446 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6447 | PyObject *resultobj = 0; | |
6448 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6449 | wxColour *arg2 = 0 ; | |
6450 | void *argp1 = 0 ; | |
6451 | int res1 = 0 ; | |
6452 | wxColour temp2 ; | |
6453 | PyObject * obj0 = 0 ; | |
6454 | PyObject * obj1 = 0 ; | |
6455 | char * kwnames[] = { | |
6456 | (char *) "self",(char *) "colour", NULL | |
6457 | }; | |
6458 | ||
6459 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
6460 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6461 | if (!SWIG_IsOK(res1)) { | |
6462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6463 | } | |
6464 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6465 | { | |
6466 | arg2 = &temp2; | |
6467 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6468 | } | |
6469 | { | |
554f62e9 | 6470 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); |
554f62e9 RD |
6471 | if (PyErr_Occurred()) SWIG_fail; |
6472 | } | |
6473 | resultobj = SWIG_Py_Void(); | |
6474 | return resultobj; | |
6475 | fail: | |
6476 | return NULL; | |
6477 | } | |
6478 | ||
6479 | ||
6480 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6481 | PyObject *resultobj = 0; | |
6482 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6483 | wxRect *arg2 = 0 ; | |
6484 | SwigValueWrapper<wxBitmap > result; | |
6485 | void *argp1 = 0 ; | |
6486 | int res1 = 0 ; | |
6487 | wxRect temp2 ; | |
6488 | PyObject * obj0 = 0 ; | |
6489 | PyObject * obj1 = 0 ; | |
6490 | char * kwnames[] = { | |
6491 | (char *) "self",(char *) "rect", NULL | |
6492 | }; | |
6493 | ||
6494 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6495 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6496 | if (!SWIG_IsOK(res1)) { | |
6497 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6498 | } | |
6499 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6500 | { | |
6501 | arg2 = &temp2; | |
6502 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6503 | } | |
6504 | { | |
554f62e9 | 6505 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); |
554f62e9 RD |
6506 | if (PyErr_Occurred()) SWIG_fail; |
6507 | } | |
6508 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6509 | return resultobj; | |
6510 | fail: | |
6511 | return NULL; | |
6512 | } | |
6513 | ||
6514 | ||
6515 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6516 | PyObject *resultobj = 0; | |
6517 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6518 | wxString *arg2 = 0 ; | |
6519 | wxBitmapType arg3 ; | |
6520 | wxPalette *arg4 = (wxPalette *) NULL ; | |
6521 | bool result; | |
6522 | void *argp1 = 0 ; | |
6523 | int res1 = 0 ; | |
6524 | bool temp2 = false ; | |
6525 | int val3 ; | |
6526 | int ecode3 = 0 ; | |
6527 | void *argp4 = 0 ; | |
6528 | int res4 = 0 ; | |
6529 | PyObject * obj0 = 0 ; | |
6530 | PyObject * obj1 = 0 ; | |
6531 | PyObject * obj2 = 0 ; | |
6532 | PyObject * obj3 = 0 ; | |
6533 | char * kwnames[] = { | |
6534 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
6535 | }; | |
6536 | ||
6537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6539 | if (!SWIG_IsOK(res1)) { | |
6540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6541 | } | |
6542 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6543 | { | |
6544 | arg2 = wxString_in_helper(obj1); | |
6545 | if (arg2 == NULL) SWIG_fail; | |
6546 | temp2 = true; | |
6547 | } | |
6548 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6549 | if (!SWIG_IsOK(ecode3)) { | |
6550 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6551 | } | |
6552 | arg3 = static_cast< wxBitmapType >(val3); | |
6553 | if (obj3) { | |
6554 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6555 | if (!SWIG_IsOK(res4)) { | |
6556 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 6557 | } |
554f62e9 RD |
6558 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
6559 | } | |
6560 | { | |
554f62e9 | 6561 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); |
554f62e9 RD |
6562 | if (PyErr_Occurred()) SWIG_fail; |
6563 | } | |
6564 | { | |
6565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6566 | } | |
6567 | { | |
6568 | if (temp2) | |
6569 | delete arg2; | |
6570 | } | |
6571 | return resultobj; | |
6572 | fail: | |
6573 | { | |
6574 | if (temp2) | |
6575 | delete arg2; | |
6576 | } | |
6577 | return NULL; | |
6578 | } | |
6579 | ||
6580 | ||
6581 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6582 | PyObject *resultobj = 0; | |
6583 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6584 | wxString *arg2 = 0 ; | |
6585 | wxBitmapType arg3 ; | |
6586 | bool result; | |
6587 | void *argp1 = 0 ; | |
6588 | int res1 = 0 ; | |
6589 | bool temp2 = false ; | |
6590 | int val3 ; | |
6591 | int ecode3 = 0 ; | |
6592 | PyObject * obj0 = 0 ; | |
6593 | PyObject * obj1 = 0 ; | |
6594 | PyObject * obj2 = 0 ; | |
6595 | char * kwnames[] = { | |
6596 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6597 | }; | |
6598 | ||
6599 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6600 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6601 | if (!SWIG_IsOK(res1)) { | |
6602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6603 | } | |
6604 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6605 | { | |
6606 | arg2 = wxString_in_helper(obj1); | |
6607 | if (arg2 == NULL) SWIG_fail; | |
6608 | temp2 = true; | |
6609 | } | |
6610 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6611 | if (!SWIG_IsOK(ecode3)) { | |
6612 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6613 | } | |
6614 | arg3 = static_cast< wxBitmapType >(val3); | |
6615 | { | |
554f62e9 | 6616 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
554f62e9 RD |
6617 | if (PyErr_Occurred()) SWIG_fail; |
6618 | } | |
6619 | { | |
6620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6621 | } | |
6622 | { | |
6623 | if (temp2) | |
6624 | delete arg2; | |
6625 | } | |
6626 | return resultobj; | |
6627 | fail: | |
6628 | { | |
6629 | if (temp2) | |
6630 | delete arg2; | |
6631 | } | |
6632 | return NULL; | |
d04418a7 RD |
6633 | } |
6634 | ||
6635 | ||
554f62e9 RD |
6636 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6637 | PyObject *resultobj = 0; | |
6638 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6639 | wxPalette *result = 0 ; | |
6640 | void *argp1 = 0 ; | |
6641 | int res1 = 0 ; | |
6642 | PyObject *swig_obj[1] ; | |
6643 | ||
6644 | if (!args) SWIG_fail; | |
6645 | swig_obj[0] = args; | |
6646 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6647 | if (!SWIG_IsOK(res1)) { | |
6648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6649 | } | |
6650 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6651 | { | |
554f62e9 | 6652 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
554f62e9 RD |
6653 | if (PyErr_Occurred()) SWIG_fail; |
6654 | } | |
6655 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6656 | return resultobj; | |
6657 | fail: | |
6658 | return NULL; | |
6659 | } | |
6660 | ||
6661 | ||
6662 | SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6663 | PyObject *resultobj = 0; | |
6664 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6665 | wxPalette *arg2 = 0 ; | |
6666 | void *argp1 = 0 ; | |
6667 | int res1 = 0 ; | |
6668 | void *argp2 = 0 ; | |
6669 | int res2 = 0 ; | |
6670 | PyObject * obj0 = 0 ; | |
6671 | PyObject * obj1 = 0 ; | |
6672 | char * kwnames[] = { | |
6673 | (char *) "self",(char *) "palette", NULL | |
6674 | }; | |
6675 | ||
6676 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
6677 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6678 | if (!SWIG_IsOK(res1)) { | |
6679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6680 | } | |
6681 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6682 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
6683 | if (!SWIG_IsOK(res2)) { | |
6684 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
6685 | } | |
6686 | if (!argp2) { | |
6687 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
6688 | } | |
6689 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
6690 | { | |
554f62e9 | 6691 | (arg1)->SetPalette((wxPalette const &)*arg2); |
554f62e9 RD |
6692 | if (PyErr_Occurred()) SWIG_fail; |
6693 | } | |
6694 | resultobj = SWIG_Py_Void(); | |
6695 | return resultobj; | |
6696 | fail: | |
6697 | return NULL; | |
6698 | } | |
6699 | ||
6700 | ||
6701 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6702 | PyObject *resultobj = 0; | |
6703 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6704 | wxIcon *arg2 = 0 ; | |
6705 | bool result; | |
6706 | void *argp1 = 0 ; | |
6707 | int res1 = 0 ; | |
6708 | void *argp2 = 0 ; | |
6709 | int res2 = 0 ; | |
6710 | PyObject * obj0 = 0 ; | |
6711 | PyObject * obj1 = 0 ; | |
6712 | char * kwnames[] = { | |
6713 | (char *) "self",(char *) "icon", NULL | |
6714 | }; | |
6715 | ||
6716 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6717 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6718 | if (!SWIG_IsOK(res1)) { | |
6719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6720 | } | |
6721 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6722 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6723 | if (!SWIG_IsOK(res2)) { | |
6724 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6725 | } | |
6726 | if (!argp2) { | |
6727 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6728 | } | |
6729 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6730 | { | |
554f62e9 | 6731 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
554f62e9 RD |
6732 | if (PyErr_Occurred()) SWIG_fail; |
6733 | } | |
6734 | { | |
6735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6736 | } | |
6737 | return resultobj; | |
6738 | fail: | |
6739 | return NULL; | |
6740 | } | |
6741 | ||
6742 | ||
6743 | SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6744 | PyObject *resultobj = 0; | |
6745 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6746 | int arg2 ; | |
6747 | void *argp1 = 0 ; | |
6748 | int res1 = 0 ; | |
6749 | int val2 ; | |
6750 | int ecode2 = 0 ; | |
6751 | PyObject * obj0 = 0 ; | |
6752 | PyObject * obj1 = 0 ; | |
6753 | char * kwnames[] = { | |
6754 | (char *) "self",(char *) "height", NULL | |
6755 | }; | |
6756 | ||
6757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
6758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6759 | if (!SWIG_IsOK(res1)) { | |
6760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6761 | } | |
6762 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6763 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6764 | if (!SWIG_IsOK(ecode2)) { | |
6765 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
6766 | } | |
6767 | arg2 = static_cast< int >(val2); | |
6768 | { | |
554f62e9 | 6769 | (arg1)->SetHeight(arg2); |
554f62e9 RD |
6770 | if (PyErr_Occurred()) SWIG_fail; |
6771 | } | |
6772 | resultobj = SWIG_Py_Void(); | |
6773 | return resultobj; | |
6774 | fail: | |
6775 | return NULL; | |
6776 | } | |
6777 | ||
6778 | ||
6779 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6780 | PyObject *resultobj = 0; | |
6781 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6782 | int arg2 ; | |
6783 | void *argp1 = 0 ; | |
6784 | int res1 = 0 ; | |
6785 | int val2 ; | |
6786 | int ecode2 = 0 ; | |
6787 | PyObject * obj0 = 0 ; | |
6788 | PyObject * obj1 = 0 ; | |
6789 | char * kwnames[] = { | |
6790 | (char *) "self",(char *) "width", NULL | |
6791 | }; | |
6792 | ||
6793 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6794 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6795 | if (!SWIG_IsOK(res1)) { | |
6796 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6797 | } | |
6798 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6799 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6800 | if (!SWIG_IsOK(ecode2)) { | |
6801 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
6802 | } | |
6803 | arg2 = static_cast< int >(val2); | |
6804 | { | |
554f62e9 | 6805 | (arg1)->SetWidth(arg2); |
554f62e9 RD |
6806 | if (PyErr_Occurred()) SWIG_fail; |
6807 | } | |
6808 | resultobj = SWIG_Py_Void(); | |
6809 | return resultobj; | |
6810 | fail: | |
6811 | return NULL; | |
6812 | } | |
6813 | ||
6814 | ||
6815 | SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6816 | PyObject *resultobj = 0; | |
6817 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6818 | int arg2 ; | |
6819 | void *argp1 = 0 ; | |
6820 | int res1 = 0 ; | |
6821 | int val2 ; | |
6822 | int ecode2 = 0 ; | |
6823 | PyObject * obj0 = 0 ; | |
6824 | PyObject * obj1 = 0 ; | |
6825 | char * kwnames[] = { | |
6826 | (char *) "self",(char *) "depth", NULL | |
6827 | }; | |
6828 | ||
6829 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
6830 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6831 | if (!SWIG_IsOK(res1)) { | |
6832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6833 | } | |
6834 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6835 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6836 | if (!SWIG_IsOK(ecode2)) { | |
6837 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
6838 | } | |
6839 | arg2 = static_cast< int >(val2); | |
6840 | { | |
554f62e9 | 6841 | (arg1)->SetDepth(arg2); |
554f62e9 RD |
6842 | if (PyErr_Occurred()) SWIG_fail; |
6843 | } | |
6844 | resultobj = SWIG_Py_Void(); | |
6845 | return resultobj; | |
6846 | fail: | |
6847 | return NULL; | |
6848 | } | |
6849 | ||
6850 | ||
6851 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6852 | PyObject *resultobj = 0; | |
6853 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6854 | wxSize *arg2 = 0 ; | |
6855 | void *argp1 = 0 ; | |
6856 | int res1 = 0 ; | |
6857 | wxSize temp2 ; | |
6858 | PyObject * obj0 = 0 ; | |
6859 | PyObject * obj1 = 0 ; | |
6860 | char * kwnames[] = { | |
6861 | (char *) "self",(char *) "size", NULL | |
6862 | }; | |
6863 | ||
6864 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
6865 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6866 | if (!SWIG_IsOK(res1)) { | |
6867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6868 | } | |
6869 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6870 | { | |
6871 | arg2 = &temp2; | |
6872 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
6873 | } | |
6874 | { | |
554f62e9 | 6875 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
554f62e9 RD |
6876 | if (PyErr_Occurred()) SWIG_fail; |
6877 | } | |
6878 | resultobj = SWIG_Py_Void(); | |
6879 | return resultobj; | |
6880 | fail: | |
6881 | return NULL; | |
6882 | } | |
6883 | ||
6884 | ||
6885 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6886 | PyObject *resultobj = 0; | |
6887 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6888 | wxCursor *arg2 = 0 ; | |
6889 | bool result; | |
6890 | void *argp1 = 0 ; | |
6891 | int res1 = 0 ; | |
6892 | void *argp2 = 0 ; | |
6893 | int res2 = 0 ; | |
6894 | PyObject * obj0 = 0 ; | |
6895 | PyObject * obj1 = 0 ; | |
6896 | char * kwnames[] = { | |
6897 | (char *) "self",(char *) "cursor", NULL | |
6898 | }; | |
6899 | ||
6900 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail; | |
6901 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6902 | if (!SWIG_IsOK(res1)) { | |
6903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6904 | } | |
6905 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6906 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
6907 | if (!SWIG_IsOK(res2)) { | |
6908 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
6909 | } | |
6910 | if (!argp2) { | |
6911 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
6912 | } | |
6913 | arg2 = reinterpret_cast< wxCursor * >(argp2); | |
6914 | { | |
554f62e9 | 6915 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); |
554f62e9 RD |
6916 | if (PyErr_Occurred()) SWIG_fail; |
6917 | } | |
6918 | { | |
6919 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6920 | } | |
6921 | return resultobj; | |
6922 | fail: | |
6923 | return NULL; | |
6924 | } | |
6925 | ||
6926 | ||
6927 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6928 | PyObject *resultobj = 0; | |
6929 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6930 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
6931 | bool result; | |
6932 | void *argp1 = 0 ; | |
6933 | int res1 = 0 ; | |
6934 | void *argp2 = 0 ; | |
6935 | int res2 = 0 ; | |
6936 | PyObject * obj0 = 0 ; | |
6937 | PyObject * obj1 = 0 ; | |
6938 | char * kwnames[] = { | |
6939 | (char *) "self",(char *) "other", NULL | |
6940 | }; | |
6941 | ||
6942 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
6943 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6944 | if (!SWIG_IsOK(res1)) { | |
6945 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6946 | } | |
6947 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6948 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6949 | if (!SWIG_IsOK(res2)) { | |
6950 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
6951 | } | |
6952 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
6953 | { | |
554f62e9 | 6954 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
554f62e9 RD |
6955 | if (PyErr_Occurred()) SWIG_fail; |
6956 | } | |
6957 | { | |
fc46b7f3 RD |
6958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
6959 | } | |
6960 | return resultobj; | |
6961 | fail: | |
6962 | return NULL; | |
6963 | } | |
6964 | ||
6965 | ||
6966 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6967 | PyObject *resultobj = 0; | |
6968 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6969 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
6970 | bool result; | |
6971 | void *argp1 = 0 ; | |
6972 | int res1 = 0 ; | |
6973 | void *argp2 = 0 ; | |
6974 | int res2 = 0 ; | |
6975 | PyObject * obj0 = 0 ; | |
6976 | PyObject * obj1 = 0 ; | |
6977 | char * kwnames[] = { | |
6978 | (char *) "self",(char *) "other", NULL | |
6979 | }; | |
6980 | ||
6981 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
6982 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6983 | if (!SWIG_IsOK(res1)) { | |
6984 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6985 | } | |
6986 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6987 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6988 | if (!SWIG_IsOK(res2)) { | |
6989 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
6990 | } | |
6991 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
6992 | { | |
6993 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
6994 | if (PyErr_Occurred()) SWIG_fail; | |
6995 | } | |
6996 | { | |
6997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6998 | } | |
6999 | return resultobj; | |
7000 | fail: | |
7001 | return NULL; | |
7002 | } | |
7003 | ||
7004 | ||
7005 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7006 | PyObject *obj; | |
7007 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7008 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
7009 | return SWIG_Py_Void(); | |
7010 | } | |
7011 | ||
7012 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7013 | return SWIG_Python_InitShadowInstance(args); | |
7014 | } | |
7015 | ||
7016 | SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7017 | PyObject *resultobj = 0; | |
7018 | int arg1 ; | |
7019 | int arg2 ; | |
7020 | buffer arg3 ; | |
7021 | int arg4 ; | |
7022 | buffer arg5 ; | |
7023 | int arg6 ; | |
7024 | wxBitmap *result = 0 ; | |
7025 | int val1 ; | |
7026 | int ecode1 = 0 ; | |
7027 | int val2 ; | |
7028 | int ecode2 = 0 ; | |
e46e7e0d RD |
7029 | Py_ssize_t temp3 ; |
7030 | Py_ssize_t temp5 ; | |
fc46b7f3 RD |
7031 | PyObject * obj0 = 0 ; |
7032 | PyObject * obj1 = 0 ; | |
7033 | PyObject * obj2 = 0 ; | |
7034 | PyObject * obj3 = 0 ; | |
7035 | char * kwnames[] = { | |
7036 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
7037 | }; | |
7038 | ||
7039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7040 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7041 | if (!SWIG_IsOK(ecode1)) { | |
7042 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'"); | |
7043 | } | |
7044 | arg1 = static_cast< int >(val1); | |
7045 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7046 | if (!SWIG_IsOK(ecode2)) { | |
7047 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'"); | |
7048 | } | |
7049 | arg2 = static_cast< int >(val2); | |
7050 | { | |
e46e7e0d RD |
7051 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7052 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7053 | } |
7054 | { | |
7055 | if (obj3 != Py_None) { | |
e46e7e0d RD |
7056 | if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail; |
7057 | arg6 = (int)temp5; | |
fc46b7f3 RD |
7058 | } |
7059 | } | |
7060 | { | |
7061 | result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6); | |
7062 | if (PyErr_Occurred()) SWIG_fail; | |
7063 | } | |
7064 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7065 | return resultobj; | |
7066 | fail: | |
7067 | return NULL; | |
7068 | } | |
7069 | ||
7070 | ||
7071 | SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7072 | PyObject *resultobj = 0; | |
7073 | int arg1 ; | |
7074 | int arg2 ; | |
7075 | buffer arg3 ; | |
7076 | int arg4 ; | |
7077 | wxBitmap *result = 0 ; | |
7078 | int val1 ; | |
7079 | int ecode1 = 0 ; | |
7080 | int val2 ; | |
7081 | int ecode2 = 0 ; | |
e46e7e0d | 7082 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7083 | PyObject * obj0 = 0 ; |
7084 | PyObject * obj1 = 0 ; | |
7085 | PyObject * obj2 = 0 ; | |
7086 | char * kwnames[] = { | |
7087 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7088 | }; | |
7089 | ||
7090 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7091 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7092 | if (!SWIG_IsOK(ecode1)) { | |
7093 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'"); | |
7094 | } | |
7095 | arg1 = static_cast< int >(val1); | |
7096 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7097 | if (!SWIG_IsOK(ecode2)) { | |
7098 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'"); | |
7099 | } | |
7100 | arg2 = static_cast< int >(val2); | |
7101 | { | |
e46e7e0d RD |
7102 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7103 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7104 | } |
7105 | { | |
7106 | result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4); | |
7107 | if (PyErr_Occurred()) SWIG_fail; | |
7108 | } | |
7109 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7110 | return resultobj; | |
7111 | fail: | |
7112 | return NULL; | |
7113 | } | |
7114 | ||
7115 | ||
7116 | SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7117 | PyObject *resultobj = 0; | |
7118 | int arg1 ; | |
7119 | int arg2 ; | |
7120 | buffer arg3 ; | |
7121 | int arg4 ; | |
7122 | wxBitmap *result = 0 ; | |
7123 | int val1 ; | |
7124 | int ecode1 = 0 ; | |
7125 | int val2 ; | |
7126 | int ecode2 = 0 ; | |
e46e7e0d | 7127 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7128 | PyObject * obj0 = 0 ; |
7129 | PyObject * obj1 = 0 ; | |
7130 | PyObject * obj2 = 0 ; | |
7131 | char * kwnames[] = { | |
7132 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7133 | }; | |
7134 | ||
7135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7136 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7137 | if (!SWIG_IsOK(ecode1)) { | |
7138 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'"); | |
7139 | } | |
7140 | arg1 = static_cast< int >(val1); | |
7141 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7142 | if (!SWIG_IsOK(ecode2)) { | |
7143 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'"); | |
7144 | } | |
7145 | arg2 = static_cast< int >(val2); | |
7146 | { | |
e46e7e0d RD |
7147 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7148 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7149 | } |
7150 | { | |
7151 | result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4); | |
7152 | if (PyErr_Occurred()) SWIG_fail; | |
7153 | } | |
7154 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7155 | return resultobj; | |
7156 | fail: | |
7157 | return NULL; | |
7158 | } | |
7159 | ||
7160 | ||
7161 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7162 | PyObject *resultobj = 0; | |
7163 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7164 | wxPoint result; | |
7165 | void *argp1 = 0 ; | |
7166 | int res1 = 0 ; | |
7167 | PyObject *swig_obj[1] ; | |
7168 | ||
7169 | if (!args) SWIG_fail; | |
7170 | swig_obj[0] = args; | |
7171 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7172 | if (!SWIG_IsOK(res1)) { | |
7173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7174 | } | |
7175 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7176 | { | |
7177 | result = ((wxPixelDataBase const *)arg1)->GetOrigin(); | |
7178 | if (PyErr_Occurred()) SWIG_fail; | |
7179 | } | |
7180 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
7181 | return resultobj; | |
7182 | fail: | |
7183 | return NULL; | |
7184 | } | |
7185 | ||
7186 | ||
7187 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7188 | PyObject *resultobj = 0; | |
7189 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7190 | int result; | |
7191 | void *argp1 = 0 ; | |
7192 | int res1 = 0 ; | |
7193 | PyObject *swig_obj[1] ; | |
7194 | ||
7195 | if (!args) SWIG_fail; | |
7196 | swig_obj[0] = args; | |
7197 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7198 | if (!SWIG_IsOK(res1)) { | |
7199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7200 | } | |
7201 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7202 | { | |
7203 | result = (int)((wxPixelDataBase const *)arg1)->GetWidth(); | |
7204 | if (PyErr_Occurred()) SWIG_fail; | |
7205 | } | |
7206 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7207 | return resultobj; | |
7208 | fail: | |
7209 | return NULL; | |
7210 | } | |
7211 | ||
7212 | ||
7213 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7214 | PyObject *resultobj = 0; | |
7215 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7216 | int result; | |
7217 | void *argp1 = 0 ; | |
7218 | int res1 = 0 ; | |
7219 | PyObject *swig_obj[1] ; | |
7220 | ||
7221 | if (!args) SWIG_fail; | |
7222 | swig_obj[0] = args; | |
7223 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7224 | if (!SWIG_IsOK(res1)) { | |
7225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7226 | } | |
7227 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7228 | { | |
7229 | result = (int)((wxPixelDataBase const *)arg1)->GetHeight(); | |
7230 | if (PyErr_Occurred()) SWIG_fail; | |
7231 | } | |
7232 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7233 | return resultobj; | |
7234 | fail: | |
7235 | return NULL; | |
7236 | } | |
7237 | ||
7238 | ||
7239 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7240 | PyObject *resultobj = 0; | |
7241 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7242 | wxSize result; | |
7243 | void *argp1 = 0 ; | |
7244 | int res1 = 0 ; | |
7245 | PyObject *swig_obj[1] ; | |
7246 | ||
7247 | if (!args) SWIG_fail; | |
7248 | swig_obj[0] = args; | |
7249 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7250 | if (!SWIG_IsOK(res1)) { | |
7251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7252 | } | |
7253 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7254 | { | |
7255 | result = ((wxPixelDataBase const *)arg1)->GetSize(); | |
7256 | if (PyErr_Occurred()) SWIG_fail; | |
7257 | } | |
7258 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
7259 | return resultobj; | |
7260 | fail: | |
7261 | return NULL; | |
7262 | } | |
7263 | ||
7264 | ||
7265 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7266 | PyObject *resultobj = 0; | |
7267 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7268 | int result; | |
7269 | void *argp1 = 0 ; | |
7270 | int res1 = 0 ; | |
7271 | PyObject *swig_obj[1] ; | |
7272 | ||
7273 | if (!args) SWIG_fail; | |
7274 | swig_obj[0] = args; | |
7275 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7276 | if (!SWIG_IsOK(res1)) { | |
7277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7278 | } | |
7279 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7280 | { | |
7281 | result = (int)((wxPixelDataBase const *)arg1)->GetRowStride(); | |
7282 | if (PyErr_Occurred()) SWIG_fail; | |
7283 | } | |
7284 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7285 | return resultobj; | |
7286 | fail: | |
7287 | return NULL; | |
7288 | } | |
7289 | ||
7290 | ||
7291 | SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7292 | PyObject *obj; | |
7293 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7294 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj)); | |
7295 | return SWIG_Py_Void(); | |
7296 | } | |
7297 | ||
7298 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7299 | PyObject *resultobj = 0; | |
7300 | wxBitmap *arg1 = 0 ; | |
7301 | wxNativePixelData *result = 0 ; | |
7302 | void *argp1 = 0 ; | |
7303 | int res1 = 0 ; | |
7304 | ||
7305 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7306 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7307 | if (!SWIG_IsOK(res1)) { | |
7308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7309 | } | |
7310 | if (!argp1) { | |
7311 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7312 | } | |
7313 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7314 | { | |
7315 | result = (wxNativePixelData *)new wxNativePixelData(*arg1); | |
7316 | if (PyErr_Occurred()) SWIG_fail; | |
7317 | } | |
7318 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7319 | return resultobj; | |
7320 | fail: | |
7321 | return NULL; | |
7322 | } | |
7323 | ||
7324 | ||
7325 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7326 | PyObject *resultobj = 0; | |
7327 | wxBitmap *arg1 = 0 ; | |
7328 | wxRect *arg2 = 0 ; | |
7329 | wxNativePixelData *result = 0 ; | |
7330 | void *argp1 = 0 ; | |
7331 | int res1 = 0 ; | |
7332 | wxRect temp2 ; | |
7333 | ||
7334 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7335 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7336 | if (!SWIG_IsOK(res1)) { | |
7337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7338 | } | |
7339 | if (!argp1) { | |
7340 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7341 | } | |
7342 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7343 | { | |
7344 | arg2 = &temp2; | |
7345 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7346 | } | |
7347 | { | |
7348 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2); | |
7349 | if (PyErr_Occurred()) SWIG_fail; | |
7350 | } | |
7351 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7352 | return resultobj; | |
7353 | fail: | |
7354 | return NULL; | |
7355 | } | |
7356 | ||
7357 | ||
7358 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7359 | PyObject *resultobj = 0; | |
7360 | wxBitmap *arg1 = 0 ; | |
7361 | wxPoint *arg2 = 0 ; | |
7362 | wxSize *arg3 = 0 ; | |
7363 | wxNativePixelData *result = 0 ; | |
7364 | void *argp1 = 0 ; | |
7365 | int res1 = 0 ; | |
7366 | wxPoint temp2 ; | |
7367 | wxSize temp3 ; | |
7368 | ||
7369 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
7370 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7371 | if (!SWIG_IsOK(res1)) { | |
7372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7373 | } | |
7374 | if (!argp1) { | |
7375 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7376 | } | |
7377 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7378 | { | |
7379 | arg2 = &temp2; | |
7380 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7381 | } | |
7382 | { | |
7383 | arg3 = &temp3; | |
7384 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
7385 | } | |
7386 | { | |
7387 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
7388 | if (PyErr_Occurred()) SWIG_fail; | |
7389 | } | |
7390 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7391 | return resultobj; | |
7392 | fail: | |
7393 | return NULL; | |
7394 | } | |
7395 | ||
7396 | ||
7397 | SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) { | |
7398 | int argc; | |
7399 | PyObject *argv[4]; | |
7400 | ||
7401 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail; | |
7402 | --argc; | |
7403 | if (argc == 1) { | |
7404 | return _wrap_new_NativePixelData__SWIG_0(self, argc, argv); | |
7405 | } | |
7406 | if (argc == 2) { | |
7407 | return _wrap_new_NativePixelData__SWIG_1(self, argc, argv); | |
7408 | } | |
7409 | if (argc == 3) { | |
7410 | return _wrap_new_NativePixelData__SWIG_2(self, argc, argv); | |
7411 | } | |
7412 | ||
7413 | fail: | |
7414 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'"); | |
7415 | return NULL; | |
7416 | } | |
7417 | ||
7418 | ||
7419 | SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7420 | PyObject *resultobj = 0; | |
7421 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7422 | void *argp1 = 0 ; | |
7423 | int res1 = 0 ; | |
7424 | PyObject *swig_obj[1] ; | |
7425 | ||
7426 | if (!args) SWIG_fail; | |
7427 | swig_obj[0] = args; | |
7428 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 ); | |
7429 | if (!SWIG_IsOK(res1)) { | |
7430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7431 | } | |
7432 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7433 | { | |
7434 | delete arg1; | |
7435 | ||
7436 | if (PyErr_Occurred()) SWIG_fail; | |
7437 | } | |
7438 | resultobj = SWIG_Py_Void(); | |
7439 | return resultobj; | |
7440 | fail: | |
7441 | return NULL; | |
7442 | } | |
7443 | ||
7444 | ||
7445 | SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7446 | PyObject *resultobj = 0; | |
7447 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7448 | wxNativePixelData_Accessor result; | |
7449 | void *argp1 = 0 ; | |
7450 | int res1 = 0 ; | |
7451 | PyObject *swig_obj[1] ; | |
7452 | ||
7453 | if (!args) SWIG_fail; | |
7454 | swig_obj[0] = args; | |
7455 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7456 | if (!SWIG_IsOK(res1)) { | |
7457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'"); | |
7458 | } | |
7459 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7460 | { | |
7461 | result = ((wxNativePixelData const *)arg1)->GetPixels(); | |
7462 | if (PyErr_Occurred()) SWIG_fail; | |
7463 | } | |
7464 | resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
7465 | return resultobj; | |
7466 | fail: | |
7467 | return NULL; | |
7468 | } | |
7469 | ||
7470 | ||
7471 | SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7472 | PyObject *resultobj = 0; | |
7473 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7474 | void *argp1 = 0 ; | |
7475 | int res1 = 0 ; | |
7476 | PyObject *swig_obj[1] ; | |
7477 | ||
7478 | if (!args) SWIG_fail; | |
7479 | swig_obj[0] = args; | |
7480 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7481 | if (!SWIG_IsOK(res1)) { | |
7482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7483 | } | |
7484 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7485 | { | |
7486 | (arg1)->UseAlpha(); | |
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___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7497 | PyObject *resultobj = 0; | |
7498 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7499 | bool result; | |
7500 | void *argp1 = 0 ; | |
7501 | int res1 = 0 ; | |
7502 | PyObject *swig_obj[1] ; | |
7503 | ||
7504 | if (!args) SWIG_fail; | |
7505 | swig_obj[0] = args; | |
7506 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7507 | if (!SWIG_IsOK(res1)) { | |
7508 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7509 | } | |
7510 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7511 | { | |
7512 | result = (bool)wxNativePixelData___nonzero__(arg1); | |
7513 | if (PyErr_Occurred()) SWIG_fail; | |
7514 | } | |
7515 | { | |
7516 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7517 | } | |
7518 | return resultobj; | |
7519 | fail: | |
7520 | return NULL; | |
7521 | } | |
7522 | ||
7523 | ||
7524 | SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7525 | PyObject *obj; | |
7526 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7527 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj)); | |
7528 | return SWIG_Py_Void(); | |
7529 | } | |
7530 | ||
7531 | SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7532 | return SWIG_Python_InitShadowInstance(args); | |
7533 | } | |
7534 | ||
7535 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7536 | PyObject *resultobj = 0; | |
7537 | wxNativePixelData *arg1 = 0 ; | |
7538 | wxNativePixelData_Accessor *result = 0 ; | |
7539 | void *argp1 = 0 ; | |
7540 | int res1 = 0 ; | |
7541 | ||
7542 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7543 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7544 | if (!SWIG_IsOK(res1)) { | |
7545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7546 | } | |
7547 | if (!argp1) { | |
7548 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7549 | } | |
7550 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7551 | { | |
7552 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1); | |
7553 | if (PyErr_Occurred()) SWIG_fail; | |
7554 | } | |
7555 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7556 | return resultobj; | |
7557 | fail: | |
7558 | return NULL; | |
7559 | } | |
7560 | ||
7561 | ||
7562 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7563 | PyObject *resultobj = 0; | |
7564 | wxBitmap *arg1 = 0 ; | |
7565 | wxNativePixelData *arg2 = 0 ; | |
7566 | wxNativePixelData_Accessor *result = 0 ; | |
7567 | void *argp1 = 0 ; | |
7568 | int res1 = 0 ; | |
7569 | void *argp2 = 0 ; | |
7570 | int res2 = 0 ; | |
7571 | ||
7572 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7573 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7574 | if (!SWIG_IsOK(res1)) { | |
7575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7576 | } | |
7577 | if (!argp1) { | |
7578 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7579 | } | |
7580 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7581 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7582 | if (!SWIG_IsOK(res2)) { | |
7583 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7584 | } | |
7585 | if (!argp2) { | |
7586 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7587 | } | |
7588 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7589 | { | |
7590 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2); | |
7591 | if (PyErr_Occurred()) SWIG_fail; | |
7592 | } | |
7593 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7594 | return resultobj; | |
7595 | fail: | |
7596 | return NULL; | |
7597 | } | |
7598 | ||
7599 | ||
7600 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
7601 | PyObject *resultobj = 0; | |
7602 | wxNativePixelData_Accessor *result = 0 ; | |
7603 | ||
7604 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
7605 | { | |
7606 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(); | |
7607 | if (PyErr_Occurred()) SWIG_fail; | |
7608 | } | |
7609 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7610 | return resultobj; | |
7611 | fail: | |
7612 | return NULL; | |
7613 | } | |
7614 | ||
7615 | ||
7616 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) { | |
7617 | int argc; | |
7618 | PyObject *argv[3]; | |
7619 | ||
7620 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail; | |
7621 | --argc; | |
7622 | if (argc == 0) { | |
7623 | return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv); | |
7624 | } | |
7625 | if (argc == 1) { | |
7626 | return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv); | |
7627 | } | |
7628 | if (argc == 2) { | |
7629 | return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv); | |
7630 | } | |
7631 | ||
7632 | fail: | |
7633 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'"); | |
7634 | return NULL; | |
7635 | } | |
7636 | ||
7637 | ||
7638 | SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7639 | PyObject *resultobj = 0; | |
7640 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7641 | void *argp1 = 0 ; | |
7642 | int res1 = 0 ; | |
7643 | PyObject *swig_obj[1] ; | |
7644 | ||
7645 | if (!args) SWIG_fail; | |
7646 | swig_obj[0] = args; | |
7647 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
7648 | if (!SWIG_IsOK(res1)) { | |
7649 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7650 | } | |
7651 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7652 | { | |
7653 | delete arg1; | |
7654 | ||
7655 | if (PyErr_Occurred()) SWIG_fail; | |
7656 | } | |
7657 | resultobj = SWIG_Py_Void(); | |
7658 | return resultobj; | |
7659 | fail: | |
7660 | return NULL; | |
7661 | } | |
7662 | ||
7663 | ||
7664 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7665 | PyObject *resultobj = 0; | |
7666 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7667 | wxNativePixelData *arg2 = 0 ; | |
7668 | void *argp1 = 0 ; | |
7669 | int res1 = 0 ; | |
7670 | void *argp2 = 0 ; | |
7671 | int res2 = 0 ; | |
7672 | PyObject * obj0 = 0 ; | |
7673 | PyObject * obj1 = 0 ; | |
7674 | char * kwnames[] = { | |
7675 | (char *) "self",(char *) "data", NULL | |
7676 | }; | |
7677 | ||
7678 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
7679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7680 | if (!SWIG_IsOK(res1)) { | |
7681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7682 | } | |
7683 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7684 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7685 | if (!SWIG_IsOK(res2)) { | |
7686 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7687 | } | |
7688 | if (!argp2) { | |
7689 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7690 | } | |
7691 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7692 | { | |
7693 | (arg1)->Reset((wxNativePixelData const &)*arg2); | |
7694 | if (PyErr_Occurred()) SWIG_fail; | |
7695 | } | |
7696 | resultobj = SWIG_Py_Void(); | |
7697 | return resultobj; | |
7698 | fail: | |
7699 | return NULL; | |
7700 | } | |
7701 | ||
7702 | ||
7703 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7704 | PyObject *resultobj = 0; | |
7705 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7706 | bool result; | |
7707 | void *argp1 = 0 ; | |
7708 | int res1 = 0 ; | |
7709 | PyObject *swig_obj[1] ; | |
7710 | ||
7711 | if (!args) SWIG_fail; | |
7712 | swig_obj[0] = args; | |
7713 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7714 | if (!SWIG_IsOK(res1)) { | |
7715 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'"); | |
7716 | } | |
7717 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7718 | { | |
7719 | result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk(); | |
7720 | if (PyErr_Occurred()) SWIG_fail; | |
7721 | } | |
7722 | { | |
7723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7724 | } | |
7725 | return resultobj; | |
7726 | fail: | |
7727 | return NULL; | |
7728 | } | |
7729 | ||
7730 | ||
7731 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7732 | PyObject *resultobj = 0; | |
7733 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7734 | void *argp1 = 0 ; | |
7735 | int res1 = 0 ; | |
7736 | PyObject *swig_obj[1] ; | |
7737 | ||
7738 | if (!args) SWIG_fail; | |
7739 | swig_obj[0] = args; | |
7740 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7741 | if (!SWIG_IsOK(res1)) { | |
7742 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7743 | } | |
7744 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7745 | { | |
7746 | wxNativePixelData_Accessor_nextPixel(arg1); | |
7747 | if (PyErr_Occurred()) SWIG_fail; | |
7748 | } | |
7749 | resultobj = SWIG_Py_Void(); | |
7750 | return resultobj; | |
7751 | fail: | |
7752 | return NULL; | |
7753 | } | |
7754 | ||
7755 | ||
7756 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7757 | PyObject *resultobj = 0; | |
7758 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7759 | wxNativePixelData *arg2 = 0 ; | |
7760 | int arg3 ; | |
7761 | int arg4 ; | |
7762 | void *argp1 = 0 ; | |
7763 | int res1 = 0 ; | |
7764 | void *argp2 = 0 ; | |
7765 | int res2 = 0 ; | |
7766 | int val3 ; | |
7767 | int ecode3 = 0 ; | |
7768 | int val4 ; | |
7769 | int ecode4 = 0 ; | |
7770 | PyObject * obj0 = 0 ; | |
7771 | PyObject * obj1 = 0 ; | |
7772 | PyObject * obj2 = 0 ; | |
7773 | PyObject * obj3 = 0 ; | |
7774 | char * kwnames[] = { | |
7775 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
7776 | }; | |
7777 | ||
7778 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7779 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7780 | if (!SWIG_IsOK(res1)) { | |
7781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7782 | } | |
7783 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7784 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7785 | if (!SWIG_IsOK(res2)) { | |
7786 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7787 | } | |
7788 | if (!argp2) { | |
7789 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7790 | } | |
7791 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7792 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7793 | if (!SWIG_IsOK(ecode3)) { | |
7794 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
7795 | } | |
7796 | arg3 = static_cast< int >(val3); | |
7797 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7798 | if (!SWIG_IsOK(ecode4)) { | |
7799 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
7800 | } | |
7801 | arg4 = static_cast< int >(val4); | |
7802 | { | |
7803 | (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4); | |
7804 | if (PyErr_Occurred()) SWIG_fail; | |
7805 | } | |
7806 | resultobj = SWIG_Py_Void(); | |
7807 | return resultobj; | |
7808 | fail: | |
7809 | return NULL; | |
7810 | } | |
7811 | ||
7812 | ||
7813 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7814 | PyObject *resultobj = 0; | |
7815 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7816 | wxNativePixelData *arg2 = 0 ; | |
7817 | int arg3 ; | |
7818 | void *argp1 = 0 ; | |
7819 | int res1 = 0 ; | |
7820 | void *argp2 = 0 ; | |
7821 | int res2 = 0 ; | |
7822 | int val3 ; | |
7823 | int ecode3 = 0 ; | |
7824 | PyObject * obj0 = 0 ; | |
7825 | PyObject * obj1 = 0 ; | |
7826 | PyObject * obj2 = 0 ; | |
7827 | char * kwnames[] = { | |
7828 | (char *) "self",(char *) "data",(char *) "x", NULL | |
7829 | }; | |
7830 | ||
7831 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7832 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7833 | if (!SWIG_IsOK(res1)) { | |
7834 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7835 | } | |
7836 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7837 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7838 | if (!SWIG_IsOK(res2)) { | |
7839 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7840 | } | |
7841 | if (!argp2) { | |
7842 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7843 | } | |
7844 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7845 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7846 | if (!SWIG_IsOK(ecode3)) { | |
7847 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
7848 | } | |
7849 | arg3 = static_cast< int >(val3); | |
7850 | { | |
7851 | (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3); | |
7852 | if (PyErr_Occurred()) SWIG_fail; | |
7853 | } | |
7854 | resultobj = SWIG_Py_Void(); | |
7855 | return resultobj; | |
7856 | fail: | |
7857 | return NULL; | |
7858 | } | |
7859 | ||
7860 | ||
7861 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7862 | PyObject *resultobj = 0; | |
7863 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7864 | wxNativePixelData *arg2 = 0 ; | |
7865 | int arg3 ; | |
7866 | void *argp1 = 0 ; | |
7867 | int res1 = 0 ; | |
7868 | void *argp2 = 0 ; | |
7869 | int res2 = 0 ; | |
7870 | int val3 ; | |
7871 | int ecode3 = 0 ; | |
7872 | PyObject * obj0 = 0 ; | |
7873 | PyObject * obj1 = 0 ; | |
7874 | PyObject * obj2 = 0 ; | |
7875 | char * kwnames[] = { | |
7876 | (char *) "self",(char *) "data",(char *) "y", NULL | |
7877 | }; | |
7878 | ||
7879 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7880 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7881 | if (!SWIG_IsOK(res1)) { | |
7882 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7883 | } | |
7884 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7885 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7886 | if (!SWIG_IsOK(res2)) { | |
7887 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7888 | } | |
7889 | if (!argp2) { | |
7890 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7891 | } | |
7892 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7893 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7894 | if (!SWIG_IsOK(ecode3)) { | |
7895 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
7896 | } | |
7897 | arg3 = static_cast< int >(val3); | |
7898 | { | |
7899 | (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3); | |
7900 | if (PyErr_Occurred()) SWIG_fail; | |
7901 | } | |
7902 | resultobj = SWIG_Py_Void(); | |
7903 | return resultobj; | |
7904 | fail: | |
7905 | return NULL; | |
7906 | } | |
7907 | ||
7908 | ||
7909 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7910 | PyObject *resultobj = 0; | |
7911 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7912 | wxNativePixelData *arg2 = 0 ; | |
7913 | int arg3 ; | |
7914 | int arg4 ; | |
7915 | void *argp1 = 0 ; | |
7916 | int res1 = 0 ; | |
7917 | void *argp2 = 0 ; | |
7918 | int res2 = 0 ; | |
7919 | int val3 ; | |
7920 | int ecode3 = 0 ; | |
7921 | int val4 ; | |
7922 | int ecode4 = 0 ; | |
7923 | PyObject * obj0 = 0 ; | |
7924 | PyObject * obj1 = 0 ; | |
7925 | PyObject * obj2 = 0 ; | |
7926 | PyObject * obj3 = 0 ; | |
7927 | char * kwnames[] = { | |
7928 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
7929 | }; | |
7930 | ||
7931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7933 | if (!SWIG_IsOK(res1)) { | |
7934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7935 | } | |
7936 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7937 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
7938 | if (!SWIG_IsOK(res2)) { | |
7939 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7940 | } | |
7941 | if (!argp2) { | |
7942 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
7943 | } | |
7944 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7945 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
7946 | if (!SWIG_IsOK(ecode3)) { | |
7947 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
7948 | } | |
7949 | arg3 = static_cast< int >(val3); | |
7950 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
7951 | if (!SWIG_IsOK(ecode4)) { | |
7952 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
7953 | } | |
7954 | arg4 = static_cast< int >(val4); | |
7955 | { | |
7956 | (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4); | |
7957 | if (PyErr_Occurred()) SWIG_fail; | |
7958 | } | |
7959 | resultobj = SWIG_Py_Void(); | |
7960 | return resultobj; | |
7961 | fail: | |
7962 | return NULL; | |
7963 | } | |
7964 | ||
7965 | ||
7966 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7967 | PyObject *resultobj = 0; | |
7968 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7969 | byte arg2 ; | |
7970 | byte arg3 ; | |
7971 | byte arg4 ; | |
7972 | void *argp1 = 0 ; | |
7973 | int res1 = 0 ; | |
7974 | unsigned char val2 ; | |
7975 | int ecode2 = 0 ; | |
7976 | unsigned char val3 ; | |
7977 | int ecode3 = 0 ; | |
7978 | unsigned char val4 ; | |
7979 | int ecode4 = 0 ; | |
7980 | PyObject * obj0 = 0 ; | |
7981 | PyObject * obj1 = 0 ; | |
7982 | PyObject * obj2 = 0 ; | |
7983 | PyObject * obj3 = 0 ; | |
7984 | char * kwnames[] = { | |
7985 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
7986 | }; | |
7987 | ||
7988 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
7990 | if (!SWIG_IsOK(res1)) { | |
7991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7992 | } | |
7993 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7994 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
7995 | if (!SWIG_IsOK(ecode2)) { | |
7996 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
7997 | } | |
7998 | arg2 = static_cast< byte >(val2); | |
7999 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8000 | if (!SWIG_IsOK(ecode3)) { | |
8001 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8002 | } | |
8003 | arg3 = static_cast< byte >(val3); | |
8004 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8005 | if (!SWIG_IsOK(ecode4)) { | |
8006 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8007 | } | |
8008 | arg4 = static_cast< byte >(val4); | |
8009 | { | |
8010 | wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4); | |
8011 | if (PyErr_Occurred()) SWIG_fail; | |
8012 | } | |
8013 | resultobj = SWIG_Py_Void(); | |
8014 | return resultobj; | |
8015 | fail: | |
8016 | return NULL; | |
8017 | } | |
8018 | ||
8019 | ||
8020 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8021 | PyObject *resultobj = 0; | |
8022 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8023 | PyObject *result = 0 ; | |
8024 | void *argp1 = 0 ; | |
8025 | int res1 = 0 ; | |
8026 | PyObject *swig_obj[1] ; | |
8027 | ||
8028 | if (!args) SWIG_fail; | |
8029 | swig_obj[0] = args; | |
8030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8031 | if (!SWIG_IsOK(res1)) { | |
8032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8033 | } | |
8034 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8035 | { | |
8036 | result = (PyObject *)wxNativePixelData_Accessor_Get(arg1); | |
8037 | if (PyErr_Occurred()) SWIG_fail; | |
8038 | } | |
8039 | resultobj = result; | |
8040 | return resultobj; | |
8041 | fail: | |
8042 | return NULL; | |
8043 | } | |
8044 | ||
8045 | ||
8046 | SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8047 | PyObject *obj; | |
8048 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8049 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj)); | |
8050 | return SWIG_Py_Void(); | |
8051 | } | |
8052 | ||
8053 | SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8054 | return SWIG_Python_InitShadowInstance(args); | |
8055 | } | |
8056 | ||
8057 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8058 | PyObject *resultobj = 0; | |
8059 | wxBitmap *arg1 = 0 ; | |
8060 | wxAlphaPixelData *result = 0 ; | |
8061 | void *argp1 = 0 ; | |
8062 | int res1 = 0 ; | |
8063 | ||
8064 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8065 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8066 | if (!SWIG_IsOK(res1)) { | |
8067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8068 | } | |
8069 | if (!argp1) { | |
8070 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8071 | } | |
8072 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8073 | { | |
8074 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1); | |
8075 | if (PyErr_Occurred()) SWIG_fail; | |
8076 | } | |
8077 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8078 | return resultobj; | |
8079 | fail: | |
8080 | return NULL; | |
8081 | } | |
8082 | ||
8083 | ||
8084 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8085 | PyObject *resultobj = 0; | |
8086 | wxBitmap *arg1 = 0 ; | |
8087 | wxRect *arg2 = 0 ; | |
8088 | wxAlphaPixelData *result = 0 ; | |
8089 | void *argp1 = 0 ; | |
8090 | int res1 = 0 ; | |
8091 | wxRect temp2 ; | |
8092 | ||
8093 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8094 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8095 | if (!SWIG_IsOK(res1)) { | |
8096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8097 | } | |
8098 | if (!argp1) { | |
8099 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8100 | } | |
8101 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8102 | { | |
8103 | arg2 = &temp2; | |
8104 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8105 | } | |
8106 | { | |
8107 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2); | |
8108 | if (PyErr_Occurred()) SWIG_fail; | |
8109 | } | |
8110 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8111 | return resultobj; | |
8112 | fail: | |
8113 | return NULL; | |
8114 | } | |
8115 | ||
8116 | ||
8117 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8118 | PyObject *resultobj = 0; | |
8119 | wxBitmap *arg1 = 0 ; | |
8120 | wxPoint *arg2 = 0 ; | |
8121 | wxSize *arg3 = 0 ; | |
8122 | wxAlphaPixelData *result = 0 ; | |
8123 | void *argp1 = 0 ; | |
8124 | int res1 = 0 ; | |
8125 | wxPoint temp2 ; | |
8126 | wxSize temp3 ; | |
8127 | ||
8128 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
8129 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8130 | if (!SWIG_IsOK(res1)) { | |
8131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8132 | } | |
8133 | if (!argp1) { | |
8134 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8135 | } | |
8136 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8137 | { | |
8138 | arg2 = &temp2; | |
8139 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8140 | } | |
8141 | { | |
8142 | arg3 = &temp3; | |
8143 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
8144 | } | |
8145 | { | |
8146 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8147 | if (PyErr_Occurred()) SWIG_fail; | |
8148 | } | |
8149 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8150 | return resultobj; | |
8151 | fail: | |
8152 | return NULL; | |
8153 | } | |
8154 | ||
8155 | ||
8156 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) { | |
8157 | int argc; | |
8158 | PyObject *argv[4]; | |
8159 | ||
8160 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail; | |
8161 | --argc; | |
8162 | if (argc == 1) { | |
8163 | return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv); | |
8164 | } | |
8165 | if (argc == 2) { | |
8166 | return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv); | |
8167 | } | |
8168 | if (argc == 3) { | |
8169 | return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv); | |
8170 | } | |
8171 | ||
8172 | fail: | |
8173 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'"); | |
8174 | return NULL; | |
8175 | } | |
8176 | ||
8177 | ||
8178 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8179 | PyObject *resultobj = 0; | |
8180 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8181 | void *argp1 = 0 ; | |
8182 | int res1 = 0 ; | |
8183 | PyObject *swig_obj[1] ; | |
8184 | ||
8185 | if (!args) SWIG_fail; | |
8186 | swig_obj[0] = args; | |
8187 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 ); | |
8188 | if (!SWIG_IsOK(res1)) { | |
8189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8190 | } | |
8191 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8192 | { | |
8193 | delete arg1; | |
8194 | ||
8195 | if (PyErr_Occurred()) SWIG_fail; | |
8196 | } | |
8197 | resultobj = SWIG_Py_Void(); | |
8198 | return resultobj; | |
8199 | fail: | |
8200 | return NULL; | |
8201 | } | |
8202 | ||
8203 | ||
8204 | SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8205 | PyObject *resultobj = 0; | |
8206 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8207 | wxAlphaPixelData_Accessor result; | |
8208 | void *argp1 = 0 ; | |
8209 | int res1 = 0 ; | |
8210 | PyObject *swig_obj[1] ; | |
8211 | ||
8212 | if (!args) SWIG_fail; | |
8213 | swig_obj[0] = args; | |
8214 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8215 | if (!SWIG_IsOK(res1)) { | |
8216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'"); | |
8217 | } | |
8218 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8219 | { | |
8220 | result = ((wxAlphaPixelData const *)arg1)->GetPixels(); | |
8221 | if (PyErr_Occurred()) SWIG_fail; | |
8222 | } | |
8223 | resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
8224 | return resultobj; | |
8225 | fail: | |
8226 | return NULL; | |
8227 | } | |
8228 | ||
8229 | ||
8230 | SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8231 | PyObject *resultobj = 0; | |
8232 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8233 | void *argp1 = 0 ; | |
8234 | int res1 = 0 ; | |
8235 | PyObject *swig_obj[1] ; | |
8236 | ||
8237 | if (!args) SWIG_fail; | |
8238 | swig_obj[0] = args; | |
8239 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8240 | if (!SWIG_IsOK(res1)) { | |
8241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8242 | } | |
8243 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8244 | { | |
8245 | (arg1)->UseAlpha(); | |
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___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8256 | PyObject *resultobj = 0; | |
8257 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8258 | bool result; | |
8259 | void *argp1 = 0 ; | |
8260 | int res1 = 0 ; | |
8261 | PyObject *swig_obj[1] ; | |
8262 | ||
8263 | if (!args) SWIG_fail; | |
8264 | swig_obj[0] = args; | |
8265 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8266 | if (!SWIG_IsOK(res1)) { | |
8267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8268 | } | |
8269 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8270 | { | |
8271 | result = (bool)wxAlphaPixelData___nonzero__(arg1); | |
8272 | if (PyErr_Occurred()) SWIG_fail; | |
8273 | } | |
8274 | { | |
8275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8276 | } | |
8277 | return resultobj; | |
8278 | fail: | |
8279 | return NULL; | |
8280 | } | |
8281 | ||
8282 | ||
8283 | SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8284 | PyObject *obj; | |
8285 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8286 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj)); | |
8287 | return SWIG_Py_Void(); | |
8288 | } | |
8289 | ||
8290 | SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8291 | return SWIG_Python_InitShadowInstance(args); | |
8292 | } | |
8293 | ||
8294 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8295 | PyObject *resultobj = 0; | |
8296 | wxAlphaPixelData *arg1 = 0 ; | |
8297 | wxAlphaPixelData_Accessor *result = 0 ; | |
8298 | void *argp1 = 0 ; | |
8299 | int res1 = 0 ; | |
8300 | ||
8301 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8302 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8303 | if (!SWIG_IsOK(res1)) { | |
8304 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8305 | } | |
8306 | if (!argp1) { | |
8307 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8308 | } | |
8309 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8310 | { | |
8311 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1); | |
8312 | if (PyErr_Occurred()) SWIG_fail; | |
8313 | } | |
8314 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8315 | return resultobj; | |
8316 | fail: | |
8317 | return NULL; | |
8318 | } | |
8319 | ||
8320 | ||
8321 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8322 | PyObject *resultobj = 0; | |
8323 | wxBitmap *arg1 = 0 ; | |
8324 | wxAlphaPixelData *arg2 = 0 ; | |
8325 | wxAlphaPixelData_Accessor *result = 0 ; | |
8326 | void *argp1 = 0 ; | |
8327 | int res1 = 0 ; | |
8328 | void *argp2 = 0 ; | |
8329 | int res2 = 0 ; | |
8330 | ||
8331 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8332 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8333 | if (!SWIG_IsOK(res1)) { | |
8334 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8335 | } | |
8336 | if (!argp1) { | |
8337 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8338 | } | |
8339 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8340 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8341 | if (!SWIG_IsOK(res2)) { | |
8342 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8343 | } | |
8344 | if (!argp2) { | |
8345 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8346 | } | |
8347 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8348 | { | |
8349 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2); | |
8350 | if (PyErr_Occurred()) SWIG_fail; | |
8351 | } | |
8352 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8353 | return resultobj; | |
8354 | fail: | |
8355 | return NULL; | |
8356 | } | |
8357 | ||
8358 | ||
8359 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
8360 | PyObject *resultobj = 0; | |
8361 | wxAlphaPixelData_Accessor *result = 0 ; | |
8362 | ||
8363 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
8364 | { | |
8365 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(); | |
8366 | if (PyErr_Occurred()) SWIG_fail; | |
8367 | } | |
8368 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8369 | return resultobj; | |
8370 | fail: | |
8371 | return NULL; | |
8372 | } | |
8373 | ||
8374 | ||
8375 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) { | |
8376 | int argc; | |
8377 | PyObject *argv[3]; | |
8378 | ||
8379 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail; | |
8380 | --argc; | |
8381 | if (argc == 0) { | |
8382 | return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv); | |
8383 | } | |
8384 | if (argc == 1) { | |
8385 | return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv); | |
8386 | } | |
8387 | if (argc == 2) { | |
8388 | return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv); | |
8389 | } | |
8390 | ||
8391 | fail: | |
8392 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'"); | |
8393 | return NULL; | |
8394 | } | |
8395 | ||
8396 | ||
8397 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8398 | PyObject *resultobj = 0; | |
8399 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8400 | void *argp1 = 0 ; | |
8401 | int res1 = 0 ; | |
8402 | PyObject *swig_obj[1] ; | |
8403 | ||
8404 | if (!args) SWIG_fail; | |
8405 | swig_obj[0] = args; | |
8406 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
8407 | if (!SWIG_IsOK(res1)) { | |
8408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8409 | } | |
8410 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8411 | { | |
8412 | delete arg1; | |
8413 | ||
8414 | if (PyErr_Occurred()) SWIG_fail; | |
8415 | } | |
8416 | resultobj = SWIG_Py_Void(); | |
8417 | return resultobj; | |
8418 | fail: | |
8419 | return NULL; | |
8420 | } | |
8421 | ||
8422 | ||
8423 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8424 | PyObject *resultobj = 0; | |
8425 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8426 | wxAlphaPixelData *arg2 = 0 ; | |
8427 | void *argp1 = 0 ; | |
8428 | int res1 = 0 ; | |
8429 | void *argp2 = 0 ; | |
8430 | int res2 = 0 ; | |
8431 | PyObject * obj0 = 0 ; | |
8432 | PyObject * obj1 = 0 ; | |
8433 | char * kwnames[] = { | |
8434 | (char *) "self",(char *) "data", NULL | |
8435 | }; | |
8436 | ||
8437 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
8438 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8439 | if (!SWIG_IsOK(res1)) { | |
8440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8441 | } | |
8442 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8443 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8444 | if (!SWIG_IsOK(res2)) { | |
8445 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8446 | } | |
8447 | if (!argp2) { | |
8448 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8449 | } | |
8450 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8451 | { | |
8452 | (arg1)->Reset((wxAlphaPixelData const &)*arg2); | |
8453 | if (PyErr_Occurred()) SWIG_fail; | |
8454 | } | |
8455 | resultobj = SWIG_Py_Void(); | |
8456 | return resultobj; | |
8457 | fail: | |
8458 | return NULL; | |
8459 | } | |
8460 | ||
8461 | ||
8462 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8463 | PyObject *resultobj = 0; | |
8464 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8465 | bool result; | |
8466 | void *argp1 = 0 ; | |
8467 | int res1 = 0 ; | |
8468 | PyObject *swig_obj[1] ; | |
8469 | ||
8470 | if (!args) SWIG_fail; | |
8471 | swig_obj[0] = args; | |
8472 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8473 | if (!SWIG_IsOK(res1)) { | |
8474 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'"); | |
8475 | } | |
8476 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8477 | { | |
8478 | result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk(); | |
8479 | if (PyErr_Occurred()) SWIG_fail; | |
8480 | } | |
8481 | { | |
8482 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8483 | } | |
8484 | return resultobj; | |
8485 | fail: | |
8486 | return NULL; | |
8487 | } | |
8488 | ||
8489 | ||
8490 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8491 | PyObject *resultobj = 0; | |
8492 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8493 | void *argp1 = 0 ; | |
8494 | int res1 = 0 ; | |
8495 | PyObject *swig_obj[1] ; | |
8496 | ||
8497 | if (!args) SWIG_fail; | |
8498 | swig_obj[0] = args; | |
8499 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8500 | if (!SWIG_IsOK(res1)) { | |
8501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8502 | } | |
8503 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8504 | { | |
8505 | wxAlphaPixelData_Accessor_nextPixel(arg1); | |
8506 | if (PyErr_Occurred()) SWIG_fail; | |
8507 | } | |
8508 | resultobj = SWIG_Py_Void(); | |
8509 | return resultobj; | |
8510 | fail: | |
8511 | return NULL; | |
8512 | } | |
8513 | ||
8514 | ||
8515 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8516 | PyObject *resultobj = 0; | |
8517 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8518 | wxAlphaPixelData *arg2 = 0 ; | |
8519 | int arg3 ; | |
8520 | int arg4 ; | |
8521 | void *argp1 = 0 ; | |
8522 | int res1 = 0 ; | |
8523 | void *argp2 = 0 ; | |
8524 | int res2 = 0 ; | |
8525 | int val3 ; | |
8526 | int ecode3 = 0 ; | |
8527 | int val4 ; | |
8528 | int ecode4 = 0 ; | |
8529 | PyObject * obj0 = 0 ; | |
8530 | PyObject * obj1 = 0 ; | |
8531 | PyObject * obj2 = 0 ; | |
8532 | PyObject * obj3 = 0 ; | |
8533 | char * kwnames[] = { | |
8534 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8535 | }; | |
8536 | ||
8537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8539 | if (!SWIG_IsOK(res1)) { | |
8540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8541 | } | |
8542 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8543 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8544 | if (!SWIG_IsOK(res2)) { | |
8545 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8546 | } | |
8547 | if (!argp2) { | |
8548 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8549 | } | |
8550 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8551 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8552 | if (!SWIG_IsOK(ecode3)) { | |
8553 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8554 | } | |
8555 | arg3 = static_cast< int >(val3); | |
8556 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8557 | if (!SWIG_IsOK(ecode4)) { | |
8558 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8559 | } | |
8560 | arg4 = static_cast< int >(val4); | |
8561 | { | |
8562 | (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8563 | if (PyErr_Occurred()) SWIG_fail; | |
8564 | } | |
8565 | resultobj = SWIG_Py_Void(); | |
8566 | return resultobj; | |
8567 | fail: | |
8568 | return NULL; | |
8569 | } | |
8570 | ||
8571 | ||
8572 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8573 | PyObject *resultobj = 0; | |
8574 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8575 | wxAlphaPixelData *arg2 = 0 ; | |
8576 | int arg3 ; | |
8577 | void *argp1 = 0 ; | |
8578 | int res1 = 0 ; | |
8579 | void *argp2 = 0 ; | |
8580 | int res2 = 0 ; | |
8581 | int val3 ; | |
8582 | int ecode3 = 0 ; | |
8583 | PyObject * obj0 = 0 ; | |
8584 | PyObject * obj1 = 0 ; | |
8585 | PyObject * obj2 = 0 ; | |
8586 | char * kwnames[] = { | |
8587 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8588 | }; | |
8589 | ||
8590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8592 | if (!SWIG_IsOK(res1)) { | |
8593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8594 | } | |
8595 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8596 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8597 | if (!SWIG_IsOK(res2)) { | |
8598 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8599 | } | |
8600 | if (!argp2) { | |
8601 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8602 | } | |
8603 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8604 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8605 | if (!SWIG_IsOK(ecode3)) { | |
8606 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8607 | } | |
8608 | arg3 = static_cast< int >(val3); | |
8609 | { | |
8610 | (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3); | |
8611 | if (PyErr_Occurred()) SWIG_fail; | |
8612 | } | |
8613 | resultobj = SWIG_Py_Void(); | |
8614 | return resultobj; | |
8615 | fail: | |
8616 | return NULL; | |
8617 | } | |
8618 | ||
8619 | ||
8620 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8621 | PyObject *resultobj = 0; | |
8622 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8623 | wxAlphaPixelData *arg2 = 0 ; | |
8624 | int arg3 ; | |
8625 | void *argp1 = 0 ; | |
8626 | int res1 = 0 ; | |
8627 | void *argp2 = 0 ; | |
8628 | int res2 = 0 ; | |
8629 | int val3 ; | |
8630 | int ecode3 = 0 ; | |
8631 | PyObject * obj0 = 0 ; | |
8632 | PyObject * obj1 = 0 ; | |
8633 | PyObject * obj2 = 0 ; | |
8634 | char * kwnames[] = { | |
8635 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8636 | }; | |
8637 | ||
8638 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8639 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8640 | if (!SWIG_IsOK(res1)) { | |
8641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8642 | } | |
8643 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8644 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8645 | if (!SWIG_IsOK(res2)) { | |
8646 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8647 | } | |
8648 | if (!argp2) { | |
8649 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8650 | } | |
8651 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8652 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8653 | if (!SWIG_IsOK(ecode3)) { | |
8654 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8655 | } | |
8656 | arg3 = static_cast< int >(val3); | |
8657 | { | |
8658 | (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3); | |
8659 | if (PyErr_Occurred()) SWIG_fail; | |
8660 | } | |
8661 | resultobj = SWIG_Py_Void(); | |
8662 | return resultobj; | |
8663 | fail: | |
8664 | return NULL; | |
8665 | } | |
8666 | ||
8667 | ||
8668 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8669 | PyObject *resultobj = 0; | |
8670 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8671 | wxAlphaPixelData *arg2 = 0 ; | |
8672 | int arg3 ; | |
8673 | int arg4 ; | |
8674 | void *argp1 = 0 ; | |
8675 | int res1 = 0 ; | |
8676 | void *argp2 = 0 ; | |
8677 | int res2 = 0 ; | |
8678 | int val3 ; | |
8679 | int ecode3 = 0 ; | |
8680 | int val4 ; | |
8681 | int ecode4 = 0 ; | |
8682 | PyObject * obj0 = 0 ; | |
8683 | PyObject * obj1 = 0 ; | |
8684 | PyObject * obj2 = 0 ; | |
8685 | PyObject * obj3 = 0 ; | |
8686 | char * kwnames[] = { | |
8687 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8688 | }; | |
8689 | ||
8690 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8691 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8692 | if (!SWIG_IsOK(res1)) { | |
8693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8694 | } | |
8695 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8696 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8697 | if (!SWIG_IsOK(res2)) { | |
8698 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8699 | } | |
8700 | if (!argp2) { | |
8701 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8702 | } | |
8703 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8704 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8705 | if (!SWIG_IsOK(ecode3)) { | |
8706 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8707 | } | |
8708 | arg3 = static_cast< int >(val3); | |
8709 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8710 | if (!SWIG_IsOK(ecode4)) { | |
8711 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8712 | } | |
8713 | arg4 = static_cast< int >(val4); | |
8714 | { | |
8715 | (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8716 | if (PyErr_Occurred()) SWIG_fail; | |
8717 | } | |
8718 | resultobj = SWIG_Py_Void(); | |
8719 | return resultobj; | |
8720 | fail: | |
8721 | return NULL; | |
8722 | } | |
8723 | ||
8724 | ||
8725 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8726 | PyObject *resultobj = 0; | |
8727 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8728 | byte arg2 ; | |
8729 | byte arg3 ; | |
8730 | byte arg4 ; | |
8731 | byte arg5 ; | |
8732 | void *argp1 = 0 ; | |
8733 | int res1 = 0 ; | |
8734 | unsigned char val2 ; | |
8735 | int ecode2 = 0 ; | |
8736 | unsigned char val3 ; | |
8737 | int ecode3 = 0 ; | |
8738 | unsigned char val4 ; | |
8739 | int ecode4 = 0 ; | |
8740 | unsigned char val5 ; | |
8741 | int ecode5 = 0 ; | |
8742 | PyObject * obj0 = 0 ; | |
8743 | PyObject * obj1 = 0 ; | |
8744 | PyObject * obj2 = 0 ; | |
8745 | PyObject * obj3 = 0 ; | |
8746 | PyObject * obj4 = 0 ; | |
8747 | char * kwnames[] = { | |
8748 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL | |
8749 | }; | |
8750 | ||
8751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
8752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8753 | if (!SWIG_IsOK(res1)) { | |
8754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8755 | } | |
8756 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8757 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8758 | if (!SWIG_IsOK(ecode2)) { | |
8759 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8760 | } | |
8761 | arg2 = static_cast< byte >(val2); | |
8762 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8763 | if (!SWIG_IsOK(ecode3)) { | |
8764 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8765 | } | |
8766 | arg3 = static_cast< byte >(val3); | |
8767 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8768 | if (!SWIG_IsOK(ecode4)) { | |
8769 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8770 | } | |
8771 | arg4 = static_cast< byte >(val4); | |
8772 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
8773 | if (!SWIG_IsOK(ecode5)) { | |
8774 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'"); | |
8775 | } | |
8776 | arg5 = static_cast< byte >(val5); | |
8777 | { | |
8778 | wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5); | |
8779 | if (PyErr_Occurred()) SWIG_fail; | |
554f62e9 | 8780 | } |
fc46b7f3 | 8781 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
8782 | return resultobj; |
8783 | fail: | |
8784 | return NULL; | |
8785 | } | |
8786 | ||
8787 | ||
fc46b7f3 | 8788 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 8789 | PyObject *resultobj = 0; |
fc46b7f3 RD |
8790 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; |
8791 | PyObject *result = 0 ; | |
554f62e9 RD |
8792 | void *argp1 = 0 ; |
8793 | int res1 = 0 ; | |
fc46b7f3 | 8794 | PyObject *swig_obj[1] ; |
554f62e9 | 8795 | |
fc46b7f3 RD |
8796 | if (!args) SWIG_fail; |
8797 | swig_obj[0] = args; | |
8798 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
554f62e9 | 8799 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 8800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); |
554f62e9 | 8801 | } |
fc46b7f3 | 8802 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); |
554f62e9 | 8803 | { |
fc46b7f3 | 8804 | result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1); |
554f62e9 RD |
8805 | if (PyErr_Occurred()) SWIG_fail; |
8806 | } | |
fc46b7f3 | 8807 | resultobj = result; |
554f62e9 RD |
8808 | return resultobj; |
8809 | fail: | |
8810 | return NULL; | |
d55e5bfc RD |
8811 | } |
8812 | ||
8813 | ||
fc46b7f3 | 8814 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
8815 | PyObject *obj; |
8816 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 8817 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj)); |
554f62e9 | 8818 | return SWIG_Py_Void(); |
d55e5bfc RD |
8819 | } |
8820 | ||
fc46b7f3 | 8821 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 8822 | return SWIG_Python_InitShadowInstance(args); |
093d3ff1 RD |
8823 | } |
8824 | ||
554f62e9 RD |
8825 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
8826 | PyObject *resultobj = 0; | |
8827 | wxBitmap *arg1 = 0 ; | |
8828 | wxColour const &arg2_defvalue = wxNullColour ; | |
8829 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
8830 | wxMask *result = 0 ; | |
8831 | void *argp1 = 0 ; | |
8832 | int res1 = 0 ; | |
8833 | wxColour temp2 ; | |
8834 | PyObject * obj0 = 0 ; | |
8835 | PyObject * obj1 = 0 ; | |
8836 | char * kwnames[] = { | |
8837 | (char *) "bitmap",(char *) "colour", NULL | |
8838 | }; | |
8839 | ||
8840 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
8841 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
8842 | if (!SWIG_IsOK(res1)) { | |
8843 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8844 | } | |
8845 | if (!argp1) { | |
8846 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
8847 | } | |
8848 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8849 | if (obj1) { | |
d55e5bfc | 8850 | { |
554f62e9 RD |
8851 | arg2 = &temp2; |
8852 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 8853 | } |
554f62e9 RD |
8854 | } |
8855 | { | |
8856 | if (!wxPyCheckForApp()) SWIG_fail; | |
8857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8858 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
8859 | wxPyEndAllowThreads(__tstate); | |
8860 | if (PyErr_Occurred()) SWIG_fail; | |
8861 | } | |
8862 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
8863 | return resultobj; | |
8864 | fail: | |
8865 | return NULL; | |
d55e5bfc RD |
8866 | } |
8867 | ||
8868 | ||
554f62e9 RD |
8869 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8870 | PyObject *resultobj = 0; | |
8871 | wxMask *arg1 = (wxMask *) 0 ; | |
8872 | void *argp1 = 0 ; | |
8873 | int res1 = 0 ; | |
8874 | PyObject *swig_obj[1] ; | |
8875 | ||
8876 | if (!args) SWIG_fail; | |
8877 | swig_obj[0] = args; | |
8878 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
8879 | if (!SWIG_IsOK(res1)) { | |
8880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
8881 | } | |
8882 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
8883 | { | |
554f62e9 | 8884 | delete arg1; |
d55e5bfc | 8885 | |
554f62e9 RD |
8886 | if (PyErr_Occurred()) SWIG_fail; |
8887 | } | |
8888 | resultobj = SWIG_Py_Void(); | |
8889 | return resultobj; | |
8890 | fail: | |
8891 | return NULL; | |
8892 | } | |
8893 | ||
8894 | ||
8895 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8896 | PyObject *obj; | |
8897 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8898 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
8899 | return SWIG_Py_Void(); | |
8900 | } | |
8901 | ||
8902 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8903 | return SWIG_Python_InitShadowInstance(args); | |
8904 | } | |
8905 | ||
8906 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8907 | PyObject *resultobj = 0; | |
8908 | wxString *arg1 = 0 ; | |
8909 | wxBitmapType arg2 ; | |
8910 | int arg3 = (int) -1 ; | |
8911 | int arg4 = (int) -1 ; | |
8912 | wxIcon *result = 0 ; | |
8913 | bool temp1 = false ; | |
8914 | int val2 ; | |
8915 | int ecode2 = 0 ; | |
8916 | int val3 ; | |
8917 | int ecode3 = 0 ; | |
8918 | int val4 ; | |
8919 | int ecode4 = 0 ; | |
8920 | PyObject * obj0 = 0 ; | |
8921 | PyObject * obj1 = 0 ; | |
8922 | PyObject * obj2 = 0 ; | |
8923 | PyObject * obj3 = 0 ; | |
8924 | char * kwnames[] = { | |
8925 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
8926 | }; | |
8927 | ||
8928 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8929 | { | |
8930 | arg1 = wxString_in_helper(obj0); | |
8931 | if (arg1 == NULL) SWIG_fail; | |
8932 | temp1 = true; | |
8933 | } | |
8934 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
8935 | if (!SWIG_IsOK(ecode2)) { | |
8936 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
8937 | } | |
8938 | arg2 = static_cast< wxBitmapType >(val2); | |
8939 | if (obj2) { | |
8940 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8941 | if (!SWIG_IsOK(ecode3)) { | |
8942 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
8943 | } | |
8944 | arg3 = static_cast< int >(val3); | |
8945 | } | |
8946 | if (obj3) { | |
8947 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8948 | if (!SWIG_IsOK(ecode4)) { | |
8949 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
8950 | } | |
8951 | arg4 = static_cast< int >(val4); | |
8952 | } | |
8953 | { | |
8954 | if (!wxPyCheckForApp()) SWIG_fail; | |
8955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8956 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
8957 | wxPyEndAllowThreads(__tstate); | |
8958 | if (PyErr_Occurred()) SWIG_fail; | |
8959 | } | |
8960 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
8961 | { | |
8962 | if (temp1) | |
8963 | delete arg1; | |
8964 | } | |
8965 | return resultobj; | |
8966 | fail: | |
8967 | { | |
8968 | if (temp1) | |
8969 | delete arg1; | |
8970 | } | |
8971 | return NULL; | |
d55e5bfc RD |
8972 | } |
8973 | ||
8974 | ||
554f62e9 RD |
8975 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
8976 | PyObject *resultobj = 0; | |
8977 | wxIcon *arg1 = (wxIcon *) 0 ; | |
8978 | void *argp1 = 0 ; | |
8979 | int res1 = 0 ; | |
8980 | PyObject *swig_obj[1] ; | |
8981 | ||
8982 | if (!args) SWIG_fail; | |
8983 | swig_obj[0] = args; | |
8984 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
8985 | if (!SWIG_IsOK(res1)) { | |
8986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
8987 | } | |
8988 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
8989 | { | |
8990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8991 | delete arg1; | |
d55e5bfc | 8992 | |
554f62e9 RD |
8993 | wxPyEndAllowThreads(__tstate); |
8994 | if (PyErr_Occurred()) SWIG_fail; | |
8995 | } | |
8996 | resultobj = SWIG_Py_Void(); | |
8997 | return resultobj; | |
8998 | fail: | |
8999 | return NULL; | |
d55e5bfc RD |
9000 | } |
9001 | ||
9002 | ||
554f62e9 RD |
9003 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9004 | PyObject *resultobj = 0; | |
9005 | wxIcon *result = 0 ; | |
9006 | ||
9007 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
9008 | { | |
9009 | if (!wxPyCheckForApp()) SWIG_fail; | |
9010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9011 | result = (wxIcon *)new wxIcon(); | |
9012 | wxPyEndAllowThreads(__tstate); | |
9013 | if (PyErr_Occurred()) SWIG_fail; | |
9014 | } | |
9015 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9016 | return resultobj; | |
9017 | fail: | |
9018 | return NULL; | |
9019 | } | |
9020 | ||
9021 | ||
9022 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9023 | PyObject *resultobj = 0; | |
9024 | wxIconLocation *arg1 = 0 ; | |
9025 | wxIcon *result = 0 ; | |
9026 | void *argp1 = 0 ; | |
9027 | int res1 = 0 ; | |
9028 | PyObject * obj0 = 0 ; | |
9029 | char * kwnames[] = { | |
9030 | (char *) "loc", NULL | |
9031 | }; | |
9032 | ||
9033 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
9034 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
9035 | if (!SWIG_IsOK(res1)) { | |
9036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9037 | } | |
9038 | if (!argp1) { | |
9039 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9040 | } | |
9041 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9042 | { | |
9043 | if (!wxPyCheckForApp()) SWIG_fail; | |
9044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9045 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
9046 | wxPyEndAllowThreads(__tstate); | |
9047 | if (PyErr_Occurred()) SWIG_fail; | |
9048 | } | |
9049 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9050 | return resultobj; | |
9051 | fail: | |
9052 | return NULL; | |
9053 | } | |
9054 | ||
9055 | ||
9056 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9057 | PyObject *resultobj = 0; | |
9058 | wxBitmap *arg1 = 0 ; | |
9059 | wxIcon *result = 0 ; | |
9060 | void *argp1 = 0 ; | |
9061 | int res1 = 0 ; | |
9062 | PyObject * obj0 = 0 ; | |
9063 | char * kwnames[] = { | |
9064 | (char *) "bmp", NULL | |
9065 | }; | |
9066 | ||
9067 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
9068 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9069 | if (!SWIG_IsOK(res1)) { | |
9070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9071 | } | |
9072 | if (!argp1) { | |
9073 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9074 | } | |
9075 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9076 | { | |
9077 | if (!wxPyCheckForApp()) SWIG_fail; | |
9078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9079 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
9080 | wxPyEndAllowThreads(__tstate); | |
9081 | if (PyErr_Occurred()) SWIG_fail; | |
9082 | } | |
9083 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9084 | return resultobj; | |
9085 | fail: | |
9086 | return NULL; | |
d55e5bfc RD |
9087 | } |
9088 | ||
9089 | ||
554f62e9 RD |
9090 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9091 | PyObject *resultobj = 0; | |
9092 | PyObject *arg1 = (PyObject *) 0 ; | |
9093 | wxIcon *result = 0 ; | |
9094 | PyObject * obj0 = 0 ; | |
9095 | char * kwnames[] = { | |
9096 | (char *) "listOfStrings", NULL | |
9097 | }; | |
9098 | ||
9099 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
9100 | arg1 = obj0; | |
9101 | { | |
9102 | if (!wxPyCheckForApp()) SWIG_fail; | |
9103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9104 | result = (wxIcon *)new_wxIcon(arg1); | |
9105 | wxPyEndAllowThreads(__tstate); | |
9106 | if (PyErr_Occurred()) SWIG_fail; | |
9107 | } | |
9108 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9109 | return resultobj; | |
9110 | fail: | |
9111 | return NULL; | |
9112 | } | |
9113 | ||
9114 | ||
9115 | SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9116 | PyObject *resultobj = 0; | |
9117 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9118 | wxString *arg2 = 0 ; | |
9119 | wxBitmapType arg3 ; | |
9120 | bool result; | |
9121 | void *argp1 = 0 ; | |
9122 | int res1 = 0 ; | |
9123 | bool temp2 = false ; | |
9124 | int val3 ; | |
9125 | int ecode3 = 0 ; | |
9126 | PyObject * obj0 = 0 ; | |
9127 | PyObject * obj1 = 0 ; | |
9128 | PyObject * obj2 = 0 ; | |
9129 | char * kwnames[] = { | |
9130 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9131 | }; | |
9132 | ||
9133 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9134 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9135 | if (!SWIG_IsOK(res1)) { | |
9136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9137 | } | |
9138 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9139 | { | |
9140 | arg2 = wxString_in_helper(obj1); | |
9141 | if (arg2 == NULL) SWIG_fail; | |
9142 | temp2 = true; | |
9143 | } | |
9144 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9145 | if (!SWIG_IsOK(ecode3)) { | |
9146 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
9147 | } | |
9148 | arg3 = static_cast< wxBitmapType >(val3); | |
9149 | { | |
9150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9151 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
9152 | wxPyEndAllowThreads(__tstate); | |
9153 | if (PyErr_Occurred()) SWIG_fail; | |
9154 | } | |
9155 | { | |
9156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9157 | } | |
9158 | { | |
9159 | if (temp2) | |
9160 | delete arg2; | |
9161 | } | |
9162 | return resultobj; | |
9163 | fail: | |
9164 | { | |
9165 | if (temp2) | |
9166 | delete arg2; | |
9167 | } | |
9168 | return NULL; | |
d55e5bfc RD |
9169 | } |
9170 | ||
9171 | ||
554f62e9 RD |
9172 | SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9173 | PyObject *resultobj = 0; | |
9174 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9175 | long result; | |
9176 | void *argp1 = 0 ; | |
9177 | int res1 = 0 ; | |
9178 | PyObject *swig_obj[1] ; | |
9179 | ||
9180 | if (!args) SWIG_fail; | |
9181 | swig_obj[0] = args; | |
9182 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9183 | if (!SWIG_IsOK(res1)) { | |
9184 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9185 | } | |
9186 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9187 | { | |
9188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9189 | result = (long)(arg1)->GetHandle(); | |
9190 | wxPyEndAllowThreads(__tstate); | |
9191 | if (PyErr_Occurred()) SWIG_fail; | |
9192 | } | |
9193 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
9194 | return resultobj; | |
9195 | fail: | |
9196 | return NULL; | |
9197 | } | |
9198 | ||
9199 | ||
9200 | SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9201 | PyObject *resultobj = 0; | |
9202 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9203 | long arg2 ; | |
9204 | void *argp1 = 0 ; | |
9205 | int res1 = 0 ; | |
9206 | long val2 ; | |
9207 | int ecode2 = 0 ; | |
9208 | PyObject * obj0 = 0 ; | |
9209 | PyObject * obj1 = 0 ; | |
9210 | char * kwnames[] = { | |
9211 | (char *) "self",(char *) "handle", NULL | |
9212 | }; | |
9213 | ||
9214 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
9215 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9216 | if (!SWIG_IsOK(res1)) { | |
9217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9218 | } | |
9219 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9220 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9221 | if (!SWIG_IsOK(ecode2)) { | |
9222 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
9223 | } | |
9224 | arg2 = static_cast< long >(val2); | |
9225 | { | |
9226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9227 | wxIcon_SetHandle(arg1,arg2); | |
9228 | wxPyEndAllowThreads(__tstate); | |
9229 | if (PyErr_Occurred()) SWIG_fail; | |
9230 | } | |
9231 | resultobj = SWIG_Py_Void(); | |
9232 | return resultobj; | |
9233 | fail: | |
9234 | return NULL; | |
d55e5bfc RD |
9235 | } |
9236 | ||
9237 | ||
b39fe951 | 9238 | SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
9239 | PyObject *resultobj = 0; |
9240 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9241 | bool result; | |
9242 | void *argp1 = 0 ; | |
9243 | int res1 = 0 ; | |
9244 | PyObject *swig_obj[1] ; | |
9245 | ||
9246 | if (!args) SWIG_fail; | |
9247 | swig_obj[0] = args; | |
9248 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9249 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 9250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'"); |
554f62e9 RD |
9251 | } |
9252 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9253 | { | |
9254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 9255 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
9256 | wxPyEndAllowThreads(__tstate); |
9257 | if (PyErr_Occurred()) SWIG_fail; | |
9258 | } | |
9259 | { | |
9260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9261 | } | |
9262 | return resultobj; | |
9263 | fail: | |
9264 | return NULL; | |
d55e5bfc RD |
9265 | } |
9266 | ||
9267 | ||
554f62e9 RD |
9268 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9269 | PyObject *resultobj = 0; | |
9270 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9271 | int result; | |
9272 | void *argp1 = 0 ; | |
9273 | int res1 = 0 ; | |
9274 | PyObject *swig_obj[1] ; | |
9275 | ||
9276 | if (!args) SWIG_fail; | |
9277 | swig_obj[0] = args; | |
9278 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9279 | if (!SWIG_IsOK(res1)) { | |
9280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9281 | } | |
9282 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9283 | { | |
9284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9285 | result = (int)(arg1)->GetWidth(); | |
9286 | wxPyEndAllowThreads(__tstate); | |
9287 | if (PyErr_Occurred()) SWIG_fail; | |
9288 | } | |
9289 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9290 | return resultobj; | |
9291 | fail: | |
9292 | return NULL; | |
c1cb24a4 RD |
9293 | } |
9294 | ||
9295 | ||
554f62e9 RD |
9296 | SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9297 | PyObject *resultobj = 0; | |
9298 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9299 | int result; | |
9300 | void *argp1 = 0 ; | |
9301 | int res1 = 0 ; | |
9302 | PyObject *swig_obj[1] ; | |
9303 | ||
9304 | if (!args) SWIG_fail; | |
9305 | swig_obj[0] = args; | |
9306 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9307 | if (!SWIG_IsOK(res1)) { | |
9308 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9309 | } | |
9310 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9311 | { | |
9312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9313 | result = (int)(arg1)->GetHeight(); | |
9314 | wxPyEndAllowThreads(__tstate); | |
9315 | if (PyErr_Occurred()) SWIG_fail; | |
9316 | } | |
9317 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9318 | return resultobj; | |
9319 | fail: | |
9320 | return NULL; | |
c1cb24a4 RD |
9321 | } |
9322 | ||
9323 | ||
554f62e9 RD |
9324 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9325 | PyObject *resultobj = 0; | |
9326 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9327 | int result; | |
9328 | void *argp1 = 0 ; | |
9329 | int res1 = 0 ; | |
9330 | PyObject *swig_obj[1] ; | |
9331 | ||
9332 | if (!args) SWIG_fail; | |
9333 | swig_obj[0] = args; | |
9334 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9335 | if (!SWIG_IsOK(res1)) { | |
9336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9337 | } | |
9338 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9339 | { | |
9340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9341 | result = (int)(arg1)->GetDepth(); | |
9342 | wxPyEndAllowThreads(__tstate); | |
9343 | if (PyErr_Occurred()) SWIG_fail; | |
9344 | } | |
9345 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9346 | return resultobj; | |
9347 | fail: | |
9348 | return NULL; | |
9349 | } | |
9350 | ||
9351 | ||
9352 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9353 | PyObject *resultobj = 0; | |
9354 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9355 | int arg2 ; | |
9356 | void *argp1 = 0 ; | |
9357 | int res1 = 0 ; | |
9358 | int val2 ; | |
9359 | int ecode2 = 0 ; | |
9360 | PyObject * obj0 = 0 ; | |
9361 | PyObject * obj1 = 0 ; | |
9362 | char * kwnames[] = { | |
9363 | (char *) "self",(char *) "w", NULL | |
9364 | }; | |
9365 | ||
9366 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9367 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9368 | if (!SWIG_IsOK(res1)) { | |
9369 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9370 | } | |
9371 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9372 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9373 | if (!SWIG_IsOK(ecode2)) { | |
9374 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
9375 | } | |
9376 | arg2 = static_cast< int >(val2); | |
9377 | { | |
9378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9379 | (arg1)->SetWidth(arg2); | |
9380 | wxPyEndAllowThreads(__tstate); | |
9381 | if (PyErr_Occurred()) SWIG_fail; | |
9382 | } | |
9383 | resultobj = SWIG_Py_Void(); | |
9384 | return resultobj; | |
9385 | fail: | |
9386 | return NULL; | |
9387 | } | |
9388 | ||
9389 | ||
9390 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9391 | PyObject *resultobj = 0; | |
9392 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9393 | int arg2 ; | |
9394 | void *argp1 = 0 ; | |
9395 | int res1 = 0 ; | |
9396 | int val2 ; | |
9397 | int ecode2 = 0 ; | |
9398 | PyObject * obj0 = 0 ; | |
9399 | PyObject * obj1 = 0 ; | |
9400 | char * kwnames[] = { | |
9401 | (char *) "self",(char *) "h", NULL | |
9402 | }; | |
9403 | ||
9404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9406 | if (!SWIG_IsOK(res1)) { | |
9407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9408 | } | |
9409 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9410 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9411 | if (!SWIG_IsOK(ecode2)) { | |
9412 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
9413 | } | |
9414 | arg2 = static_cast< int >(val2); | |
9415 | { | |
9416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9417 | (arg1)->SetHeight(arg2); | |
9418 | wxPyEndAllowThreads(__tstate); | |
9419 | if (PyErr_Occurred()) SWIG_fail; | |
9420 | } | |
9421 | resultobj = SWIG_Py_Void(); | |
9422 | return resultobj; | |
9423 | fail: | |
9424 | return NULL; | |
9425 | } | |
9426 | ||
9427 | ||
9428 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9429 | PyObject *resultobj = 0; | |
9430 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9431 | int arg2 ; | |
9432 | void *argp1 = 0 ; | |
9433 | int res1 = 0 ; | |
9434 | int val2 ; | |
9435 | int ecode2 = 0 ; | |
9436 | PyObject * obj0 = 0 ; | |
9437 | PyObject * obj1 = 0 ; | |
9438 | char * kwnames[] = { | |
9439 | (char *) "self",(char *) "d", NULL | |
9440 | }; | |
9441 | ||
9442 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9443 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9444 | if (!SWIG_IsOK(res1)) { | |
9445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9446 | } | |
9447 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9448 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9449 | if (!SWIG_IsOK(ecode2)) { | |
9450 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
9451 | } | |
9452 | arg2 = static_cast< int >(val2); | |
9453 | { | |
9454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9455 | (arg1)->SetDepth(arg2); | |
9456 | wxPyEndAllowThreads(__tstate); | |
9457 | if (PyErr_Occurred()) SWIG_fail; | |
9458 | } | |
9459 | resultobj = SWIG_Py_Void(); | |
9460 | return resultobj; | |
9461 | fail: | |
9462 | return NULL; | |
9463 | } | |
9464 | ||
9465 | ||
9466 | SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9467 | PyObject *resultobj = 0; | |
9468 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9469 | wxSize *arg2 = 0 ; | |
9470 | void *argp1 = 0 ; | |
9471 | int res1 = 0 ; | |
9472 | wxSize temp2 ; | |
9473 | PyObject * obj0 = 0 ; | |
9474 | PyObject * obj1 = 0 ; | |
9475 | char * kwnames[] = { | |
9476 | (char *) "self",(char *) "size", NULL | |
9477 | }; | |
9478 | ||
9479 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9480 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9481 | if (!SWIG_IsOK(res1)) { | |
9482 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9483 | } | |
9484 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9485 | { | |
9486 | arg2 = &temp2; | |
9487 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
9488 | } | |
9489 | { | |
9490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9491 | (arg1)->SetSize((wxSize const &)*arg2); | |
9492 | wxPyEndAllowThreads(__tstate); | |
9493 | if (PyErr_Occurred()) SWIG_fail; | |
9494 | } | |
9495 | resultobj = SWIG_Py_Void(); | |
9496 | return resultobj; | |
9497 | fail: | |
9498 | return NULL; | |
9499 | } | |
9500 | ||
9501 | ||
9502 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9503 | PyObject *resultobj = 0; | |
9504 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9505 | wxBitmap *arg2 = 0 ; | |
9506 | void *argp1 = 0 ; | |
9507 | int res1 = 0 ; | |
9508 | void *argp2 = 0 ; | |
9509 | int res2 = 0 ; | |
9510 | PyObject * obj0 = 0 ; | |
9511 | PyObject * obj1 = 0 ; | |
9512 | char * kwnames[] = { | |
9513 | (char *) "self",(char *) "bmp", NULL | |
9514 | }; | |
9515 | ||
9516 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
9517 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9518 | if (!SWIG_IsOK(res1)) { | |
9519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9520 | } | |
9521 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9522 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9523 | if (!SWIG_IsOK(res2)) { | |
9524 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9525 | } | |
9526 | if (!argp2) { | |
9527 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9528 | } | |
9529 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9530 | { | |
9531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9532 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
9533 | wxPyEndAllowThreads(__tstate); | |
9534 | if (PyErr_Occurred()) SWIG_fail; | |
9535 | } | |
9536 | resultobj = SWIG_Py_Void(); | |
9537 | return resultobj; | |
9538 | fail: | |
9539 | return NULL; | |
d55e5bfc RD |
9540 | } |
9541 | ||
9542 | ||
554f62e9 RD |
9543 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9544 | PyObject *obj; | |
9545 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9546 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
9547 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9548 | } |
9549 | ||
554f62e9 RD |
9550 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9551 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
9552 | } |
9553 | ||
554f62e9 RD |
9554 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9555 | PyObject *resultobj = 0; | |
9556 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
9557 | int arg2 = (int) 0 ; | |
9558 | wxIconLocation *result = 0 ; | |
9559 | bool temp1 = false ; | |
9560 | int val2 ; | |
9561 | int ecode2 = 0 ; | |
9562 | PyObject * obj0 = 0 ; | |
9563 | PyObject * obj1 = 0 ; | |
9564 | char * kwnames[] = { | |
9565 | (char *) "filename",(char *) "num", NULL | |
9566 | }; | |
9567 | ||
9568 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
9569 | if (obj0) { | |
d55e5bfc | 9570 | { |
554f62e9 RD |
9571 | arg1 = wxString_in_helper(obj0); |
9572 | if (arg1 == NULL) SWIG_fail; | |
9573 | temp1 = true; | |
d55e5bfc | 9574 | } |
554f62e9 RD |
9575 | } |
9576 | if (obj1) { | |
9577 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9578 | if (!SWIG_IsOK(ecode2)) { | |
9579 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
9580 | } | |
9581 | arg2 = static_cast< int >(val2); | |
9582 | } | |
9583 | { | |
9584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9585 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
9586 | wxPyEndAllowThreads(__tstate); | |
9587 | if (PyErr_Occurred()) SWIG_fail; | |
9588 | } | |
9589 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
9590 | { | |
9591 | if (temp1) | |
9592 | delete arg1; | |
9593 | } | |
9594 | return resultobj; | |
9595 | fail: | |
9596 | { | |
9597 | if (temp1) | |
9598 | delete arg1; | |
9599 | } | |
9600 | return NULL; | |
d55e5bfc RD |
9601 | } |
9602 | ||
9603 | ||
554f62e9 RD |
9604 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9605 | PyObject *resultobj = 0; | |
9606 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9607 | void *argp1 = 0 ; | |
9608 | int res1 = 0 ; | |
9609 | PyObject *swig_obj[1] ; | |
9610 | ||
9611 | if (!args) SWIG_fail; | |
9612 | swig_obj[0] = args; | |
9613 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
9614 | if (!SWIG_IsOK(res1)) { | |
9615 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9616 | } | |
9617 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9618 | { | |
9619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9620 | delete arg1; | |
d55e5bfc | 9621 | |
554f62e9 RD |
9622 | wxPyEndAllowThreads(__tstate); |
9623 | if (PyErr_Occurred()) SWIG_fail; | |
9624 | } | |
9625 | resultobj = SWIG_Py_Void(); | |
9626 | return resultobj; | |
9627 | fail: | |
9628 | return NULL; | |
d55e5bfc RD |
9629 | } |
9630 | ||
9631 | ||
554f62e9 RD |
9632 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9633 | PyObject *resultobj = 0; | |
9634 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9635 | bool result; | |
9636 | void *argp1 = 0 ; | |
9637 | int res1 = 0 ; | |
9638 | PyObject *swig_obj[1] ; | |
9639 | ||
9640 | if (!args) SWIG_fail; | |
9641 | swig_obj[0] = args; | |
9642 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9643 | if (!SWIG_IsOK(res1)) { | |
9644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9645 | } | |
9646 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9647 | { | |
9648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9649 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
9650 | wxPyEndAllowThreads(__tstate); | |
9651 | if (PyErr_Occurred()) SWIG_fail; | |
9652 | } | |
9653 | { | |
9654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9655 | } | |
9656 | return resultobj; | |
9657 | fail: | |
9658 | return NULL; | |
9659 | } | |
9660 | ||
9661 | ||
9662 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9663 | PyObject *resultobj = 0; | |
9664 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9665 | wxString *arg2 = 0 ; | |
9666 | void *argp1 = 0 ; | |
9667 | int res1 = 0 ; | |
9668 | bool temp2 = false ; | |
9669 | PyObject * obj0 = 0 ; | |
9670 | PyObject * obj1 = 0 ; | |
9671 | char * kwnames[] = { | |
9672 | (char *) "self",(char *) "filename", NULL | |
9673 | }; | |
9674 | ||
9675 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
9676 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9677 | if (!SWIG_IsOK(res1)) { | |
9678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9679 | } | |
9680 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9681 | { | |
9682 | arg2 = wxString_in_helper(obj1); | |
9683 | if (arg2 == NULL) SWIG_fail; | |
9684 | temp2 = true; | |
9685 | } | |
9686 | { | |
9687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9688 | (arg1)->SetFileName((wxString const &)*arg2); | |
9689 | wxPyEndAllowThreads(__tstate); | |
9690 | if (PyErr_Occurred()) SWIG_fail; | |
9691 | } | |
9692 | resultobj = SWIG_Py_Void(); | |
9693 | { | |
9694 | if (temp2) | |
9695 | delete arg2; | |
9696 | } | |
9697 | return resultobj; | |
9698 | fail: | |
9699 | { | |
9700 | if (temp2) | |
9701 | delete arg2; | |
9702 | } | |
9703 | return NULL; | |
d55e5bfc RD |
9704 | } |
9705 | ||
9706 | ||
554f62e9 RD |
9707 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9708 | PyObject *resultobj = 0; | |
9709 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9710 | wxString *result = 0 ; | |
9711 | void *argp1 = 0 ; | |
9712 | int res1 = 0 ; | |
9713 | PyObject *swig_obj[1] ; | |
9714 | ||
9715 | if (!args) SWIG_fail; | |
9716 | swig_obj[0] = args; | |
9717 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9718 | if (!SWIG_IsOK(res1)) { | |
9719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9720 | } | |
9721 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9722 | { | |
9723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 9724 | { |
554f62e9 RD |
9725 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
9726 | result = (wxString *) &_result_ref; | |
093d3ff1 | 9727 | } |
554f62e9 RD |
9728 | wxPyEndAllowThreads(__tstate); |
9729 | if (PyErr_Occurred()) SWIG_fail; | |
9730 | } | |
9731 | { | |
9732 | #if wxUSE_UNICODE | |
9733 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
9734 | #else | |
9735 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
9736 | #endif | |
9737 | } | |
9738 | return resultobj; | |
9739 | fail: | |
9740 | return NULL; | |
9741 | } | |
9742 | ||
9743 | ||
9744 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9745 | PyObject *resultobj = 0; | |
9746 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9747 | int arg2 ; | |
9748 | void *argp1 = 0 ; | |
9749 | int res1 = 0 ; | |
9750 | int val2 ; | |
9751 | int ecode2 = 0 ; | |
9752 | PyObject * obj0 = 0 ; | |
9753 | PyObject * obj1 = 0 ; | |
9754 | char * kwnames[] = { | |
9755 | (char *) "self",(char *) "num", NULL | |
9756 | }; | |
9757 | ||
9758 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
9759 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9760 | if (!SWIG_IsOK(res1)) { | |
9761 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9762 | } | |
9763 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9764 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9765 | if (!SWIG_IsOK(ecode2)) { | |
9766 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
9767 | } | |
9768 | arg2 = static_cast< int >(val2); | |
9769 | { | |
9770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9771 | wxIconLocation_SetIndex(arg1,arg2); | |
9772 | wxPyEndAllowThreads(__tstate); | |
9773 | if (PyErr_Occurred()) SWIG_fail; | |
9774 | } | |
9775 | resultobj = SWIG_Py_Void(); | |
9776 | return resultobj; | |
9777 | fail: | |
9778 | return NULL; | |
d55e5bfc RD |
9779 | } |
9780 | ||
9781 | ||
554f62e9 RD |
9782 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9783 | PyObject *resultobj = 0; | |
9784 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9785 | int result; | |
9786 | void *argp1 = 0 ; | |
9787 | int res1 = 0 ; | |
9788 | PyObject *swig_obj[1] ; | |
9789 | ||
9790 | if (!args) SWIG_fail; | |
9791 | swig_obj[0] = args; | |
9792 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9793 | if (!SWIG_IsOK(res1)) { | |
9794 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9795 | } | |
9796 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9797 | { | |
9798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9799 | result = (int)wxIconLocation_GetIndex(arg1); | |
9800 | wxPyEndAllowThreads(__tstate); | |
9801 | if (PyErr_Occurred()) SWIG_fail; | |
9802 | } | |
9803 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9804 | return resultobj; | |
9805 | fail: | |
9806 | return NULL; | |
d55e5bfc RD |
9807 | } |
9808 | ||
9809 | ||
554f62e9 RD |
9810 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9811 | PyObject *obj; | |
9812 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9813 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
9814 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9815 | } |
9816 | ||
554f62e9 RD |
9817 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9818 | return SWIG_Python_InitShadowInstance(args); | |
9819 | } | |
d55e5bfc | 9820 | |
554f62e9 RD |
9821 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9822 | PyObject *resultobj = 0; | |
9823 | wxIconBundle *result = 0 ; | |
9824 | ||
9825 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
9826 | { | |
9827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9828 | result = (wxIconBundle *)new wxIconBundle(); | |
9829 | wxPyEndAllowThreads(__tstate); | |
9830 | if (PyErr_Occurred()) SWIG_fail; | |
9831 | } | |
9832 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
9833 | return resultobj; | |
9834 | fail: | |
9835 | return NULL; | |
9836 | } | |
9837 | ||
9838 | ||
9839 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9840 | PyObject *resultobj = 0; | |
9841 | wxString *arg1 = 0 ; | |
9842 | long arg2 ; | |
9843 | wxIconBundle *result = 0 ; | |
9844 | bool temp1 = false ; | |
9845 | long val2 ; | |
9846 | int ecode2 = 0 ; | |
9847 | PyObject * obj0 = 0 ; | |
9848 | PyObject * obj1 = 0 ; | |
9849 | char * kwnames[] = { | |
9850 | (char *) "file",(char *) "type", NULL | |
9851 | }; | |
9852 | ||
9853 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
9854 | { | |
9855 | arg1 = wxString_in_helper(obj0); | |
9856 | if (arg1 == NULL) SWIG_fail; | |
9857 | temp1 = true; | |
9858 | } | |
9859 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9860 | if (!SWIG_IsOK(ecode2)) { | |
9861 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
9862 | } | |
9863 | arg2 = static_cast< long >(val2); | |
9864 | { | |
9865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9866 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
9867 | wxPyEndAllowThreads(__tstate); | |
9868 | if (PyErr_Occurred()) SWIG_fail; | |
9869 | } | |
9870 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9871 | { | |
9872 | if (temp1) | |
9873 | delete arg1; | |
9874 | } | |
9875 | return resultobj; | |
9876 | fail: | |
9877 | { | |
9878 | if (temp1) | |
9879 | delete arg1; | |
9880 | } | |
9881 | return NULL; | |
d55e5bfc RD |
9882 | } |
9883 | ||
9884 | ||
554f62e9 RD |
9885 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9886 | PyObject *resultobj = 0; | |
9887 | wxIcon *arg1 = 0 ; | |
9888 | wxIconBundle *result = 0 ; | |
9889 | void *argp1 = 0 ; | |
9890 | int res1 = 0 ; | |
9891 | PyObject * obj0 = 0 ; | |
9892 | char * kwnames[] = { | |
9893 | (char *) "icon", NULL | |
9894 | }; | |
9895 | ||
9896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
9897 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
9898 | if (!SWIG_IsOK(res1)) { | |
9899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9900 | } | |
9901 | if (!argp1) { | |
9902 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
9903 | } | |
9904 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9905 | { | |
9906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9907 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
9908 | wxPyEndAllowThreads(__tstate); | |
9909 | if (PyErr_Occurred()) SWIG_fail; | |
9910 | } | |
9911 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
9912 | return resultobj; | |
9913 | fail: | |
9914 | return NULL; | |
d55e5bfc RD |
9915 | } |
9916 | ||
9917 | ||
554f62e9 RD |
9918 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9919 | PyObject *resultobj = 0; | |
9920 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9921 | void *argp1 = 0 ; | |
9922 | int res1 = 0 ; | |
9923 | PyObject *swig_obj[1] ; | |
9924 | ||
9925 | if (!args) SWIG_fail; | |
9926 | swig_obj[0] = args; | |
9927 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
9928 | if (!SWIG_IsOK(res1)) { | |
9929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9930 | } | |
9931 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9932 | { | |
9933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9934 | delete arg1; | |
d55e5bfc | 9935 | |
554f62e9 RD |
9936 | wxPyEndAllowThreads(__tstate); |
9937 | if (PyErr_Occurred()) SWIG_fail; | |
9938 | } | |
9939 | resultobj = SWIG_Py_Void(); | |
9940 | return resultobj; | |
9941 | fail: | |
9942 | return NULL; | |
9943 | } | |
9944 | ||
9945 | ||
9946 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9947 | PyObject *resultobj = 0; | |
9948 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9949 | wxIcon *arg2 = 0 ; | |
9950 | void *argp1 = 0 ; | |
9951 | int res1 = 0 ; | |
9952 | void *argp2 = 0 ; | |
9953 | int res2 = 0 ; | |
9954 | PyObject * obj0 = 0 ; | |
9955 | PyObject * obj1 = 0 ; | |
9956 | char * kwnames[] = { | |
9957 | (char *) "self",(char *) "icon", NULL | |
9958 | }; | |
9959 | ||
9960 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
9961 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
9962 | if (!SWIG_IsOK(res1)) { | |
9963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
9964 | } | |
9965 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
9966 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
9967 | if (!SWIG_IsOK(res2)) { | |
9968 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
9969 | } | |
9970 | if (!argp2) { | |
9971 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
9972 | } | |
9973 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
9974 | { | |
9975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9976 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
9977 | wxPyEndAllowThreads(__tstate); | |
9978 | if (PyErr_Occurred()) SWIG_fail; | |
9979 | } | |
9980 | resultobj = SWIG_Py_Void(); | |
9981 | return resultobj; | |
9982 | fail: | |
9983 | return NULL; | |
9984 | } | |
9985 | ||
9986 | ||
9987 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9988 | PyObject *resultobj = 0; | |
9989 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
9990 | wxString *arg2 = 0 ; | |
9991 | long arg3 ; | |
9992 | void *argp1 = 0 ; | |
9993 | int res1 = 0 ; | |
9994 | bool temp2 = false ; | |
9995 | long val3 ; | |
9996 | int ecode3 = 0 ; | |
9997 | PyObject * obj0 = 0 ; | |
9998 | PyObject * obj1 = 0 ; | |
9999 | PyObject * obj2 = 0 ; | |
10000 | char * kwnames[] = { | |
10001 | (char *) "self",(char *) "file",(char *) "type", NULL | |
10002 | }; | |
10003 | ||
10004 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10005 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10006 | if (!SWIG_IsOK(res1)) { | |
10007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10008 | } | |
10009 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10010 | { | |
10011 | arg2 = wxString_in_helper(obj1); | |
10012 | if (arg2 == NULL) SWIG_fail; | |
10013 | temp2 = true; | |
10014 | } | |
10015 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10016 | if (!SWIG_IsOK(ecode3)) { | |
10017 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
10018 | } | |
10019 | arg3 = static_cast< long >(val3); | |
10020 | { | |
10021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10022 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
10023 | wxPyEndAllowThreads(__tstate); | |
10024 | if (PyErr_Occurred()) SWIG_fail; | |
10025 | } | |
10026 | resultobj = SWIG_Py_Void(); | |
10027 | { | |
10028 | if (temp2) | |
10029 | delete arg2; | |
10030 | } | |
10031 | return resultobj; | |
10032 | fail: | |
10033 | { | |
10034 | if (temp2) | |
10035 | delete arg2; | |
10036 | } | |
10037 | return NULL; | |
10038 | } | |
10039 | ||
10040 | ||
10041 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10042 | PyObject *resultobj = 0; | |
10043 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10044 | wxSize *arg2 = 0 ; | |
10045 | wxIcon *result = 0 ; | |
10046 | void *argp1 = 0 ; | |
10047 | int res1 = 0 ; | |
10048 | wxSize temp2 ; | |
10049 | PyObject * obj0 = 0 ; | |
10050 | PyObject * obj1 = 0 ; | |
10051 | char * kwnames[] = { | |
10052 | (char *) "self",(char *) "size", NULL | |
10053 | }; | |
10054 | ||
10055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
10056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10057 | if (!SWIG_IsOK(res1)) { | |
10058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10059 | } | |
10060 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10061 | { | |
10062 | arg2 = &temp2; | |
10063 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10064 | } | |
10065 | { | |
10066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 10067 | { |
554f62e9 RD |
10068 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
10069 | result = (wxIcon *) &_result_ref; | |
d55e5bfc | 10070 | } |
554f62e9 RD |
10071 | wxPyEndAllowThreads(__tstate); |
10072 | if (PyErr_Occurred()) SWIG_fail; | |
10073 | } | |
10074 | { | |
10075 | wxIcon* resultptr = new wxIcon(*result); | |
10076 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
10077 | } | |
10078 | return resultobj; | |
10079 | fail: | |
10080 | return NULL; | |
10081 | } | |
10082 | ||
10083 | ||
10084 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10085 | PyObject *obj; | |
10086 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10087 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
10088 | return SWIG_Py_Void(); | |
10089 | } | |
10090 | ||
10091 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10092 | return SWIG_Python_InitShadowInstance(args); | |
10093 | } | |
10094 | ||
10095 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10096 | PyObject *resultobj = 0; | |
10097 | wxString *arg1 = 0 ; | |
10098 | long arg2 ; | |
10099 | int arg3 = (int) 0 ; | |
10100 | int arg4 = (int) 0 ; | |
10101 | wxCursor *result = 0 ; | |
10102 | bool temp1 = false ; | |
10103 | long val2 ; | |
10104 | int ecode2 = 0 ; | |
10105 | int val3 ; | |
10106 | int ecode3 = 0 ; | |
10107 | int val4 ; | |
10108 | int ecode4 = 0 ; | |
10109 | PyObject * obj0 = 0 ; | |
10110 | PyObject * obj1 = 0 ; | |
10111 | PyObject * obj2 = 0 ; | |
10112 | PyObject * obj3 = 0 ; | |
10113 | char * kwnames[] = { | |
10114 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
10115 | }; | |
10116 | ||
10117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10118 | { | |
10119 | arg1 = wxString_in_helper(obj0); | |
10120 | if (arg1 == NULL) SWIG_fail; | |
10121 | temp1 = true; | |
10122 | } | |
10123 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10124 | if (!SWIG_IsOK(ecode2)) { | |
10125 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
10126 | } | |
10127 | arg2 = static_cast< long >(val2); | |
10128 | if (obj2) { | |
10129 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10130 | if (!SWIG_IsOK(ecode3)) { | |
10131 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
10132 | } | |
10133 | arg3 = static_cast< int >(val3); | |
10134 | } | |
10135 | if (obj3) { | |
10136 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10137 | if (!SWIG_IsOK(ecode4)) { | |
10138 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
10139 | } | |
10140 | arg4 = static_cast< int >(val4); | |
10141 | } | |
10142 | { | |
10143 | if (!wxPyCheckForApp()) SWIG_fail; | |
10144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10145 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
10146 | wxPyEndAllowThreads(__tstate); | |
10147 | if (PyErr_Occurred()) SWIG_fail; | |
10148 | } | |
10149 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
10150 | { | |
10151 | if (temp1) | |
10152 | delete arg1; | |
10153 | } | |
10154 | return resultobj; | |
10155 | fail: | |
10156 | { | |
10157 | if (temp1) | |
10158 | delete arg1; | |
10159 | } | |
10160 | return NULL; | |
d55e5bfc RD |
10161 | } |
10162 | ||
10163 | ||
554f62e9 RD |
10164 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10165 | PyObject *resultobj = 0; | |
10166 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10167 | void *argp1 = 0 ; | |
10168 | int res1 = 0 ; | |
10169 | PyObject *swig_obj[1] ; | |
10170 | ||
10171 | if (!args) SWIG_fail; | |
10172 | swig_obj[0] = args; | |
10173 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
10174 | if (!SWIG_IsOK(res1)) { | |
10175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10176 | } | |
10177 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10178 | { | |
10179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10180 | delete arg1; | |
d55e5bfc | 10181 | |
554f62e9 RD |
10182 | wxPyEndAllowThreads(__tstate); |
10183 | if (PyErr_Occurred()) SWIG_fail; | |
10184 | } | |
10185 | resultobj = SWIG_Py_Void(); | |
10186 | return resultobj; | |
10187 | fail: | |
10188 | return NULL; | |
10189 | } | |
10190 | ||
10191 | ||
10192 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10193 | PyObject *resultobj = 0; | |
10194 | int arg1 ; | |
10195 | wxCursor *result = 0 ; | |
10196 | int val1 ; | |
10197 | int ecode1 = 0 ; | |
10198 | PyObject * obj0 = 0 ; | |
10199 | char * kwnames[] = { | |
10200 | (char *) "id", NULL | |
10201 | }; | |
10202 | ||
10203 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
10204 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10205 | if (!SWIG_IsOK(ecode1)) { | |
10206 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
10207 | } | |
10208 | arg1 = static_cast< int >(val1); | |
10209 | { | |
10210 | if (!wxPyCheckForApp()) SWIG_fail; | |
10211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10212 | result = (wxCursor *)new wxCursor(arg1); | |
10213 | wxPyEndAllowThreads(__tstate); | |
10214 | if (PyErr_Occurred()) SWIG_fail; | |
10215 | } | |
10216 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10217 | return resultobj; | |
10218 | fail: | |
10219 | return NULL; | |
10220 | } | |
10221 | ||
10222 | ||
10223 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10224 | PyObject *resultobj = 0; | |
10225 | wxImage *arg1 = 0 ; | |
10226 | wxCursor *result = 0 ; | |
10227 | void *argp1 = 0 ; | |
10228 | int res1 = 0 ; | |
10229 | PyObject * obj0 = 0 ; | |
10230 | char * kwnames[] = { | |
10231 | (char *) "image", NULL | |
10232 | }; | |
10233 | ||
10234 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
10235 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
10236 | if (!SWIG_IsOK(res1)) { | |
10237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10238 | } | |
10239 | if (!argp1) { | |
10240 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10241 | } | |
10242 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
10243 | { | |
10244 | if (!wxPyCheckForApp()) SWIG_fail; | |
10245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10246 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
10247 | wxPyEndAllowThreads(__tstate); | |
10248 | if (PyErr_Occurred()) SWIG_fail; | |
10249 | } | |
10250 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10251 | return resultobj; | |
10252 | fail: | |
10253 | return NULL; | |
d55e5bfc RD |
10254 | } |
10255 | ||
10256 | ||
554f62e9 RD |
10257 | SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10258 | PyObject *resultobj = 0; | |
10259 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10260 | long result; | |
10261 | void *argp1 = 0 ; | |
10262 | int res1 = 0 ; | |
10263 | PyObject *swig_obj[1] ; | |
10264 | ||
10265 | if (!args) SWIG_fail; | |
10266 | swig_obj[0] = args; | |
10267 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10268 | if (!SWIG_IsOK(res1)) { | |
10269 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10270 | } | |
10271 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10272 | { | |
10273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10274 | result = (long)(arg1)->GetHandle(); | |
10275 | wxPyEndAllowThreads(__tstate); | |
10276 | if (PyErr_Occurred()) SWIG_fail; | |
10277 | } | |
10278 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
10279 | return resultobj; | |
10280 | fail: | |
10281 | return NULL; | |
10282 | } | |
10283 | ||
10284 | ||
10285 | SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10286 | PyObject *resultobj = 0; | |
10287 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10288 | long arg2 ; | |
10289 | void *argp1 = 0 ; | |
10290 | int res1 = 0 ; | |
10291 | long val2 ; | |
10292 | int ecode2 = 0 ; | |
10293 | PyObject * obj0 = 0 ; | |
10294 | PyObject * obj1 = 0 ; | |
10295 | char * kwnames[] = { | |
10296 | (char *) "self",(char *) "handle", NULL | |
10297 | }; | |
10298 | ||
10299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
10300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10301 | if (!SWIG_IsOK(res1)) { | |
10302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10303 | } | |
10304 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10305 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10306 | if (!SWIG_IsOK(ecode2)) { | |
10307 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
10308 | } | |
10309 | arg2 = static_cast< long >(val2); | |
10310 | { | |
10311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10312 | wxCursor_SetHandle(arg1,arg2); | |
10313 | wxPyEndAllowThreads(__tstate); | |
10314 | if (PyErr_Occurred()) SWIG_fail; | |
10315 | } | |
10316 | resultobj = SWIG_Py_Void(); | |
10317 | return resultobj; | |
10318 | fail: | |
10319 | return NULL; | |
d55e5bfc RD |
10320 | } |
10321 | ||
10322 | ||
b39fe951 | 10323 | SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
10324 | PyObject *resultobj = 0; |
10325 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10326 | bool result; | |
10327 | void *argp1 = 0 ; | |
10328 | int res1 = 0 ; | |
10329 | PyObject *swig_obj[1] ; | |
10330 | ||
10331 | if (!args) SWIG_fail; | |
10332 | swig_obj[0] = args; | |
10333 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10334 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 10335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'"); |
554f62e9 RD |
10336 | } |
10337 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10338 | { | |
10339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 10340 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
10341 | wxPyEndAllowThreads(__tstate); |
10342 | if (PyErr_Occurred()) SWIG_fail; | |
10343 | } | |
10344 | { | |
10345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10346 | } | |
10347 | return resultobj; | |
10348 | fail: | |
10349 | return NULL; | |
d55e5bfc RD |
10350 | } |
10351 | ||
10352 | ||
554f62e9 RD |
10353 | SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10354 | PyObject *resultobj = 0; | |
10355 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10356 | int result; | |
10357 | void *argp1 = 0 ; | |
10358 | int res1 = 0 ; | |
10359 | PyObject *swig_obj[1] ; | |
10360 | ||
10361 | if (!args) SWIG_fail; | |
10362 | swig_obj[0] = args; | |
10363 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10364 | if (!SWIG_IsOK(res1)) { | |
10365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10366 | } | |
10367 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10368 | { | |
10369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10370 | result = (int)(arg1)->GetWidth(); | |
10371 | wxPyEndAllowThreads(__tstate); | |
10372 | if (PyErr_Occurred()) SWIG_fail; | |
10373 | } | |
10374 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10375 | return resultobj; | |
10376 | fail: | |
10377 | return NULL; | |
d55e5bfc RD |
10378 | } |
10379 | ||
10380 | ||
554f62e9 RD |
10381 | SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10382 | PyObject *resultobj = 0; | |
10383 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10384 | int result; | |
10385 | void *argp1 = 0 ; | |
10386 | int res1 = 0 ; | |
10387 | PyObject *swig_obj[1] ; | |
10388 | ||
10389 | if (!args) SWIG_fail; | |
10390 | swig_obj[0] = args; | |
10391 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10392 | if (!SWIG_IsOK(res1)) { | |
10393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10394 | } | |
10395 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10396 | { | |
10397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10398 | result = (int)(arg1)->GetHeight(); | |
10399 | wxPyEndAllowThreads(__tstate); | |
10400 | if (PyErr_Occurred()) SWIG_fail; | |
10401 | } | |
10402 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10403 | return resultobj; | |
10404 | fail: | |
10405 | return NULL; | |
d55e5bfc RD |
10406 | } |
10407 | ||
10408 | ||
554f62e9 RD |
10409 | SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10410 | PyObject *resultobj = 0; | |
10411 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10412 | int result; | |
10413 | void *argp1 = 0 ; | |
10414 | int res1 = 0 ; | |
10415 | PyObject *swig_obj[1] ; | |
10416 | ||
10417 | if (!args) SWIG_fail; | |
10418 | swig_obj[0] = args; | |
10419 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10420 | if (!SWIG_IsOK(res1)) { | |
10421 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10422 | } | |
10423 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10424 | { | |
10425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10426 | result = (int)(arg1)->GetDepth(); | |
10427 | wxPyEndAllowThreads(__tstate); | |
10428 | if (PyErr_Occurred()) SWIG_fail; | |
10429 | } | |
10430 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10431 | return resultobj; | |
10432 | fail: | |
10433 | return NULL; | |
10434 | } | |
10435 | ||
10436 | ||
10437 | SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10438 | PyObject *resultobj = 0; | |
10439 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10440 | int arg2 ; | |
10441 | void *argp1 = 0 ; | |
10442 | int res1 = 0 ; | |
10443 | int val2 ; | |
10444 | int ecode2 = 0 ; | |
10445 | PyObject * obj0 = 0 ; | |
10446 | PyObject * obj1 = 0 ; | |
10447 | char * kwnames[] = { | |
10448 | (char *) "self",(char *) "w", NULL | |
10449 | }; | |
10450 | ||
10451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
10452 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10453 | if (!SWIG_IsOK(res1)) { | |
10454 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10455 | } | |
10456 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10457 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10458 | if (!SWIG_IsOK(ecode2)) { | |
10459 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
10460 | } | |
10461 | arg2 = static_cast< int >(val2); | |
10462 | { | |
10463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10464 | (arg1)->SetWidth(arg2); | |
10465 | wxPyEndAllowThreads(__tstate); | |
10466 | if (PyErr_Occurred()) SWIG_fail; | |
10467 | } | |
10468 | resultobj = SWIG_Py_Void(); | |
10469 | return resultobj; | |
10470 | fail: | |
10471 | return NULL; | |
10472 | } | |
10473 | ||
10474 | ||
10475 | SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10476 | PyObject *resultobj = 0; | |
10477 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10478 | int arg2 ; | |
10479 | void *argp1 = 0 ; | |
10480 | int res1 = 0 ; | |
10481 | int val2 ; | |
10482 | int ecode2 = 0 ; | |
10483 | PyObject * obj0 = 0 ; | |
10484 | PyObject * obj1 = 0 ; | |
10485 | char * kwnames[] = { | |
10486 | (char *) "self",(char *) "h", NULL | |
10487 | }; | |
10488 | ||
10489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
10490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10491 | if (!SWIG_IsOK(res1)) { | |
10492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10493 | } | |
10494 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10495 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10496 | if (!SWIG_IsOK(ecode2)) { | |
10497 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
10498 | } | |
10499 | arg2 = static_cast< int >(val2); | |
10500 | { | |
10501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10502 | (arg1)->SetHeight(arg2); | |
10503 | wxPyEndAllowThreads(__tstate); | |
10504 | if (PyErr_Occurred()) SWIG_fail; | |
10505 | } | |
10506 | resultobj = SWIG_Py_Void(); | |
10507 | return resultobj; | |
10508 | fail: | |
10509 | return NULL; | |
10510 | } | |
10511 | ||
10512 | ||
10513 | SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10514 | PyObject *resultobj = 0; | |
10515 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10516 | int arg2 ; | |
10517 | void *argp1 = 0 ; | |
10518 | int res1 = 0 ; | |
10519 | int val2 ; | |
10520 | int ecode2 = 0 ; | |
10521 | PyObject * obj0 = 0 ; | |
10522 | PyObject * obj1 = 0 ; | |
10523 | char * kwnames[] = { | |
10524 | (char *) "self",(char *) "d", NULL | |
10525 | }; | |
10526 | ||
10527 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
10528 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10529 | if (!SWIG_IsOK(res1)) { | |
10530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10531 | } | |
10532 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10533 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10534 | if (!SWIG_IsOK(ecode2)) { | |
10535 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
10536 | } | |
10537 | arg2 = static_cast< int >(val2); | |
10538 | { | |
10539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10540 | (arg1)->SetDepth(arg2); | |
10541 | wxPyEndAllowThreads(__tstate); | |
10542 | if (PyErr_Occurred()) SWIG_fail; | |
10543 | } | |
10544 | resultobj = SWIG_Py_Void(); | |
10545 | return resultobj; | |
10546 | fail: | |
10547 | return NULL; | |
10548 | } | |
10549 | ||
10550 | ||
10551 | SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10552 | PyObject *resultobj = 0; | |
10553 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10554 | wxSize *arg2 = 0 ; | |
10555 | void *argp1 = 0 ; | |
10556 | int res1 = 0 ; | |
10557 | wxSize temp2 ; | |
10558 | PyObject * obj0 = 0 ; | |
10559 | PyObject * obj1 = 0 ; | |
10560 | char * kwnames[] = { | |
10561 | (char *) "self",(char *) "size", NULL | |
10562 | }; | |
10563 | ||
10564 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10565 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10566 | if (!SWIG_IsOK(res1)) { | |
10567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10568 | } | |
10569 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10570 | { | |
10571 | arg2 = &temp2; | |
10572 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10573 | } | |
10574 | { | |
10575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10576 | (arg1)->SetSize((wxSize const &)*arg2); | |
10577 | wxPyEndAllowThreads(__tstate); | |
10578 | if (PyErr_Occurred()) SWIG_fail; | |
10579 | } | |
10580 | resultobj = SWIG_Py_Void(); | |
10581 | return resultobj; | |
10582 | fail: | |
10583 | return NULL; | |
10584 | } | |
10585 | ||
10586 | ||
10587 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10588 | PyObject *obj; | |
10589 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10590 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
10591 | return SWIG_Py_Void(); | |
10592 | } | |
10593 | ||
10594 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10595 | return SWIG_Python_InitShadowInstance(args); | |
10596 | } | |
10597 | ||
10598 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10599 | PyObject *resultobj = 0; | |
10600 | int arg1 = (int) 0 ; | |
10601 | int arg2 = (int) 0 ; | |
10602 | int arg3 = (int) 0 ; | |
10603 | int arg4 = (int) 0 ; | |
10604 | wxRegion *result = 0 ; | |
10605 | int val1 ; | |
10606 | int ecode1 = 0 ; | |
10607 | int val2 ; | |
10608 | int ecode2 = 0 ; | |
10609 | int val3 ; | |
10610 | int ecode3 = 0 ; | |
10611 | int val4 ; | |
10612 | int ecode4 = 0 ; | |
10613 | PyObject * obj0 = 0 ; | |
10614 | PyObject * obj1 = 0 ; | |
10615 | PyObject * obj2 = 0 ; | |
10616 | PyObject * obj3 = 0 ; | |
10617 | char * kwnames[] = { | |
10618 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10619 | }; | |
10620 | ||
10621 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10622 | if (obj0) { | |
10623 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10624 | if (!SWIG_IsOK(ecode1)) { | |
10625 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
10626 | } | |
10627 | arg1 = static_cast< int >(val1); | |
10628 | } | |
10629 | if (obj1) { | |
10630 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10631 | if (!SWIG_IsOK(ecode2)) { | |
10632 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
10633 | } | |
10634 | arg2 = static_cast< int >(val2); | |
10635 | } | |
10636 | if (obj2) { | |
10637 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10638 | if (!SWIG_IsOK(ecode3)) { | |
10639 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
10640 | } | |
10641 | arg3 = static_cast< int >(val3); | |
10642 | } | |
10643 | if (obj3) { | |
10644 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10645 | if (!SWIG_IsOK(ecode4)) { | |
10646 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
10647 | } | |
10648 | arg4 = static_cast< int >(val4); | |
10649 | } | |
10650 | { | |
10651 | if (!wxPyCheckForApp()) SWIG_fail; | |
10652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10653 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
10654 | wxPyEndAllowThreads(__tstate); | |
10655 | if (PyErr_Occurred()) SWIG_fail; | |
10656 | } | |
10657 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
10658 | return resultobj; | |
10659 | fail: | |
10660 | return NULL; | |
10661 | } | |
10662 | ||
10663 | ||
10664 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10665 | PyObject *resultobj = 0; | |
10666 | wxBitmap *arg1 = 0 ; | |
10667 | wxRegion *result = 0 ; | |
10668 | void *argp1 = 0 ; | |
10669 | int res1 = 0 ; | |
10670 | PyObject * obj0 = 0 ; | |
10671 | char * kwnames[] = { | |
10672 | (char *) "bmp", NULL | |
10673 | }; | |
10674 | ||
10675 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
10676 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10677 | if (!SWIG_IsOK(res1)) { | |
10678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10679 | } | |
10680 | if (!argp1) { | |
10681 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10682 | } | |
10683 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10684 | { | |
10685 | if (!wxPyCheckForApp()) SWIG_fail; | |
10686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10687 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
10688 | wxPyEndAllowThreads(__tstate); | |
10689 | if (PyErr_Occurred()) SWIG_fail; | |
10690 | } | |
10691 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10692 | return resultobj; | |
10693 | fail: | |
10694 | return NULL; | |
10695 | } | |
10696 | ||
10697 | ||
10698 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10699 | PyObject *resultobj = 0; | |
10700 | wxBitmap *arg1 = 0 ; | |
10701 | wxColour *arg2 = 0 ; | |
10702 | int arg3 = (int) 0 ; | |
10703 | wxRegion *result = 0 ; | |
10704 | void *argp1 = 0 ; | |
10705 | int res1 = 0 ; | |
10706 | wxColour temp2 ; | |
10707 | int val3 ; | |
10708 | int ecode3 = 0 ; | |
10709 | PyObject * obj0 = 0 ; | |
10710 | PyObject * obj1 = 0 ; | |
10711 | PyObject * obj2 = 0 ; | |
10712 | char * kwnames[] = { | |
10713 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
10714 | }; | |
10715 | ||
10716 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10717 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
10718 | if (!SWIG_IsOK(res1)) { | |
10719 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10720 | } | |
10721 | if (!argp1) { | |
10722 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
10723 | } | |
10724 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
10725 | { | |
10726 | arg2 = &temp2; | |
10727 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
10728 | } | |
10729 | if (obj2) { | |
10730 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10731 | if (!SWIG_IsOK(ecode3)) { | |
10732 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'"); | |
10733 | } | |
10734 | arg3 = static_cast< int >(val3); | |
10735 | } | |
10736 | { | |
10737 | if (!wxPyCheckForApp()) SWIG_fail; | |
10738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10739 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
10740 | wxPyEndAllowThreads(__tstate); | |
10741 | if (PyErr_Occurred()) SWIG_fail; | |
10742 | } | |
10743 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10744 | return resultobj; | |
10745 | fail: | |
10746 | return NULL; | |
10747 | } | |
10748 | ||
10749 | ||
10750 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10751 | PyObject *resultobj = 0; | |
10752 | int arg1 ; | |
10753 | wxPoint *arg2 = (wxPoint *) 0 ; | |
10754 | int arg3 = (int) wxWINDING_RULE ; | |
10755 | wxRegion *result = 0 ; | |
10756 | int val3 ; | |
10757 | int ecode3 = 0 ; | |
10758 | PyObject * obj0 = 0 ; | |
10759 | PyObject * obj1 = 0 ; | |
10760 | char * kwnames[] = { | |
10761 | (char *) "points",(char *) "fillStyle", NULL | |
10762 | }; | |
10763 | ||
10764 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
10765 | { | |
10766 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
10767 | if (arg2 == NULL) SWIG_fail; | |
10768 | } | |
10769 | if (obj1) { | |
10770 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
10771 | if (!SWIG_IsOK(ecode3)) { | |
10772 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
10773 | } | |
10774 | arg3 = static_cast< int >(val3); | |
10775 | } | |
10776 | { | |
10777 | if (!wxPyCheckForApp()) SWIG_fail; | |
10778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10779 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
10780 | wxPyEndAllowThreads(__tstate); | |
10781 | if (PyErr_Occurred()) SWIG_fail; | |
10782 | } | |
10783 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
10784 | { | |
10785 | if (arg2) delete [] arg2; | |
10786 | } | |
10787 | return resultobj; | |
10788 | fail: | |
10789 | { | |
10790 | if (arg2) delete [] arg2; | |
10791 | } | |
10792 | return NULL; | |
d55e5bfc RD |
10793 | } |
10794 | ||
10795 | ||
554f62e9 RD |
10796 | SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10797 | PyObject *resultobj = 0; | |
10798 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10799 | void *argp1 = 0 ; | |
10800 | int res1 = 0 ; | |
10801 | PyObject *swig_obj[1] ; | |
10802 | ||
10803 | if (!args) SWIG_fail; | |
10804 | swig_obj[0] = args; | |
10805 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 ); | |
10806 | if (!SWIG_IsOK(res1)) { | |
10807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10808 | } | |
10809 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10810 | { | |
10811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10812 | delete arg1; | |
d55e5bfc | 10813 | |
554f62e9 RD |
10814 | wxPyEndAllowThreads(__tstate); |
10815 | if (PyErr_Occurred()) SWIG_fail; | |
10816 | } | |
10817 | resultobj = SWIG_Py_Void(); | |
10818 | return resultobj; | |
10819 | fail: | |
10820 | return NULL; | |
d55e5bfc RD |
10821 | } |
10822 | ||
10823 | ||
554f62e9 RD |
10824 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10825 | PyObject *resultobj = 0; | |
10826 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10827 | void *argp1 = 0 ; | |
10828 | int res1 = 0 ; | |
10829 | PyObject *swig_obj[1] ; | |
10830 | ||
10831 | if (!args) SWIG_fail; | |
10832 | swig_obj[0] = args; | |
10833 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10834 | if (!SWIG_IsOK(res1)) { | |
10835 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10836 | } | |
10837 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10838 | { | |
10839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10840 | (arg1)->Clear(); | |
10841 | wxPyEndAllowThreads(__tstate); | |
10842 | if (PyErr_Occurred()) SWIG_fail; | |
10843 | } | |
10844 | resultobj = SWIG_Py_Void(); | |
10845 | return resultobj; | |
10846 | fail: | |
10847 | return NULL; | |
10848 | } | |
10849 | ||
10850 | ||
10851 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10852 | PyObject *resultobj = 0; | |
10853 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10854 | int arg2 ; | |
10855 | int arg3 ; | |
10856 | bool result; | |
10857 | void *argp1 = 0 ; | |
10858 | int res1 = 0 ; | |
10859 | int val2 ; | |
10860 | int ecode2 = 0 ; | |
10861 | int val3 ; | |
10862 | int ecode3 = 0 ; | |
10863 | PyObject * obj0 = 0 ; | |
10864 | PyObject * obj1 = 0 ; | |
10865 | PyObject * obj2 = 0 ; | |
10866 | char * kwnames[] = { | |
10867 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10868 | }; | |
10869 | ||
10870 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10871 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10872 | if (!SWIG_IsOK(res1)) { | |
10873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10874 | } | |
10875 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10876 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10877 | if (!SWIG_IsOK(ecode2)) { | |
10878 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
10879 | } | |
10880 | arg2 = static_cast< int >(val2); | |
10881 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10882 | if (!SWIG_IsOK(ecode3)) { | |
10883 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
10884 | } | |
10885 | arg3 = static_cast< int >(val3); | |
10886 | { | |
10887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10888 | result = (bool)(arg1)->Offset(arg2,arg3); | |
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_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10902 | PyObject *resultobj = 0; | |
10903 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10904 | int arg2 ; | |
10905 | int arg3 ; | |
10906 | wxRegionContain result; | |
10907 | void *argp1 = 0 ; | |
10908 | int res1 = 0 ; | |
10909 | int val2 ; | |
10910 | int ecode2 = 0 ; | |
10911 | int val3 ; | |
10912 | int ecode3 = 0 ; | |
10913 | PyObject * obj0 = 0 ; | |
10914 | PyObject * obj1 = 0 ; | |
10915 | PyObject * obj2 = 0 ; | |
10916 | char * kwnames[] = { | |
10917 | (char *) "self",(char *) "x",(char *) "y", NULL | |
10918 | }; | |
10919 | ||
10920 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10921 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10922 | if (!SWIG_IsOK(res1)) { | |
10923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10924 | } | |
10925 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10926 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10927 | if (!SWIG_IsOK(ecode2)) { | |
10928 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
10929 | } | |
10930 | arg2 = static_cast< int >(val2); | |
10931 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10932 | if (!SWIG_IsOK(ecode3)) { | |
10933 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
10934 | } | |
10935 | arg3 = static_cast< int >(val3); | |
10936 | { | |
10937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10938 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
10939 | wxPyEndAllowThreads(__tstate); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | } | |
10942 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10943 | return resultobj; | |
10944 | fail: | |
10945 | return NULL; | |
10946 | } | |
10947 | ||
10948 | ||
10949 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10950 | PyObject *resultobj = 0; | |
10951 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10952 | wxPoint *arg2 = 0 ; | |
10953 | wxRegionContain result; | |
10954 | void *argp1 = 0 ; | |
10955 | int res1 = 0 ; | |
10956 | wxPoint temp2 ; | |
10957 | PyObject * obj0 = 0 ; | |
10958 | PyObject * obj1 = 0 ; | |
10959 | char * kwnames[] = { | |
10960 | (char *) "self",(char *) "pt", NULL | |
10961 | }; | |
10962 | ||
10963 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
10964 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
10965 | if (!SWIG_IsOK(res1)) { | |
10966 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
10967 | } | |
10968 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
10969 | { | |
10970 | arg2 = &temp2; | |
10971 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
10972 | } | |
10973 | { | |
10974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10975 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
10976 | wxPyEndAllowThreads(__tstate); | |
10977 | if (PyErr_Occurred()) SWIG_fail; | |
10978 | } | |
10979 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10980 | return resultobj; | |
10981 | fail: | |
10982 | return NULL; | |
10983 | } | |
10984 | ||
10985 | ||
10986 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10987 | PyObject *resultobj = 0; | |
10988 | wxRegion *arg1 = (wxRegion *) 0 ; | |
10989 | wxRect *arg2 = 0 ; | |
10990 | wxRegionContain result; | |
10991 | void *argp1 = 0 ; | |
10992 | int res1 = 0 ; | |
10993 | wxRect temp2 ; | |
10994 | PyObject * obj0 = 0 ; | |
10995 | PyObject * obj1 = 0 ; | |
10996 | char * kwnames[] = { | |
10997 | (char *) "self",(char *) "rect", NULL | |
10998 | }; | |
10999 | ||
11000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11002 | if (!SWIG_IsOK(res1)) { | |
11003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11004 | } | |
11005 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11006 | { | |
11007 | arg2 = &temp2; | |
11008 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11009 | } | |
11010 | { | |
11011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11012 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
11013 | wxPyEndAllowThreads(__tstate); | |
11014 | if (PyErr_Occurred()) SWIG_fail; | |
11015 | } | |
11016 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11017 | return resultobj; | |
11018 | fail: | |
11019 | return NULL; | |
11020 | } | |
11021 | ||
11022 | ||
11023 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11024 | PyObject *resultobj = 0; | |
11025 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11026 | int arg2 ; | |
11027 | int arg3 ; | |
11028 | int arg4 ; | |
11029 | int arg5 ; | |
11030 | wxRegionContain result; | |
11031 | void *argp1 = 0 ; | |
11032 | int res1 = 0 ; | |
11033 | int val2 ; | |
11034 | int ecode2 = 0 ; | |
11035 | int val3 ; | |
11036 | int ecode3 = 0 ; | |
11037 | int val4 ; | |
11038 | int ecode4 = 0 ; | |
11039 | int val5 ; | |
11040 | int ecode5 = 0 ; | |
11041 | PyObject * obj0 = 0 ; | |
11042 | PyObject * obj1 = 0 ; | |
11043 | PyObject * obj2 = 0 ; | |
11044 | PyObject * obj3 = 0 ; | |
11045 | PyObject * obj4 = 0 ; | |
11046 | char * kwnames[] = { | |
11047 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
11048 | }; | |
11049 | ||
11050 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11051 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11052 | if (!SWIG_IsOK(res1)) { | |
11053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11054 | } | |
11055 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11056 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11057 | if (!SWIG_IsOK(ecode2)) { | |
11058 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
11059 | } | |
11060 | arg2 = static_cast< int >(val2); | |
11061 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11062 | if (!SWIG_IsOK(ecode3)) { | |
11063 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
11064 | } | |
11065 | arg3 = static_cast< int >(val3); | |
11066 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11067 | if (!SWIG_IsOK(ecode4)) { | |
11068 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
11069 | } | |
11070 | arg4 = static_cast< int >(val4); | |
11071 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11072 | if (!SWIG_IsOK(ecode5)) { | |
11073 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
11074 | } | |
11075 | arg5 = static_cast< int >(val5); | |
11076 | { | |
11077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11078 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
11079 | wxPyEndAllowThreads(__tstate); | |
11080 | if (PyErr_Occurred()) SWIG_fail; | |
11081 | } | |
11082 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11083 | return resultobj; | |
11084 | fail: | |
11085 | return NULL; | |
d55e5bfc RD |
11086 | } |
11087 | ||
11088 | ||
554f62e9 RD |
11089 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11090 | PyObject *resultobj = 0; | |
11091 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11092 | wxRect result; | |
11093 | void *argp1 = 0 ; | |
11094 | int res1 = 0 ; | |
11095 | PyObject *swig_obj[1] ; | |
11096 | ||
11097 | if (!args) SWIG_fail; | |
11098 | swig_obj[0] = args; | |
11099 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11100 | if (!SWIG_IsOK(res1)) { | |
11101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11102 | } | |
11103 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11104 | { | |
11105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11106 | result = (arg1)->GetBox(); | |
11107 | wxPyEndAllowThreads(__tstate); | |
11108 | if (PyErr_Occurred()) SWIG_fail; | |
11109 | } | |
11110 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11111 | return resultobj; | |
11112 | fail: | |
11113 | return NULL; | |
11114 | } | |
11115 | ||
11116 | ||
11117 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11118 | PyObject *resultobj = 0; | |
11119 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11120 | int arg2 ; | |
11121 | int arg3 ; | |
11122 | int arg4 ; | |
11123 | int arg5 ; | |
11124 | bool result; | |
11125 | void *argp1 = 0 ; | |
11126 | int res1 = 0 ; | |
11127 | int val2 ; | |
11128 | int ecode2 = 0 ; | |
11129 | int val3 ; | |
11130 | int ecode3 = 0 ; | |
11131 | int val4 ; | |
11132 | int ecode4 = 0 ; | |
11133 | int val5 ; | |
11134 | int ecode5 = 0 ; | |
11135 | PyObject * obj0 = 0 ; | |
11136 | PyObject * obj1 = 0 ; | |
11137 | PyObject * obj2 = 0 ; | |
11138 | PyObject * obj3 = 0 ; | |
11139 | PyObject * obj4 = 0 ; | |
11140 | char * kwnames[] = { | |
11141 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11142 | }; | |
11143 | ||
11144 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11145 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11146 | if (!SWIG_IsOK(res1)) { | |
11147 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11148 | } | |
11149 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11150 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11151 | if (!SWIG_IsOK(ecode2)) { | |
11152 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
11153 | } | |
11154 | arg2 = static_cast< int >(val2); | |
11155 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11156 | if (!SWIG_IsOK(ecode3)) { | |
11157 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
11158 | } | |
11159 | arg3 = static_cast< int >(val3); | |
11160 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11161 | if (!SWIG_IsOK(ecode4)) { | |
11162 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
11163 | } | |
11164 | arg4 = static_cast< int >(val4); | |
11165 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11166 | if (!SWIG_IsOK(ecode5)) { | |
11167 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
11168 | } | |
11169 | arg5 = static_cast< int >(val5); | |
11170 | { | |
11171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11172 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
11173 | wxPyEndAllowThreads(__tstate); | |
11174 | if (PyErr_Occurred()) SWIG_fail; | |
11175 | } | |
11176 | { | |
11177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11178 | } | |
11179 | return resultobj; | |
11180 | fail: | |
11181 | return NULL; | |
11182 | } | |
11183 | ||
11184 | ||
11185 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11186 | PyObject *resultobj = 0; | |
11187 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11188 | wxRect *arg2 = 0 ; | |
11189 | bool result; | |
11190 | void *argp1 = 0 ; | |
11191 | int res1 = 0 ; | |
11192 | wxRect temp2 ; | |
11193 | PyObject * obj0 = 0 ; | |
11194 | PyObject * obj1 = 0 ; | |
11195 | char * kwnames[] = { | |
11196 | (char *) "self",(char *) "rect", NULL | |
11197 | }; | |
11198 | ||
11199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11201 | if (!SWIG_IsOK(res1)) { | |
11202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11203 | } | |
11204 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11205 | { | |
11206 | arg2 = &temp2; | |
11207 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11208 | } | |
11209 | { | |
11210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11211 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
11212 | wxPyEndAllowThreads(__tstate); | |
11213 | if (PyErr_Occurred()) SWIG_fail; | |
11214 | } | |
11215 | { | |
11216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11217 | } | |
11218 | return resultobj; | |
11219 | fail: | |
11220 | return NULL; | |
11221 | } | |
11222 | ||
11223 | ||
11224 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11225 | PyObject *resultobj = 0; | |
11226 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11227 | wxRegion *arg2 = 0 ; | |
11228 | bool result; | |
11229 | void *argp1 = 0 ; | |
11230 | int res1 = 0 ; | |
11231 | void *argp2 = 0 ; | |
11232 | int res2 = 0 ; | |
11233 | PyObject * obj0 = 0 ; | |
11234 | PyObject * obj1 = 0 ; | |
11235 | char * kwnames[] = { | |
11236 | (char *) "self",(char *) "region", NULL | |
11237 | }; | |
11238 | ||
11239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11240 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11241 | if (!SWIG_IsOK(res1)) { | |
11242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11243 | } | |
11244 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11245 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11246 | if (!SWIG_IsOK(res2)) { | |
11247 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11248 | } | |
11249 | if (!argp2) { | |
11250 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11251 | } | |
11252 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11253 | { | |
11254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11255 | result = (bool)(arg1)->Intersect((wxRegion const &)*arg2); | |
11256 | wxPyEndAllowThreads(__tstate); | |
11257 | if (PyErr_Occurred()) SWIG_fail; | |
11258 | } | |
11259 | { | |
11260 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11261 | } | |
11262 | return resultobj; | |
11263 | fail: | |
11264 | return NULL; | |
d55e5bfc RD |
11265 | } |
11266 | ||
11267 | ||
554f62e9 RD |
11268 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11269 | PyObject *resultobj = 0; | |
11270 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11271 | bool result; | |
11272 | void *argp1 = 0 ; | |
11273 | int res1 = 0 ; | |
11274 | PyObject *swig_obj[1] ; | |
11275 | ||
11276 | if (!args) SWIG_fail; | |
11277 | swig_obj[0] = args; | |
11278 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11279 | if (!SWIG_IsOK(res1)) { | |
11280 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11281 | } | |
11282 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11283 | { | |
11284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11285 | result = (bool)(arg1)->IsEmpty(); | |
11286 | wxPyEndAllowThreads(__tstate); | |
11287 | if (PyErr_Occurred()) SWIG_fail; | |
11288 | } | |
11289 | { | |
11290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11291 | } | |
11292 | return resultobj; | |
11293 | fail: | |
11294 | return NULL; | |
11295 | } | |
11296 | ||
11297 | ||
f5263701 RD |
11298 | SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11299 | PyObject *resultobj = 0; | |
11300 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11301 | wxRegion *arg2 = 0 ; | |
11302 | bool result; | |
11303 | void *argp1 = 0 ; | |
11304 | int res1 = 0 ; | |
11305 | void *argp2 = 0 ; | |
11306 | int res2 = 0 ; | |
11307 | PyObject * obj0 = 0 ; | |
11308 | PyObject * obj1 = 0 ; | |
11309 | char * kwnames[] = { | |
11310 | (char *) "self",(char *) "region", NULL | |
11311 | }; | |
11312 | ||
11313 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; | |
11314 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11315 | if (!SWIG_IsOK(res1)) { | |
11316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'"); | |
11317 | } | |
11318 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11319 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11320 | if (!SWIG_IsOK(res2)) { | |
11321 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11322 | } | |
11323 | if (!argp2) { | |
11324 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11325 | } | |
11326 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11327 | { | |
11328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11329 | result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2); | |
11330 | wxPyEndAllowThreads(__tstate); | |
11331 | if (PyErr_Occurred()) SWIG_fail; | |
11332 | } | |
11333 | { | |
11334 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11335 | } | |
11336 | return resultobj; | |
11337 | fail: | |
11338 | return NULL; | |
11339 | } | |
11340 | ||
11341 | ||
554f62e9 RD |
11342 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11343 | PyObject *resultobj = 0; | |
11344 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11345 | int arg2 ; | |
11346 | int arg3 ; | |
11347 | int arg4 ; | |
11348 | int arg5 ; | |
11349 | bool result; | |
11350 | void *argp1 = 0 ; | |
11351 | int res1 = 0 ; | |
11352 | int val2 ; | |
11353 | int ecode2 = 0 ; | |
11354 | int val3 ; | |
11355 | int ecode3 = 0 ; | |
11356 | int val4 ; | |
11357 | int ecode4 = 0 ; | |
11358 | int val5 ; | |
11359 | int ecode5 = 0 ; | |
11360 | PyObject * obj0 = 0 ; | |
11361 | PyObject * obj1 = 0 ; | |
11362 | PyObject * obj2 = 0 ; | |
11363 | PyObject * obj3 = 0 ; | |
11364 | PyObject * obj4 = 0 ; | |
11365 | char * kwnames[] = { | |
11366 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11367 | }; | |
11368 | ||
11369 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11370 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11371 | if (!SWIG_IsOK(res1)) { | |
11372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11373 | } | |
11374 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11375 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11376 | if (!SWIG_IsOK(ecode2)) { | |
11377 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
11378 | } | |
11379 | arg2 = static_cast< int >(val2); | |
11380 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11381 | if (!SWIG_IsOK(ecode3)) { | |
11382 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
11383 | } | |
11384 | arg3 = static_cast< int >(val3); | |
11385 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11386 | if (!SWIG_IsOK(ecode4)) { | |
11387 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
11388 | } | |
11389 | arg4 = static_cast< int >(val4); | |
11390 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11391 | if (!SWIG_IsOK(ecode5)) { | |
11392 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
11393 | } | |
11394 | arg5 = static_cast< int >(val5); | |
11395 | { | |
11396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11397 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
11398 | wxPyEndAllowThreads(__tstate); | |
11399 | if (PyErr_Occurred()) SWIG_fail; | |
11400 | } | |
11401 | { | |
11402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11403 | } | |
11404 | return resultobj; | |
11405 | fail: | |
11406 | return NULL; | |
11407 | } | |
11408 | ||
11409 | ||
11410 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11411 | PyObject *resultobj = 0; | |
11412 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11413 | wxRect *arg2 = 0 ; | |
11414 | bool result; | |
11415 | void *argp1 = 0 ; | |
11416 | int res1 = 0 ; | |
11417 | wxRect temp2 ; | |
11418 | PyObject * obj0 = 0 ; | |
11419 | PyObject * obj1 = 0 ; | |
11420 | char * kwnames[] = { | |
11421 | (char *) "self",(char *) "rect", NULL | |
11422 | }; | |
11423 | ||
11424 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11425 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11426 | if (!SWIG_IsOK(res1)) { | |
11427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11428 | } | |
11429 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11430 | { | |
11431 | arg2 = &temp2; | |
11432 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11433 | } | |
11434 | { | |
11435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11436 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
11437 | wxPyEndAllowThreads(__tstate); | |
11438 | if (PyErr_Occurred()) SWIG_fail; | |
11439 | } | |
11440 | { | |
11441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11442 | } | |
11443 | return resultobj; | |
11444 | fail: | |
11445 | return NULL; | |
11446 | } | |
11447 | ||
11448 | ||
11449 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11450 | PyObject *resultobj = 0; | |
11451 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11452 | wxRegion *arg2 = 0 ; | |
11453 | bool result; | |
11454 | void *argp1 = 0 ; | |
11455 | int res1 = 0 ; | |
11456 | void *argp2 = 0 ; | |
11457 | int res2 = 0 ; | |
11458 | PyObject * obj0 = 0 ; | |
11459 | PyObject * obj1 = 0 ; | |
11460 | char * kwnames[] = { | |
11461 | (char *) "self",(char *) "region", NULL | |
11462 | }; | |
11463 | ||
11464 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11465 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11466 | if (!SWIG_IsOK(res1)) { | |
11467 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11468 | } | |
11469 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11470 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11471 | if (!SWIG_IsOK(res2)) { | |
11472 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11473 | } | |
11474 | if (!argp2) { | |
11475 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11476 | } | |
11477 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11478 | { | |
11479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11480 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
11481 | wxPyEndAllowThreads(__tstate); | |
11482 | if (PyErr_Occurred()) SWIG_fail; | |
11483 | } | |
11484 | { | |
11485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11486 | } | |
11487 | return resultobj; | |
11488 | fail: | |
11489 | return NULL; | |
11490 | } | |
11491 | ||
11492 | ||
11493 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11494 | PyObject *resultobj = 0; | |
11495 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11496 | int arg2 ; | |
11497 | int arg3 ; | |
11498 | int arg4 ; | |
11499 | int arg5 ; | |
11500 | bool result; | |
11501 | void *argp1 = 0 ; | |
11502 | int res1 = 0 ; | |
11503 | int val2 ; | |
11504 | int ecode2 = 0 ; | |
11505 | int val3 ; | |
11506 | int ecode3 = 0 ; | |
11507 | int val4 ; | |
11508 | int ecode4 = 0 ; | |
11509 | int val5 ; | |
11510 | int ecode5 = 0 ; | |
11511 | PyObject * obj0 = 0 ; | |
11512 | PyObject * obj1 = 0 ; | |
11513 | PyObject * obj2 = 0 ; | |
11514 | PyObject * obj3 = 0 ; | |
11515 | PyObject * obj4 = 0 ; | |
11516 | char * kwnames[] = { | |
11517 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11518 | }; | |
11519 | ||
11520 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11521 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11522 | if (!SWIG_IsOK(res1)) { | |
11523 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11524 | } | |
11525 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11526 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11527 | if (!SWIG_IsOK(ecode2)) { | |
11528 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
11529 | } | |
11530 | arg2 = static_cast< int >(val2); | |
11531 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11532 | if (!SWIG_IsOK(ecode3)) { | |
11533 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
11534 | } | |
11535 | arg3 = static_cast< int >(val3); | |
11536 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11537 | if (!SWIG_IsOK(ecode4)) { | |
11538 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
11539 | } | |
11540 | arg4 = static_cast< int >(val4); | |
11541 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11542 | if (!SWIG_IsOK(ecode5)) { | |
11543 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
11544 | } | |
11545 | arg5 = static_cast< int >(val5); | |
11546 | { | |
11547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11548 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
11549 | wxPyEndAllowThreads(__tstate); | |
11550 | if (PyErr_Occurred()) SWIG_fail; | |
11551 | } | |
11552 | { | |
11553 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11554 | } | |
11555 | return resultobj; | |
11556 | fail: | |
11557 | return NULL; | |
11558 | } | |
11559 | ||
11560 | ||
11561 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11562 | PyObject *resultobj = 0; | |
11563 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11564 | wxRect *arg2 = 0 ; | |
11565 | bool result; | |
11566 | void *argp1 = 0 ; | |
11567 | int res1 = 0 ; | |
11568 | wxRect temp2 ; | |
11569 | PyObject * obj0 = 0 ; | |
11570 | PyObject * obj1 = 0 ; | |
11571 | char * kwnames[] = { | |
11572 | (char *) "self",(char *) "rect", NULL | |
11573 | }; | |
11574 | ||
11575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11577 | if (!SWIG_IsOK(res1)) { | |
11578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11579 | } | |
11580 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11581 | { | |
11582 | arg2 = &temp2; | |
11583 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11584 | } | |
11585 | { | |
11586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11587 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
11588 | wxPyEndAllowThreads(__tstate); | |
11589 | if (PyErr_Occurred()) SWIG_fail; | |
11590 | } | |
11591 | { | |
11592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11593 | } | |
11594 | return resultobj; | |
11595 | fail: | |
11596 | return NULL; | |
11597 | } | |
11598 | ||
11599 | ||
11600 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11601 | PyObject *resultobj = 0; | |
11602 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11603 | wxRegion *arg2 = 0 ; | |
11604 | bool result; | |
11605 | void *argp1 = 0 ; | |
11606 | int res1 = 0 ; | |
11607 | void *argp2 = 0 ; | |
11608 | int res2 = 0 ; | |
11609 | PyObject * obj0 = 0 ; | |
11610 | PyObject * obj1 = 0 ; | |
11611 | char * kwnames[] = { | |
11612 | (char *) "self",(char *) "region", NULL | |
11613 | }; | |
11614 | ||
11615 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11616 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11617 | if (!SWIG_IsOK(res1)) { | |
11618 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11619 | } | |
11620 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11621 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11622 | if (!SWIG_IsOK(res2)) { | |
11623 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11624 | } | |
11625 | if (!argp2) { | |
11626 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11627 | } | |
11628 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11629 | { | |
11630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11631 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
11632 | wxPyEndAllowThreads(__tstate); | |
11633 | if (PyErr_Occurred()) SWIG_fail; | |
11634 | } | |
11635 | { | |
11636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11637 | } | |
11638 | return resultobj; | |
11639 | fail: | |
11640 | return NULL; | |
11641 | } | |
11642 | ||
11643 | ||
11644 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11645 | PyObject *resultobj = 0; | |
11646 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11647 | int arg2 ; | |
11648 | int arg3 ; | |
11649 | int arg4 ; | |
11650 | int arg5 ; | |
11651 | bool result; | |
11652 | void *argp1 = 0 ; | |
11653 | int res1 = 0 ; | |
11654 | int val2 ; | |
11655 | int ecode2 = 0 ; | |
11656 | int val3 ; | |
11657 | int ecode3 = 0 ; | |
11658 | int val4 ; | |
11659 | int ecode4 = 0 ; | |
11660 | int val5 ; | |
11661 | int ecode5 = 0 ; | |
11662 | PyObject * obj0 = 0 ; | |
11663 | PyObject * obj1 = 0 ; | |
11664 | PyObject * obj2 = 0 ; | |
11665 | PyObject * obj3 = 0 ; | |
11666 | PyObject * obj4 = 0 ; | |
11667 | char * kwnames[] = { | |
11668 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11669 | }; | |
11670 | ||
11671 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11672 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11673 | if (!SWIG_IsOK(res1)) { | |
11674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11675 | } | |
11676 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11677 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11678 | if (!SWIG_IsOK(ecode2)) { | |
11679 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
11680 | } | |
11681 | arg2 = static_cast< int >(val2); | |
11682 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11683 | if (!SWIG_IsOK(ecode3)) { | |
11684 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
11685 | } | |
11686 | arg3 = static_cast< int >(val3); | |
11687 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11688 | if (!SWIG_IsOK(ecode4)) { | |
11689 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
11690 | } | |
11691 | arg4 = static_cast< int >(val4); | |
11692 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11693 | if (!SWIG_IsOK(ecode5)) { | |
11694 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
11695 | } | |
11696 | arg5 = static_cast< int >(val5); | |
11697 | { | |
11698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11699 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
11700 | wxPyEndAllowThreads(__tstate); | |
11701 | if (PyErr_Occurred()) SWIG_fail; | |
11702 | } | |
11703 | { | |
11704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11705 | } | |
11706 | return resultobj; | |
11707 | fail: | |
11708 | return NULL; | |
11709 | } | |
11710 | ||
11711 | ||
11712 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11713 | PyObject *resultobj = 0; | |
11714 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11715 | wxRect *arg2 = 0 ; | |
11716 | bool result; | |
11717 | void *argp1 = 0 ; | |
11718 | int res1 = 0 ; | |
11719 | wxRect temp2 ; | |
11720 | PyObject * obj0 = 0 ; | |
11721 | PyObject * obj1 = 0 ; | |
11722 | char * kwnames[] = { | |
11723 | (char *) "self",(char *) "rect", NULL | |
11724 | }; | |
11725 | ||
11726 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11727 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11728 | if (!SWIG_IsOK(res1)) { | |
11729 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11730 | } | |
11731 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11732 | { | |
11733 | arg2 = &temp2; | |
11734 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11735 | } | |
11736 | { | |
11737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11738 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
11739 | wxPyEndAllowThreads(__tstate); | |
11740 | if (PyErr_Occurred()) SWIG_fail; | |
11741 | } | |
11742 | { | |
11743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11744 | } | |
11745 | return resultobj; | |
11746 | fail: | |
11747 | return NULL; | |
11748 | } | |
11749 | ||
11750 | ||
11751 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11752 | PyObject *resultobj = 0; | |
11753 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11754 | wxRegion *arg2 = 0 ; | |
11755 | bool result; | |
11756 | void *argp1 = 0 ; | |
11757 | int res1 = 0 ; | |
11758 | void *argp2 = 0 ; | |
11759 | int res2 = 0 ; | |
11760 | PyObject * obj0 = 0 ; | |
11761 | PyObject * obj1 = 0 ; | |
11762 | char * kwnames[] = { | |
11763 | (char *) "self",(char *) "region", NULL | |
11764 | }; | |
11765 | ||
11766 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11767 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11768 | if (!SWIG_IsOK(res1)) { | |
11769 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11770 | } | |
11771 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11772 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11773 | if (!SWIG_IsOK(res2)) { | |
11774 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11775 | } | |
11776 | if (!argp2) { | |
11777 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11778 | } | |
11779 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11780 | { | |
11781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11782 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
11783 | wxPyEndAllowThreads(__tstate); | |
11784 | if (PyErr_Occurred()) SWIG_fail; | |
11785 | } | |
11786 | { | |
11787 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11788 | } | |
11789 | return resultobj; | |
11790 | fail: | |
11791 | return NULL; | |
d55e5bfc RD |
11792 | } |
11793 | ||
11794 | ||
554f62e9 RD |
11795 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11796 | PyObject *resultobj = 0; | |
11797 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11798 | SwigValueWrapper<wxBitmap > result; | |
11799 | void *argp1 = 0 ; | |
11800 | int res1 = 0 ; | |
11801 | PyObject *swig_obj[1] ; | |
11802 | ||
11803 | if (!args) SWIG_fail; | |
11804 | swig_obj[0] = args; | |
11805 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11806 | if (!SWIG_IsOK(res1)) { | |
11807 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11808 | } | |
11809 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11810 | { | |
11811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11812 | result = (arg1)->ConvertToBitmap(); | |
11813 | wxPyEndAllowThreads(__tstate); | |
11814 | if (PyErr_Occurred()) SWIG_fail; | |
11815 | } | |
11816 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
11817 | return resultobj; | |
11818 | fail: | |
11819 | return NULL; | |
11820 | } | |
11821 | ||
11822 | ||
11823 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11824 | PyObject *resultobj = 0; | |
11825 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11826 | wxBitmap *arg2 = 0 ; | |
11827 | bool result; | |
11828 | void *argp1 = 0 ; | |
11829 | int res1 = 0 ; | |
11830 | void *argp2 = 0 ; | |
11831 | int res2 = 0 ; | |
11832 | PyObject * obj0 = 0 ; | |
11833 | PyObject * obj1 = 0 ; | |
11834 | char * kwnames[] = { | |
11835 | (char *) "self",(char *) "bmp", NULL | |
11836 | }; | |
11837 | ||
11838 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
11839 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11840 | if (!SWIG_IsOK(res1)) { | |
11841 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11842 | } | |
11843 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11844 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11845 | if (!SWIG_IsOK(res2)) { | |
11846 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11847 | } | |
11848 | if (!argp2) { | |
11849 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11850 | } | |
11851 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11852 | { | |
11853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11854 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
11855 | wxPyEndAllowThreads(__tstate); | |
11856 | if (PyErr_Occurred()) SWIG_fail; | |
11857 | } | |
11858 | { | |
11859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11860 | } | |
11861 | return resultobj; | |
11862 | fail: | |
11863 | return NULL; | |
11864 | } | |
11865 | ||
11866 | ||
11867 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11868 | PyObject *resultobj = 0; | |
11869 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11870 | wxBitmap *arg2 = 0 ; | |
11871 | wxColour *arg3 = 0 ; | |
11872 | int arg4 = (int) 0 ; | |
11873 | bool result; | |
11874 | void *argp1 = 0 ; | |
11875 | int res1 = 0 ; | |
11876 | void *argp2 = 0 ; | |
11877 | int res2 = 0 ; | |
11878 | wxColour temp3 ; | |
11879 | int val4 ; | |
11880 | int ecode4 = 0 ; | |
11881 | PyObject * obj0 = 0 ; | |
11882 | PyObject * obj1 = 0 ; | |
11883 | PyObject * obj2 = 0 ; | |
11884 | PyObject * obj3 = 0 ; | |
11885 | char * kwnames[] = { | |
11886 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
11887 | }; | |
11888 | ||
11889 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
11890 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11891 | if (!SWIG_IsOK(res1)) { | |
11892 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11893 | } | |
11894 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11895 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11896 | if (!SWIG_IsOK(res2)) { | |
11897 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11898 | } | |
11899 | if (!argp2) { | |
11900 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
11901 | } | |
11902 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
11903 | { | |
11904 | arg3 = &temp3; | |
11905 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
11906 | } | |
11907 | if (obj3) { | |
11908 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11909 | if (!SWIG_IsOK(ecode4)) { | |
11910 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
11911 | } | |
11912 | arg4 = static_cast< int >(val4); | |
11913 | } | |
11914 | { | |
11915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11916 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
11917 | wxPyEndAllowThreads(__tstate); | |
11918 | if (PyErr_Occurred()) SWIG_fail; | |
11919 | } | |
11920 | { | |
11921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11922 | } | |
11923 | return resultobj; | |
11924 | fail: | |
11925 | return NULL; | |
d55e5bfc RD |
11926 | } |
11927 | ||
11928 | ||
554f62e9 RD |
11929 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11930 | PyObject *obj; | |
11931 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
11932 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
11933 | return SWIG_Py_Void(); | |
d55e5bfc RD |
11934 | } |
11935 | ||
554f62e9 RD |
11936 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11937 | return SWIG_Python_InitShadowInstance(args); | |
11938 | } | |
d55e5bfc | 11939 | |
554f62e9 RD |
11940 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11941 | PyObject *resultobj = 0; | |
11942 | wxRegion *arg1 = 0 ; | |
11943 | wxRegionIterator *result = 0 ; | |
11944 | void *argp1 = 0 ; | |
11945 | int res1 = 0 ; | |
11946 | PyObject * obj0 = 0 ; | |
11947 | char * kwnames[] = { | |
11948 | (char *) "region", NULL | |
11949 | }; | |
11950 | ||
11951 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
11952 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
11953 | if (!SWIG_IsOK(res1)) { | |
11954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11955 | } | |
11956 | if (!argp1) { | |
11957 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
11958 | } | |
11959 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11960 | { | |
11961 | if (!wxPyCheckForApp()) SWIG_fail; | |
11962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11963 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
11964 | wxPyEndAllowThreads(__tstate); | |
11965 | if (PyErr_Occurred()) SWIG_fail; | |
11966 | } | |
11967 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
11968 | return resultobj; | |
11969 | fail: | |
11970 | return NULL; | |
d55e5bfc RD |
11971 | } |
11972 | ||
11973 | ||
554f62e9 RD |
11974 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11975 | PyObject *resultobj = 0; | |
11976 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
11977 | void *argp1 = 0 ; | |
11978 | int res1 = 0 ; | |
11979 | PyObject *swig_obj[1] ; | |
11980 | ||
11981 | if (!args) SWIG_fail; | |
11982 | swig_obj[0] = args; | |
11983 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
11984 | if (!SWIG_IsOK(res1)) { | |
11985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
11986 | } | |
11987 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
11988 | { | |
11989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11990 | delete arg1; | |
d55e5bfc | 11991 | |
554f62e9 RD |
11992 | wxPyEndAllowThreads(__tstate); |
11993 | if (PyErr_Occurred()) SWIG_fail; | |
11994 | } | |
11995 | resultobj = SWIG_Py_Void(); | |
11996 | return resultobj; | |
11997 | fail: | |
11998 | return NULL; | |
d55e5bfc RD |
11999 | } |
12000 | ||
12001 | ||
554f62e9 RD |
12002 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12003 | PyObject *resultobj = 0; | |
12004 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12005 | int result; | |
12006 | void *argp1 = 0 ; | |
12007 | int res1 = 0 ; | |
12008 | PyObject *swig_obj[1] ; | |
12009 | ||
12010 | if (!args) SWIG_fail; | |
12011 | swig_obj[0] = args; | |
12012 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12013 | if (!SWIG_IsOK(res1)) { | |
12014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12015 | } | |
12016 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12017 | { | |
12018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12019 | result = (int)(arg1)->GetX(); | |
12020 | wxPyEndAllowThreads(__tstate); | |
12021 | if (PyErr_Occurred()) SWIG_fail; | |
12022 | } | |
12023 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12024 | return resultobj; | |
12025 | fail: | |
12026 | return NULL; | |
d55e5bfc RD |
12027 | } |
12028 | ||
12029 | ||
554f62e9 RD |
12030 | SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12031 | PyObject *resultobj = 0; | |
12032 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12033 | int result; | |
12034 | void *argp1 = 0 ; | |
12035 | int res1 = 0 ; | |
12036 | PyObject *swig_obj[1] ; | |
12037 | ||
12038 | if (!args) SWIG_fail; | |
12039 | swig_obj[0] = args; | |
12040 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12041 | if (!SWIG_IsOK(res1)) { | |
12042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12043 | } | |
12044 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12045 | { | |
12046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12047 | result = (int)(arg1)->GetY(); | |
12048 | wxPyEndAllowThreads(__tstate); | |
12049 | if (PyErr_Occurred()) SWIG_fail; | |
12050 | } | |
12051 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12052 | return resultobj; | |
12053 | fail: | |
12054 | return NULL; | |
d55e5bfc RD |
12055 | } |
12056 | ||
12057 | ||
554f62e9 RD |
12058 | SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12059 | PyObject *resultobj = 0; | |
12060 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12061 | int result; | |
12062 | void *argp1 = 0 ; | |
12063 | int res1 = 0 ; | |
12064 | PyObject *swig_obj[1] ; | |
12065 | ||
12066 | if (!args) SWIG_fail; | |
12067 | swig_obj[0] = args; | |
12068 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12069 | if (!SWIG_IsOK(res1)) { | |
12070 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12071 | } | |
12072 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12073 | { | |
12074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12075 | result = (int)(arg1)->GetW(); | |
12076 | wxPyEndAllowThreads(__tstate); | |
12077 | if (PyErr_Occurred()) SWIG_fail; | |
12078 | } | |
12079 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12080 | return resultobj; | |
12081 | fail: | |
12082 | return NULL; | |
d55e5bfc RD |
12083 | } |
12084 | ||
12085 | ||
554f62e9 RD |
12086 | SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12087 | PyObject *resultobj = 0; | |
12088 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12089 | int result; | |
12090 | void *argp1 = 0 ; | |
12091 | int res1 = 0 ; | |
12092 | PyObject *swig_obj[1] ; | |
12093 | ||
12094 | if (!args) SWIG_fail; | |
12095 | swig_obj[0] = args; | |
12096 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12097 | if (!SWIG_IsOK(res1)) { | |
12098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12099 | } | |
12100 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12101 | { | |
12102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12103 | result = (int)(arg1)->GetWidth(); | |
12104 | wxPyEndAllowThreads(__tstate); | |
12105 | if (PyErr_Occurred()) SWIG_fail; | |
12106 | } | |
12107 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12108 | return resultobj; | |
12109 | fail: | |
12110 | return NULL; | |
d55e5bfc RD |
12111 | } |
12112 | ||
12113 | ||
554f62e9 RD |
12114 | SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12115 | PyObject *resultobj = 0; | |
12116 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12117 | int result; | |
12118 | void *argp1 = 0 ; | |
12119 | int res1 = 0 ; | |
12120 | PyObject *swig_obj[1] ; | |
12121 | ||
12122 | if (!args) SWIG_fail; | |
12123 | swig_obj[0] = args; | |
12124 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12125 | if (!SWIG_IsOK(res1)) { | |
12126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12127 | } | |
12128 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12129 | { | |
12130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12131 | result = (int)(arg1)->GetH(); | |
12132 | wxPyEndAllowThreads(__tstate); | |
12133 | if (PyErr_Occurred()) SWIG_fail; | |
12134 | } | |
12135 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12136 | return resultobj; | |
12137 | fail: | |
12138 | return NULL; | |
d55e5bfc RD |
12139 | } |
12140 | ||
12141 | ||
554f62e9 RD |
12142 | SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12143 | PyObject *resultobj = 0; | |
12144 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12145 | int result; | |
12146 | void *argp1 = 0 ; | |
12147 | int res1 = 0 ; | |
12148 | PyObject *swig_obj[1] ; | |
12149 | ||
12150 | if (!args) SWIG_fail; | |
12151 | swig_obj[0] = args; | |
12152 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12153 | if (!SWIG_IsOK(res1)) { | |
12154 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12155 | } | |
12156 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12157 | { | |
12158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12159 | result = (int)(arg1)->GetHeight(); | |
12160 | wxPyEndAllowThreads(__tstate); | |
12161 | if (PyErr_Occurred()) SWIG_fail; | |
12162 | } | |
12163 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12164 | return resultobj; | |
12165 | fail: | |
12166 | return NULL; | |
d55e5bfc RD |
12167 | } |
12168 | ||
12169 | ||
554f62e9 RD |
12170 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12171 | PyObject *resultobj = 0; | |
12172 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12173 | wxRect result; | |
12174 | void *argp1 = 0 ; | |
12175 | int res1 = 0 ; | |
12176 | PyObject *swig_obj[1] ; | |
12177 | ||
12178 | if (!args) SWIG_fail; | |
12179 | swig_obj[0] = args; | |
12180 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12181 | if (!SWIG_IsOK(res1)) { | |
12182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12183 | } | |
12184 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12185 | { | |
12186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12187 | result = (arg1)->GetRect(); | |
12188 | wxPyEndAllowThreads(__tstate); | |
12189 | if (PyErr_Occurred()) SWIG_fail; | |
12190 | } | |
12191 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
12192 | return resultobj; | |
12193 | fail: | |
12194 | return NULL; | |
d55e5bfc RD |
12195 | } |
12196 | ||
12197 | ||
554f62e9 RD |
12198 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12199 | PyObject *resultobj = 0; | |
12200 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12201 | bool result; | |
12202 | void *argp1 = 0 ; | |
12203 | int res1 = 0 ; | |
12204 | PyObject *swig_obj[1] ; | |
12205 | ||
12206 | if (!args) SWIG_fail; | |
12207 | swig_obj[0] = args; | |
12208 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12209 | if (!SWIG_IsOK(res1)) { | |
12210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12211 | } | |
12212 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12213 | { | |
12214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12215 | result = (bool)(arg1)->HaveRects(); | |
12216 | wxPyEndAllowThreads(__tstate); | |
12217 | if (PyErr_Occurred()) SWIG_fail; | |
12218 | } | |
12219 | { | |
12220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12221 | } | |
12222 | return resultobj; | |
12223 | fail: | |
12224 | return NULL; | |
d55e5bfc RD |
12225 | } |
12226 | ||
12227 | ||
554f62e9 RD |
12228 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12229 | PyObject *resultobj = 0; | |
12230 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12231 | void *argp1 = 0 ; | |
12232 | int res1 = 0 ; | |
12233 | PyObject *swig_obj[1] ; | |
12234 | ||
12235 | if (!args) SWIG_fail; | |
12236 | swig_obj[0] = args; | |
12237 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12238 | if (!SWIG_IsOK(res1)) { | |
12239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12240 | } | |
12241 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12242 | { | |
12243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12244 | (arg1)->Reset(); | |
12245 | wxPyEndAllowThreads(__tstate); | |
12246 | if (PyErr_Occurred()) SWIG_fail; | |
12247 | } | |
12248 | resultobj = SWIG_Py_Void(); | |
12249 | return resultobj; | |
12250 | fail: | |
12251 | return NULL; | |
d55e5bfc RD |
12252 | } |
12253 | ||
12254 | ||
554f62e9 RD |
12255 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12256 | PyObject *resultobj = 0; | |
12257 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12258 | void *argp1 = 0 ; | |
12259 | int res1 = 0 ; | |
12260 | PyObject *swig_obj[1] ; | |
12261 | ||
12262 | if (!args) SWIG_fail; | |
12263 | swig_obj[0] = args; | |
12264 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12265 | if (!SWIG_IsOK(res1)) { | |
12266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12267 | } | |
12268 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12269 | { | |
12270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12271 | wxRegionIterator_Next(arg1); | |
12272 | wxPyEndAllowThreads(__tstate); | |
12273 | if (PyErr_Occurred()) SWIG_fail; | |
12274 | } | |
12275 | resultobj = SWIG_Py_Void(); | |
12276 | return resultobj; | |
12277 | fail: | |
12278 | return NULL; | |
d55e5bfc RD |
12279 | } |
12280 | ||
12281 | ||
554f62e9 RD |
12282 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12283 | PyObject *resultobj = 0; | |
12284 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12285 | bool result; | |
12286 | void *argp1 = 0 ; | |
12287 | int res1 = 0 ; | |
12288 | PyObject *swig_obj[1] ; | |
12289 | ||
12290 | if (!args) SWIG_fail; | |
12291 | swig_obj[0] = args; | |
12292 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12293 | if (!SWIG_IsOK(res1)) { | |
12294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12295 | } | |
12296 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12297 | { | |
12298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12299 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
12300 | wxPyEndAllowThreads(__tstate); | |
12301 | if (PyErr_Occurred()) SWIG_fail; | |
12302 | } | |
12303 | { | |
12304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12305 | } | |
12306 | return resultobj; | |
12307 | fail: | |
12308 | return NULL; | |
d55e5bfc RD |
12309 | } |
12310 | ||
12311 | ||
554f62e9 RD |
12312 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12313 | PyObject *obj; | |
12314 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12315 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
12316 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12317 | } |
12318 | ||
554f62e9 RD |
12319 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12320 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
12321 | } |
12322 | ||
554f62e9 RD |
12323 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12324 | PyObject *resultobj = 0; | |
12325 | wxNativeFontInfo *result = 0 ; | |
12326 | ||
12327 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
12328 | { | |
12329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12330 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
12331 | wxPyEndAllowThreads(__tstate); | |
12332 | if (PyErr_Occurred()) SWIG_fail; | |
12333 | } | |
12334 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
12335 | return resultobj; | |
12336 | fail: | |
12337 | return NULL; | |
d55e5bfc RD |
12338 | } |
12339 | ||
12340 | ||
554f62e9 RD |
12341 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12342 | PyObject *resultobj = 0; | |
12343 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12344 | void *argp1 = 0 ; | |
12345 | int res1 = 0 ; | |
12346 | PyObject *swig_obj[1] ; | |
12347 | ||
12348 | if (!args) SWIG_fail; | |
12349 | swig_obj[0] = args; | |
12350 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 ); | |
12351 | if (!SWIG_IsOK(res1)) { | |
12352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12353 | } | |
12354 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12355 | { | |
12356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12357 | delete arg1; | |
d55e5bfc | 12358 | |
554f62e9 RD |
12359 | wxPyEndAllowThreads(__tstate); |
12360 | if (PyErr_Occurred()) SWIG_fail; | |
12361 | } | |
12362 | resultobj = SWIG_Py_Void(); | |
12363 | return resultobj; | |
12364 | fail: | |
12365 | return NULL; | |
d55e5bfc RD |
12366 | } |
12367 | ||
12368 | ||
554f62e9 RD |
12369 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12370 | PyObject *resultobj = 0; | |
12371 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12372 | void *argp1 = 0 ; | |
12373 | int res1 = 0 ; | |
12374 | PyObject *swig_obj[1] ; | |
12375 | ||
12376 | if (!args) SWIG_fail; | |
12377 | swig_obj[0] = args; | |
12378 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12379 | if (!SWIG_IsOK(res1)) { | |
12380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12381 | } | |
12382 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12383 | { | |
12384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12385 | (arg1)->Init(); | |
12386 | wxPyEndAllowThreads(__tstate); | |
12387 | if (PyErr_Occurred()) SWIG_fail; | |
12388 | } | |
12389 | resultobj = SWIG_Py_Void(); | |
12390 | return resultobj; | |
12391 | fail: | |
12392 | return NULL; | |
12393 | } | |
12394 | ||
12395 | ||
12396 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12397 | PyObject *resultobj = 0; | |
12398 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12399 | wxFont *arg2 = 0 ; | |
12400 | void *argp1 = 0 ; | |
12401 | int res1 = 0 ; | |
12402 | void *argp2 = 0 ; | |
12403 | int res2 = 0 ; | |
12404 | PyObject * obj0 = 0 ; | |
12405 | PyObject * obj1 = 0 ; | |
12406 | char * kwnames[] = { | |
12407 | (char *) "self",(char *) "font", NULL | |
12408 | }; | |
12409 | ||
12410 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
12411 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12412 | if (!SWIG_IsOK(res1)) { | |
12413 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12414 | } | |
12415 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12416 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
12417 | if (!SWIG_IsOK(res2)) { | |
12418 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12419 | } | |
12420 | if (!argp2) { | |
12421 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12422 | } | |
12423 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
12424 | { | |
12425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12426 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
12427 | wxPyEndAllowThreads(__tstate); | |
12428 | if (PyErr_Occurred()) SWIG_fail; | |
12429 | } | |
12430 | resultobj = SWIG_Py_Void(); | |
12431 | return resultobj; | |
12432 | fail: | |
12433 | return NULL; | |
d55e5bfc RD |
12434 | } |
12435 | ||
12436 | ||
554f62e9 RD |
12437 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12438 | PyObject *resultobj = 0; | |
12439 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12440 | int result; | |
12441 | void *argp1 = 0 ; | |
12442 | int res1 = 0 ; | |
12443 | PyObject *swig_obj[1] ; | |
12444 | ||
12445 | if (!args) SWIG_fail; | |
12446 | swig_obj[0] = args; | |
12447 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12448 | if (!SWIG_IsOK(res1)) { | |
12449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12450 | } | |
12451 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12452 | { | |
12453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12454 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
12455 | wxPyEndAllowThreads(__tstate); | |
12456 | if (PyErr_Occurred()) SWIG_fail; | |
12457 | } | |
12458 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12459 | return resultobj; | |
12460 | fail: | |
12461 | return NULL; | |
d55e5bfc RD |
12462 | } |
12463 | ||
12464 | ||
554f62e9 RD |
12465 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12466 | PyObject *resultobj = 0; | |
12467 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12468 | wxSize result; | |
12469 | void *argp1 = 0 ; | |
12470 | int res1 = 0 ; | |
12471 | PyObject *swig_obj[1] ; | |
12472 | ||
12473 | if (!args) SWIG_fail; | |
12474 | swig_obj[0] = args; | |
12475 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12476 | if (!SWIG_IsOK(res1)) { | |
12477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12478 | } | |
12479 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12480 | { | |
12481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12482 | result = ((wxNativeFontInfo const *)arg1)->GetPixelSize(); | |
12483 | wxPyEndAllowThreads(__tstate); | |
12484 | if (PyErr_Occurred()) SWIG_fail; | |
12485 | } | |
12486 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
12487 | return resultobj; | |
12488 | fail: | |
12489 | return NULL; | |
d55e5bfc RD |
12490 | } |
12491 | ||
12492 | ||
554f62e9 RD |
12493 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12494 | PyObject *resultobj = 0; | |
12495 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12496 | wxFontStyle result; | |
12497 | void *argp1 = 0 ; | |
12498 | int res1 = 0 ; | |
12499 | PyObject *swig_obj[1] ; | |
12500 | ||
12501 | if (!args) SWIG_fail; | |
12502 | swig_obj[0] = args; | |
12503 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12504 | if (!SWIG_IsOK(res1)) { | |
12505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12506 | } | |
12507 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12508 | { | |
12509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12510 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
12511 | wxPyEndAllowThreads(__tstate); | |
12512 | if (PyErr_Occurred()) SWIG_fail; | |
12513 | } | |
12514 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12515 | return resultobj; | |
12516 | fail: | |
12517 | return NULL; | |
d55e5bfc RD |
12518 | } |
12519 | ||
12520 | ||
554f62e9 RD |
12521 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12522 | PyObject *resultobj = 0; | |
12523 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12524 | wxFontWeight result; | |
12525 | void *argp1 = 0 ; | |
12526 | int res1 = 0 ; | |
12527 | PyObject *swig_obj[1] ; | |
12528 | ||
12529 | if (!args) SWIG_fail; | |
12530 | swig_obj[0] = args; | |
12531 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12532 | if (!SWIG_IsOK(res1)) { | |
12533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12534 | } | |
12535 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12536 | { | |
12537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12538 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
12539 | wxPyEndAllowThreads(__tstate); | |
12540 | if (PyErr_Occurred()) SWIG_fail; | |
12541 | } | |
12542 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12543 | return resultobj; | |
12544 | fail: | |
12545 | return NULL; | |
d55e5bfc RD |
12546 | } |
12547 | ||
12548 | ||
554f62e9 RD |
12549 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12550 | PyObject *resultobj = 0; | |
12551 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12552 | bool result; | |
12553 | void *argp1 = 0 ; | |
12554 | int res1 = 0 ; | |
12555 | PyObject *swig_obj[1] ; | |
12556 | ||
12557 | if (!args) SWIG_fail; | |
12558 | swig_obj[0] = args; | |
12559 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12560 | if (!SWIG_IsOK(res1)) { | |
12561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12562 | } | |
12563 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12564 | { | |
12565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12566 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
12567 | wxPyEndAllowThreads(__tstate); | |
12568 | if (PyErr_Occurred()) SWIG_fail; | |
12569 | } | |
12570 | { | |
12571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12572 | } | |
12573 | return resultobj; | |
12574 | fail: | |
12575 | return NULL; | |
d55e5bfc RD |
12576 | } |
12577 | ||
12578 | ||
554f62e9 RD |
12579 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12580 | PyObject *resultobj = 0; | |
12581 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12582 | wxString result; | |
12583 | void *argp1 = 0 ; | |
12584 | int res1 = 0 ; | |
12585 | PyObject *swig_obj[1] ; | |
12586 | ||
12587 | if (!args) SWIG_fail; | |
12588 | swig_obj[0] = args; | |
12589 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12590 | if (!SWIG_IsOK(res1)) { | |
12591 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12592 | } | |
12593 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12594 | { | |
12595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12596 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
12597 | wxPyEndAllowThreads(__tstate); | |
12598 | if (PyErr_Occurred()) SWIG_fail; | |
12599 | } | |
12600 | { | |
093d3ff1 | 12601 | #if wxUSE_UNICODE |
554f62e9 | 12602 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 12603 | #else |
554f62e9 | 12604 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 12605 | #endif |
554f62e9 RD |
12606 | } |
12607 | return resultobj; | |
12608 | fail: | |
12609 | return NULL; | |
d55e5bfc RD |
12610 | } |
12611 | ||
12612 | ||
554f62e9 RD |
12613 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12614 | PyObject *resultobj = 0; | |
12615 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12616 | wxFontFamily result; | |
12617 | void *argp1 = 0 ; | |
12618 | int res1 = 0 ; | |
12619 | PyObject *swig_obj[1] ; | |
12620 | ||
12621 | if (!args) SWIG_fail; | |
12622 | swig_obj[0] = args; | |
12623 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12624 | if (!SWIG_IsOK(res1)) { | |
12625 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12626 | } | |
12627 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12628 | { | |
12629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12630 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
12631 | wxPyEndAllowThreads(__tstate); | |
12632 | if (PyErr_Occurred()) SWIG_fail; | |
12633 | } | |
12634 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12635 | return resultobj; | |
12636 | fail: | |
12637 | return NULL; | |
d55e5bfc RD |
12638 | } |
12639 | ||
12640 | ||
554f62e9 RD |
12641 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12642 | PyObject *resultobj = 0; | |
12643 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12644 | wxFontEncoding result; | |
12645 | void *argp1 = 0 ; | |
12646 | int res1 = 0 ; | |
12647 | PyObject *swig_obj[1] ; | |
12648 | ||
12649 | if (!args) SWIG_fail; | |
12650 | swig_obj[0] = args; | |
12651 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12652 | if (!SWIG_IsOK(res1)) { | |
12653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12654 | } | |
12655 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12656 | { | |
12657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12658 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
12659 | wxPyEndAllowThreads(__tstate); | |
12660 | if (PyErr_Occurred()) SWIG_fail; | |
12661 | } | |
12662 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12663 | return resultobj; | |
12664 | fail: | |
12665 | return NULL; | |
12666 | } | |
12667 | ||
12668 | ||
12669 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12670 | PyObject *resultobj = 0; | |
12671 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12672 | int arg2 ; | |
12673 | void *argp1 = 0 ; | |
12674 | int res1 = 0 ; | |
12675 | int val2 ; | |
12676 | int ecode2 = 0 ; | |
12677 | PyObject * obj0 = 0 ; | |
12678 | PyObject * obj1 = 0 ; | |
12679 | char * kwnames[] = { | |
12680 | (char *) "self",(char *) "pointsize", NULL | |
12681 | }; | |
12682 | ||
12683 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12684 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12685 | if (!SWIG_IsOK(res1)) { | |
12686 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12687 | } | |
12688 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12689 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12690 | if (!SWIG_IsOK(ecode2)) { | |
12691 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
12692 | } | |
12693 | arg2 = static_cast< int >(val2); | |
12694 | { | |
12695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12696 | (arg1)->SetPointSize(arg2); | |
12697 | wxPyEndAllowThreads(__tstate); | |
12698 | if (PyErr_Occurred()) SWIG_fail; | |
12699 | } | |
12700 | resultobj = SWIG_Py_Void(); | |
12701 | return resultobj; | |
12702 | fail: | |
12703 | return NULL; | |
12704 | } | |
12705 | ||
12706 | ||
12707 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12708 | PyObject *resultobj = 0; | |
12709 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12710 | wxSize *arg2 = 0 ; | |
12711 | void *argp1 = 0 ; | |
12712 | int res1 = 0 ; | |
12713 | wxSize temp2 ; | |
12714 | PyObject * obj0 = 0 ; | |
12715 | PyObject * obj1 = 0 ; | |
12716 | char * kwnames[] = { | |
12717 | (char *) "self",(char *) "pixelSize", NULL | |
12718 | }; | |
12719 | ||
12720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
12721 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12722 | if (!SWIG_IsOK(res1)) { | |
12723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12724 | } | |
12725 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12726 | { | |
12727 | arg2 = &temp2; | |
12728 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
12729 | } | |
12730 | { | |
12731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12732 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
12733 | wxPyEndAllowThreads(__tstate); | |
12734 | if (PyErr_Occurred()) SWIG_fail; | |
12735 | } | |
12736 | resultobj = SWIG_Py_Void(); | |
12737 | return resultobj; | |
12738 | fail: | |
12739 | return NULL; | |
12740 | } | |
12741 | ||
12742 | ||
12743 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12744 | PyObject *resultobj = 0; | |
12745 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12746 | wxFontStyle arg2 ; | |
12747 | void *argp1 = 0 ; | |
12748 | int res1 = 0 ; | |
12749 | int val2 ; | |
12750 | int ecode2 = 0 ; | |
12751 | PyObject * obj0 = 0 ; | |
12752 | PyObject * obj1 = 0 ; | |
12753 | char * kwnames[] = { | |
12754 | (char *) "self",(char *) "style", NULL | |
12755 | }; | |
12756 | ||
12757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
12758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12759 | if (!SWIG_IsOK(res1)) { | |
12760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12761 | } | |
12762 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12763 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12764 | if (!SWIG_IsOK(ecode2)) { | |
12765 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
12766 | } | |
12767 | arg2 = static_cast< wxFontStyle >(val2); | |
12768 | { | |
12769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12770 | (arg1)->SetStyle(arg2); | |
12771 | wxPyEndAllowThreads(__tstate); | |
12772 | if (PyErr_Occurred()) SWIG_fail; | |
12773 | } | |
12774 | resultobj = SWIG_Py_Void(); | |
12775 | return resultobj; | |
12776 | fail: | |
12777 | return NULL; | |
12778 | } | |
12779 | ||
12780 | ||
12781 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12782 | PyObject *resultobj = 0; | |
12783 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12784 | wxFontWeight arg2 ; | |
12785 | void *argp1 = 0 ; | |
12786 | int res1 = 0 ; | |
12787 | int val2 ; | |
12788 | int ecode2 = 0 ; | |
12789 | PyObject * obj0 = 0 ; | |
12790 | PyObject * obj1 = 0 ; | |
12791 | char * kwnames[] = { | |
12792 | (char *) "self",(char *) "weight", NULL | |
12793 | }; | |
12794 | ||
12795 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
12796 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12797 | if (!SWIG_IsOK(res1)) { | |
12798 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12799 | } | |
12800 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12801 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12802 | if (!SWIG_IsOK(ecode2)) { | |
12803 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
12804 | } | |
12805 | arg2 = static_cast< wxFontWeight >(val2); | |
12806 | { | |
12807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12808 | (arg1)->SetWeight(arg2); | |
12809 | wxPyEndAllowThreads(__tstate); | |
12810 | if (PyErr_Occurred()) SWIG_fail; | |
12811 | } | |
12812 | resultobj = SWIG_Py_Void(); | |
12813 | return resultobj; | |
12814 | fail: | |
12815 | return NULL; | |
12816 | } | |
12817 | ||
12818 | ||
12819 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12820 | PyObject *resultobj = 0; | |
12821 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12822 | bool arg2 ; | |
12823 | void *argp1 = 0 ; | |
12824 | int res1 = 0 ; | |
12825 | bool val2 ; | |
12826 | int ecode2 = 0 ; | |
12827 | PyObject * obj0 = 0 ; | |
12828 | PyObject * obj1 = 0 ; | |
12829 | char * kwnames[] = { | |
12830 | (char *) "self",(char *) "underlined", NULL | |
12831 | }; | |
12832 | ||
12833 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
12834 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12835 | if (!SWIG_IsOK(res1)) { | |
12836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12837 | } | |
12838 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12839 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
12840 | if (!SWIG_IsOK(ecode2)) { | |
12841 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
12842 | } | |
12843 | arg2 = static_cast< bool >(val2); | |
12844 | { | |
12845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12846 | (arg1)->SetUnderlined(arg2); | |
12847 | wxPyEndAllowThreads(__tstate); | |
12848 | if (PyErr_Occurred()) SWIG_fail; | |
12849 | } | |
12850 | resultobj = SWIG_Py_Void(); | |
12851 | return resultobj; | |
12852 | fail: | |
12853 | return NULL; | |
12854 | } | |
12855 | ||
12856 | ||
12857 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12858 | PyObject *resultobj = 0; | |
12859 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12860 | wxString arg2 ; | |
704eda0c | 12861 | bool result; |
554f62e9 RD |
12862 | void *argp1 = 0 ; |
12863 | int res1 = 0 ; | |
12864 | PyObject * obj0 = 0 ; | |
12865 | PyObject * obj1 = 0 ; | |
12866 | char * kwnames[] = { | |
12867 | (char *) "self",(char *) "facename", NULL | |
12868 | }; | |
12869 | ||
12870 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
12871 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12872 | if (!SWIG_IsOK(res1)) { | |
12873 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12874 | } | |
12875 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12876 | { | |
12877 | wxString* sptr = wxString_in_helper(obj1); | |
12878 | if (sptr == NULL) SWIG_fail; | |
12879 | arg2 = *sptr; | |
12880 | delete sptr; | |
12881 | } | |
12882 | { | |
12883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 12884 | result = (bool)(arg1)->SetFaceName(arg2); |
554f62e9 RD |
12885 | wxPyEndAllowThreads(__tstate); |
12886 | if (PyErr_Occurred()) SWIG_fail; | |
12887 | } | |
704eda0c RD |
12888 | { |
12889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12890 | } | |
554f62e9 RD |
12891 | return resultobj; |
12892 | fail: | |
12893 | return NULL; | |
12894 | } | |
12895 | ||
12896 | ||
12897 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12898 | PyObject *resultobj = 0; | |
12899 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12900 | wxFontFamily arg2 ; | |
12901 | void *argp1 = 0 ; | |
12902 | int res1 = 0 ; | |
12903 | int val2 ; | |
12904 | int ecode2 = 0 ; | |
12905 | PyObject * obj0 = 0 ; | |
12906 | PyObject * obj1 = 0 ; | |
12907 | char * kwnames[] = { | |
12908 | (char *) "self",(char *) "family", NULL | |
12909 | }; | |
12910 | ||
12911 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
12912 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12913 | if (!SWIG_IsOK(res1)) { | |
12914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12915 | } | |
12916 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12917 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12918 | if (!SWIG_IsOK(ecode2)) { | |
12919 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
12920 | } | |
12921 | arg2 = static_cast< wxFontFamily >(val2); | |
12922 | { | |
12923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12924 | (arg1)->SetFamily(arg2); | |
12925 | wxPyEndAllowThreads(__tstate); | |
12926 | if (PyErr_Occurred()) SWIG_fail; | |
12927 | } | |
12928 | resultobj = SWIG_Py_Void(); | |
12929 | return resultobj; | |
12930 | fail: | |
12931 | return NULL; | |
12932 | } | |
12933 | ||
12934 | ||
12935 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12936 | PyObject *resultobj = 0; | |
12937 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12938 | wxFontEncoding arg2 ; | |
12939 | void *argp1 = 0 ; | |
12940 | int res1 = 0 ; | |
12941 | int val2 ; | |
12942 | int ecode2 = 0 ; | |
12943 | PyObject * obj0 = 0 ; | |
12944 | PyObject * obj1 = 0 ; | |
12945 | char * kwnames[] = { | |
12946 | (char *) "self",(char *) "encoding", NULL | |
12947 | }; | |
12948 | ||
12949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
12950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12951 | if (!SWIG_IsOK(res1)) { | |
12952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12953 | } | |
12954 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12955 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12956 | if (!SWIG_IsOK(ecode2)) { | |
12957 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
12958 | } | |
12959 | arg2 = static_cast< wxFontEncoding >(val2); | |
12960 | { | |
12961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12962 | (arg1)->SetEncoding(arg2); | |
12963 | wxPyEndAllowThreads(__tstate); | |
12964 | if (PyErr_Occurred()) SWIG_fail; | |
12965 | } | |
12966 | resultobj = SWIG_Py_Void(); | |
12967 | return resultobj; | |
12968 | fail: | |
12969 | return NULL; | |
12970 | } | |
12971 | ||
12972 | ||
12973 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12974 | PyObject *resultobj = 0; | |
12975 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12976 | wxString *arg2 = 0 ; | |
12977 | bool result; | |
12978 | void *argp1 = 0 ; | |
12979 | int res1 = 0 ; | |
12980 | bool temp2 = false ; | |
12981 | PyObject * obj0 = 0 ; | |
12982 | PyObject * obj1 = 0 ; | |
12983 | char * kwnames[] = { | |
12984 | (char *) "self",(char *) "s", NULL | |
12985 | }; | |
12986 | ||
12987 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
12988 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12989 | if (!SWIG_IsOK(res1)) { | |
12990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12991 | } | |
12992 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12993 | { | |
12994 | arg2 = wxString_in_helper(obj1); | |
12995 | if (arg2 == NULL) SWIG_fail; | |
12996 | temp2 = true; | |
12997 | } | |
12998 | { | |
12999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13000 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
13001 | wxPyEndAllowThreads(__tstate); | |
13002 | if (PyErr_Occurred()) SWIG_fail; | |
13003 | } | |
13004 | { | |
13005 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13006 | } | |
13007 | { | |
13008 | if (temp2) | |
13009 | delete arg2; | |
13010 | } | |
13011 | return resultobj; | |
13012 | fail: | |
13013 | { | |
13014 | if (temp2) | |
13015 | delete arg2; | |
13016 | } | |
13017 | return NULL; | |
d55e5bfc RD |
13018 | } |
13019 | ||
13020 | ||
554f62e9 RD |
13021 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13022 | PyObject *resultobj = 0; | |
13023 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13024 | wxString result; | |
13025 | void *argp1 = 0 ; | |
13026 | int res1 = 0 ; | |
13027 | PyObject *swig_obj[1] ; | |
13028 | ||
13029 | if (!args) SWIG_fail; | |
13030 | swig_obj[0] = args; | |
13031 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13032 | if (!SWIG_IsOK(res1)) { | |
13033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
13034 | } | |
13035 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13036 | { | |
13037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13038 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
13039 | wxPyEndAllowThreads(__tstate); | |
13040 | if (PyErr_Occurred()) SWIG_fail; | |
13041 | } | |
13042 | { | |
13043 | #if wxUSE_UNICODE | |
13044 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13045 | #else | |
13046 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13047 | #endif | |
13048 | } | |
13049 | return resultobj; | |
13050 | fail: | |
13051 | return NULL; | |
d55e5bfc RD |
13052 | } |
13053 | ||
13054 | ||
554f62e9 RD |
13055 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13056 | PyObject *resultobj = 0; | |
13057 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13058 | wxString result; | |
13059 | void *argp1 = 0 ; | |
13060 | int res1 = 0 ; | |
13061 | PyObject *swig_obj[1] ; | |
13062 | ||
13063 | if (!args) SWIG_fail; | |
13064 | swig_obj[0] = args; | |
13065 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13066 | if (!SWIG_IsOK(res1)) { | |
13067 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13068 | } | |
13069 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13070 | { | |
13071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13072 | result = wxNativeFontInfo___str__(arg1); | |
13073 | wxPyEndAllowThreads(__tstate); | |
13074 | if (PyErr_Occurred()) SWIG_fail; | |
13075 | } | |
13076 | { | |
13077 | #if wxUSE_UNICODE | |
13078 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13079 | #else | |
13080 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13081 | #endif | |
13082 | } | |
13083 | return resultobj; | |
13084 | fail: | |
13085 | return NULL; | |
13086 | } | |
13087 | ||
13088 | ||
13089 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13090 | PyObject *resultobj = 0; | |
13091 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13092 | wxString *arg2 = 0 ; | |
13093 | bool result; | |
13094 | void *argp1 = 0 ; | |
13095 | int res1 = 0 ; | |
13096 | bool temp2 = false ; | |
13097 | PyObject * obj0 = 0 ; | |
13098 | PyObject * obj1 = 0 ; | |
13099 | char * kwnames[] = { | |
13100 | (char *) "self",(char *) "s", NULL | |
13101 | }; | |
13102 | ||
13103 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13104 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13105 | if (!SWIG_IsOK(res1)) { | |
13106 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13107 | } | |
13108 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13109 | { | |
13110 | arg2 = wxString_in_helper(obj1); | |
13111 | if (arg2 == NULL) SWIG_fail; | |
13112 | temp2 = true; | |
13113 | } | |
13114 | { | |
13115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13116 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
13117 | wxPyEndAllowThreads(__tstate); | |
13118 | if (PyErr_Occurred()) SWIG_fail; | |
13119 | } | |
13120 | { | |
13121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13122 | } | |
13123 | { | |
13124 | if (temp2) | |
13125 | delete arg2; | |
13126 | } | |
13127 | return resultobj; | |
13128 | fail: | |
13129 | { | |
13130 | if (temp2) | |
13131 | delete arg2; | |
13132 | } | |
13133 | return NULL; | |
a2569024 RD |
13134 | } |
13135 | ||
13136 | ||
554f62e9 RD |
13137 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13138 | PyObject *resultobj = 0; | |
13139 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13140 | wxString result; | |
13141 | void *argp1 = 0 ; | |
13142 | int res1 = 0 ; | |
13143 | PyObject *swig_obj[1] ; | |
13144 | ||
13145 | if (!args) SWIG_fail; | |
13146 | swig_obj[0] = args; | |
13147 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13148 | if (!SWIG_IsOK(res1)) { | |
13149 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
13150 | } | |
13151 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13152 | { | |
13153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13154 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
13155 | wxPyEndAllowThreads(__tstate); | |
13156 | if (PyErr_Occurred()) SWIG_fail; | |
13157 | } | |
13158 | { | |
13159 | #if wxUSE_UNICODE | |
13160 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13161 | #else | |
13162 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13163 | #endif | |
13164 | } | |
13165 | return resultobj; | |
13166 | fail: | |
13167 | return NULL; | |
d55e5bfc RD |
13168 | } |
13169 | ||
13170 | ||
554f62e9 RD |
13171 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13172 | PyObject *obj; | |
13173 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13174 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
13175 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13176 | } |
13177 | ||
554f62e9 RD |
13178 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13179 | return SWIG_Python_InitShadowInstance(args); | |
13180 | } | |
d55e5bfc | 13181 | |
554f62e9 RD |
13182 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13183 | PyObject *resultobj = 0; | |
13184 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13185 | wxString *arg2 = (wxString *) 0 ; | |
13186 | void *argp1 = 0 ; | |
13187 | int res1 = 0 ; | |
13188 | bool temp2 = false ; | |
13189 | PyObject *swig_obj[2] ; | |
13190 | ||
13191 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
13192 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13193 | if (!SWIG_IsOK(res1)) { | |
13194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13195 | } | |
13196 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13197 | { | |
13198 | arg2 = wxString_in_helper(swig_obj[1]); | |
13199 | if (arg2 == NULL) SWIG_fail; | |
13200 | temp2 = true; | |
13201 | } | |
13202 | if (arg1) (arg1)->facename = *arg2; | |
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; | |
d55e5bfc RD |
13216 | } |
13217 | ||
13218 | ||
554f62e9 RD |
13219 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13220 | PyObject *resultobj = 0; | |
13221 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13222 | wxString *result = 0 ; | |
13223 | void *argp1 = 0 ; | |
13224 | int res1 = 0 ; | |
13225 | PyObject *swig_obj[1] ; | |
13226 | ||
13227 | if (!args) SWIG_fail; | |
13228 | swig_obj[0] = args; | |
13229 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13230 | if (!SWIG_IsOK(res1)) { | |
13231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13232 | } | |
13233 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13234 | result = (wxString *)& ((arg1)->facename); | |
13235 | { | |
13236 | #if wxUSE_UNICODE | |
13237 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13238 | #else | |
13239 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13240 | #endif | |
13241 | } | |
13242 | return resultobj; | |
13243 | fail: | |
13244 | return NULL; | |
d55e5bfc RD |
13245 | } |
13246 | ||
13247 | ||
554f62e9 RD |
13248 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13249 | PyObject *resultobj = 0; | |
13250 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13251 | wxFontEncoding arg2 ; | |
13252 | void *argp1 = 0 ; | |
13253 | int res1 = 0 ; | |
13254 | int val2 ; | |
13255 | int ecode2 = 0 ; | |
13256 | PyObject *swig_obj[2] ; | |
13257 | ||
13258 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
13259 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13260 | if (!SWIG_IsOK(res1)) { | |
13261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13262 | } | |
13263 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13264 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
13265 | if (!SWIG_IsOK(ecode2)) { | |
13266 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13267 | } | |
13268 | arg2 = static_cast< wxFontEncoding >(val2); | |
13269 | if (arg1) (arg1)->encoding = arg2; | |
13270 | ||
13271 | resultobj = SWIG_Py_Void(); | |
13272 | return resultobj; | |
13273 | fail: | |
13274 | return NULL; | |
d55e5bfc RD |
13275 | } |
13276 | ||
13277 | ||
554f62e9 RD |
13278 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13279 | PyObject *resultobj = 0; | |
13280 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13281 | wxFontEncoding result; | |
13282 | void *argp1 = 0 ; | |
13283 | int res1 = 0 ; | |
13284 | PyObject *swig_obj[1] ; | |
13285 | ||
13286 | if (!args) SWIG_fail; | |
13287 | swig_obj[0] = args; | |
13288 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13289 | if (!SWIG_IsOK(res1)) { | |
13290 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13291 | } | |
13292 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13293 | result = (wxFontEncoding) ((arg1)->encoding); | |
13294 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13295 | return resultobj; | |
13296 | fail: | |
13297 | return NULL; | |
d55e5bfc RD |
13298 | } |
13299 | ||
13300 | ||
554f62e9 RD |
13301 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13302 | PyObject *resultobj = 0; | |
13303 | wxNativeEncodingInfo *result = 0 ; | |
13304 | ||
13305 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
13306 | { | |
13307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13308 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
13309 | wxPyEndAllowThreads(__tstate); | |
13310 | if (PyErr_Occurred()) SWIG_fail; | |
13311 | } | |
13312 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
13313 | return resultobj; | |
13314 | fail: | |
13315 | return NULL; | |
d55e5bfc RD |
13316 | } |
13317 | ||
13318 | ||
554f62e9 RD |
13319 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13320 | PyObject *resultobj = 0; | |
13321 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13322 | void *argp1 = 0 ; | |
13323 | int res1 = 0 ; | |
13324 | PyObject *swig_obj[1] ; | |
13325 | ||
13326 | if (!args) SWIG_fail; | |
13327 | swig_obj[0] = args; | |
13328 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
13329 | if (!SWIG_IsOK(res1)) { | |
13330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13331 | } | |
13332 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13333 | { | |
13334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13335 | delete arg1; | |
d55e5bfc | 13336 | |
554f62e9 RD |
13337 | wxPyEndAllowThreads(__tstate); |
13338 | if (PyErr_Occurred()) SWIG_fail; | |
13339 | } | |
13340 | resultobj = SWIG_Py_Void(); | |
13341 | return resultobj; | |
13342 | fail: | |
13343 | return NULL; | |
13344 | } | |
13345 | ||
13346 | ||
13347 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13348 | PyObject *resultobj = 0; | |
13349 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13350 | wxString *arg2 = 0 ; | |
13351 | bool result; | |
13352 | void *argp1 = 0 ; | |
13353 | int res1 = 0 ; | |
13354 | bool temp2 = false ; | |
13355 | PyObject * obj0 = 0 ; | |
13356 | PyObject * obj1 = 0 ; | |
13357 | char * kwnames[] = { | |
13358 | (char *) "self",(char *) "s", NULL | |
13359 | }; | |
13360 | ||
13361 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13362 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13363 | if (!SWIG_IsOK(res1)) { | |
13364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13365 | } | |
13366 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13367 | { | |
13368 | arg2 = wxString_in_helper(obj1); | |
13369 | if (arg2 == NULL) SWIG_fail; | |
13370 | temp2 = true; | |
13371 | } | |
13372 | { | |
13373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13374 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
13375 | wxPyEndAllowThreads(__tstate); | |
13376 | if (PyErr_Occurred()) SWIG_fail; | |
13377 | } | |
13378 | { | |
13379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13380 | } | |
13381 | { | |
13382 | if (temp2) | |
13383 | delete arg2; | |
13384 | } | |
13385 | return resultobj; | |
13386 | fail: | |
13387 | { | |
13388 | if (temp2) | |
13389 | delete arg2; | |
13390 | } | |
13391 | return NULL; | |
d55e5bfc RD |
13392 | } |
13393 | ||
13394 | ||
554f62e9 RD |
13395 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13396 | PyObject *resultobj = 0; | |
13397 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13398 | wxString result; | |
13399 | void *argp1 = 0 ; | |
13400 | int res1 = 0 ; | |
13401 | PyObject *swig_obj[1] ; | |
13402 | ||
13403 | if (!args) SWIG_fail; | |
13404 | swig_obj[0] = args; | |
13405 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13406 | if (!SWIG_IsOK(res1)) { | |
13407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
13408 | } | |
13409 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13410 | { | |
13411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13412 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
13413 | wxPyEndAllowThreads(__tstate); | |
13414 | if (PyErr_Occurred()) SWIG_fail; | |
13415 | } | |
13416 | { | |
13417 | #if wxUSE_UNICODE | |
13418 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13419 | #else | |
13420 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13421 | #endif | |
13422 | } | |
13423 | return resultobj; | |
13424 | fail: | |
13425 | return NULL; | |
d55e5bfc RD |
13426 | } |
13427 | ||
13428 | ||
554f62e9 RD |
13429 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13430 | PyObject *obj; | |
13431 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13432 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
13433 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13434 | } |
13435 | ||
554f62e9 RD |
13436 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13437 | return SWIG_Python_InitShadowInstance(args); | |
13438 | } | |
d55e5bfc | 13439 | |
554f62e9 RD |
13440 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13441 | PyObject *resultobj = 0; | |
13442 | wxFontEncoding arg1 ; | |
13443 | wxNativeEncodingInfo *result = 0 ; | |
13444 | int val1 ; | |
13445 | int ecode1 = 0 ; | |
13446 | PyObject * obj0 = 0 ; | |
13447 | char * kwnames[] = { | |
13448 | (char *) "encoding", NULL | |
13449 | }; | |
13450 | ||
13451 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13452 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13453 | if (!SWIG_IsOK(ecode1)) { | |
13454 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13455 | } | |
13456 | arg1 = static_cast< wxFontEncoding >(val1); | |
13457 | { | |
13458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13459 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
13460 | wxPyEndAllowThreads(__tstate); | |
13461 | if (PyErr_Occurred()) SWIG_fail; | |
13462 | } | |
13463 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13464 | return resultobj; | |
13465 | fail: | |
13466 | return NULL; | |
13467 | } | |
13468 | ||
13469 | ||
13470 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13471 | PyObject *resultobj = 0; | |
13472 | wxNativeEncodingInfo *arg1 = 0 ; | |
13473 | bool result; | |
13474 | void *argp1 = 0 ; | |
13475 | int res1 = 0 ; | |
13476 | PyObject * obj0 = 0 ; | |
13477 | char * kwnames[] = { | |
13478 | (char *) "info", NULL | |
13479 | }; | |
13480 | ||
13481 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13482 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
13483 | if (!SWIG_IsOK(res1)) { | |
13484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13485 | } | |
13486 | if (!argp1) { | |
13487 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13488 | } | |
13489 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13490 | { | |
13491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13492 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
13493 | wxPyEndAllowThreads(__tstate); | |
13494 | if (PyErr_Occurred()) SWIG_fail; | |
13495 | } | |
13496 | { | |
13497 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13498 | } | |
13499 | return resultobj; | |
13500 | fail: | |
13501 | return NULL; | |
d55e5bfc RD |
13502 | } |
13503 | ||
13504 | ||
554f62e9 RD |
13505 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13506 | PyObject *resultobj = 0; | |
13507 | wxFontMapper *result = 0 ; | |
13508 | ||
13509 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
13510 | { | |
13511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13512 | result = (wxFontMapper *)new wxFontMapper(); | |
13513 | wxPyEndAllowThreads(__tstate); | |
13514 | if (PyErr_Occurred()) SWIG_fail; | |
13515 | } | |
13516 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
13517 | return resultobj; | |
13518 | fail: | |
13519 | return NULL; | |
d55e5bfc RD |
13520 | } |
13521 | ||
13522 | ||
554f62e9 RD |
13523 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13524 | PyObject *resultobj = 0; | |
13525 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13526 | void *argp1 = 0 ; | |
13527 | int res1 = 0 ; | |
13528 | PyObject *swig_obj[1] ; | |
13529 | ||
13530 | if (!args) SWIG_fail; | |
13531 | swig_obj[0] = args; | |
13532 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
13533 | if (!SWIG_IsOK(res1)) { | |
13534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13535 | } | |
13536 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13537 | { | |
13538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13539 | delete arg1; | |
d55e5bfc | 13540 | |
554f62e9 RD |
13541 | wxPyEndAllowThreads(__tstate); |
13542 | if (PyErr_Occurred()) SWIG_fail; | |
13543 | } | |
13544 | resultobj = SWIG_Py_Void(); | |
13545 | return resultobj; | |
13546 | fail: | |
13547 | return NULL; | |
d55e5bfc RD |
13548 | } |
13549 | ||
13550 | ||
554f62e9 RD |
13551 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13552 | PyObject *resultobj = 0; | |
13553 | wxFontMapper *result = 0 ; | |
13554 | ||
13555 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
13556 | { | |
13557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13558 | result = (wxFontMapper *)wxFontMapper::Get(); | |
13559 | wxPyEndAllowThreads(__tstate); | |
13560 | if (PyErr_Occurred()) SWIG_fail; | |
13561 | } | |
13562 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13563 | return resultobj; | |
13564 | fail: | |
13565 | return NULL; | |
13566 | } | |
13567 | ||
13568 | ||
13569 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13570 | PyObject *resultobj = 0; | |
13571 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13572 | wxFontMapper *result = 0 ; | |
13573 | void *argp1 = 0 ; | |
13574 | int res1 = 0 ; | |
13575 | PyObject * obj0 = 0 ; | |
13576 | char * kwnames[] = { | |
13577 | (char *) "mapper", NULL | |
13578 | }; | |
13579 | ||
13580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
13581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13582 | if (!SWIG_IsOK(res1)) { | |
13583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13584 | } | |
13585 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13586 | { | |
13587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13588 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
13589 | wxPyEndAllowThreads(__tstate); | |
13590 | if (PyErr_Occurred()) SWIG_fail; | |
13591 | } | |
13592 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13593 | return resultobj; | |
13594 | fail: | |
13595 | return NULL; | |
13596 | } | |
13597 | ||
13598 | ||
13599 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13600 | PyObject *resultobj = 0; | |
13601 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13602 | wxString *arg2 = 0 ; | |
13603 | bool arg3 = (bool) true ; | |
13604 | wxFontEncoding result; | |
13605 | void *argp1 = 0 ; | |
13606 | int res1 = 0 ; | |
13607 | bool temp2 = false ; | |
13608 | bool val3 ; | |
13609 | int ecode3 = 0 ; | |
13610 | PyObject * obj0 = 0 ; | |
13611 | PyObject * obj1 = 0 ; | |
13612 | PyObject * obj2 = 0 ; | |
13613 | char * kwnames[] = { | |
13614 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
13615 | }; | |
13616 | ||
13617 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13618 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13619 | if (!SWIG_IsOK(res1)) { | |
13620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13621 | } | |
13622 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13623 | { | |
13624 | arg2 = wxString_in_helper(obj1); | |
13625 | if (arg2 == NULL) SWIG_fail; | |
13626 | temp2 = true; | |
13627 | } | |
13628 | if (obj2) { | |
13629 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
13630 | if (!SWIG_IsOK(ecode3)) { | |
13631 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
13632 | } | |
13633 | arg3 = static_cast< bool >(val3); | |
13634 | } | |
13635 | { | |
13636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13637 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
13638 | wxPyEndAllowThreads(__tstate); | |
13639 | if (PyErr_Occurred()) SWIG_fail; | |
13640 | } | |
13641 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13642 | { | |
13643 | if (temp2) | |
13644 | delete arg2; | |
13645 | } | |
13646 | return resultobj; | |
13647 | fail: | |
13648 | { | |
13649 | if (temp2) | |
13650 | delete arg2; | |
13651 | } | |
13652 | return NULL; | |
d55e5bfc RD |
13653 | } |
13654 | ||
13655 | ||
554f62e9 RD |
13656 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13657 | PyObject *resultobj = 0; | |
13658 | size_t result; | |
13659 | ||
13660 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
13661 | { | |
13662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13663 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
13664 | wxPyEndAllowThreads(__tstate); | |
13665 | if (PyErr_Occurred()) SWIG_fail; | |
13666 | } | |
13667 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
13668 | return resultobj; | |
13669 | fail: | |
13670 | return NULL; | |
13671 | } | |
13672 | ||
13673 | ||
13674 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13675 | PyObject *resultobj = 0; | |
13676 | size_t arg1 ; | |
13677 | wxFontEncoding result; | |
13678 | size_t val1 ; | |
13679 | int ecode1 = 0 ; | |
13680 | PyObject * obj0 = 0 ; | |
13681 | char * kwnames[] = { | |
13682 | (char *) "n", NULL | |
13683 | }; | |
13684 | ||
13685 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
13686 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
13687 | if (!SWIG_IsOK(ecode1)) { | |
13688 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
13689 | } | |
13690 | arg1 = static_cast< size_t >(val1); | |
13691 | { | |
13692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13693 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
13694 | wxPyEndAllowThreads(__tstate); | |
13695 | if (PyErr_Occurred()) SWIG_fail; | |
13696 | } | |
13697 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13698 | return resultobj; | |
13699 | fail: | |
13700 | return NULL; | |
13701 | } | |
13702 | ||
13703 | ||
13704 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13705 | PyObject *resultobj = 0; | |
13706 | wxFontEncoding arg1 ; | |
13707 | wxString result; | |
13708 | int val1 ; | |
13709 | int ecode1 = 0 ; | |
13710 | PyObject * obj0 = 0 ; | |
13711 | char * kwnames[] = { | |
13712 | (char *) "encoding", NULL | |
13713 | }; | |
13714 | ||
13715 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
13716 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13717 | if (!SWIG_IsOK(ecode1)) { | |
13718 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13719 | } | |
13720 | arg1 = static_cast< wxFontEncoding >(val1); | |
13721 | { | |
13722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13723 | result = wxFontMapper::GetEncodingName(arg1); | |
13724 | wxPyEndAllowThreads(__tstate); | |
13725 | if (PyErr_Occurred()) SWIG_fail; | |
13726 | } | |
13727 | { | |
13728 | #if wxUSE_UNICODE | |
13729 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13730 | #else | |
13731 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13732 | #endif | |
13733 | } | |
13734 | return resultobj; | |
13735 | fail: | |
13736 | return NULL; | |
d55e5bfc RD |
13737 | } |
13738 | ||
13739 | ||
554f62e9 RD |
13740 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13741 | PyObject *resultobj = 0; | |
13742 | wxFontEncoding arg1 ; | |
13743 | wxString result; | |
13744 | int val1 ; | |
13745 | int ecode1 = 0 ; | |
13746 | PyObject * obj0 = 0 ; | |
13747 | char * kwnames[] = { | |
13748 | (char *) "encoding", NULL | |
13749 | }; | |
13750 | ||
13751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
13752 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13753 | if (!SWIG_IsOK(ecode1)) { | |
13754 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13755 | } | |
13756 | arg1 = static_cast< wxFontEncoding >(val1); | |
13757 | { | |
13758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13759 | result = wxFontMapper::GetEncodingDescription(arg1); | |
13760 | wxPyEndAllowThreads(__tstate); | |
13761 | if (PyErr_Occurred()) SWIG_fail; | |
13762 | } | |
13763 | { | |
13764 | #if wxUSE_UNICODE | |
13765 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13766 | #else | |
13767 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13768 | #endif | |
13769 | } | |
13770 | return resultobj; | |
13771 | fail: | |
13772 | return NULL; | |
d55e5bfc RD |
13773 | } |
13774 | ||
13775 | ||
554f62e9 RD |
13776 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13777 | PyObject *resultobj = 0; | |
13778 | wxString *arg1 = 0 ; | |
13779 | wxFontEncoding result; | |
13780 | bool temp1 = false ; | |
13781 | PyObject * obj0 = 0 ; | |
13782 | char * kwnames[] = { | |
13783 | (char *) "name", NULL | |
13784 | }; | |
13785 | ||
13786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
13787 | { | |
13788 | arg1 = wxString_in_helper(obj0); | |
13789 | if (arg1 == NULL) SWIG_fail; | |
13790 | temp1 = true; | |
13791 | } | |
13792 | { | |
13793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13794 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
13795 | wxPyEndAllowThreads(__tstate); | |
13796 | if (PyErr_Occurred()) SWIG_fail; | |
13797 | } | |
13798 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13799 | { | |
13800 | if (temp1) | |
13801 | delete arg1; | |
13802 | } | |
13803 | return resultobj; | |
13804 | fail: | |
13805 | { | |
13806 | if (temp1) | |
13807 | delete arg1; | |
13808 | } | |
13809 | return NULL; | |
d55e5bfc RD |
13810 | } |
13811 | ||
13812 | ||
554f62e9 RD |
13813 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13814 | PyObject *resultobj = 0; | |
13815 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13816 | wxString *arg2 = 0 ; | |
13817 | void *argp1 = 0 ; | |
13818 | int res1 = 0 ; | |
13819 | bool temp2 = false ; | |
13820 | PyObject * obj0 = 0 ; | |
13821 | PyObject * obj1 = 0 ; | |
13822 | char * kwnames[] = { | |
13823 | (char *) "self",(char *) "prefix", NULL | |
13824 | }; | |
13825 | ||
13826 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
13827 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13828 | if (!SWIG_IsOK(res1)) { | |
13829 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13830 | } | |
13831 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13832 | { | |
13833 | arg2 = wxString_in_helper(obj1); | |
13834 | if (arg2 == NULL) SWIG_fail; | |
13835 | temp2 = true; | |
13836 | } | |
13837 | { | |
13838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13839 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
13840 | wxPyEndAllowThreads(__tstate); | |
13841 | if (PyErr_Occurred()) SWIG_fail; | |
13842 | } | |
13843 | resultobj = SWIG_Py_Void(); | |
13844 | { | |
13845 | if (temp2) | |
13846 | delete arg2; | |
13847 | } | |
13848 | return resultobj; | |
13849 | fail: | |
13850 | { | |
13851 | if (temp2) | |
13852 | delete arg2; | |
13853 | } | |
13854 | return NULL; | |
d55e5bfc RD |
13855 | } |
13856 | ||
13857 | ||
554f62e9 RD |
13858 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13859 | PyObject *resultobj = 0; | |
13860 | wxString result; | |
13861 | ||
13862 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
13863 | { | |
13864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13865 | result = wxFontMapper::GetDefaultConfigPath(); | |
13866 | wxPyEndAllowThreads(__tstate); | |
13867 | if (PyErr_Occurred()) SWIG_fail; | |
13868 | } | |
13869 | { | |
13870 | #if wxUSE_UNICODE | |
13871 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13872 | #else | |
13873 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13874 | #endif | |
13875 | } | |
13876 | return resultobj; | |
13877 | fail: | |
13878 | return NULL; | |
13879 | } | |
13880 | ||
13881 | ||
13882 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13883 | PyObject *resultobj = 0; | |
13884 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13885 | wxFontEncoding arg2 ; | |
13886 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13887 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13888 | bool arg4 = (bool) true ; | |
13889 | PyObject *result = 0 ; | |
13890 | void *argp1 = 0 ; | |
13891 | int res1 = 0 ; | |
13892 | int val2 ; | |
13893 | int ecode2 = 0 ; | |
13894 | bool temp3 = false ; | |
13895 | bool val4 ; | |
13896 | int ecode4 = 0 ; | |
13897 | PyObject * obj0 = 0 ; | |
13898 | PyObject * obj1 = 0 ; | |
13899 | PyObject * obj2 = 0 ; | |
13900 | PyObject * obj3 = 0 ; | |
13901 | char * kwnames[] = { | |
13902 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
13903 | }; | |
13904 | ||
13905 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
13906 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13907 | if (!SWIG_IsOK(res1)) { | |
13908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13909 | } | |
13910 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13911 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13912 | if (!SWIG_IsOK(ecode2)) { | |
13913 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13914 | } | |
13915 | arg2 = static_cast< wxFontEncoding >(val2); | |
13916 | if (obj2) { | |
d55e5bfc | 13917 | { |
554f62e9 RD |
13918 | arg3 = wxString_in_helper(obj2); |
13919 | if (arg3 == NULL) SWIG_fail; | |
13920 | temp3 = true; | |
d55e5bfc | 13921 | } |
554f62e9 RD |
13922 | } |
13923 | if (obj3) { | |
13924 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
13925 | if (!SWIG_IsOK(ecode4)) { | |
13926 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
13927 | } | |
13928 | arg4 = static_cast< bool >(val4); | |
13929 | } | |
13930 | { | |
13931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13932 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
13933 | wxPyEndAllowThreads(__tstate); | |
13934 | if (PyErr_Occurred()) SWIG_fail; | |
13935 | } | |
13936 | resultobj = result; | |
13937 | { | |
13938 | if (temp3) | |
13939 | delete arg3; | |
13940 | } | |
13941 | return resultobj; | |
13942 | fail: | |
13943 | { | |
13944 | if (temp3) | |
13945 | delete arg3; | |
13946 | } | |
13947 | return NULL; | |
13948 | } | |
13949 | ||
13950 | ||
13951 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13952 | PyObject *resultobj = 0; | |
13953 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13954 | wxFontEncoding arg2 ; | |
13955 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13956 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
13957 | bool result; | |
13958 | void *argp1 = 0 ; | |
13959 | int res1 = 0 ; | |
13960 | int val2 ; | |
13961 | int ecode2 = 0 ; | |
13962 | bool temp3 = false ; | |
13963 | PyObject * obj0 = 0 ; | |
13964 | PyObject * obj1 = 0 ; | |
13965 | PyObject * obj2 = 0 ; | |
13966 | char * kwnames[] = { | |
13967 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
13968 | }; | |
13969 | ||
13970 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13971 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13972 | if (!SWIG_IsOK(res1)) { | |
13973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13974 | } | |
13975 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13976 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13977 | if (!SWIG_IsOK(ecode2)) { | |
13978 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13979 | } | |
13980 | arg2 = static_cast< wxFontEncoding >(val2); | |
13981 | if (obj2) { | |
093d3ff1 | 13982 | { |
554f62e9 RD |
13983 | arg3 = wxString_in_helper(obj2); |
13984 | if (arg3 == NULL) SWIG_fail; | |
13985 | temp3 = true; | |
d55e5bfc | 13986 | } |
554f62e9 RD |
13987 | } |
13988 | { | |
13989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13990 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
13991 | wxPyEndAllowThreads(__tstate); | |
13992 | if (PyErr_Occurred()) SWIG_fail; | |
13993 | } | |
13994 | { | |
13995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13996 | } | |
13997 | { | |
13998 | if (temp3) | |
13999 | delete arg3; | |
14000 | } | |
14001 | return resultobj; | |
14002 | fail: | |
14003 | { | |
14004 | if (temp3) | |
14005 | delete arg3; | |
14006 | } | |
14007 | return NULL; | |
14008 | } | |
14009 | ||
14010 | ||
14011 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14012 | PyObject *resultobj = 0; | |
14013 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14014 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14015 | void *argp1 = 0 ; | |
14016 | int res1 = 0 ; | |
14017 | void *argp2 = 0 ; | |
14018 | int res2 = 0 ; | |
14019 | PyObject * obj0 = 0 ; | |
14020 | PyObject * obj1 = 0 ; | |
14021 | char * kwnames[] = { | |
14022 | (char *) "self",(char *) "parent", NULL | |
14023 | }; | |
14024 | ||
14025 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
14026 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14027 | if (!SWIG_IsOK(res1)) { | |
14028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14029 | } | |
14030 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14031 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14032 | if (!SWIG_IsOK(res2)) { | |
14033 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14034 | } | |
14035 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14036 | { | |
14037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14038 | (arg1)->SetDialogParent(arg2); | |
14039 | wxPyEndAllowThreads(__tstate); | |
14040 | if (PyErr_Occurred()) SWIG_fail; | |
14041 | } | |
14042 | resultobj = SWIG_Py_Void(); | |
14043 | return resultobj; | |
14044 | fail: | |
14045 | return NULL; | |
14046 | } | |
14047 | ||
14048 | ||
14049 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14050 | PyObject *resultobj = 0; | |
14051 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14052 | wxString *arg2 = 0 ; | |
14053 | void *argp1 = 0 ; | |
14054 | int res1 = 0 ; | |
14055 | bool temp2 = false ; | |
14056 | PyObject * obj0 = 0 ; | |
14057 | PyObject * obj1 = 0 ; | |
14058 | char * kwnames[] = { | |
14059 | (char *) "self",(char *) "title", NULL | |
14060 | }; | |
14061 | ||
14062 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
14063 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14064 | if (!SWIG_IsOK(res1)) { | |
14065 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14066 | } | |
14067 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14068 | { | |
14069 | arg2 = wxString_in_helper(obj1); | |
14070 | if (arg2 == NULL) SWIG_fail; | |
14071 | temp2 = true; | |
14072 | } | |
14073 | { | |
14074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14075 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
14076 | wxPyEndAllowThreads(__tstate); | |
14077 | if (PyErr_Occurred()) SWIG_fail; | |
14078 | } | |
14079 | resultobj = SWIG_Py_Void(); | |
14080 | { | |
14081 | if (temp2) | |
14082 | delete arg2; | |
14083 | } | |
14084 | return resultobj; | |
14085 | fail: | |
14086 | { | |
14087 | if (temp2) | |
14088 | delete arg2; | |
14089 | } | |
14090 | return NULL; | |
14091 | } | |
14092 | ||
14093 | ||
14094 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14095 | PyObject *obj; | |
14096 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14097 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
14098 | return SWIG_Py_Void(); | |
14099 | } | |
14100 | ||
14101 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14102 | return SWIG_Python_InitShadowInstance(args); | |
14103 | } | |
14104 | ||
14105 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14106 | PyObject *resultobj = 0; | |
14107 | int arg1 ; | |
14108 | int arg2 ; | |
14109 | int arg3 ; | |
14110 | int arg4 ; | |
14111 | bool arg5 = (bool) false ; | |
14112 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14113 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14114 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14115 | wxFont *result = 0 ; | |
14116 | int val1 ; | |
14117 | int ecode1 = 0 ; | |
14118 | int val2 ; | |
14119 | int ecode2 = 0 ; | |
14120 | int val3 ; | |
14121 | int ecode3 = 0 ; | |
14122 | int val4 ; | |
14123 | int ecode4 = 0 ; | |
14124 | bool val5 ; | |
14125 | int ecode5 = 0 ; | |
14126 | bool temp6 = false ; | |
14127 | int val7 ; | |
14128 | int ecode7 = 0 ; | |
14129 | PyObject * obj0 = 0 ; | |
14130 | PyObject * obj1 = 0 ; | |
14131 | PyObject * obj2 = 0 ; | |
14132 | PyObject * obj3 = 0 ; | |
14133 | PyObject * obj4 = 0 ; | |
14134 | PyObject * obj5 = 0 ; | |
14135 | PyObject * obj6 = 0 ; | |
14136 | char * kwnames[] = { | |
14137 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
14138 | }; | |
14139 | ||
14140 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14141 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14142 | if (!SWIG_IsOK(ecode1)) { | |
14143 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
14144 | } | |
14145 | arg1 = static_cast< int >(val1); | |
14146 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14147 | if (!SWIG_IsOK(ecode2)) { | |
14148 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
14149 | } | |
14150 | arg2 = static_cast< int >(val2); | |
14151 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14152 | if (!SWIG_IsOK(ecode3)) { | |
14153 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
14154 | } | |
14155 | arg3 = static_cast< int >(val3); | |
14156 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14157 | if (!SWIG_IsOK(ecode4)) { | |
14158 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
14159 | } | |
14160 | arg4 = static_cast< int >(val4); | |
14161 | if (obj4) { | |
14162 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14163 | if (!SWIG_IsOK(ecode5)) { | |
14164 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
14165 | } | |
14166 | arg5 = static_cast< bool >(val5); | |
14167 | } | |
14168 | if (obj5) { | |
d55e5bfc | 14169 | { |
554f62e9 RD |
14170 | arg6 = wxString_in_helper(obj5); |
14171 | if (arg6 == NULL) SWIG_fail; | |
14172 | temp6 = true; | |
d55e5bfc | 14173 | } |
554f62e9 RD |
14174 | } |
14175 | if (obj6) { | |
14176 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14177 | if (!SWIG_IsOK(ecode7)) { | |
14178 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14179 | } | |
14180 | arg7 = static_cast< wxFontEncoding >(val7); | |
14181 | } | |
14182 | { | |
14183 | if (!wxPyCheckForApp()) SWIG_fail; | |
14184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14185 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14186 | wxPyEndAllowThreads(__tstate); | |
14187 | if (PyErr_Occurred()) SWIG_fail; | |
14188 | } | |
14189 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
14190 | { | |
14191 | if (temp6) | |
14192 | delete arg6; | |
14193 | } | |
14194 | return resultobj; | |
14195 | fail: | |
14196 | { | |
14197 | if (temp6) | |
14198 | delete arg6; | |
14199 | } | |
14200 | return NULL; | |
d55e5bfc RD |
14201 | } |
14202 | ||
14203 | ||
554f62e9 RD |
14204 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14205 | PyObject *resultobj = 0; | |
14206 | wxFont *arg1 = (wxFont *) 0 ; | |
14207 | void *argp1 = 0 ; | |
14208 | int res1 = 0 ; | |
14209 | PyObject *swig_obj[1] ; | |
14210 | ||
14211 | if (!args) SWIG_fail; | |
14212 | swig_obj[0] = args; | |
14213 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
14214 | if (!SWIG_IsOK(res1)) { | |
14215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14216 | } | |
14217 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14218 | { | |
14219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14220 | delete arg1; | |
d55e5bfc | 14221 | |
554f62e9 RD |
14222 | wxPyEndAllowThreads(__tstate); |
14223 | if (PyErr_Occurred()) SWIG_fail; | |
14224 | } | |
14225 | resultobj = SWIG_Py_Void(); | |
14226 | return resultobj; | |
14227 | fail: | |
14228 | return NULL; | |
14229 | } | |
14230 | ||
14231 | ||
14232 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14233 | PyObject *resultobj = 0; | |
14234 | wxNativeFontInfo *arg1 = 0 ; | |
14235 | wxFont *result = 0 ; | |
14236 | void *argp1 = 0 ; | |
14237 | int res1 = 0 ; | |
14238 | PyObject * obj0 = 0 ; | |
14239 | char * kwnames[] = { | |
14240 | (char *) "info", NULL | |
14241 | }; | |
14242 | ||
14243 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
14244 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
14245 | if (!SWIG_IsOK(res1)) { | |
14246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
14247 | } | |
14248 | if (!argp1) { | |
14249 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
14250 | } | |
14251 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
14252 | { | |
14253 | if (!wxPyCheckForApp()) SWIG_fail; | |
14254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14255 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
14256 | wxPyEndAllowThreads(__tstate); | |
14257 | if (PyErr_Occurred()) SWIG_fail; | |
14258 | } | |
14259 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14260 | return resultobj; | |
14261 | fail: | |
14262 | return NULL; | |
d55e5bfc RD |
14263 | } |
14264 | ||
14265 | ||
554f62e9 RD |
14266 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14267 | PyObject *resultobj = 0; | |
14268 | wxString *arg1 = 0 ; | |
14269 | wxFont *result = 0 ; | |
14270 | bool temp1 = false ; | |
14271 | PyObject * obj0 = 0 ; | |
14272 | char * kwnames[] = { | |
14273 | (char *) "info", NULL | |
14274 | }; | |
14275 | ||
14276 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
14277 | { | |
14278 | arg1 = wxString_in_helper(obj0); | |
14279 | if (arg1 == NULL) SWIG_fail; | |
14280 | temp1 = true; | |
14281 | } | |
14282 | { | |
14283 | if (!wxPyCheckForApp()) SWIG_fail; | |
14284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14285 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
14286 | wxPyEndAllowThreads(__tstate); | |
14287 | if (PyErr_Occurred()) SWIG_fail; | |
14288 | } | |
14289 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14290 | { | |
14291 | if (temp1) | |
14292 | delete arg1; | |
14293 | } | |
14294 | return resultobj; | |
14295 | fail: | |
14296 | { | |
14297 | if (temp1) | |
14298 | delete arg1; | |
14299 | } | |
14300 | return NULL; | |
14301 | } | |
14302 | ||
14303 | ||
14304 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14305 | PyObject *resultobj = 0; | |
14306 | int arg1 ; | |
14307 | wxFontFamily arg2 ; | |
14308 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14309 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14310 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14311 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14312 | wxFont *result = 0 ; | |
14313 | int val1 ; | |
14314 | int ecode1 = 0 ; | |
14315 | int val2 ; | |
14316 | int ecode2 = 0 ; | |
14317 | int val3 ; | |
14318 | int ecode3 = 0 ; | |
14319 | bool temp4 = false ; | |
14320 | int val5 ; | |
14321 | int ecode5 = 0 ; | |
14322 | PyObject * obj0 = 0 ; | |
14323 | PyObject * obj1 = 0 ; | |
14324 | PyObject * obj2 = 0 ; | |
14325 | PyObject * obj3 = 0 ; | |
14326 | PyObject * obj4 = 0 ; | |
14327 | char * kwnames[] = { | |
14328 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14329 | }; | |
14330 | ||
14331 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14332 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14333 | if (!SWIG_IsOK(ecode1)) { | |
14334 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
14335 | } | |
14336 | arg1 = static_cast< int >(val1); | |
14337 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14338 | if (!SWIG_IsOK(ecode2)) { | |
14339 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14340 | } | |
14341 | arg2 = static_cast< wxFontFamily >(val2); | |
14342 | if (obj2) { | |
14343 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14344 | if (!SWIG_IsOK(ecode3)) { | |
14345 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
14346 | } | |
14347 | arg3 = static_cast< int >(val3); | |
14348 | } | |
14349 | if (obj3) { | |
d55e5bfc | 14350 | { |
554f62e9 RD |
14351 | arg4 = wxString_in_helper(obj3); |
14352 | if (arg4 == NULL) SWIG_fail; | |
14353 | temp4 = true; | |
d55e5bfc | 14354 | } |
554f62e9 RD |
14355 | } |
14356 | if (obj4) { | |
14357 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14358 | if (!SWIG_IsOK(ecode5)) { | |
14359 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14360 | } | |
14361 | arg5 = static_cast< wxFontEncoding >(val5); | |
14362 | } | |
14363 | { | |
14364 | if (!wxPyCheckForApp()) SWIG_fail; | |
14365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14366 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14367 | wxPyEndAllowThreads(__tstate); | |
14368 | if (PyErr_Occurred()) SWIG_fail; | |
14369 | } | |
14370 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14371 | { | |
14372 | if (temp4) | |
14373 | delete arg4; | |
14374 | } | |
14375 | return resultobj; | |
14376 | fail: | |
14377 | { | |
14378 | if (temp4) | |
14379 | delete arg4; | |
14380 | } | |
14381 | return NULL; | |
14382 | } | |
14383 | ||
14384 | ||
14385 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14386 | PyObject *resultobj = 0; | |
14387 | wxSize *arg1 = 0 ; | |
14388 | int arg2 ; | |
14389 | int arg3 ; | |
14390 | int arg4 ; | |
14391 | bool arg5 = (bool) false ; | |
14392 | wxString const &arg6_defvalue = wxEmptyString ; | |
14393 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14394 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14395 | wxFont *result = 0 ; | |
14396 | wxSize temp1 ; | |
14397 | int val2 ; | |
14398 | int ecode2 = 0 ; | |
14399 | int val3 ; | |
14400 | int ecode3 = 0 ; | |
14401 | int val4 ; | |
14402 | int ecode4 = 0 ; | |
14403 | bool val5 ; | |
14404 | int ecode5 = 0 ; | |
14405 | bool temp6 = false ; | |
14406 | int val7 ; | |
14407 | int ecode7 = 0 ; | |
14408 | PyObject * obj0 = 0 ; | |
14409 | PyObject * obj1 = 0 ; | |
14410 | PyObject * obj2 = 0 ; | |
14411 | PyObject * obj3 = 0 ; | |
14412 | PyObject * obj4 = 0 ; | |
14413 | PyObject * obj5 = 0 ; | |
14414 | PyObject * obj6 = 0 ; | |
14415 | char * kwnames[] = { | |
14416 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
14417 | }; | |
14418 | ||
14419 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14420 | { | |
14421 | arg1 = &temp1; | |
14422 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14423 | } | |
14424 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14425 | if (!SWIG_IsOK(ecode2)) { | |
14426 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
14427 | } | |
14428 | arg2 = static_cast< int >(val2); | |
14429 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14430 | if (!SWIG_IsOK(ecode3)) { | |
14431 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14432 | } | |
14433 | arg3 = static_cast< int >(val3); | |
14434 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14435 | if (!SWIG_IsOK(ecode4)) { | |
14436 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
14437 | } | |
14438 | arg4 = static_cast< int >(val4); | |
14439 | if (obj4) { | |
14440 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14441 | if (!SWIG_IsOK(ecode5)) { | |
14442 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
14443 | } | |
14444 | arg5 = static_cast< bool >(val5); | |
14445 | } | |
14446 | if (obj5) { | |
d55e5bfc | 14447 | { |
554f62e9 RD |
14448 | arg6 = wxString_in_helper(obj5); |
14449 | if (arg6 == NULL) SWIG_fail; | |
14450 | temp6 = true; | |
d55e5bfc | 14451 | } |
554f62e9 RD |
14452 | } |
14453 | if (obj6) { | |
14454 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14455 | if (!SWIG_IsOK(ecode7)) { | |
14456 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14457 | } | |
14458 | arg7 = static_cast< wxFontEncoding >(val7); | |
14459 | } | |
14460 | { | |
14461 | if (!wxPyCheckForApp()) SWIG_fail; | |
14462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14463 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14464 | wxPyEndAllowThreads(__tstate); | |
14465 | if (PyErr_Occurred()) SWIG_fail; | |
14466 | } | |
14467 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14468 | { | |
14469 | if (temp6) | |
14470 | delete arg6; | |
14471 | } | |
14472 | return resultobj; | |
14473 | fail: | |
14474 | { | |
14475 | if (temp6) | |
14476 | delete arg6; | |
14477 | } | |
14478 | return NULL; | |
14479 | } | |
14480 | ||
14481 | ||
14482 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14483 | PyObject *resultobj = 0; | |
14484 | wxSize *arg1 = 0 ; | |
14485 | wxFontFamily arg2 ; | |
14486 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14487 | wxString const &arg4_defvalue = wxEmptyString ; | |
14488 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14489 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14490 | wxFont *result = 0 ; | |
14491 | wxSize temp1 ; | |
14492 | int val2 ; | |
14493 | int ecode2 = 0 ; | |
14494 | int val3 ; | |
14495 | int ecode3 = 0 ; | |
14496 | bool temp4 = false ; | |
14497 | int val5 ; | |
14498 | int ecode5 = 0 ; | |
14499 | PyObject * obj0 = 0 ; | |
14500 | PyObject * obj1 = 0 ; | |
14501 | PyObject * obj2 = 0 ; | |
14502 | PyObject * obj3 = 0 ; | |
14503 | PyObject * obj4 = 0 ; | |
14504 | char * kwnames[] = { | |
14505 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14506 | }; | |
14507 | ||
14508 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14509 | { | |
14510 | arg1 = &temp1; | |
14511 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14512 | } | |
14513 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14514 | if (!SWIG_IsOK(ecode2)) { | |
14515 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14516 | } | |
14517 | arg2 = static_cast< wxFontFamily >(val2); | |
14518 | if (obj2) { | |
14519 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14520 | if (!SWIG_IsOK(ecode3)) { | |
14521 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14522 | } | |
14523 | arg3 = static_cast< int >(val3); | |
14524 | } | |
14525 | if (obj3) { | |
d55e5bfc | 14526 | { |
554f62e9 RD |
14527 | arg4 = wxString_in_helper(obj3); |
14528 | if (arg4 == NULL) SWIG_fail; | |
14529 | temp4 = true; | |
d55e5bfc | 14530 | } |
554f62e9 RD |
14531 | } |
14532 | if (obj4) { | |
14533 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14534 | if (!SWIG_IsOK(ecode5)) { | |
14535 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14536 | } | |
14537 | arg5 = static_cast< wxFontEncoding >(val5); | |
14538 | } | |
14539 | { | |
14540 | if (!wxPyCheckForApp()) SWIG_fail; | |
14541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14542 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14543 | wxPyEndAllowThreads(__tstate); | |
14544 | if (PyErr_Occurred()) SWIG_fail; | |
14545 | } | |
14546 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14547 | { | |
14548 | if (temp4) | |
14549 | delete arg4; | |
14550 | } | |
14551 | return resultobj; | |
14552 | fail: | |
14553 | { | |
14554 | if (temp4) | |
14555 | delete arg4; | |
14556 | } | |
14557 | return NULL; | |
d55e5bfc RD |
14558 | } |
14559 | ||
14560 | ||
b39fe951 | 14561 | SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
14562 | PyObject *resultobj = 0; |
14563 | wxFont *arg1 = (wxFont *) 0 ; | |
14564 | bool result; | |
14565 | void *argp1 = 0 ; | |
14566 | int res1 = 0 ; | |
14567 | PyObject *swig_obj[1] ; | |
14568 | ||
14569 | if (!args) SWIG_fail; | |
14570 | swig_obj[0] = args; | |
14571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14572 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 14573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'"); |
554f62e9 RD |
14574 | } |
14575 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14576 | { | |
14577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 14578 | result = (bool)((wxFont const *)arg1)->IsOk(); |
554f62e9 RD |
14579 | wxPyEndAllowThreads(__tstate); |
14580 | if (PyErr_Occurred()) SWIG_fail; | |
14581 | } | |
14582 | { | |
14583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14584 | } | |
14585 | return resultobj; | |
14586 | fail: | |
14587 | return NULL; | |
14588 | } | |
14589 | ||
14590 | ||
14591 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14592 | PyObject *resultobj = 0; | |
14593 | wxFont *arg1 = (wxFont *) 0 ; | |
14594 | wxFont *arg2 = (wxFont *) 0 ; | |
14595 | bool result; | |
14596 | void *argp1 = 0 ; | |
14597 | int res1 = 0 ; | |
14598 | void *argp2 = 0 ; | |
14599 | int res2 = 0 ; | |
14600 | PyObject * obj0 = 0 ; | |
14601 | PyObject * obj1 = 0 ; | |
14602 | char * kwnames[] = { | |
14603 | (char *) "self",(char *) "other", NULL | |
14604 | }; | |
14605 | ||
14606 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14607 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14608 | if (!SWIG_IsOK(res1)) { | |
14609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14610 | } | |
14611 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14612 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14613 | if (!SWIG_IsOK(res2)) { | |
14614 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14615 | } | |
14616 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14617 | { | |
14618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14619 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
14620 | wxPyEndAllowThreads(__tstate); | |
14621 | if (PyErr_Occurred()) SWIG_fail; | |
14622 | } | |
14623 | { | |
14624 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14625 | } | |
14626 | return resultobj; | |
14627 | fail: | |
14628 | return NULL; | |
14629 | } | |
14630 | ||
14631 | ||
14632 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14633 | PyObject *resultobj = 0; | |
14634 | wxFont *arg1 = (wxFont *) 0 ; | |
14635 | wxFont *arg2 = (wxFont *) 0 ; | |
14636 | bool result; | |
14637 | void *argp1 = 0 ; | |
14638 | int res1 = 0 ; | |
14639 | void *argp2 = 0 ; | |
14640 | int res2 = 0 ; | |
14641 | PyObject * obj0 = 0 ; | |
14642 | PyObject * obj1 = 0 ; | |
14643 | char * kwnames[] = { | |
14644 | (char *) "self",(char *) "other", NULL | |
14645 | }; | |
14646 | ||
14647 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14648 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14649 | if (!SWIG_IsOK(res1)) { | |
14650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14651 | } | |
14652 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14653 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14654 | if (!SWIG_IsOK(res2)) { | |
14655 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14656 | } | |
14657 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14658 | { | |
14659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14660 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
14661 | wxPyEndAllowThreads(__tstate); | |
14662 | if (PyErr_Occurred()) SWIG_fail; | |
14663 | } | |
14664 | { | |
14665 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14666 | } | |
14667 | return resultobj; | |
14668 | fail: | |
14669 | return NULL; | |
a2569024 RD |
14670 | } |
14671 | ||
14672 | ||
554f62e9 RD |
14673 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14674 | PyObject *resultobj = 0; | |
14675 | wxFont *arg1 = (wxFont *) 0 ; | |
14676 | int result; | |
14677 | void *argp1 = 0 ; | |
14678 | int res1 = 0 ; | |
14679 | PyObject *swig_obj[1] ; | |
14680 | ||
14681 | if (!args) SWIG_fail; | |
14682 | swig_obj[0] = args; | |
14683 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14684 | if (!SWIG_IsOK(res1)) { | |
14685 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14686 | } | |
14687 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14688 | { | |
14689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14690 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
14691 | wxPyEndAllowThreads(__tstate); | |
14692 | if (PyErr_Occurred()) SWIG_fail; | |
14693 | } | |
14694 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14695 | return resultobj; | |
14696 | fail: | |
14697 | return NULL; | |
d55e5bfc RD |
14698 | } |
14699 | ||
14700 | ||
554f62e9 RD |
14701 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14702 | PyObject *resultobj = 0; | |
14703 | wxFont *arg1 = (wxFont *) 0 ; | |
14704 | wxSize result; | |
14705 | void *argp1 = 0 ; | |
14706 | int res1 = 0 ; | |
14707 | PyObject *swig_obj[1] ; | |
14708 | ||
14709 | if (!args) SWIG_fail; | |
14710 | swig_obj[0] = args; | |
14711 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14712 | if (!SWIG_IsOK(res1)) { | |
14713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14714 | } | |
14715 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14716 | { | |
14717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14718 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
14719 | wxPyEndAllowThreads(__tstate); | |
14720 | if (PyErr_Occurred()) SWIG_fail; | |
14721 | } | |
14722 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
14723 | return resultobj; | |
14724 | fail: | |
14725 | return NULL; | |
d55e5bfc RD |
14726 | } |
14727 | ||
14728 | ||
554f62e9 RD |
14729 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14730 | PyObject *resultobj = 0; | |
14731 | wxFont *arg1 = (wxFont *) 0 ; | |
14732 | bool result; | |
14733 | void *argp1 = 0 ; | |
14734 | int res1 = 0 ; | |
14735 | PyObject *swig_obj[1] ; | |
14736 | ||
14737 | if (!args) SWIG_fail; | |
14738 | swig_obj[0] = args; | |
14739 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14740 | if (!SWIG_IsOK(res1)) { | |
14741 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14742 | } | |
14743 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14744 | { | |
14745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14746 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
14747 | wxPyEndAllowThreads(__tstate); | |
14748 | if (PyErr_Occurred()) SWIG_fail; | |
14749 | } | |
14750 | { | |
14751 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14752 | } | |
14753 | return resultobj; | |
14754 | fail: | |
14755 | return NULL; | |
d55e5bfc RD |
14756 | } |
14757 | ||
14758 | ||
554f62e9 RD |
14759 | SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14760 | PyObject *resultobj = 0; | |
14761 | wxFont *arg1 = (wxFont *) 0 ; | |
14762 | int result; | |
14763 | void *argp1 = 0 ; | |
14764 | int res1 = 0 ; | |
14765 | PyObject *swig_obj[1] ; | |
14766 | ||
14767 | if (!args) SWIG_fail; | |
14768 | swig_obj[0] = args; | |
14769 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14770 | if (!SWIG_IsOK(res1)) { | |
14771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14772 | } | |
14773 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14774 | { | |
14775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14776 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
14777 | wxPyEndAllowThreads(__tstate); | |
14778 | if (PyErr_Occurred()) SWIG_fail; | |
14779 | } | |
14780 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14781 | return resultobj; | |
14782 | fail: | |
14783 | return NULL; | |
d55e5bfc RD |
14784 | } |
14785 | ||
14786 | ||
554f62e9 RD |
14787 | SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14788 | PyObject *resultobj = 0; | |
14789 | wxFont *arg1 = (wxFont *) 0 ; | |
14790 | int result; | |
14791 | void *argp1 = 0 ; | |
14792 | int res1 = 0 ; | |
14793 | PyObject *swig_obj[1] ; | |
14794 | ||
14795 | if (!args) SWIG_fail; | |
14796 | swig_obj[0] = args; | |
14797 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14798 | if (!SWIG_IsOK(res1)) { | |
14799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14800 | } | |
14801 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14802 | { | |
14803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14804 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
14805 | wxPyEndAllowThreads(__tstate); | |
14806 | if (PyErr_Occurred()) SWIG_fail; | |
14807 | } | |
14808 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14809 | return resultobj; | |
14810 | fail: | |
14811 | return NULL; | |
d55e5bfc RD |
14812 | } |
14813 | ||
14814 | ||
554f62e9 RD |
14815 | SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14816 | PyObject *resultobj = 0; | |
14817 | wxFont *arg1 = (wxFont *) 0 ; | |
14818 | int result; | |
14819 | void *argp1 = 0 ; | |
14820 | int res1 = 0 ; | |
14821 | PyObject *swig_obj[1] ; | |
14822 | ||
14823 | if (!args) SWIG_fail; | |
14824 | swig_obj[0] = args; | |
14825 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14826 | if (!SWIG_IsOK(res1)) { | |
14827 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14828 | } | |
14829 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14830 | { | |
14831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14832 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
14833 | wxPyEndAllowThreads(__tstate); | |
14834 | if (PyErr_Occurred()) SWIG_fail; | |
14835 | } | |
14836 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14837 | return resultobj; | |
14838 | fail: | |
14839 | return NULL; | |
d55e5bfc RD |
14840 | } |
14841 | ||
14842 | ||
554f62e9 RD |
14843 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14844 | PyObject *resultobj = 0; | |
14845 | wxFont *arg1 = (wxFont *) 0 ; | |
14846 | bool result; | |
14847 | void *argp1 = 0 ; | |
14848 | int res1 = 0 ; | |
14849 | PyObject *swig_obj[1] ; | |
14850 | ||
14851 | if (!args) SWIG_fail; | |
14852 | swig_obj[0] = args; | |
14853 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14854 | if (!SWIG_IsOK(res1)) { | |
14855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14856 | } | |
14857 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14858 | { | |
14859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14860 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
14861 | wxPyEndAllowThreads(__tstate); | |
14862 | if (PyErr_Occurred()) SWIG_fail; | |
14863 | } | |
14864 | { | |
14865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14866 | } | |
14867 | return resultobj; | |
14868 | fail: | |
14869 | return NULL; | |
d55e5bfc RD |
14870 | } |
14871 | ||
14872 | ||
554f62e9 RD |
14873 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14874 | PyObject *resultobj = 0; | |
14875 | wxFont *arg1 = (wxFont *) 0 ; | |
14876 | wxString result; | |
14877 | void *argp1 = 0 ; | |
14878 | int res1 = 0 ; | |
14879 | PyObject *swig_obj[1] ; | |
14880 | ||
14881 | if (!args) SWIG_fail; | |
14882 | swig_obj[0] = args; | |
14883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14884 | if (!SWIG_IsOK(res1)) { | |
14885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14886 | } | |
14887 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14888 | { | |
14889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14890 | result = ((wxFont const *)arg1)->GetFaceName(); | |
14891 | wxPyEndAllowThreads(__tstate); | |
14892 | if (PyErr_Occurred()) SWIG_fail; | |
14893 | } | |
14894 | { | |
14895 | #if wxUSE_UNICODE | |
14896 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14897 | #else | |
14898 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14899 | #endif | |
14900 | } | |
14901 | return resultobj; | |
14902 | fail: | |
14903 | return NULL; | |
d55e5bfc RD |
14904 | } |
14905 | ||
14906 | ||
554f62e9 RD |
14907 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14908 | PyObject *resultobj = 0; | |
14909 | wxFont *arg1 = (wxFont *) 0 ; | |
14910 | wxFontEncoding result; | |
14911 | void *argp1 = 0 ; | |
14912 | int res1 = 0 ; | |
14913 | PyObject *swig_obj[1] ; | |
14914 | ||
14915 | if (!args) SWIG_fail; | |
14916 | swig_obj[0] = args; | |
14917 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14918 | if (!SWIG_IsOK(res1)) { | |
14919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14920 | } | |
14921 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14922 | { | |
14923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14924 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
14925 | wxPyEndAllowThreads(__tstate); | |
14926 | if (PyErr_Occurred()) SWIG_fail; | |
14927 | } | |
14928 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14929 | return resultobj; | |
14930 | fail: | |
14931 | return NULL; | |
d55e5bfc RD |
14932 | } |
14933 | ||
14934 | ||
554f62e9 RD |
14935 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14936 | PyObject *resultobj = 0; | |
14937 | wxFont *arg1 = (wxFont *) 0 ; | |
14938 | wxNativeFontInfo *result = 0 ; | |
14939 | void *argp1 = 0 ; | |
14940 | int res1 = 0 ; | |
14941 | PyObject *swig_obj[1] ; | |
14942 | ||
14943 | if (!args) SWIG_fail; | |
14944 | swig_obj[0] = args; | |
14945 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14946 | if (!SWIG_IsOK(res1)) { | |
14947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14948 | } | |
14949 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14950 | { | |
14951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14952 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
14953 | wxPyEndAllowThreads(__tstate); | |
14954 | if (PyErr_Occurred()) SWIG_fail; | |
14955 | } | |
14956 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
14957 | return resultobj; | |
14958 | fail: | |
14959 | return NULL; | |
d55e5bfc RD |
14960 | } |
14961 | ||
14962 | ||
554f62e9 RD |
14963 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14964 | PyObject *resultobj = 0; | |
14965 | wxFont *arg1 = (wxFont *) 0 ; | |
14966 | bool result; | |
14967 | void *argp1 = 0 ; | |
14968 | int res1 = 0 ; | |
14969 | PyObject *swig_obj[1] ; | |
14970 | ||
14971 | if (!args) SWIG_fail; | |
14972 | swig_obj[0] = args; | |
14973 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14974 | if (!SWIG_IsOK(res1)) { | |
14975 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
14976 | } | |
14977 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14978 | { | |
14979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14980 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
14981 | wxPyEndAllowThreads(__tstate); | |
14982 | if (PyErr_Occurred()) SWIG_fail; | |
14983 | } | |
14984 | { | |
14985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14986 | } | |
14987 | return resultobj; | |
14988 | fail: | |
14989 | return NULL; | |
d55e5bfc RD |
14990 | } |
14991 | ||
14992 | ||
554f62e9 RD |
14993 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14994 | PyObject *resultobj = 0; | |
14995 | wxFont *arg1 = (wxFont *) 0 ; | |
14996 | wxString result; | |
14997 | void *argp1 = 0 ; | |
14998 | int res1 = 0 ; | |
14999 | PyObject *swig_obj[1] ; | |
15000 | ||
15001 | if (!args) SWIG_fail; | |
15002 | swig_obj[0] = args; | |
15003 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15004 | if (!SWIG_IsOK(res1)) { | |
15005 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15006 | } | |
15007 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15008 | { | |
15009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15010 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
15011 | wxPyEndAllowThreads(__tstate); | |
15012 | if (PyErr_Occurred()) SWIG_fail; | |
15013 | } | |
15014 | { | |
15015 | #if wxUSE_UNICODE | |
15016 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15017 | #else | |
15018 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15019 | #endif | |
15020 | } | |
15021 | return resultobj; | |
15022 | fail: | |
15023 | return NULL; | |
d55e5bfc RD |
15024 | } |
15025 | ||
15026 | ||
554f62e9 RD |
15027 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15028 | PyObject *resultobj = 0; | |
15029 | wxFont *arg1 = (wxFont *) 0 ; | |
15030 | wxString result; | |
15031 | void *argp1 = 0 ; | |
15032 | int res1 = 0 ; | |
15033 | PyObject *swig_obj[1] ; | |
15034 | ||
15035 | if (!args) SWIG_fail; | |
15036 | swig_obj[0] = args; | |
15037 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15038 | if (!SWIG_IsOK(res1)) { | |
15039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15040 | } | |
15041 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15042 | { | |
15043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15044 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
15045 | wxPyEndAllowThreads(__tstate); | |
15046 | if (PyErr_Occurred()) SWIG_fail; | |
15047 | } | |
15048 | { | |
15049 | #if wxUSE_UNICODE | |
15050 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15051 | #else | |
15052 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15053 | #endif | |
15054 | } | |
15055 | return resultobj; | |
15056 | fail: | |
15057 | return NULL; | |
15058 | } | |
15059 | ||
15060 | ||
15061 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15062 | PyObject *resultobj = 0; | |
15063 | wxFont *arg1 = (wxFont *) 0 ; | |
15064 | int arg2 ; | |
15065 | void *argp1 = 0 ; | |
15066 | int res1 = 0 ; | |
15067 | int val2 ; | |
15068 | int ecode2 = 0 ; | |
15069 | PyObject * obj0 = 0 ; | |
15070 | PyObject * obj1 = 0 ; | |
15071 | char * kwnames[] = { | |
15072 | (char *) "self",(char *) "pointSize", NULL | |
15073 | }; | |
15074 | ||
15075 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
15076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15077 | if (!SWIG_IsOK(res1)) { | |
15078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15079 | } | |
15080 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15081 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15082 | if (!SWIG_IsOK(ecode2)) { | |
15083 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
15084 | } | |
15085 | arg2 = static_cast< int >(val2); | |
15086 | { | |
15087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15088 | (arg1)->SetPointSize(arg2); | |
15089 | wxPyEndAllowThreads(__tstate); | |
15090 | if (PyErr_Occurred()) SWIG_fail; | |
15091 | } | |
15092 | resultobj = SWIG_Py_Void(); | |
15093 | return resultobj; | |
15094 | fail: | |
15095 | return NULL; | |
15096 | } | |
15097 | ||
15098 | ||
15099 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15100 | PyObject *resultobj = 0; | |
15101 | wxFont *arg1 = (wxFont *) 0 ; | |
15102 | wxSize *arg2 = 0 ; | |
15103 | void *argp1 = 0 ; | |
15104 | int res1 = 0 ; | |
15105 | wxSize temp2 ; | |
15106 | PyObject * obj0 = 0 ; | |
15107 | PyObject * obj1 = 0 ; | |
15108 | char * kwnames[] = { | |
15109 | (char *) "self",(char *) "pixelSize", NULL | |
15110 | }; | |
15111 | ||
15112 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
15113 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15114 | if (!SWIG_IsOK(res1)) { | |
15115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15116 | } | |
15117 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15118 | { | |
15119 | arg2 = &temp2; | |
15120 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15121 | } | |
15122 | { | |
15123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15124 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
15125 | wxPyEndAllowThreads(__tstate); | |
15126 | if (PyErr_Occurred()) SWIG_fail; | |
15127 | } | |
15128 | resultobj = SWIG_Py_Void(); | |
15129 | return resultobj; | |
15130 | fail: | |
15131 | return NULL; | |
15132 | } | |
15133 | ||
15134 | ||
15135 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15136 | PyObject *resultobj = 0; | |
15137 | wxFont *arg1 = (wxFont *) 0 ; | |
15138 | int arg2 ; | |
15139 | void *argp1 = 0 ; | |
15140 | int res1 = 0 ; | |
15141 | int val2 ; | |
15142 | int ecode2 = 0 ; | |
15143 | PyObject * obj0 = 0 ; | |
15144 | PyObject * obj1 = 0 ; | |
15145 | char * kwnames[] = { | |
15146 | (char *) "self",(char *) "family", NULL | |
15147 | }; | |
15148 | ||
15149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
15150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15151 | if (!SWIG_IsOK(res1)) { | |
15152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15153 | } | |
15154 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15155 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15156 | if (!SWIG_IsOK(ecode2)) { | |
15157 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
15158 | } | |
15159 | arg2 = static_cast< int >(val2); | |
15160 | { | |
15161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15162 | (arg1)->SetFamily(arg2); | |
15163 | wxPyEndAllowThreads(__tstate); | |
15164 | if (PyErr_Occurred()) SWIG_fail; | |
15165 | } | |
15166 | resultobj = SWIG_Py_Void(); | |
15167 | return resultobj; | |
15168 | fail: | |
15169 | return NULL; | |
15170 | } | |
15171 | ||
15172 | ||
15173 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15174 | PyObject *resultobj = 0; | |
15175 | wxFont *arg1 = (wxFont *) 0 ; | |
15176 | int arg2 ; | |
15177 | void *argp1 = 0 ; | |
15178 | int res1 = 0 ; | |
15179 | int val2 ; | |
15180 | int ecode2 = 0 ; | |
15181 | PyObject * obj0 = 0 ; | |
15182 | PyObject * obj1 = 0 ; | |
15183 | char * kwnames[] = { | |
15184 | (char *) "self",(char *) "style", NULL | |
15185 | }; | |
15186 | ||
15187 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
15188 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15189 | if (!SWIG_IsOK(res1)) { | |
15190 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15191 | } | |
15192 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15193 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15194 | if (!SWIG_IsOK(ecode2)) { | |
15195 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
15196 | } | |
15197 | arg2 = static_cast< int >(val2); | |
15198 | { | |
15199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15200 | (arg1)->SetStyle(arg2); | |
15201 | wxPyEndAllowThreads(__tstate); | |
15202 | if (PyErr_Occurred()) SWIG_fail; | |
15203 | } | |
15204 | resultobj = SWIG_Py_Void(); | |
15205 | return resultobj; | |
15206 | fail: | |
15207 | return NULL; | |
15208 | } | |
15209 | ||
15210 | ||
15211 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15212 | PyObject *resultobj = 0; | |
15213 | wxFont *arg1 = (wxFont *) 0 ; | |
15214 | int arg2 ; | |
15215 | void *argp1 = 0 ; | |
15216 | int res1 = 0 ; | |
15217 | int val2 ; | |
15218 | int ecode2 = 0 ; | |
15219 | PyObject * obj0 = 0 ; | |
15220 | PyObject * obj1 = 0 ; | |
15221 | char * kwnames[] = { | |
15222 | (char *) "self",(char *) "weight", NULL | |
15223 | }; | |
15224 | ||
15225 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
15226 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15227 | if (!SWIG_IsOK(res1)) { | |
15228 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15229 | } | |
15230 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15231 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15232 | if (!SWIG_IsOK(ecode2)) { | |
15233 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
15234 | } | |
15235 | arg2 = static_cast< int >(val2); | |
15236 | { | |
15237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15238 | (arg1)->SetWeight(arg2); | |
15239 | wxPyEndAllowThreads(__tstate); | |
15240 | if (PyErr_Occurred()) SWIG_fail; | |
15241 | } | |
15242 | resultobj = SWIG_Py_Void(); | |
15243 | return resultobj; | |
15244 | fail: | |
15245 | return NULL; | |
15246 | } | |
15247 | ||
15248 | ||
15249 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15250 | PyObject *resultobj = 0; | |
15251 | wxFont *arg1 = (wxFont *) 0 ; | |
15252 | wxString *arg2 = 0 ; | |
704eda0c | 15253 | bool result; |
554f62e9 RD |
15254 | void *argp1 = 0 ; |
15255 | int res1 = 0 ; | |
15256 | bool temp2 = false ; | |
15257 | PyObject * obj0 = 0 ; | |
15258 | PyObject * obj1 = 0 ; | |
15259 | char * kwnames[] = { | |
15260 | (char *) "self",(char *) "faceName", NULL | |
15261 | }; | |
15262 | ||
15263 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
15264 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15265 | if (!SWIG_IsOK(res1)) { | |
15266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15267 | } | |
15268 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15269 | { | |
15270 | arg2 = wxString_in_helper(obj1); | |
15271 | if (arg2 == NULL) SWIG_fail; | |
15272 | temp2 = true; | |
15273 | } | |
15274 | { | |
15275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15276 | result = (bool)(arg1)->SetFaceName((wxString const &)*arg2); |
554f62e9 RD |
15277 | wxPyEndAllowThreads(__tstate); |
15278 | if (PyErr_Occurred()) SWIG_fail; | |
15279 | } | |
704eda0c RD |
15280 | { |
15281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15282 | } | |
554f62e9 RD |
15283 | { |
15284 | if (temp2) | |
15285 | delete arg2; | |
15286 | } | |
15287 | return resultobj; | |
15288 | fail: | |
15289 | { | |
15290 | if (temp2) | |
15291 | delete arg2; | |
15292 | } | |
15293 | return NULL; | |
15294 | } | |
15295 | ||
15296 | ||
15297 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15298 | PyObject *resultobj = 0; | |
15299 | wxFont *arg1 = (wxFont *) 0 ; | |
15300 | bool arg2 ; | |
15301 | void *argp1 = 0 ; | |
15302 | int res1 = 0 ; | |
15303 | bool val2 ; | |
15304 | int ecode2 = 0 ; | |
15305 | PyObject * obj0 = 0 ; | |
15306 | PyObject * obj1 = 0 ; | |
15307 | char * kwnames[] = { | |
15308 | (char *) "self",(char *) "underlined", NULL | |
15309 | }; | |
15310 | ||
15311 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
15312 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15313 | if (!SWIG_IsOK(res1)) { | |
15314 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15315 | } | |
15316 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15317 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15318 | if (!SWIG_IsOK(ecode2)) { | |
15319 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
15320 | } | |
15321 | arg2 = static_cast< bool >(val2); | |
15322 | { | |
15323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15324 | (arg1)->SetUnderlined(arg2); | |
15325 | wxPyEndAllowThreads(__tstate); | |
15326 | if (PyErr_Occurred()) SWIG_fail; | |
15327 | } | |
15328 | resultobj = SWIG_Py_Void(); | |
15329 | return resultobj; | |
15330 | fail: | |
15331 | return NULL; | |
15332 | } | |
15333 | ||
15334 | ||
15335 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15336 | PyObject *resultobj = 0; | |
15337 | wxFont *arg1 = (wxFont *) 0 ; | |
15338 | wxFontEncoding arg2 ; | |
15339 | void *argp1 = 0 ; | |
15340 | int res1 = 0 ; | |
15341 | int val2 ; | |
15342 | int ecode2 = 0 ; | |
15343 | PyObject * obj0 = 0 ; | |
15344 | PyObject * obj1 = 0 ; | |
15345 | char * kwnames[] = { | |
15346 | (char *) "self",(char *) "encoding", NULL | |
15347 | }; | |
15348 | ||
15349 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
15350 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15351 | if (!SWIG_IsOK(res1)) { | |
15352 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15353 | } | |
15354 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15355 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15356 | if (!SWIG_IsOK(ecode2)) { | |
15357 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15358 | } | |
15359 | arg2 = static_cast< wxFontEncoding >(val2); | |
15360 | { | |
15361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15362 | (arg1)->SetEncoding(arg2); | |
15363 | wxPyEndAllowThreads(__tstate); | |
15364 | if (PyErr_Occurred()) SWIG_fail; | |
15365 | } | |
15366 | resultobj = SWIG_Py_Void(); | |
15367 | return resultobj; | |
15368 | fail: | |
15369 | return NULL; | |
15370 | } | |
15371 | ||
15372 | ||
15373 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15374 | PyObject *resultobj = 0; | |
15375 | wxFont *arg1 = (wxFont *) 0 ; | |
15376 | wxNativeFontInfo *arg2 = 0 ; | |
15377 | void *argp1 = 0 ; | |
15378 | int res1 = 0 ; | |
15379 | void *argp2 = 0 ; | |
15380 | int res2 = 0 ; | |
15381 | PyObject * obj0 = 0 ; | |
15382 | PyObject * obj1 = 0 ; | |
15383 | char * kwnames[] = { | |
15384 | (char *) "self",(char *) "info", NULL | |
15385 | }; | |
15386 | ||
15387 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
15388 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15389 | if (!SWIG_IsOK(res1)) { | |
15390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15391 | } | |
15392 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15393 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
15394 | if (!SWIG_IsOK(res2)) { | |
15395 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15396 | } | |
15397 | if (!argp2) { | |
15398 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15399 | } | |
15400 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
15401 | { | |
15402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15403 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
15404 | wxPyEndAllowThreads(__tstate); | |
15405 | if (PyErr_Occurred()) SWIG_fail; | |
15406 | } | |
15407 | resultobj = SWIG_Py_Void(); | |
15408 | return resultobj; | |
15409 | fail: | |
15410 | return NULL; | |
15411 | } | |
15412 | ||
15413 | ||
15414 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15415 | PyObject *resultobj = 0; | |
15416 | wxFont *arg1 = (wxFont *) 0 ; | |
15417 | wxString *arg2 = 0 ; | |
704eda0c | 15418 | bool result; |
554f62e9 RD |
15419 | void *argp1 = 0 ; |
15420 | int res1 = 0 ; | |
15421 | bool temp2 = false ; | |
15422 | PyObject * obj0 = 0 ; | |
15423 | PyObject * obj1 = 0 ; | |
15424 | char * kwnames[] = { | |
15425 | (char *) "self",(char *) "info", NULL | |
15426 | }; | |
15427 | ||
15428 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15429 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15430 | if (!SWIG_IsOK(res1)) { | |
15431 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15432 | } | |
15433 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15434 | { | |
15435 | arg2 = wxString_in_helper(obj1); | |
15436 | if (arg2 == NULL) SWIG_fail; | |
15437 | temp2 = true; | |
15438 | } | |
15439 | { | |
15440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15441 | result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2); |
554f62e9 RD |
15442 | wxPyEndAllowThreads(__tstate); |
15443 | if (PyErr_Occurred()) SWIG_fail; | |
15444 | } | |
704eda0c RD |
15445 | { |
15446 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15447 | } | |
554f62e9 RD |
15448 | { |
15449 | if (temp2) | |
15450 | delete arg2; | |
15451 | } | |
15452 | return resultobj; | |
15453 | fail: | |
15454 | { | |
15455 | if (temp2) | |
15456 | delete arg2; | |
15457 | } | |
15458 | return NULL; | |
d55e5bfc RD |
15459 | } |
15460 | ||
15461 | ||
554f62e9 RD |
15462 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15463 | PyObject *resultobj = 0; | |
15464 | wxFont *arg1 = (wxFont *) 0 ; | |
15465 | wxString *arg2 = 0 ; | |
704eda0c | 15466 | bool result; |
554f62e9 RD |
15467 | void *argp1 = 0 ; |
15468 | int res1 = 0 ; | |
15469 | bool temp2 = false ; | |
15470 | PyObject * obj0 = 0 ; | |
15471 | PyObject * obj1 = 0 ; | |
15472 | char * kwnames[] = { | |
15473 | (char *) "self",(char *) "info", NULL | |
15474 | }; | |
15475 | ||
15476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
15477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15478 | if (!SWIG_IsOK(res1)) { | |
15479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15480 | } | |
15481 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15482 | { | |
15483 | arg2 = wxString_in_helper(obj1); | |
15484 | if (arg2 == NULL) SWIG_fail; | |
15485 | temp2 = true; | |
15486 | } | |
15487 | { | |
15488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15489 | result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); |
554f62e9 RD |
15490 | wxPyEndAllowThreads(__tstate); |
15491 | if (PyErr_Occurred()) SWIG_fail; | |
15492 | } | |
704eda0c RD |
15493 | { |
15494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15495 | } | |
554f62e9 RD |
15496 | { |
15497 | if (temp2) | |
15498 | delete arg2; | |
15499 | } | |
15500 | return resultobj; | |
15501 | fail: | |
15502 | { | |
15503 | if (temp2) | |
15504 | delete arg2; | |
15505 | } | |
15506 | return NULL; | |
d55e5bfc RD |
15507 | } |
15508 | ||
15509 | ||
554f62e9 RD |
15510 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15511 | PyObject *resultobj = 0; | |
15512 | wxFont *arg1 = (wxFont *) 0 ; | |
15513 | wxString result; | |
15514 | void *argp1 = 0 ; | |
15515 | int res1 = 0 ; | |
15516 | PyObject *swig_obj[1] ; | |
15517 | ||
15518 | if (!args) SWIG_fail; | |
15519 | swig_obj[0] = args; | |
15520 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15521 | if (!SWIG_IsOK(res1)) { | |
15522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15523 | } | |
15524 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15525 | { | |
15526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15527 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
15528 | wxPyEndAllowThreads(__tstate); | |
15529 | if (PyErr_Occurred()) SWIG_fail; | |
15530 | } | |
15531 | { | |
15532 | #if wxUSE_UNICODE | |
15533 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15534 | #else | |
15535 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15536 | #endif | |
15537 | } | |
15538 | return resultobj; | |
15539 | fail: | |
15540 | return NULL; | |
d55e5bfc RD |
15541 | } |
15542 | ||
15543 | ||
554f62e9 RD |
15544 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15545 | PyObject *resultobj = 0; | |
15546 | wxFont *arg1 = (wxFont *) 0 ; | |
15547 | wxString result; | |
15548 | void *argp1 = 0 ; | |
15549 | int res1 = 0 ; | |
15550 | PyObject *swig_obj[1] ; | |
15551 | ||
15552 | if (!args) SWIG_fail; | |
15553 | swig_obj[0] = args; | |
15554 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15555 | if (!SWIG_IsOK(res1)) { | |
15556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15557 | } | |
15558 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15559 | { | |
15560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15561 | result = ((wxFont const *)arg1)->GetStyleString(); | |
15562 | wxPyEndAllowThreads(__tstate); | |
15563 | if (PyErr_Occurred()) SWIG_fail; | |
15564 | } | |
15565 | { | |
15566 | #if wxUSE_UNICODE | |
15567 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15568 | #else | |
15569 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15570 | #endif | |
15571 | } | |
15572 | return resultobj; | |
15573 | fail: | |
15574 | return NULL; | |
d55e5bfc RD |
15575 | } |
15576 | ||
15577 | ||
554f62e9 RD |
15578 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15579 | PyObject *resultobj = 0; | |
15580 | wxFont *arg1 = (wxFont *) 0 ; | |
15581 | wxString result; | |
15582 | void *argp1 = 0 ; | |
15583 | int res1 = 0 ; | |
15584 | PyObject *swig_obj[1] ; | |
15585 | ||
15586 | if (!args) SWIG_fail; | |
15587 | swig_obj[0] = args; | |
15588 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15589 | if (!SWIG_IsOK(res1)) { | |
15590 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15591 | } | |
15592 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15593 | { | |
15594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15595 | result = ((wxFont const *)arg1)->GetWeightString(); | |
15596 | wxPyEndAllowThreads(__tstate); | |
15597 | if (PyErr_Occurred()) SWIG_fail; | |
15598 | } | |
15599 | { | |
15600 | #if wxUSE_UNICODE | |
15601 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15602 | #else | |
15603 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15604 | #endif | |
15605 | } | |
15606 | return resultobj; | |
15607 | fail: | |
15608 | return NULL; | |
15609 | } | |
15610 | ||
15611 | ||
15612 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15613 | PyObject *resultobj = 0; | |
15614 | wxFont *arg1 = (wxFont *) 0 ; | |
15615 | bool arg2 = (bool) true ; | |
15616 | void *argp1 = 0 ; | |
15617 | int res1 = 0 ; | |
15618 | bool val2 ; | |
15619 | int ecode2 = 0 ; | |
15620 | PyObject * obj0 = 0 ; | |
15621 | PyObject * obj1 = 0 ; | |
15622 | char * kwnames[] = { | |
15623 | (char *) "self",(char *) "no", NULL | |
15624 | }; | |
15625 | ||
15626 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
15627 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15628 | if (!SWIG_IsOK(res1)) { | |
15629 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15630 | } | |
15631 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15632 | if (obj1) { | |
15633 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15634 | if (!SWIG_IsOK(ecode2)) { | |
15635 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
15636 | } | |
15637 | arg2 = static_cast< bool >(val2); | |
15638 | } | |
15639 | { | |
15640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15641 | (arg1)->SetNoAntiAliasing(arg2); | |
15642 | wxPyEndAllowThreads(__tstate); | |
15643 | if (PyErr_Occurred()) SWIG_fail; | |
15644 | } | |
15645 | resultobj = SWIG_Py_Void(); | |
15646 | return resultobj; | |
15647 | fail: | |
15648 | return NULL; | |
d55e5bfc RD |
15649 | } |
15650 | ||
15651 | ||
554f62e9 RD |
15652 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15653 | PyObject *resultobj = 0; | |
15654 | wxFont *arg1 = (wxFont *) 0 ; | |
15655 | bool result; | |
15656 | void *argp1 = 0 ; | |
15657 | int res1 = 0 ; | |
15658 | PyObject *swig_obj[1] ; | |
15659 | ||
15660 | if (!args) SWIG_fail; | |
15661 | swig_obj[0] = args; | |
15662 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15663 | if (!SWIG_IsOK(res1)) { | |
15664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15665 | } | |
15666 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15667 | { | |
15668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15669 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
15670 | wxPyEndAllowThreads(__tstate); | |
15671 | if (PyErr_Occurred()) SWIG_fail; | |
15672 | } | |
15673 | { | |
15674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15675 | } | |
15676 | return resultobj; | |
15677 | fail: | |
15678 | return NULL; | |
d55e5bfc RD |
15679 | } |
15680 | ||
15681 | ||
554f62e9 RD |
15682 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15683 | PyObject *resultobj = 0; | |
15684 | wxFontEncoding result; | |
15685 | ||
15686 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
15687 | { | |
15688 | if (!wxPyCheckForApp()) SWIG_fail; | |
15689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15690 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
15691 | wxPyEndAllowThreads(__tstate); | |
15692 | if (PyErr_Occurred()) SWIG_fail; | |
15693 | } | |
15694 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15695 | return resultobj; | |
15696 | fail: | |
15697 | return NULL; | |
d55e5bfc RD |
15698 | } |
15699 | ||
15700 | ||
554f62e9 RD |
15701 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15702 | PyObject *resultobj = 0; | |
15703 | wxFontEncoding arg1 ; | |
15704 | int val1 ; | |
15705 | int ecode1 = 0 ; | |
15706 | PyObject * obj0 = 0 ; | |
15707 | char * kwnames[] = { | |
15708 | (char *) "encoding", NULL | |
15709 | }; | |
15710 | ||
15711 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
15712 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
15713 | if (!SWIG_IsOK(ecode1)) { | |
15714 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
15715 | } | |
15716 | arg1 = static_cast< wxFontEncoding >(val1); | |
15717 | { | |
15718 | if (!wxPyCheckForApp()) SWIG_fail; | |
15719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15720 | wxFont::SetDefaultEncoding(arg1); | |
15721 | wxPyEndAllowThreads(__tstate); | |
15722 | if (PyErr_Occurred()) SWIG_fail; | |
15723 | } | |
15724 | resultobj = SWIG_Py_Void(); | |
15725 | return resultobj; | |
15726 | fail: | |
15727 | return NULL; | |
5e483524 RD |
15728 | } |
15729 | ||
15730 | ||
554f62e9 RD |
15731 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15732 | PyObject *obj; | |
15733 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
15734 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
15735 | return SWIG_Py_Void(); | |
d55e5bfc RD |
15736 | } |
15737 | ||
554f62e9 RD |
15738 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15739 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
15740 | } |
15741 | ||
554f62e9 RD |
15742 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15743 | PyObject *resultobj = 0; | |
15744 | wxPyFontEnumerator *result = 0 ; | |
15745 | ||
15746 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
15747 | { | |
15748 | if (!wxPyCheckForApp()) SWIG_fail; | |
15749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15750 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
15751 | wxPyEndAllowThreads(__tstate); | |
15752 | if (PyErr_Occurred()) SWIG_fail; | |
15753 | } | |
15754 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
15755 | return resultobj; | |
15756 | fail: | |
15757 | return NULL; | |
d55e5bfc RD |
15758 | } |
15759 | ||
15760 | ||
554f62e9 RD |
15761 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15762 | PyObject *resultobj = 0; | |
15763 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
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_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
15771 | if (!SWIG_IsOK(res1)) { | |
15772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15773 | } | |
15774 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15775 | { | |
15776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15777 | delete arg1; | |
d55e5bfc | 15778 | |
554f62e9 RD |
15779 | wxPyEndAllowThreads(__tstate); |
15780 | if (PyErr_Occurred()) SWIG_fail; | |
15781 | } | |
15782 | resultobj = SWIG_Py_Void(); | |
15783 | return resultobj; | |
15784 | fail: | |
15785 | return NULL; | |
15786 | } | |
15787 | ||
15788 | ||
15789 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15790 | PyObject *resultobj = 0; | |
15791 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15792 | PyObject *arg2 = (PyObject *) 0 ; | |
15793 | PyObject *arg3 = (PyObject *) 0 ; | |
15794 | bool arg4 ; | |
15795 | void *argp1 = 0 ; | |
15796 | int res1 = 0 ; | |
15797 | bool val4 ; | |
15798 | int ecode4 = 0 ; | |
15799 | PyObject * obj0 = 0 ; | |
15800 | PyObject * obj1 = 0 ; | |
15801 | PyObject * obj2 = 0 ; | |
15802 | PyObject * obj3 = 0 ; | |
15803 | char * kwnames[] = { | |
15804 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
15805 | }; | |
15806 | ||
15807 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
15808 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15809 | if (!SWIG_IsOK(res1)) { | |
15810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15811 | } | |
15812 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15813 | arg2 = obj1; | |
15814 | arg3 = obj2; | |
15815 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
15816 | if (!SWIG_IsOK(ecode4)) { | |
15817 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'"); | |
15818 | } | |
15819 | arg4 = static_cast< bool >(val4); | |
15820 | { | |
15821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15822 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
15823 | wxPyEndAllowThreads(__tstate); | |
15824 | if (PyErr_Occurred()) SWIG_fail; | |
15825 | } | |
15826 | resultobj = SWIG_Py_Void(); | |
15827 | return resultobj; | |
15828 | fail: | |
15829 | return NULL; | |
15830 | } | |
15831 | ||
15832 | ||
15833 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15834 | PyObject *resultobj = 0; | |
15835 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15836 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
15837 | bool arg3 = (bool) false ; | |
15838 | bool result; | |
15839 | void *argp1 = 0 ; | |
15840 | int res1 = 0 ; | |
15841 | int val2 ; | |
15842 | int ecode2 = 0 ; | |
15843 | bool val3 ; | |
15844 | int ecode3 = 0 ; | |
15845 | PyObject * obj0 = 0 ; | |
15846 | PyObject * obj1 = 0 ; | |
15847 | PyObject * obj2 = 0 ; | |
15848 | char * kwnames[] = { | |
15849 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
15850 | }; | |
15851 | ||
15852 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
15853 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15854 | if (!SWIG_IsOK(res1)) { | |
15855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15856 | } | |
15857 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15858 | if (obj1) { | |
15859 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15860 | if (!SWIG_IsOK(ecode2)) { | |
15861 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15862 | } | |
15863 | arg2 = static_cast< wxFontEncoding >(val2); | |
15864 | } | |
15865 | if (obj2) { | |
15866 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
15867 | if (!SWIG_IsOK(ecode3)) { | |
15868 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
15869 | } | |
15870 | arg3 = static_cast< bool >(val3); | |
15871 | } | |
15872 | { | |
15873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15874 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
15875 | wxPyEndAllowThreads(__tstate); | |
15876 | if (PyErr_Occurred()) SWIG_fail; | |
15877 | } | |
15878 | { | |
15879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15880 | } | |
15881 | return resultobj; | |
15882 | fail: | |
15883 | return NULL; | |
15884 | } | |
15885 | ||
15886 | ||
15887 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15888 | PyObject *resultobj = 0; | |
15889 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
15890 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
15891 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
15892 | bool result; | |
15893 | void *argp1 = 0 ; | |
15894 | int res1 = 0 ; | |
15895 | bool temp2 = false ; | |
15896 | PyObject * obj0 = 0 ; | |
15897 | PyObject * obj1 = 0 ; | |
15898 | char * kwnames[] = { | |
15899 | (char *) "self",(char *) "facename", NULL | |
15900 | }; | |
15901 | ||
15902 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
15903 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
15904 | if (!SWIG_IsOK(res1)) { | |
15905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
15906 | } | |
15907 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
15908 | if (obj1) { | |
093d3ff1 | 15909 | { |
554f62e9 RD |
15910 | arg2 = wxString_in_helper(obj1); |
15911 | if (arg2 == NULL) SWIG_fail; | |
15912 | temp2 = true; | |
093d3ff1 | 15913 | } |
554f62e9 RD |
15914 | } |
15915 | { | |
15916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15917 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
15918 | wxPyEndAllowThreads(__tstate); | |
15919 | if (PyErr_Occurred()) SWIG_fail; | |
15920 | } | |
15921 | { | |
15922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15923 | } | |
15924 | { | |
15925 | if (temp2) | |
15926 | delete arg2; | |
15927 | } | |
15928 | return resultobj; | |
15929 | fail: | |
15930 | { | |
15931 | if (temp2) | |
15932 | delete arg2; | |
15933 | } | |
15934 | return NULL; | |
d55e5bfc RD |
15935 | } |
15936 | ||
15937 | ||
554f62e9 RD |
15938 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15939 | PyObject *resultobj = 0; | |
554f62e9 | 15940 | PyObject *result = 0 ; |
554f62e9 | 15941 | |
704eda0c | 15942 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail; |
554f62e9 RD |
15943 | { |
15944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15945 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(); |
554f62e9 RD |
15946 | wxPyEndAllowThreads(__tstate); |
15947 | if (PyErr_Occurred()) SWIG_fail; | |
15948 | } | |
15949 | resultobj = result; | |
15950 | return resultobj; | |
15951 | fail: | |
15952 | return NULL; | |
d55e5bfc RD |
15953 | } |
15954 | ||
15955 | ||
554f62e9 RD |
15956 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15957 | PyObject *resultobj = 0; | |
554f62e9 | 15958 | PyObject *result = 0 ; |
554f62e9 | 15959 | |
704eda0c | 15960 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail; |
554f62e9 RD |
15961 | { |
15962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15963 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(); |
554f62e9 RD |
15964 | wxPyEndAllowThreads(__tstate); |
15965 | if (PyErr_Occurred()) SWIG_fail; | |
15966 | } | |
15967 | resultobj = result; | |
15968 | return resultobj; | |
15969 | fail: | |
15970 | return NULL; | |
d55e5bfc RD |
15971 | } |
15972 | ||
15973 | ||
704eda0c RD |
15974 | SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15975 | PyObject *resultobj = 0; | |
15976 | wxString *arg1 = 0 ; | |
15977 | bool result; | |
15978 | bool temp1 = false ; | |
15979 | PyObject * obj0 = 0 ; | |
15980 | char * kwnames[] = { | |
15981 | (char *) "str", NULL | |
15982 | }; | |
15983 | ||
15984 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail; | |
15985 | { | |
15986 | arg1 = wxString_in_helper(obj0); | |
15987 | if (arg1 == NULL) SWIG_fail; | |
15988 | temp1 = true; | |
15989 | } | |
15990 | { | |
15991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15992 | result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1); | |
15993 | wxPyEndAllowThreads(__tstate); | |
15994 | if (PyErr_Occurred()) SWIG_fail; | |
15995 | } | |
15996 | { | |
15997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15998 | } | |
15999 | { | |
16000 | if (temp1) | |
16001 | delete arg1; | |
16002 | } | |
16003 | return resultobj; | |
16004 | fail: | |
16005 | { | |
16006 | if (temp1) | |
16007 | delete arg1; | |
16008 | } | |
16009 | return NULL; | |
16010 | } | |
16011 | ||
16012 | ||
554f62e9 RD |
16013 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16014 | PyObject *obj; | |
16015 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16016 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
16017 | return SWIG_Py_Void(); | |
5e483524 RD |
16018 | } |
16019 | ||
554f62e9 RD |
16020 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16021 | return SWIG_Python_InitShadowInstance(args); | |
16022 | } | |
5e483524 | 16023 | |
554f62e9 RD |
16024 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16025 | PyObject *resultobj = 0; | |
16026 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16027 | int arg2 ; | |
16028 | void *argp1 = 0 ; | |
16029 | int res1 = 0 ; | |
16030 | int val2 ; | |
16031 | int ecode2 = 0 ; | |
16032 | PyObject *swig_obj[2] ; | |
16033 | ||
16034 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
16035 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16036 | if (!SWIG_IsOK(res1)) { | |
16037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16038 | } | |
16039 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16040 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
16041 | if (!SWIG_IsOK(ecode2)) { | |
16042 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
16043 | } | |
16044 | arg2 = static_cast< int >(val2); | |
16045 | if (arg1) (arg1)->Language = arg2; | |
16046 | ||
16047 | resultobj = SWIG_Py_Void(); | |
16048 | return resultobj; | |
16049 | fail: | |
16050 | return NULL; | |
d55e5bfc RD |
16051 | } |
16052 | ||
16053 | ||
554f62e9 RD |
16054 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16055 | PyObject *resultobj = 0; | |
16056 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16057 | int result; | |
16058 | void *argp1 = 0 ; | |
16059 | int res1 = 0 ; | |
16060 | PyObject *swig_obj[1] ; | |
16061 | ||
16062 | if (!args) SWIG_fail; | |
16063 | swig_obj[0] = args; | |
16064 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16065 | if (!SWIG_IsOK(res1)) { | |
16066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16067 | } | |
16068 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16069 | result = (int) ((arg1)->Language); | |
16070 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16071 | return resultobj; | |
16072 | fail: | |
16073 | return NULL; | |
16074 | } | |
16075 | ||
16076 | ||
16077 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16078 | PyObject *resultobj = 0; | |
16079 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16080 | wxString *arg2 = (wxString *) 0 ; | |
16081 | void *argp1 = 0 ; | |
16082 | int res1 = 0 ; | |
16083 | bool temp2 = false ; | |
16084 | PyObject *swig_obj[2] ; | |
16085 | ||
16086 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
16087 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16088 | if (!SWIG_IsOK(res1)) { | |
16089 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16090 | } | |
16091 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16092 | { | |
16093 | arg2 = wxString_in_helper(swig_obj[1]); | |
16094 | if (arg2 == NULL) SWIG_fail; | |
16095 | temp2 = true; | |
16096 | } | |
16097 | if (arg1) (arg1)->CanonicalName = *arg2; | |
16098 | ||
16099 | resultobj = SWIG_Py_Void(); | |
16100 | { | |
16101 | if (temp2) | |
16102 | delete arg2; | |
16103 | } | |
16104 | return resultobj; | |
16105 | fail: | |
16106 | { | |
16107 | if (temp2) | |
16108 | delete arg2; | |
16109 | } | |
16110 | return NULL; | |
d55e5bfc RD |
16111 | } |
16112 | ||
16113 | ||
554f62e9 RD |
16114 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16115 | PyObject *resultobj = 0; | |
16116 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16117 | wxString *result = 0 ; | |
16118 | void *argp1 = 0 ; | |
16119 | int res1 = 0 ; | |
16120 | PyObject *swig_obj[1] ; | |
16121 | ||
16122 | if (!args) SWIG_fail; | |
16123 | swig_obj[0] = args; | |
16124 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16125 | if (!SWIG_IsOK(res1)) { | |
16126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16127 | } | |
16128 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16129 | result = (wxString *)& ((arg1)->CanonicalName); | |
16130 | { | |
16131 | #if wxUSE_UNICODE | |
16132 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16133 | #else | |
16134 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16135 | #endif | |
16136 | } | |
16137 | return resultobj; | |
16138 | fail: | |
16139 | return NULL; | |
d55e5bfc RD |
16140 | } |
16141 | ||
16142 | ||
554f62e9 RD |
16143 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16144 | PyObject *resultobj = 0; | |
16145 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16146 | wxString *arg2 = (wxString *) 0 ; | |
16147 | void *argp1 = 0 ; | |
16148 | int res1 = 0 ; | |
16149 | bool temp2 = false ; | |
16150 | PyObject *swig_obj[2] ; | |
16151 | ||
16152 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
16153 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16154 | if (!SWIG_IsOK(res1)) { | |
16155 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16156 | } | |
16157 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16158 | { | |
16159 | arg2 = wxString_in_helper(swig_obj[1]); | |
16160 | if (arg2 == NULL) SWIG_fail; | |
16161 | temp2 = true; | |
16162 | } | |
16163 | if (arg1) (arg1)->Description = *arg2; | |
16164 | ||
16165 | resultobj = SWIG_Py_Void(); | |
16166 | { | |
16167 | if (temp2) | |
16168 | delete arg2; | |
16169 | } | |
16170 | return resultobj; | |
16171 | fail: | |
16172 | { | |
16173 | if (temp2) | |
16174 | delete arg2; | |
16175 | } | |
16176 | return NULL; | |
d55e5bfc RD |
16177 | } |
16178 | ||
16179 | ||
554f62e9 RD |
16180 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16181 | PyObject *resultobj = 0; | |
16182 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16183 | wxString *result = 0 ; | |
16184 | void *argp1 = 0 ; | |
16185 | int res1 = 0 ; | |
16186 | PyObject *swig_obj[1] ; | |
16187 | ||
16188 | if (!args) SWIG_fail; | |
16189 | swig_obj[0] = args; | |
16190 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16191 | if (!SWIG_IsOK(res1)) { | |
16192 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16193 | } | |
16194 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16195 | result = (wxString *)& ((arg1)->Description); | |
16196 | { | |
16197 | #if wxUSE_UNICODE | |
16198 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16199 | #else | |
16200 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16201 | #endif | |
16202 | } | |
16203 | return resultobj; | |
16204 | fail: | |
16205 | return NULL; | |
16206 | } | |
16207 | ||
16208 | ||
16209 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16210 | PyObject *obj; | |
16211 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16212 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
16213 | return SWIG_Py_Void(); | |
16214 | } | |
16215 | ||
16216 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16217 | PyObject *resultobj = 0; | |
16218 | int arg1 = (int) -1 ; | |
16219 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16220 | wxLocale *result = 0 ; | |
16221 | int val1 ; | |
16222 | int ecode1 = 0 ; | |
16223 | int val2 ; | |
16224 | int ecode2 = 0 ; | |
16225 | PyObject * obj0 = 0 ; | |
16226 | PyObject * obj1 = 0 ; | |
16227 | char * kwnames[] = { | |
16228 | (char *) "language",(char *) "flags", NULL | |
16229 | }; | |
16230 | ||
16231 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
16232 | if (obj0) { | |
16233 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16234 | if (!SWIG_IsOK(ecode1)) { | |
16235 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
16236 | } | |
16237 | arg1 = static_cast< int >(val1); | |
16238 | } | |
16239 | if (obj1) { | |
16240 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16241 | if (!SWIG_IsOK(ecode2)) { | |
16242 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
16243 | } | |
16244 | arg2 = static_cast< int >(val2); | |
16245 | } | |
16246 | { | |
16247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16248 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
16249 | wxPyEndAllowThreads(__tstate); | |
16250 | if (PyErr_Occurred()) SWIG_fail; | |
16251 | } | |
16252 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
16253 | return resultobj; | |
16254 | fail: | |
16255 | return NULL; | |
d55e5bfc RD |
16256 | } |
16257 | ||
16258 | ||
554f62e9 RD |
16259 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16260 | PyObject *resultobj = 0; | |
16261 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16262 | void *argp1 = 0 ; | |
16263 | int res1 = 0 ; | |
16264 | PyObject *swig_obj[1] ; | |
16265 | ||
16266 | if (!args) SWIG_fail; | |
16267 | swig_obj[0] = args; | |
16268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
16269 | if (!SWIG_IsOK(res1)) { | |
16270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16271 | } | |
16272 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16273 | { | |
16274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16275 | delete arg1; | |
d55e5bfc | 16276 | |
554f62e9 RD |
16277 | wxPyEndAllowThreads(__tstate); |
16278 | if (PyErr_Occurred()) SWIG_fail; | |
16279 | } | |
16280 | resultobj = SWIG_Py_Void(); | |
16281 | return resultobj; | |
16282 | fail: | |
16283 | return NULL; | |
16284 | } | |
16285 | ||
16286 | ||
16287 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16288 | PyObject *resultobj = 0; | |
16289 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16290 | wxString *arg2 = 0 ; | |
16291 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16292 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16293 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16294 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16295 | bool arg5 = (bool) true ; | |
16296 | bool arg6 = (bool) false ; | |
16297 | bool result; | |
16298 | void *argp1 = 0 ; | |
16299 | int res1 = 0 ; | |
16300 | bool temp2 = false ; | |
16301 | bool temp3 = false ; | |
16302 | bool temp4 = false ; | |
16303 | bool val5 ; | |
16304 | int ecode5 = 0 ; | |
16305 | bool val6 ; | |
16306 | int ecode6 = 0 ; | |
16307 | PyObject * obj0 = 0 ; | |
16308 | PyObject * obj1 = 0 ; | |
16309 | PyObject * obj2 = 0 ; | |
16310 | PyObject * obj3 = 0 ; | |
16311 | PyObject * obj4 = 0 ; | |
16312 | PyObject * obj5 = 0 ; | |
16313 | char * kwnames[] = { | |
16314 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
16315 | }; | |
16316 | ||
16317 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
16318 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16319 | if (!SWIG_IsOK(res1)) { | |
16320 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16321 | } | |
16322 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16323 | { | |
16324 | arg2 = wxString_in_helper(obj1); | |
16325 | if (arg2 == NULL) SWIG_fail; | |
16326 | temp2 = true; | |
16327 | } | |
16328 | if (obj2) { | |
093d3ff1 | 16329 | { |
554f62e9 RD |
16330 | arg3 = wxString_in_helper(obj2); |
16331 | if (arg3 == NULL) SWIG_fail; | |
16332 | temp3 = true; | |
093d3ff1 | 16333 | } |
554f62e9 RD |
16334 | } |
16335 | if (obj3) { | |
d55e5bfc | 16336 | { |
554f62e9 RD |
16337 | arg4 = wxString_in_helper(obj3); |
16338 | if (arg4 == NULL) SWIG_fail; | |
16339 | temp4 = true; | |
d55e5bfc | 16340 | } |
554f62e9 RD |
16341 | } |
16342 | if (obj4) { | |
16343 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
16344 | if (!SWIG_IsOK(ecode5)) { | |
16345 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
16346 | } | |
16347 | arg5 = static_cast< bool >(val5); | |
16348 | } | |
16349 | if (obj5) { | |
16350 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
16351 | if (!SWIG_IsOK(ecode6)) { | |
16352 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
16353 | } | |
16354 | arg6 = static_cast< bool >(val6); | |
16355 | } | |
16356 | { | |
16357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16358 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
16359 | wxPyEndAllowThreads(__tstate); | |
16360 | if (PyErr_Occurred()) SWIG_fail; | |
16361 | } | |
16362 | { | |
16363 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16364 | } | |
16365 | { | |
16366 | if (temp2) | |
16367 | delete arg2; | |
16368 | } | |
16369 | { | |
16370 | if (temp3) | |
16371 | delete arg3; | |
16372 | } | |
16373 | { | |
16374 | if (temp4) | |
16375 | delete arg4; | |
16376 | } | |
16377 | return resultobj; | |
16378 | fail: | |
16379 | { | |
16380 | if (temp2) | |
16381 | delete arg2; | |
16382 | } | |
16383 | { | |
16384 | if (temp3) | |
16385 | delete arg3; | |
16386 | } | |
16387 | { | |
16388 | if (temp4) | |
16389 | delete arg4; | |
16390 | } | |
16391 | return NULL; | |
16392 | } | |
16393 | ||
16394 | ||
16395 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16396 | PyObject *resultobj = 0; | |
16397 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16398 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
16399 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16400 | bool result; | |
16401 | void *argp1 = 0 ; | |
16402 | int res1 = 0 ; | |
16403 | int val2 ; | |
16404 | int ecode2 = 0 ; | |
16405 | int val3 ; | |
16406 | int ecode3 = 0 ; | |
16407 | PyObject * obj0 = 0 ; | |
16408 | PyObject * obj1 = 0 ; | |
16409 | PyObject * obj2 = 0 ; | |
16410 | char * kwnames[] = { | |
16411 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
16412 | }; | |
16413 | ||
16414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16416 | if (!SWIG_IsOK(res1)) { | |
16417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16418 | } | |
16419 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16420 | if (obj1) { | |
16421 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16422 | if (!SWIG_IsOK(ecode2)) { | |
16423 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
16424 | } | |
16425 | arg2 = static_cast< int >(val2); | |
16426 | } | |
16427 | if (obj2) { | |
16428 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16429 | if (!SWIG_IsOK(ecode3)) { | |
16430 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
16431 | } | |
16432 | arg3 = static_cast< int >(val3); | |
16433 | } | |
16434 | { | |
16435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16436 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
16437 | wxPyEndAllowThreads(__tstate); | |
16438 | if (PyErr_Occurred()) SWIG_fail; | |
16439 | } | |
16440 | { | |
16441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16442 | } | |
16443 | return resultobj; | |
16444 | fail: | |
16445 | return NULL; | |
d55e5bfc RD |
16446 | } |
16447 | ||
16448 | ||
554f62e9 RD |
16449 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16450 | PyObject *resultobj = 0; | |
16451 | int result; | |
16452 | ||
16453 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
16454 | { | |
16455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16456 | result = (int)wxLocale::GetSystemLanguage(); | |
16457 | wxPyEndAllowThreads(__tstate); | |
16458 | if (PyErr_Occurred()) SWIG_fail; | |
16459 | } | |
16460 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16461 | return resultobj; | |
16462 | fail: | |
16463 | return NULL; | |
d55e5bfc RD |
16464 | } |
16465 | ||
16466 | ||
554f62e9 RD |
16467 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16468 | PyObject *resultobj = 0; | |
16469 | wxFontEncoding result; | |
16470 | ||
16471 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
16472 | { | |
16473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16474 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
16475 | wxPyEndAllowThreads(__tstate); | |
16476 | if (PyErr_Occurred()) SWIG_fail; | |
16477 | } | |
16478 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16479 | return resultobj; | |
16480 | fail: | |
16481 | return NULL; | |
d55e5bfc RD |
16482 | } |
16483 | ||
16484 | ||
554f62e9 RD |
16485 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16486 | PyObject *resultobj = 0; | |
16487 | wxString result; | |
16488 | ||
16489 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
16490 | { | |
16491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16492 | result = wxLocale::GetSystemEncodingName(); | |
16493 | wxPyEndAllowThreads(__tstate); | |
16494 | if (PyErr_Occurred()) SWIG_fail; | |
16495 | } | |
16496 | { | |
16497 | #if wxUSE_UNICODE | |
16498 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16499 | #else | |
16500 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16501 | #endif | |
16502 | } | |
16503 | return resultobj; | |
16504 | fail: | |
16505 | return NULL; | |
d55e5bfc RD |
16506 | } |
16507 | ||
16508 | ||
554f62e9 RD |
16509 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16510 | PyObject *resultobj = 0; | |
16511 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16512 | bool result; | |
16513 | void *argp1 = 0 ; | |
16514 | int res1 = 0 ; | |
16515 | PyObject *swig_obj[1] ; | |
16516 | ||
16517 | if (!args) SWIG_fail; | |
16518 | swig_obj[0] = args; | |
16519 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16520 | if (!SWIG_IsOK(res1)) { | |
16521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16522 | } | |
16523 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16524 | { | |
16525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16526 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
16527 | wxPyEndAllowThreads(__tstate); | |
16528 | if (PyErr_Occurred()) SWIG_fail; | |
16529 | } | |
16530 | { | |
16531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16532 | } | |
16533 | return resultobj; | |
16534 | fail: | |
16535 | return NULL; | |
d55e5bfc RD |
16536 | } |
16537 | ||
16538 | ||
554f62e9 RD |
16539 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16540 | PyObject *resultobj = 0; | |
16541 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16542 | wxString result; | |
16543 | void *argp1 = 0 ; | |
16544 | int res1 = 0 ; | |
16545 | PyObject *swig_obj[1] ; | |
16546 | ||
16547 | if (!args) SWIG_fail; | |
16548 | swig_obj[0] = args; | |
16549 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16550 | if (!SWIG_IsOK(res1)) { | |
16551 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16552 | } | |
16553 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16554 | { | |
16555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16556 | result = ((wxLocale const *)arg1)->GetLocale(); | |
16557 | wxPyEndAllowThreads(__tstate); | |
16558 | if (PyErr_Occurred()) SWIG_fail; | |
16559 | } | |
16560 | { | |
16561 | #if wxUSE_UNICODE | |
16562 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16563 | #else | |
16564 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16565 | #endif | |
16566 | } | |
16567 | return resultobj; | |
16568 | fail: | |
16569 | return NULL; | |
d55e5bfc RD |
16570 | } |
16571 | ||
16572 | ||
554f62e9 RD |
16573 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16574 | PyObject *resultobj = 0; | |
16575 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16576 | int result; | |
16577 | void *argp1 = 0 ; | |
16578 | int res1 = 0 ; | |
16579 | PyObject *swig_obj[1] ; | |
16580 | ||
16581 | if (!args) SWIG_fail; | |
16582 | swig_obj[0] = args; | |
16583 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16584 | if (!SWIG_IsOK(res1)) { | |
16585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16586 | } | |
16587 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16588 | { | |
16589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16590 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
16591 | wxPyEndAllowThreads(__tstate); | |
16592 | if (PyErr_Occurred()) SWIG_fail; | |
16593 | } | |
16594 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16595 | return resultobj; | |
16596 | fail: | |
16597 | return NULL; | |
d55e5bfc RD |
16598 | } |
16599 | ||
16600 | ||
554f62e9 RD |
16601 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16602 | PyObject *resultobj = 0; | |
16603 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16604 | wxString result; | |
16605 | void *argp1 = 0 ; | |
16606 | int res1 = 0 ; | |
16607 | PyObject *swig_obj[1] ; | |
16608 | ||
16609 | if (!args) SWIG_fail; | |
16610 | swig_obj[0] = args; | |
16611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16612 | if (!SWIG_IsOK(res1)) { | |
16613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16614 | } | |
16615 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16616 | { | |
16617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16618 | result = ((wxLocale const *)arg1)->GetSysName(); | |
16619 | wxPyEndAllowThreads(__tstate); | |
16620 | if (PyErr_Occurred()) SWIG_fail; | |
16621 | } | |
16622 | { | |
16623 | #if wxUSE_UNICODE | |
16624 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16625 | #else | |
16626 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16627 | #endif | |
16628 | } | |
16629 | return resultobj; | |
16630 | fail: | |
16631 | return NULL; | |
d55e5bfc RD |
16632 | } |
16633 | ||
16634 | ||
554f62e9 RD |
16635 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16636 | PyObject *resultobj = 0; | |
16637 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16638 | wxString result; | |
16639 | void *argp1 = 0 ; | |
16640 | int res1 = 0 ; | |
16641 | PyObject *swig_obj[1] ; | |
16642 | ||
16643 | if (!args) SWIG_fail; | |
16644 | swig_obj[0] = args; | |
16645 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16646 | if (!SWIG_IsOK(res1)) { | |
16647 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16648 | } | |
16649 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16650 | { | |
16651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16652 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
16653 | wxPyEndAllowThreads(__tstate); | |
16654 | if (PyErr_Occurred()) SWIG_fail; | |
16655 | } | |
16656 | { | |
093d3ff1 | 16657 | #if wxUSE_UNICODE |
554f62e9 | 16658 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16659 | #else |
554f62e9 | 16660 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16661 | #endif |
554f62e9 RD |
16662 | } |
16663 | return resultobj; | |
16664 | fail: | |
16665 | return NULL; | |
d55e5bfc RD |
16666 | } |
16667 | ||
16668 | ||
554f62e9 RD |
16669 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16670 | PyObject *resultobj = 0; | |
16671 | wxString *arg1 = 0 ; | |
16672 | bool temp1 = false ; | |
16673 | PyObject * obj0 = 0 ; | |
16674 | char * kwnames[] = { | |
16675 | (char *) "prefix", NULL | |
16676 | }; | |
16677 | ||
16678 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
16679 | { | |
16680 | arg1 = wxString_in_helper(obj0); | |
16681 | if (arg1 == NULL) SWIG_fail; | |
16682 | temp1 = true; | |
16683 | } | |
16684 | { | |
16685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16686 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
16687 | wxPyEndAllowThreads(__tstate); | |
16688 | if (PyErr_Occurred()) SWIG_fail; | |
16689 | } | |
16690 | resultobj = SWIG_Py_Void(); | |
16691 | { | |
16692 | if (temp1) | |
16693 | delete arg1; | |
16694 | } | |
16695 | return resultobj; | |
16696 | fail: | |
16697 | { | |
16698 | if (temp1) | |
16699 | delete arg1; | |
16700 | } | |
16701 | return NULL; | |
16702 | } | |
16703 | ||
16704 | ||
16705 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16706 | PyObject *resultobj = 0; | |
16707 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16708 | wxString *arg2 = 0 ; | |
16709 | bool result; | |
16710 | void *argp1 = 0 ; | |
16711 | int res1 = 0 ; | |
16712 | bool temp2 = false ; | |
16713 | PyObject * obj0 = 0 ; | |
16714 | PyObject * obj1 = 0 ; | |
16715 | char * kwnames[] = { | |
16716 | (char *) "self",(char *) "szDomain", NULL | |
16717 | }; | |
16718 | ||
16719 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
16720 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16721 | if (!SWIG_IsOK(res1)) { | |
16722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16723 | } | |
16724 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16725 | { | |
16726 | arg2 = wxString_in_helper(obj1); | |
16727 | if (arg2 == NULL) SWIG_fail; | |
16728 | temp2 = true; | |
16729 | } | |
16730 | { | |
16731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16732 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
16733 | wxPyEndAllowThreads(__tstate); | |
16734 | if (PyErr_Occurred()) SWIG_fail; | |
16735 | } | |
16736 | { | |
16737 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16738 | } | |
16739 | { | |
16740 | if (temp2) | |
16741 | delete arg2; | |
16742 | } | |
16743 | return resultobj; | |
16744 | fail: | |
16745 | { | |
16746 | if (temp2) | |
16747 | delete arg2; | |
16748 | } | |
16749 | return NULL; | |
16750 | } | |
16751 | ||
16752 | ||
33d6fd3b RD |
16753 | SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16754 | PyObject *resultobj = 0; | |
16755 | int arg1 ; | |
16756 | bool result; | |
16757 | int val1 ; | |
16758 | int ecode1 = 0 ; | |
16759 | PyObject * obj0 = 0 ; | |
16760 | char * kwnames[] = { | |
16761 | (char *) "lang", NULL | |
16762 | }; | |
16763 | ||
16764 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail; | |
16765 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16766 | if (!SWIG_IsOK(ecode1)) { | |
16767 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'"); | |
16768 | } | |
16769 | arg1 = static_cast< int >(val1); | |
16770 | { | |
16771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16772 | result = (bool)wxLocale::IsAvailable(arg1); | |
16773 | wxPyEndAllowThreads(__tstate); | |
16774 | if (PyErr_Occurred()) SWIG_fail; | |
16775 | } | |
16776 | { | |
16777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16778 | } | |
16779 | return resultobj; | |
16780 | fail: | |
16781 | return NULL; | |
16782 | } | |
16783 | ||
16784 | ||
554f62e9 RD |
16785 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16786 | PyObject *resultobj = 0; | |
16787 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16788 | wxString *arg2 = 0 ; | |
16789 | bool result; | |
16790 | void *argp1 = 0 ; | |
16791 | int res1 = 0 ; | |
16792 | bool temp2 = false ; | |
16793 | PyObject * obj0 = 0 ; | |
16794 | PyObject * obj1 = 0 ; | |
16795 | char * kwnames[] = { | |
16796 | (char *) "self",(char *) "szDomain", NULL | |
16797 | }; | |
16798 | ||
16799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
16800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16801 | if (!SWIG_IsOK(res1)) { | |
16802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16803 | } | |
16804 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16805 | { | |
16806 | arg2 = wxString_in_helper(obj1); | |
16807 | if (arg2 == NULL) SWIG_fail; | |
16808 | temp2 = true; | |
16809 | } | |
16810 | { | |
16811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16812 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
16813 | wxPyEndAllowThreads(__tstate); | |
16814 | if (PyErr_Occurred()) SWIG_fail; | |
16815 | } | |
16816 | { | |
16817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16818 | } | |
16819 | { | |
16820 | if (temp2) | |
16821 | delete arg2; | |
16822 | } | |
16823 | return resultobj; | |
16824 | fail: | |
16825 | { | |
16826 | if (temp2) | |
16827 | delete arg2; | |
16828 | } | |
16829 | return NULL; | |
d55e5bfc RD |
16830 | } |
16831 | ||
16832 | ||
554f62e9 RD |
16833 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16834 | PyObject *resultobj = 0; | |
16835 | int arg1 ; | |
16836 | wxLanguageInfo *result = 0 ; | |
16837 | int val1 ; | |
16838 | int ecode1 = 0 ; | |
16839 | PyObject * obj0 = 0 ; | |
16840 | char * kwnames[] = { | |
16841 | (char *) "lang", NULL | |
16842 | }; | |
16843 | ||
16844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16845 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16846 | if (!SWIG_IsOK(ecode1)) { | |
16847 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
16848 | } | |
16849 | arg1 = static_cast< int >(val1); | |
16850 | { | |
16851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16852 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
16853 | wxPyEndAllowThreads(__tstate); | |
16854 | if (PyErr_Occurred()) SWIG_fail; | |
16855 | } | |
16856 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16857 | return resultobj; | |
16858 | fail: | |
16859 | return NULL; | |
16860 | } | |
16861 | ||
16862 | ||
16863 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16864 | PyObject *resultobj = 0; | |
16865 | int arg1 ; | |
16866 | wxString result; | |
16867 | int val1 ; | |
16868 | int ecode1 = 0 ; | |
16869 | PyObject * obj0 = 0 ; | |
16870 | char * kwnames[] = { | |
16871 | (char *) "lang", NULL | |
16872 | }; | |
16873 | ||
16874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
16875 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16876 | if (!SWIG_IsOK(ecode1)) { | |
16877 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
16878 | } | |
16879 | arg1 = static_cast< int >(val1); | |
16880 | { | |
16881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16882 | result = wxLocale::GetLanguageName(arg1); | |
16883 | wxPyEndAllowThreads(__tstate); | |
16884 | if (PyErr_Occurred()) SWIG_fail; | |
16885 | } | |
16886 | { | |
16887 | #if wxUSE_UNICODE | |
16888 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16889 | #else | |
16890 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16891 | #endif | |
16892 | } | |
16893 | return resultobj; | |
16894 | fail: | |
16895 | return NULL; | |
093d3ff1 RD |
16896 | } |
16897 | ||
16898 | ||
554f62e9 RD |
16899 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16900 | PyObject *resultobj = 0; | |
16901 | wxString *arg1 = 0 ; | |
16902 | wxLanguageInfo *result = 0 ; | |
16903 | bool temp1 = false ; | |
16904 | PyObject * obj0 = 0 ; | |
16905 | char * kwnames[] = { | |
16906 | (char *) "locale", NULL | |
16907 | }; | |
16908 | ||
16909 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
16910 | { | |
16911 | arg1 = wxString_in_helper(obj0); | |
16912 | if (arg1 == NULL) SWIG_fail; | |
16913 | temp1 = true; | |
16914 | } | |
16915 | { | |
16916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 RD |
16917 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
16918 | wxPyEndAllowThreads(__tstate); | |
16919 | if (PyErr_Occurred()) SWIG_fail; | |
16920 | } | |
16921 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16922 | { | |
16923 | if (temp1) | |
16924 | delete arg1; | |
16925 | } | |
16926 | return resultobj; | |
16927 | fail: | |
16928 | { | |
16929 | if (temp1) | |
16930 | delete arg1; | |
16931 | } | |
16932 | return NULL; | |
16933 | } | |
16934 | ||
16935 | ||
16936 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16937 | PyObject *resultobj = 0; | |
16938 | wxLanguageInfo *arg1 = 0 ; | |
16939 | void *argp1 = 0 ; | |
16940 | int res1 = 0 ; | |
16941 | PyObject * obj0 = 0 ; | |
16942 | char * kwnames[] = { | |
16943 | (char *) "info", NULL | |
16944 | }; | |
16945 | ||
16946 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
16947 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
16948 | if (!SWIG_IsOK(res1)) { | |
16949 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16950 | } | |
16951 | if (!argp1) { | |
16952 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
16953 | } | |
16954 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16955 | { | |
16956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16957 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
16958 | wxPyEndAllowThreads(__tstate); | |
16959 | if (PyErr_Occurred()) SWIG_fail; | |
16960 | } | |
16961 | resultobj = SWIG_Py_Void(); | |
16962 | return resultobj; | |
16963 | fail: | |
16964 | return NULL; | |
16965 | } | |
16966 | ||
16967 | ||
16968 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16969 | PyObject *resultobj = 0; | |
16970 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16971 | wxString *arg2 = 0 ; | |
16972 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16973 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16974 | wxString result; | |
16975 | void *argp1 = 0 ; | |
16976 | int res1 = 0 ; | |
16977 | bool temp2 = false ; | |
16978 | bool temp3 = false ; | |
16979 | PyObject * obj0 = 0 ; | |
16980 | PyObject * obj1 = 0 ; | |
16981 | PyObject * obj2 = 0 ; | |
16982 | char * kwnames[] = { | |
16983 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
16984 | }; | |
16985 | ||
16986 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16987 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16988 | if (!SWIG_IsOK(res1)) { | |
16989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16990 | } | |
16991 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16992 | { | |
16993 | arg2 = wxString_in_helper(obj1); | |
16994 | if (arg2 == NULL) SWIG_fail; | |
16995 | temp2 = true; | |
16996 | } | |
16997 | if (obj2) { | |
16998 | { | |
16999 | arg3 = wxString_in_helper(obj2); | |
17000 | if (arg3 == NULL) SWIG_fail; | |
17001 | temp3 = true; | |
17002 | } | |
17003 | } | |
17004 | { | |
17005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17006 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
17007 | wxPyEndAllowThreads(__tstate); | |
17008 | if (PyErr_Occurred()) SWIG_fail; | |
17009 | } | |
17010 | { | |
17011 | #if wxUSE_UNICODE | |
17012 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17013 | #else | |
17014 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17015 | #endif | |
17016 | } | |
17017 | { | |
17018 | if (temp2) | |
17019 | delete arg2; | |
17020 | } | |
17021 | { | |
17022 | if (temp3) | |
17023 | delete arg3; | |
17024 | } | |
17025 | return resultobj; | |
17026 | fail: | |
17027 | { | |
17028 | if (temp2) | |
17029 | delete arg2; | |
17030 | } | |
17031 | { | |
17032 | if (temp3) | |
17033 | delete arg3; | |
17034 | } | |
17035 | return NULL; | |
17036 | } | |
17037 | ||
17038 | ||
17039 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17040 | PyObject *resultobj = 0; | |
17041 | wxLocale *arg1 = (wxLocale *) 0 ; | |
17042 | wxString *result = 0 ; | |
17043 | void *argp1 = 0 ; | |
17044 | int res1 = 0 ; | |
17045 | PyObject *swig_obj[1] ; | |
17046 | ||
17047 | if (!args) SWIG_fail; | |
17048 | swig_obj[0] = args; | |
17049 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17050 | if (!SWIG_IsOK(res1)) { | |
17051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
17052 | } | |
17053 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
17054 | { | |
17055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17056 | { | |
17057 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
17058 | result = (wxString *) &_result_ref; | |
17059 | } | |
17060 | wxPyEndAllowThreads(__tstate); | |
17061 | if (PyErr_Occurred()) SWIG_fail; | |
17062 | } | |
17063 | { | |
17064 | #if wxUSE_UNICODE | |
17065 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17066 | #else | |
17067 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17068 | #endif | |
17069 | } | |
17070 | return resultobj; | |
17071 | fail: | |
17072 | return NULL; | |
17073 | } | |
17074 | ||
17075 | ||
17076 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17077 | PyObject *obj; | |
17078 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17079 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
17080 | return SWIG_Py_Void(); | |
17081 | } | |
17082 | ||
17083 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17084 | return SWIG_Python_InitShadowInstance(args); | |
17085 | } | |
17086 | ||
17087 | SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17088 | PyObject *resultobj = 0; | |
17089 | int arg1 = (int) -1 ; | |
17090 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
17091 | wxPyLocale *result = 0 ; | |
17092 | int val1 ; | |
17093 | int ecode1 = 0 ; | |
17094 | int val2 ; | |
17095 | int ecode2 = 0 ; | |
17096 | PyObject * obj0 = 0 ; | |
17097 | PyObject * obj1 = 0 ; | |
17098 | char * kwnames[] = { | |
17099 | (char *) "language",(char *) "flags", NULL | |
17100 | }; | |
17101 | ||
17102 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail; | |
17103 | if (obj0) { | |
17104 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17105 | if (!SWIG_IsOK(ecode1)) { | |
17106 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'"); | |
17107 | } | |
17108 | arg1 = static_cast< int >(val1); | |
17109 | } | |
17110 | if (obj1) { | |
17111 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17112 | if (!SWIG_IsOK(ecode2)) { | |
17113 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'"); | |
17114 | } | |
17115 | arg2 = static_cast< int >(val2); | |
17116 | } | |
17117 | { | |
17118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17119 | result = (wxPyLocale *)new_wxPyLocale(arg1,arg2); | |
17120 | wxPyEndAllowThreads(__tstate); | |
17121 | if (PyErr_Occurred()) SWIG_fail; | |
17122 | } | |
17123 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 ); | |
17124 | return resultobj; | |
17125 | fail: | |
17126 | return NULL; | |
17127 | } | |
17128 | ||
17129 | ||
17130 | SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17131 | PyObject *resultobj = 0; | |
17132 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; | |
17133 | void *argp1 = 0 ; | |
17134 | int res1 = 0 ; | |
17135 | PyObject *swig_obj[1] ; | |
17136 | ||
17137 | if (!args) SWIG_fail; | |
17138 | swig_obj[0] = args; | |
17139 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 ); | |
17140 | if (!SWIG_IsOK(res1)) { | |
17141 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'"); | |
17142 | } | |
17143 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
17144 | { | |
17145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17146 | delete arg1; | |
17147 | ||
554f62e9 RD |
17148 | wxPyEndAllowThreads(__tstate); |
17149 | if (PyErr_Occurred()) SWIG_fail; | |
17150 | } | |
fc46b7f3 | 17151 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
17152 | return resultobj; |
17153 | fail: | |
554f62e9 | 17154 | return NULL; |
d55e5bfc RD |
17155 | } |
17156 | ||
17157 | ||
fc46b7f3 | 17158 | SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 17159 | PyObject *resultobj = 0; |
fc46b7f3 RD |
17160 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
17161 | PyObject *arg2 = (PyObject *) 0 ; | |
17162 | PyObject *arg3 = (PyObject *) 0 ; | |
554f62e9 RD |
17163 | void *argp1 = 0 ; |
17164 | int res1 = 0 ; | |
17165 | PyObject * obj0 = 0 ; | |
fc46b7f3 RD |
17166 | PyObject * obj1 = 0 ; |
17167 | PyObject * obj2 = 0 ; | |
554f62e9 | 17168 | char * kwnames[] = { |
fc46b7f3 | 17169 | (char *) "self",(char *) "self",(char *) "_class", NULL |
554f62e9 RD |
17170 | }; |
17171 | ||
fc46b7f3 RD |
17172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
17173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
554f62e9 | 17174 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 17175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'"); |
554f62e9 | 17176 | } |
fc46b7f3 RD |
17177 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
17178 | arg2 = obj1; | |
17179 | arg3 = obj2; | |
554f62e9 RD |
17180 | { |
17181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 17182 | (arg1)->_setCallbackInfo(arg2,arg3); |
554f62e9 RD |
17183 | wxPyEndAllowThreads(__tstate); |
17184 | if (PyErr_Occurred()) SWIG_fail; | |
17185 | } | |
17186 | resultobj = SWIG_Py_Void(); | |
17187 | return resultobj; | |
17188 | fail: | |
17189 | return NULL; | |
17190 | } | |
17191 | ||
17192 | ||
fc46b7f3 | 17193 | SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 17194 | PyObject *resultobj = 0; |
fc46b7f3 RD |
17195 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
17196 | wxChar *arg2 = (wxChar *) 0 ; | |
17197 | wxChar *arg3 = (wxChar *) NULL ; | |
17198 | wxChar *result = 0 ; | |
554f62e9 RD |
17199 | void *argp1 = 0 ; |
17200 | int res1 = 0 ; | |
fc46b7f3 RD |
17201 | void *argp2 = 0 ; |
17202 | int res2 = 0 ; | |
17203 | void *argp3 = 0 ; | |
17204 | int res3 = 0 ; | |
554f62e9 RD |
17205 | PyObject * obj0 = 0 ; |
17206 | PyObject * obj1 = 0 ; | |
17207 | PyObject * obj2 = 0 ; | |
17208 | char * kwnames[] = { | |
17209 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
17210 | }; | |
17211 | ||
fc46b7f3 RD |
17212 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
17213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
554f62e9 | 17214 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 17215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
554f62e9 | 17216 | } |
fc46b7f3 RD |
17217 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
17218 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17219 | if (!SWIG_IsOK(res2)) { | |
17220 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
554f62e9 | 17221 | } |
fc46b7f3 | 17222 | arg2 = reinterpret_cast< wxChar * >(argp2); |
554f62e9 | 17223 | if (obj2) { |
fc46b7f3 RD |
17224 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); |
17225 | if (!SWIG_IsOK(res3)) { | |
17226 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
d55e5bfc | 17227 | } |
fc46b7f3 | 17228 | arg3 = reinterpret_cast< wxChar * >(argp3); |
554f62e9 RD |
17229 | } |
17230 | { | |
17231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 17232 | result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3); |
554f62e9 RD |
17233 | wxPyEndAllowThreads(__tstate); |
17234 | if (PyErr_Occurred()) SWIG_fail; | |
17235 | } | |
fc46b7f3 | 17236 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
554f62e9 RD |
17237 | return resultobj; |
17238 | fail: | |
554f62e9 | 17239 | return NULL; |
d55e5bfc RD |
17240 | } |
17241 | ||
17242 | ||
fc46b7f3 | 17243 | SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 17244 | PyObject *resultobj = 0; |
fc46b7f3 RD |
17245 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
17246 | wxChar *arg2 = (wxChar *) 0 ; | |
17247 | wxChar *arg3 = (wxChar *) 0 ; | |
17248 | size_t arg4 ; | |
17249 | wxChar *arg5 = (wxChar *) NULL ; | |
17250 | wxChar *result = 0 ; | |
554f62e9 RD |
17251 | void *argp1 = 0 ; |
17252 | int res1 = 0 ; | |
fc46b7f3 RD |
17253 | void *argp2 = 0 ; |
17254 | int res2 = 0 ; | |
17255 | void *argp3 = 0 ; | |
17256 | int res3 = 0 ; | |
17257 | size_t val4 ; | |
17258 | int ecode4 = 0 ; | |
17259 | void *argp5 = 0 ; | |
17260 | int res5 = 0 ; | |
17261 | PyObject * obj0 = 0 ; | |
17262 | PyObject * obj1 = 0 ; | |
17263 | PyObject * obj2 = 0 ; | |
17264 | PyObject * obj3 = 0 ; | |
17265 | PyObject * obj4 = 0 ; | |
17266 | char * kwnames[] = { | |
17267 | (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL | |
17268 | }; | |
554f62e9 | 17269 | |
fc46b7f3 RD |
17270 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
17271 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
554f62e9 | 17272 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 RD |
17273 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
17274 | } | |
17275 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
17276 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17277 | if (!SWIG_IsOK(res2)) { | |
17278 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
17279 | } | |
17280 | arg2 = reinterpret_cast< wxChar * >(argp2); | |
17281 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17282 | if (!SWIG_IsOK(res3)) { | |
17283 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
17284 | } | |
17285 | arg3 = reinterpret_cast< wxChar * >(argp3); | |
17286 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
17287 | if (!SWIG_IsOK(ecode4)) { | |
17288 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'"); | |
17289 | } | |
17290 | arg4 = static_cast< size_t >(val4); | |
17291 | if (obj4) { | |
17292 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17293 | if (!SWIG_IsOK(res5)) { | |
17294 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'"); | |
17295 | } | |
17296 | arg5 = reinterpret_cast< wxChar * >(argp5); | |
554f62e9 | 17297 | } |
554f62e9 RD |
17298 | { |
17299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 17300 | result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5); |
554f62e9 RD |
17301 | wxPyEndAllowThreads(__tstate); |
17302 | if (PyErr_Occurred()) SWIG_fail; | |
17303 | } | |
fc46b7f3 | 17304 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
554f62e9 RD |
17305 | return resultobj; |
17306 | fail: | |
17307 | return NULL; | |
d55e5bfc RD |
17308 | } |
17309 | ||
17310 | ||
fc46b7f3 | 17311 | SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
17312 | PyObject *obj; |
17313 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 17314 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj)); |
554f62e9 | 17315 | return SWIG_Py_Void(); |
d55e5bfc RD |
17316 | } |
17317 | ||
fc46b7f3 | 17318 | SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 17319 | return SWIG_Python_InitShadowInstance(args); |
d55e5bfc RD |
17320 | } |
17321 | ||
554f62e9 RD |
17322 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17323 | PyObject *resultobj = 0; | |
17324 | wxLocale *result = 0 ; | |
17325 | ||
17326 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
17327 | { | |
17328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17329 | result = (wxLocale *)wxGetLocale(); | |
17330 | wxPyEndAllowThreads(__tstate); | |
17331 | if (PyErr_Occurred()) SWIG_fail; | |
17332 | } | |
17333 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17334 | return resultobj; | |
17335 | fail: | |
17336 | return NULL; | |
d55e5bfc RD |
17337 | } |
17338 | ||
17339 | ||
554f62e9 RD |
17340 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17341 | PyObject *resultobj = 0; | |
17342 | wxString *arg1 = 0 ; | |
17343 | wxString result; | |
17344 | bool temp1 = false ; | |
17345 | ||
17346 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
17347 | { | |
17348 | arg1 = wxString_in_helper(swig_obj[0]); | |
17349 | if (arg1 == NULL) SWIG_fail; | |
17350 | temp1 = true; | |
17351 | } | |
17352 | { | |
17353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17354 | result = wxGetTranslation((wxString const &)*arg1); | |
17355 | wxPyEndAllowThreads(__tstate); | |
17356 | if (PyErr_Occurred()) SWIG_fail; | |
17357 | } | |
17358 | { | |
093d3ff1 | 17359 | #if wxUSE_UNICODE |
554f62e9 | 17360 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17361 | #else |
554f62e9 | 17362 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17363 | #endif |
554f62e9 RD |
17364 | } |
17365 | { | |
17366 | if (temp1) | |
17367 | delete arg1; | |
17368 | } | |
17369 | return resultobj; | |
17370 | fail: | |
17371 | { | |
17372 | if (temp1) | |
17373 | delete arg1; | |
17374 | } | |
17375 | return NULL; | |
d55e5bfc RD |
17376 | } |
17377 | ||
17378 | ||
554f62e9 | 17379 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
fc46b7f3 RD |
17380 | PyObject *resultobj = 0; |
17381 | wxString *arg1 = 0 ; | |
17382 | wxString *arg2 = 0 ; | |
17383 | wxString result; | |
17384 | bool temp1 = false ; | |
17385 | bool temp2 = false ; | |
17386 | ||
17387 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
17388 | { | |
17389 | arg1 = wxString_in_helper(swig_obj[0]); | |
17390 | if (arg1 == NULL) SWIG_fail; | |
17391 | temp1 = true; | |
17392 | } | |
17393 | { | |
17394 | arg2 = wxString_in_helper(swig_obj[1]); | |
17395 | if (arg2 == NULL) SWIG_fail; | |
17396 | temp2 = true; | |
17397 | } | |
17398 | { | |
17399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17400 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2); | |
17401 | wxPyEndAllowThreads(__tstate); | |
17402 | if (PyErr_Occurred()) SWIG_fail; | |
17403 | } | |
17404 | { | |
17405 | #if wxUSE_UNICODE | |
17406 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17407 | #else | |
17408 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17409 | #endif | |
17410 | } | |
17411 | { | |
17412 | if (temp1) | |
17413 | delete arg1; | |
17414 | } | |
17415 | { | |
17416 | if (temp2) | |
17417 | delete arg2; | |
17418 | } | |
17419 | return resultobj; | |
17420 | fail: | |
17421 | { | |
17422 | if (temp1) | |
17423 | delete arg1; | |
17424 | } | |
17425 | { | |
17426 | if (temp2) | |
17427 | delete arg2; | |
17428 | } | |
17429 | return NULL; | |
17430 | } | |
17431 | ||
17432 | ||
17433 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
554f62e9 RD |
17434 | PyObject *resultobj = 0; |
17435 | wxString *arg1 = 0 ; | |
17436 | wxString *arg2 = 0 ; | |
17437 | size_t arg3 ; | |
17438 | wxString result; | |
17439 | bool temp1 = false ; | |
17440 | bool temp2 = false ; | |
17441 | size_t val3 ; | |
17442 | int ecode3 = 0 ; | |
17443 | ||
17444 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
17445 | { | |
17446 | arg1 = wxString_in_helper(swig_obj[0]); | |
17447 | if (arg1 == NULL) SWIG_fail; | |
17448 | temp1 = true; | |
17449 | } | |
17450 | { | |
17451 | arg2 = wxString_in_helper(swig_obj[1]); | |
17452 | if (arg2 == NULL) SWIG_fail; | |
17453 | temp2 = true; | |
17454 | } | |
17455 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17456 | if (!SWIG_IsOK(ecode3)) { | |
17457 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17458 | } | |
17459 | arg3 = static_cast< size_t >(val3); | |
17460 | { | |
17461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17462 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
17463 | wxPyEndAllowThreads(__tstate); | |
17464 | if (PyErr_Occurred()) SWIG_fail; | |
17465 | } | |
17466 | { | |
093d3ff1 | 17467 | #if wxUSE_UNICODE |
554f62e9 | 17468 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17469 | #else |
554f62e9 | 17470 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17471 | #endif |
554f62e9 RD |
17472 | } |
17473 | { | |
17474 | if (temp1) | |
17475 | delete arg1; | |
17476 | } | |
17477 | { | |
17478 | if (temp2) | |
17479 | delete arg2; | |
17480 | } | |
17481 | return resultobj; | |
17482 | fail: | |
17483 | { | |
17484 | if (temp1) | |
17485 | delete arg1; | |
17486 | } | |
17487 | { | |
17488 | if (temp2) | |
17489 | delete arg2; | |
17490 | } | |
17491 | return NULL; | |
d55e5bfc RD |
17492 | } |
17493 | ||
17494 | ||
fc46b7f3 RD |
17495 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17496 | PyObject *resultobj = 0; | |
17497 | wxString *arg1 = 0 ; | |
17498 | wxString *arg2 = 0 ; | |
17499 | size_t arg3 ; | |
17500 | wxString *arg4 = 0 ; | |
17501 | wxString result; | |
17502 | bool temp1 = false ; | |
17503 | bool temp2 = false ; | |
17504 | size_t val3 ; | |
17505 | int ecode3 = 0 ; | |
17506 | bool temp4 = false ; | |
17507 | ||
17508 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; | |
17509 | { | |
17510 | arg1 = wxString_in_helper(swig_obj[0]); | |
17511 | if (arg1 == NULL) SWIG_fail; | |
17512 | temp1 = true; | |
17513 | } | |
17514 | { | |
17515 | arg2 = wxString_in_helper(swig_obj[1]); | |
17516 | if (arg2 == NULL) SWIG_fail; | |
17517 | temp2 = true; | |
17518 | } | |
17519 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17520 | if (!SWIG_IsOK(ecode3)) { | |
17521 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17522 | } | |
17523 | arg3 = static_cast< size_t >(val3); | |
17524 | { | |
17525 | arg4 = wxString_in_helper(swig_obj[3]); | |
17526 | if (arg4 == NULL) SWIG_fail; | |
17527 | temp4 = true; | |
17528 | } | |
17529 | { | |
17530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17531 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4); | |
17532 | wxPyEndAllowThreads(__tstate); | |
17533 | if (PyErr_Occurred()) SWIG_fail; | |
17534 | } | |
17535 | { | |
17536 | #if wxUSE_UNICODE | |
17537 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17538 | #else | |
17539 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17540 | #endif | |
17541 | } | |
17542 | { | |
17543 | if (temp1) | |
17544 | delete arg1; | |
17545 | } | |
17546 | { | |
17547 | if (temp2) | |
17548 | delete arg2; | |
17549 | } | |
17550 | { | |
17551 | if (temp4) | |
17552 | delete arg4; | |
17553 | } | |
17554 | return resultobj; | |
17555 | fail: | |
17556 | { | |
17557 | if (temp1) | |
17558 | delete arg1; | |
17559 | } | |
17560 | { | |
17561 | if (temp2) | |
17562 | delete arg2; | |
17563 | } | |
17564 | { | |
17565 | if (temp4) | |
17566 | delete arg4; | |
17567 | } | |
17568 | return NULL; | |
17569 | } | |
17570 | ||
17571 | ||
554f62e9 RD |
17572 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
17573 | int argc; | |
fc46b7f3 | 17574 | PyObject *argv[5]; |
554f62e9 | 17575 | |
fc46b7f3 | 17576 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail; |
554f62e9 RD |
17577 | --argc; |
17578 | if (argc == 1) { | |
17579 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
17580 | } | |
fc46b7f3 | 17581 | if (argc == 2) { |
554f62e9 RD |
17582 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); |
17583 | } | |
fc46b7f3 RD |
17584 | if (argc == 3) { |
17585 | return _wrap_GetTranslation__SWIG_2(self, argc, argv); | |
17586 | } | |
17587 | if (argc == 4) { | |
17588 | return _wrap_GetTranslation__SWIG_3(self, argc, argv); | |
17589 | } | |
554f62e9 RD |
17590 | |
17591 | fail: | |
17592 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
17593 | return NULL; | |
d55e5bfc RD |
17594 | } |
17595 | ||
17596 | ||
554f62e9 RD |
17597 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17598 | PyObject *resultobj = 0; | |
17599 | wxEncodingConverter *result = 0 ; | |
17600 | ||
17601 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
17602 | { | |
17603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17604 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
17605 | wxPyEndAllowThreads(__tstate); | |
17606 | if (PyErr_Occurred()) SWIG_fail; | |
17607 | } | |
17608 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
17609 | return resultobj; | |
17610 | fail: | |
17611 | return NULL; | |
d55e5bfc RD |
17612 | } |
17613 | ||
17614 | ||
554f62e9 RD |
17615 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17616 | PyObject *resultobj = 0; | |
17617 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17618 | void *argp1 = 0 ; | |
17619 | int res1 = 0 ; | |
17620 | PyObject *swig_obj[1] ; | |
17621 | ||
17622 | if (!args) SWIG_fail; | |
17623 | swig_obj[0] = args; | |
17624 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
17625 | if (!SWIG_IsOK(res1)) { | |
17626 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17627 | } | |
17628 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17629 | { | |
17630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17631 | delete arg1; | |
d55e5bfc | 17632 | |
554f62e9 RD |
17633 | wxPyEndAllowThreads(__tstate); |
17634 | if (PyErr_Occurred()) SWIG_fail; | |
17635 | } | |
17636 | resultobj = SWIG_Py_Void(); | |
17637 | return resultobj; | |
17638 | fail: | |
17639 | return NULL; | |
17640 | } | |
17641 | ||
17642 | ||
17643 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17644 | PyObject *resultobj = 0; | |
17645 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17646 | wxFontEncoding arg2 ; | |
17647 | wxFontEncoding arg3 ; | |
17648 | int arg4 = (int) wxCONVERT_STRICT ; | |
17649 | bool result; | |
17650 | void *argp1 = 0 ; | |
17651 | int res1 = 0 ; | |
17652 | int val2 ; | |
17653 | int ecode2 = 0 ; | |
17654 | int val3 ; | |
17655 | int ecode3 = 0 ; | |
17656 | int val4 ; | |
17657 | int ecode4 = 0 ; | |
17658 | PyObject * obj0 = 0 ; | |
17659 | PyObject * obj1 = 0 ; | |
17660 | PyObject * obj2 = 0 ; | |
17661 | PyObject * obj3 = 0 ; | |
17662 | char * kwnames[] = { | |
17663 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
17664 | }; | |
17665 | ||
17666 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
17667 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17668 | if (!SWIG_IsOK(res1)) { | |
17669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17670 | } | |
17671 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17672 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17673 | if (!SWIG_IsOK(ecode2)) { | |
17674 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17675 | } | |
17676 | arg2 = static_cast< wxFontEncoding >(val2); | |
17677 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17678 | if (!SWIG_IsOK(ecode3)) { | |
17679 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
17680 | } | |
17681 | arg3 = static_cast< wxFontEncoding >(val3); | |
17682 | if (obj3) { | |
17683 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
17684 | if (!SWIG_IsOK(ecode4)) { | |
17685 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
17686 | } | |
17687 | arg4 = static_cast< int >(val4); | |
17688 | } | |
17689 | { | |
17690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17691 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
17692 | wxPyEndAllowThreads(__tstate); | |
17693 | if (PyErr_Occurred()) SWIG_fail; | |
17694 | } | |
17695 | { | |
17696 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17697 | } | |
17698 | return resultobj; | |
17699 | fail: | |
17700 | return NULL; | |
17701 | } | |
17702 | ||
17703 | ||
17704 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17705 | PyObject *resultobj = 0; | |
17706 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17707 | wxString *arg2 = 0 ; | |
17708 | wxString result; | |
17709 | void *argp1 = 0 ; | |
17710 | int res1 = 0 ; | |
17711 | bool temp2 = false ; | |
17712 | PyObject * obj0 = 0 ; | |
17713 | PyObject * obj1 = 0 ; | |
17714 | char * kwnames[] = { | |
17715 | (char *) "self",(char *) "input", NULL | |
17716 | }; | |
17717 | ||
17718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17719 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
17720 | if (!SWIG_IsOK(res1)) { | |
17721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17722 | } | |
17723 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17724 | { | |
17725 | arg2 = wxString_in_helper(obj1); | |
17726 | if (arg2 == NULL) SWIG_fail; | |
17727 | temp2 = true; | |
17728 | } | |
17729 | { | |
17730 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17731 | result = (arg1)->Convert((wxString const &)*arg2); | |
17732 | wxPyEndAllowThreads(__tstate); | |
17733 | if (PyErr_Occurred()) SWIG_fail; | |
17734 | } | |
17735 | { | |
d55e5bfc | 17736 | #if wxUSE_UNICODE |
554f62e9 | 17737 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 17738 | #else |
554f62e9 | 17739 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 17740 | #endif |
554f62e9 RD |
17741 | } |
17742 | { | |
17743 | if (temp2) | |
17744 | delete arg2; | |
17745 | } | |
17746 | return resultobj; | |
17747 | fail: | |
17748 | { | |
17749 | if (temp2) | |
17750 | delete arg2; | |
17751 | } | |
17752 | return NULL; | |
17753 | } | |
17754 | ||
17755 | ||
17756 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17757 | PyObject *resultobj = 0; | |
17758 | wxFontEncoding arg1 ; | |
17759 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
17760 | wxFontEncodingArray result; | |
17761 | int val1 ; | |
17762 | int ecode1 = 0 ; | |
17763 | int val2 ; | |
17764 | int ecode2 = 0 ; | |
17765 | PyObject * obj0 = 0 ; | |
17766 | PyObject * obj1 = 0 ; | |
17767 | char * kwnames[] = { | |
17768 | (char *) "enc",(char *) "platform", NULL | |
17769 | }; | |
17770 | ||
17771 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
17772 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17773 | if (!SWIG_IsOK(ecode1)) { | |
17774 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17775 | } | |
17776 | arg1 = static_cast< wxFontEncoding >(val1); | |
17777 | if (obj1) { | |
17778 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17779 | if (!SWIG_IsOK(ecode2)) { | |
17780 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
17781 | } | |
17782 | arg2 = static_cast< int >(val2); | |
17783 | } | |
17784 | { | |
17785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17786 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
17787 | wxPyEndAllowThreads(__tstate); | |
17788 | if (PyErr_Occurred()) SWIG_fail; | |
17789 | } | |
17790 | { | |
17791 | resultobj = PyList_New(0); | |
17792 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17793 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17794 | PyList_Append(resultobj, number); | |
17795 | Py_DECREF(number); | |
d55e5bfc | 17796 | } |
554f62e9 RD |
17797 | } |
17798 | return resultobj; | |
17799 | fail: | |
17800 | return NULL; | |
d55e5bfc RD |
17801 | } |
17802 | ||
17803 | ||
554f62e9 RD |
17804 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17805 | PyObject *resultobj = 0; | |
17806 | wxFontEncoding arg1 ; | |
17807 | wxFontEncodingArray result; | |
17808 | int val1 ; | |
17809 | int ecode1 = 0 ; | |
17810 | PyObject * obj0 = 0 ; | |
17811 | char * kwnames[] = { | |
17812 | (char *) "enc", NULL | |
17813 | }; | |
17814 | ||
17815 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
17816 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17817 | if (!SWIG_IsOK(ecode1)) { | |
17818 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17819 | } | |
17820 | arg1 = static_cast< wxFontEncoding >(val1); | |
17821 | { | |
17822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17823 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
17824 | wxPyEndAllowThreads(__tstate); | |
17825 | if (PyErr_Occurred()) SWIG_fail; | |
17826 | } | |
17827 | { | |
17828 | resultobj = PyList_New(0); | |
17829 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
17830 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
17831 | PyList_Append(resultobj, number); | |
17832 | Py_DECREF(number); | |
d55e5bfc | 17833 | } |
554f62e9 RD |
17834 | } |
17835 | return resultobj; | |
17836 | fail: | |
17837 | return NULL; | |
17838 | } | |
17839 | ||
17840 | ||
17841 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17842 | PyObject *resultobj = 0; | |
17843 | wxFontEncoding arg1 ; | |
17844 | wxFontEncoding arg2 ; | |
17845 | bool result; | |
17846 | int val1 ; | |
17847 | int ecode1 = 0 ; | |
17848 | int val2 ; | |
17849 | int ecode2 = 0 ; | |
17850 | PyObject * obj0 = 0 ; | |
17851 | PyObject * obj1 = 0 ; | |
17852 | char * kwnames[] = { | |
17853 | (char *) "encIn",(char *) "encOut", NULL | |
17854 | }; | |
17855 | ||
17856 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
17857 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17858 | if (!SWIG_IsOK(ecode1)) { | |
17859 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
17860 | } | |
17861 | arg1 = static_cast< wxFontEncoding >(val1); | |
17862 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17863 | if (!SWIG_IsOK(ecode2)) { | |
17864 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
17865 | } | |
17866 | arg2 = static_cast< wxFontEncoding >(val2); | |
17867 | { | |
17868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17869 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
17870 | wxPyEndAllowThreads(__tstate); | |
17871 | if (PyErr_Occurred()) SWIG_fail; | |
17872 | } | |
17873 | { | |
17874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17875 | } | |
17876 | return resultobj; | |
17877 | fail: | |
17878 | return NULL; | |
d55e5bfc RD |
17879 | } |
17880 | ||
17881 | ||
554f62e9 RD |
17882 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17883 | PyObject *obj; | |
17884 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17885 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
17886 | return SWIG_Py_Void(); | |
d55e5bfc RD |
17887 | } |
17888 | ||
554f62e9 RD |
17889 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17890 | return SWIG_Python_InitShadowInstance(args); | |
5e483524 RD |
17891 | } |
17892 | ||
554f62e9 RD |
17893 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17894 | PyObject *resultobj = 0; | |
17895 | wxDC *arg1 = (wxDC *) 0 ; | |
17896 | void *argp1 = 0 ; | |
17897 | int res1 = 0 ; | |
17898 | PyObject *swig_obj[1] ; | |
17899 | ||
17900 | if (!args) SWIG_fail; | |
17901 | swig_obj[0] = args; | |
17902 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
17903 | if (!SWIG_IsOK(res1)) { | |
17904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17905 | } | |
17906 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17907 | { | |
17908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17909 | delete arg1; | |
d55e5bfc | 17910 | |
554f62e9 RD |
17911 | wxPyEndAllowThreads(__tstate); |
17912 | if (PyErr_Occurred()) SWIG_fail; | |
17913 | } | |
17914 | resultobj = SWIG_Py_Void(); | |
17915 | return resultobj; | |
17916 | fail: | |
17917 | return NULL; | |
17918 | } | |
17919 | ||
17920 | ||
17921 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17922 | PyObject *resultobj = 0; | |
17923 | wxDC *arg1 = (wxDC *) 0 ; | |
17924 | int arg2 ; | |
17925 | int arg3 ; | |
17926 | wxColour *arg4 = 0 ; | |
17927 | int arg5 = (int) wxFLOOD_SURFACE ; | |
17928 | bool result; | |
17929 | void *argp1 = 0 ; | |
17930 | int res1 = 0 ; | |
17931 | int val2 ; | |
17932 | int ecode2 = 0 ; | |
17933 | int val3 ; | |
17934 | int ecode3 = 0 ; | |
17935 | wxColour temp4 ; | |
17936 | int val5 ; | |
17937 | int ecode5 = 0 ; | |
17938 | PyObject * obj0 = 0 ; | |
17939 | PyObject * obj1 = 0 ; | |
17940 | PyObject * obj2 = 0 ; | |
17941 | PyObject * obj3 = 0 ; | |
17942 | PyObject * obj4 = 0 ; | |
17943 | char * kwnames[] = { | |
17944 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
17945 | }; | |
17946 | ||
17947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
17948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
17949 | if (!SWIG_IsOK(res1)) { | |
17950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
17951 | } | |
17952 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
17953 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17954 | if (!SWIG_IsOK(ecode2)) { | |
17955 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
17956 | } | |
17957 | arg2 = static_cast< int >(val2); | |
17958 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
17959 | if (!SWIG_IsOK(ecode3)) { | |
17960 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
17961 | } | |
17962 | arg3 = static_cast< int >(val3); | |
17963 | { | |
17964 | arg4 = &temp4; | |
17965 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
17966 | } | |
17967 | if (obj4) { | |
17968 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
17969 | if (!SWIG_IsOK(ecode5)) { | |
17970 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
17971 | } | |
17972 | arg5 = static_cast< int >(val5); | |
17973 | } | |
17974 | { | |
17975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17976 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
17977 | wxPyEndAllowThreads(__tstate); | |
17978 | if (PyErr_Occurred()) SWIG_fail; | |
17979 | } | |
17980 | { | |
17981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17982 | } | |
17983 | return resultobj; | |
17984 | fail: | |
17985 | return NULL; | |
17986 | } | |
17987 | ||
17988 | ||
17989 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17990 | PyObject *resultobj = 0; | |
17991 | wxDC *arg1 = (wxDC *) 0 ; | |
17992 | wxPoint *arg2 = 0 ; | |
17993 | wxColour *arg3 = 0 ; | |
17994 | int arg4 = (int) wxFLOOD_SURFACE ; | |
17995 | bool result; | |
17996 | void *argp1 = 0 ; | |
17997 | int res1 = 0 ; | |
17998 | wxPoint temp2 ; | |
17999 | wxColour temp3 ; | |
18000 | int val4 ; | |
18001 | int ecode4 = 0 ; | |
18002 | PyObject * obj0 = 0 ; | |
18003 | PyObject * obj1 = 0 ; | |
18004 | PyObject * obj2 = 0 ; | |
18005 | PyObject * obj3 = 0 ; | |
18006 | char * kwnames[] = { | |
18007 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
18008 | }; | |
18009 | ||
18010 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18011 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18012 | if (!SWIG_IsOK(res1)) { | |
18013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18014 | } | |
18015 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18016 | { | |
18017 | arg2 = &temp2; | |
18018 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18019 | } | |
18020 | { | |
18021 | arg3 = &temp3; | |
18022 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18023 | } | |
18024 | if (obj3) { | |
18025 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18026 | if (!SWIG_IsOK(ecode4)) { | |
18027 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
18028 | } | |
18029 | arg4 = static_cast< int >(val4); | |
18030 | } | |
18031 | { | |
18032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18033 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
18034 | wxPyEndAllowThreads(__tstate); | |
18035 | if (PyErr_Occurred()) SWIG_fail; | |
18036 | } | |
18037 | { | |
18038 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18039 | } | |
18040 | return resultobj; | |
18041 | fail: | |
18042 | return NULL; | |
18043 | } | |
18044 | ||
18045 | ||
18046 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18047 | PyObject *resultobj = 0; | |
18048 | wxDC *arg1 = (wxDC *) 0 ; | |
18049 | wxRect *arg2 = 0 ; | |
18050 | wxColour *arg3 = 0 ; | |
18051 | wxColour *arg4 = 0 ; | |
18052 | wxPoint *arg5 = 0 ; | |
18053 | void *argp1 = 0 ; | |
18054 | int res1 = 0 ; | |
18055 | wxRect temp2 ; | |
18056 | wxColour temp3 ; | |
18057 | wxColour temp4 ; | |
18058 | wxPoint temp5 ; | |
18059 | PyObject * obj0 = 0 ; | |
18060 | PyObject * obj1 = 0 ; | |
18061 | PyObject * obj2 = 0 ; | |
18062 | PyObject * obj3 = 0 ; | |
18063 | PyObject * obj4 = 0 ; | |
18064 | char * kwnames[] = { | |
18065 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
18066 | }; | |
18067 | ||
18068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18070 | if (!SWIG_IsOK(res1)) { | |
18071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18072 | } | |
18073 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18074 | { | |
18075 | arg2 = &temp2; | |
18076 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18077 | } | |
18078 | { | |
18079 | arg3 = &temp3; | |
18080 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18081 | } | |
18082 | { | |
18083 | arg4 = &temp4; | |
18084 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18085 | } | |
18086 | { | |
18087 | arg5 = &temp5; | |
18088 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
18089 | } | |
18090 | { | |
18091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18092 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
18093 | wxPyEndAllowThreads(__tstate); | |
18094 | if (PyErr_Occurred()) SWIG_fail; | |
18095 | } | |
18096 | resultobj = SWIG_Py_Void(); | |
18097 | return resultobj; | |
18098 | fail: | |
18099 | return NULL; | |
18100 | } | |
18101 | ||
18102 | ||
18103 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18104 | PyObject *resultobj = 0; | |
18105 | wxDC *arg1 = (wxDC *) 0 ; | |
18106 | wxRect *arg2 = 0 ; | |
18107 | wxColour *arg3 = 0 ; | |
18108 | wxColour *arg4 = 0 ; | |
18109 | wxDirection arg5 = (wxDirection) wxEAST ; | |
18110 | void *argp1 = 0 ; | |
18111 | int res1 = 0 ; | |
18112 | wxRect temp2 ; | |
18113 | wxColour temp3 ; | |
18114 | wxColour temp4 ; | |
18115 | int val5 ; | |
18116 | int ecode5 = 0 ; | |
18117 | PyObject * obj0 = 0 ; | |
18118 | PyObject * obj1 = 0 ; | |
18119 | PyObject * obj2 = 0 ; | |
18120 | PyObject * obj3 = 0 ; | |
18121 | PyObject * obj4 = 0 ; | |
18122 | char * kwnames[] = { | |
18123 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
18124 | }; | |
18125 | ||
18126 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18127 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18128 | if (!SWIG_IsOK(res1)) { | |
18129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18130 | } | |
18131 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18132 | { | |
18133 | arg2 = &temp2; | |
18134 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18135 | } | |
18136 | { | |
18137 | arg3 = &temp3; | |
18138 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18139 | } | |
18140 | { | |
18141 | arg4 = &temp4; | |
18142 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18143 | } | |
18144 | if (obj4) { | |
18145 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18146 | if (!SWIG_IsOK(ecode5)) { | |
18147 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
18148 | } | |
18149 | arg5 = static_cast< wxDirection >(val5); | |
18150 | } | |
18151 | { | |
18152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18153 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
18154 | wxPyEndAllowThreads(__tstate); | |
18155 | if (PyErr_Occurred()) SWIG_fail; | |
18156 | } | |
18157 | resultobj = SWIG_Py_Void(); | |
18158 | return resultobj; | |
18159 | fail: | |
18160 | return NULL; | |
18161 | } | |
18162 | ||
18163 | ||
18164 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18165 | PyObject *resultobj = 0; | |
18166 | wxDC *arg1 = (wxDC *) 0 ; | |
18167 | int arg2 ; | |
18168 | int arg3 ; | |
18169 | wxColour result; | |
18170 | void *argp1 = 0 ; | |
18171 | int res1 = 0 ; | |
18172 | int val2 ; | |
18173 | int ecode2 = 0 ; | |
18174 | int val3 ; | |
18175 | int ecode3 = 0 ; | |
18176 | PyObject * obj0 = 0 ; | |
18177 | PyObject * obj1 = 0 ; | |
18178 | PyObject * obj2 = 0 ; | |
18179 | char * kwnames[] = { | |
18180 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18181 | }; | |
18182 | ||
18183 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18184 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18185 | if (!SWIG_IsOK(res1)) { | |
18186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18187 | } | |
18188 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18189 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18190 | if (!SWIG_IsOK(ecode2)) { | |
18191 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
18192 | } | |
18193 | arg2 = static_cast< int >(val2); | |
18194 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18195 | if (!SWIG_IsOK(ecode3)) { | |
18196 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
18197 | } | |
18198 | arg3 = static_cast< int >(val3); | |
18199 | { | |
18200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18201 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
18202 | wxPyEndAllowThreads(__tstate); | |
18203 | if (PyErr_Occurred()) SWIG_fail; | |
18204 | } | |
18205 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18206 | return resultobj; | |
18207 | fail: | |
18208 | return NULL; | |
18209 | } | |
18210 | ||
18211 | ||
18212 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18213 | PyObject *resultobj = 0; | |
18214 | wxDC *arg1 = (wxDC *) 0 ; | |
18215 | wxPoint *arg2 = 0 ; | |
18216 | wxColour result; | |
18217 | void *argp1 = 0 ; | |
18218 | int res1 = 0 ; | |
18219 | wxPoint temp2 ; | |
18220 | PyObject * obj0 = 0 ; | |
18221 | PyObject * obj1 = 0 ; | |
18222 | char * kwnames[] = { | |
18223 | (char *) "self",(char *) "pt", NULL | |
18224 | }; | |
18225 | ||
18226 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18227 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18228 | if (!SWIG_IsOK(res1)) { | |
18229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18230 | } | |
18231 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18232 | { | |
18233 | arg2 = &temp2; | |
18234 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18235 | } | |
18236 | { | |
18237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18238 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
18239 | wxPyEndAllowThreads(__tstate); | |
18240 | if (PyErr_Occurred()) SWIG_fail; | |
18241 | } | |
18242 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18243 | return resultobj; | |
18244 | fail: | |
18245 | return NULL; | |
18246 | } | |
18247 | ||
18248 | ||
18249 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18250 | PyObject *resultobj = 0; | |
18251 | wxDC *arg1 = (wxDC *) 0 ; | |
18252 | int arg2 ; | |
18253 | int arg3 ; | |
18254 | int arg4 ; | |
18255 | int arg5 ; | |
18256 | void *argp1 = 0 ; | |
18257 | int res1 = 0 ; | |
18258 | int val2 ; | |
18259 | int ecode2 = 0 ; | |
18260 | int val3 ; | |
18261 | int ecode3 = 0 ; | |
18262 | int val4 ; | |
18263 | int ecode4 = 0 ; | |
18264 | int val5 ; | |
18265 | int ecode5 = 0 ; | |
18266 | PyObject * obj0 = 0 ; | |
18267 | PyObject * obj1 = 0 ; | |
18268 | PyObject * obj2 = 0 ; | |
18269 | PyObject * obj3 = 0 ; | |
18270 | PyObject * obj4 = 0 ; | |
18271 | char * kwnames[] = { | |
18272 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
18273 | }; | |
18274 | ||
18275 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18276 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18277 | if (!SWIG_IsOK(res1)) { | |
18278 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18279 | } | |
18280 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18281 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18282 | if (!SWIG_IsOK(ecode2)) { | |
18283 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
18284 | } | |
18285 | arg2 = static_cast< int >(val2); | |
18286 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18287 | if (!SWIG_IsOK(ecode3)) { | |
18288 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
18289 | } | |
18290 | arg3 = static_cast< int >(val3); | |
18291 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18292 | if (!SWIG_IsOK(ecode4)) { | |
18293 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
18294 | } | |
18295 | arg4 = static_cast< int >(val4); | |
18296 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18297 | if (!SWIG_IsOK(ecode5)) { | |
18298 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
18299 | } | |
18300 | arg5 = static_cast< int >(val5); | |
18301 | { | |
18302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18303 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
18304 | wxPyEndAllowThreads(__tstate); | |
18305 | if (PyErr_Occurred()) SWIG_fail; | |
18306 | } | |
18307 | resultobj = SWIG_Py_Void(); | |
18308 | return resultobj; | |
18309 | fail: | |
18310 | return NULL; | |
18311 | } | |
18312 | ||
18313 | ||
18314 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18315 | PyObject *resultobj = 0; | |
18316 | wxDC *arg1 = (wxDC *) 0 ; | |
18317 | wxPoint *arg2 = 0 ; | |
18318 | wxPoint *arg3 = 0 ; | |
18319 | void *argp1 = 0 ; | |
18320 | int res1 = 0 ; | |
18321 | wxPoint temp2 ; | |
18322 | wxPoint temp3 ; | |
18323 | PyObject * obj0 = 0 ; | |
18324 | PyObject * obj1 = 0 ; | |
18325 | PyObject * obj2 = 0 ; | |
18326 | char * kwnames[] = { | |
18327 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
18328 | }; | |
18329 | ||
18330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18332 | if (!SWIG_IsOK(res1)) { | |
18333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18334 | } | |
18335 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18336 | { | |
18337 | arg2 = &temp2; | |
18338 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18339 | } | |
18340 | { | |
18341 | arg3 = &temp3; | |
18342 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18343 | } | |
18344 | { | |
18345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18346 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
18347 | wxPyEndAllowThreads(__tstate); | |
18348 | if (PyErr_Occurred()) SWIG_fail; | |
18349 | } | |
18350 | resultobj = SWIG_Py_Void(); | |
18351 | return resultobj; | |
18352 | fail: | |
18353 | return NULL; | |
18354 | } | |
18355 | ||
18356 | ||
18357 | SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18358 | PyObject *resultobj = 0; | |
18359 | wxDC *arg1 = (wxDC *) 0 ; | |
18360 | int arg2 ; | |
18361 | int arg3 ; | |
18362 | void *argp1 = 0 ; | |
18363 | int res1 = 0 ; | |
18364 | int val2 ; | |
18365 | int ecode2 = 0 ; | |
18366 | int val3 ; | |
18367 | int ecode3 = 0 ; | |
18368 | PyObject * obj0 = 0 ; | |
18369 | PyObject * obj1 = 0 ; | |
18370 | PyObject * obj2 = 0 ; | |
18371 | char * kwnames[] = { | |
18372 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18373 | }; | |
18374 | ||
18375 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18376 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18377 | if (!SWIG_IsOK(res1)) { | |
18378 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18379 | } | |
18380 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18381 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18382 | if (!SWIG_IsOK(ecode2)) { | |
18383 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
18384 | } | |
18385 | arg2 = static_cast< int >(val2); | |
18386 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18387 | if (!SWIG_IsOK(ecode3)) { | |
18388 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
18389 | } | |
18390 | arg3 = static_cast< int >(val3); | |
18391 | { | |
18392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18393 | (arg1)->CrossHair(arg2,arg3); | |
18394 | wxPyEndAllowThreads(__tstate); | |
18395 | if (PyErr_Occurred()) SWIG_fail; | |
18396 | } | |
18397 | resultobj = SWIG_Py_Void(); | |
18398 | return resultobj; | |
18399 | fail: | |
18400 | return NULL; | |
18401 | } | |
18402 | ||
18403 | ||
18404 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18405 | PyObject *resultobj = 0; | |
18406 | wxDC *arg1 = (wxDC *) 0 ; | |
18407 | wxPoint *arg2 = 0 ; | |
18408 | void *argp1 = 0 ; | |
18409 | int res1 = 0 ; | |
18410 | wxPoint temp2 ; | |
18411 | PyObject * obj0 = 0 ; | |
18412 | PyObject * obj1 = 0 ; | |
18413 | char * kwnames[] = { | |
18414 | (char *) "self",(char *) "pt", NULL | |
18415 | }; | |
18416 | ||
18417 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18418 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18419 | if (!SWIG_IsOK(res1)) { | |
18420 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18421 | } | |
18422 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18423 | { | |
18424 | arg2 = &temp2; | |
18425 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18426 | } | |
18427 | { | |
18428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18429 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
18430 | wxPyEndAllowThreads(__tstate); | |
18431 | if (PyErr_Occurred()) SWIG_fail; | |
18432 | } | |
18433 | resultobj = SWIG_Py_Void(); | |
18434 | return resultobj; | |
18435 | fail: | |
18436 | return NULL; | |
18437 | } | |
18438 | ||
18439 | ||
18440 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18441 | PyObject *resultobj = 0; | |
18442 | wxDC *arg1 = (wxDC *) 0 ; | |
18443 | int arg2 ; | |
18444 | int arg3 ; | |
18445 | int arg4 ; | |
18446 | int arg5 ; | |
18447 | int arg6 ; | |
18448 | int arg7 ; | |
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 | int val6 ; | |
18460 | int ecode6 = 0 ; | |
18461 | int val7 ; | |
18462 | int ecode7 = 0 ; | |
18463 | PyObject * obj0 = 0 ; | |
18464 | PyObject * obj1 = 0 ; | |
18465 | PyObject * obj2 = 0 ; | |
18466 | PyObject * obj3 = 0 ; | |
18467 | PyObject * obj4 = 0 ; | |
18468 | PyObject * obj5 = 0 ; | |
18469 | PyObject * obj6 = 0 ; | |
18470 | char * kwnames[] = { | |
18471 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
18472 | }; | |
18473 | ||
18474 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18475 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18476 | if (!SWIG_IsOK(res1)) { | |
18477 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18478 | } | |
18479 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18480 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18481 | if (!SWIG_IsOK(ecode2)) { | |
18482 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
18483 | } | |
18484 | arg2 = static_cast< int >(val2); | |
18485 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18486 | if (!SWIG_IsOK(ecode3)) { | |
18487 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
18488 | } | |
18489 | arg3 = static_cast< int >(val3); | |
18490 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18491 | if (!SWIG_IsOK(ecode4)) { | |
18492 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
18493 | } | |
18494 | arg4 = static_cast< int >(val4); | |
18495 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18496 | if (!SWIG_IsOK(ecode5)) { | |
18497 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
18498 | } | |
18499 | arg5 = static_cast< int >(val5); | |
18500 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
18501 | if (!SWIG_IsOK(ecode6)) { | |
18502 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
18503 | } | |
18504 | arg6 = static_cast< int >(val6); | |
18505 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
18506 | if (!SWIG_IsOK(ecode7)) { | |
18507 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
18508 | } | |
18509 | arg7 = static_cast< int >(val7); | |
18510 | { | |
18511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18512 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18513 | wxPyEndAllowThreads(__tstate); | |
18514 | if (PyErr_Occurred()) SWIG_fail; | |
18515 | } | |
18516 | resultobj = SWIG_Py_Void(); | |
18517 | return resultobj; | |
18518 | fail: | |
18519 | return NULL; | |
18520 | } | |
18521 | ||
18522 | ||
18523 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18524 | PyObject *resultobj = 0; | |
18525 | wxDC *arg1 = (wxDC *) 0 ; | |
18526 | wxPoint *arg2 = 0 ; | |
18527 | wxPoint *arg3 = 0 ; | |
18528 | wxPoint *arg4 = 0 ; | |
18529 | void *argp1 = 0 ; | |
18530 | int res1 = 0 ; | |
18531 | wxPoint temp2 ; | |
18532 | wxPoint temp3 ; | |
18533 | wxPoint temp4 ; | |
18534 | PyObject * obj0 = 0 ; | |
18535 | PyObject * obj1 = 0 ; | |
18536 | PyObject * obj2 = 0 ; | |
18537 | PyObject * obj3 = 0 ; | |
18538 | char * kwnames[] = { | |
18539 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
18540 | }; | |
18541 | ||
18542 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18543 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18544 | if (!SWIG_IsOK(res1)) { | |
18545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18546 | } | |
18547 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18548 | { | |
18549 | arg2 = &temp2; | |
18550 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18551 | } | |
18552 | { | |
18553 | arg3 = &temp3; | |
18554 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18555 | } | |
18556 | { | |
18557 | arg4 = &temp4; | |
18558 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18559 | } | |
18560 | { | |
18561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18562 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
18563 | wxPyEndAllowThreads(__tstate); | |
18564 | if (PyErr_Occurred()) SWIG_fail; | |
18565 | } | |
18566 | resultobj = SWIG_Py_Void(); | |
18567 | return resultobj; | |
18568 | fail: | |
18569 | return NULL; | |
18570 | } | |
18571 | ||
18572 | ||
18573 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18574 | PyObject *resultobj = 0; | |
18575 | wxDC *arg1 = (wxDC *) 0 ; | |
18576 | int arg2 ; | |
18577 | int arg3 ; | |
18578 | int arg4 ; | |
18579 | int arg5 ; | |
18580 | void *argp1 = 0 ; | |
18581 | int res1 = 0 ; | |
18582 | int val2 ; | |
18583 | int ecode2 = 0 ; | |
18584 | int val3 ; | |
18585 | int ecode3 = 0 ; | |
18586 | int val4 ; | |
18587 | int ecode4 = 0 ; | |
18588 | int val5 ; | |
18589 | int ecode5 = 0 ; | |
18590 | PyObject * obj0 = 0 ; | |
18591 | PyObject * obj1 = 0 ; | |
18592 | PyObject * obj2 = 0 ; | |
18593 | PyObject * obj3 = 0 ; | |
18594 | PyObject * obj4 = 0 ; | |
18595 | char * kwnames[] = { | |
18596 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18597 | }; | |
18598 | ||
18599 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18600 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18601 | if (!SWIG_IsOK(res1)) { | |
18602 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18603 | } | |
18604 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18605 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18606 | if (!SWIG_IsOK(ecode2)) { | |
18607 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
18608 | } | |
18609 | arg2 = static_cast< int >(val2); | |
18610 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18611 | if (!SWIG_IsOK(ecode3)) { | |
18612 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
18613 | } | |
18614 | arg3 = static_cast< int >(val3); | |
18615 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18616 | if (!SWIG_IsOK(ecode4)) { | |
18617 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
18618 | } | |
18619 | arg4 = static_cast< int >(val4); | |
18620 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18621 | if (!SWIG_IsOK(ecode5)) { | |
18622 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
18623 | } | |
18624 | arg5 = static_cast< int >(val5); | |
18625 | { | |
18626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18627 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
18628 | wxPyEndAllowThreads(__tstate); | |
18629 | if (PyErr_Occurred()) SWIG_fail; | |
18630 | } | |
18631 | resultobj = SWIG_Py_Void(); | |
18632 | return resultobj; | |
18633 | fail: | |
18634 | return NULL; | |
18635 | } | |
18636 | ||
18637 | ||
18638 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18639 | PyObject *resultobj = 0; | |
18640 | wxDC *arg1 = (wxDC *) 0 ; | |
18641 | wxRect *arg2 = 0 ; | |
18642 | void *argp1 = 0 ; | |
18643 | int res1 = 0 ; | |
18644 | wxRect temp2 ; | |
18645 | PyObject * obj0 = 0 ; | |
18646 | PyObject * obj1 = 0 ; | |
18647 | char * kwnames[] = { | |
18648 | (char *) "self",(char *) "rect", NULL | |
18649 | }; | |
18650 | ||
18651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18652 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18653 | if (!SWIG_IsOK(res1)) { | |
18654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18655 | } | |
18656 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18657 | { | |
18658 | arg2 = &temp2; | |
18659 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18660 | } | |
18661 | { | |
18662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18663 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
18664 | wxPyEndAllowThreads(__tstate); | |
18665 | if (PyErr_Occurred()) SWIG_fail; | |
18666 | } | |
18667 | resultobj = SWIG_Py_Void(); | |
18668 | return resultobj; | |
18669 | fail: | |
18670 | return NULL; | |
18671 | } | |
18672 | ||
18673 | ||
18674 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18675 | PyObject *resultobj = 0; | |
18676 | wxDC *arg1 = (wxDC *) 0 ; | |
18677 | int arg2 ; | |
18678 | int arg3 ; | |
18679 | int arg4 ; | |
18680 | int arg5 ; | |
18681 | double arg6 ; | |
18682 | double arg7 ; | |
18683 | void *argp1 = 0 ; | |
18684 | int res1 = 0 ; | |
18685 | int val2 ; | |
18686 | int ecode2 = 0 ; | |
18687 | int val3 ; | |
18688 | int ecode3 = 0 ; | |
18689 | int val4 ; | |
18690 | int ecode4 = 0 ; | |
18691 | int val5 ; | |
18692 | int ecode5 = 0 ; | |
18693 | double val6 ; | |
18694 | int ecode6 = 0 ; | |
18695 | double val7 ; | |
18696 | int ecode7 = 0 ; | |
18697 | PyObject * obj0 = 0 ; | |
18698 | PyObject * obj1 = 0 ; | |
18699 | PyObject * obj2 = 0 ; | |
18700 | PyObject * obj3 = 0 ; | |
18701 | PyObject * obj4 = 0 ; | |
18702 | PyObject * obj5 = 0 ; | |
18703 | PyObject * obj6 = 0 ; | |
18704 | char * kwnames[] = { | |
18705 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
18706 | }; | |
18707 | ||
18708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18709 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18710 | if (!SWIG_IsOK(res1)) { | |
18711 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18712 | } | |
18713 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18714 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18715 | if (!SWIG_IsOK(ecode2)) { | |
18716 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
18717 | } | |
18718 | arg2 = static_cast< int >(val2); | |
18719 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18720 | if (!SWIG_IsOK(ecode3)) { | |
18721 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
18722 | } | |
18723 | arg3 = static_cast< int >(val3); | |
18724 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18725 | if (!SWIG_IsOK(ecode4)) { | |
18726 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
18727 | } | |
18728 | arg4 = static_cast< int >(val4); | |
18729 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18730 | if (!SWIG_IsOK(ecode5)) { | |
18731 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
18732 | } | |
18733 | arg5 = static_cast< int >(val5); | |
18734 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
18735 | if (!SWIG_IsOK(ecode6)) { | |
18736 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
18737 | } | |
18738 | arg6 = static_cast< double >(val6); | |
18739 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
18740 | if (!SWIG_IsOK(ecode7)) { | |
18741 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
18742 | } | |
18743 | arg7 = static_cast< double >(val7); | |
18744 | { | |
18745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18746 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18747 | wxPyEndAllowThreads(__tstate); | |
18748 | if (PyErr_Occurred()) SWIG_fail; | |
18749 | } | |
18750 | resultobj = SWIG_Py_Void(); | |
18751 | return resultobj; | |
18752 | fail: | |
18753 | return NULL; | |
18754 | } | |
18755 | ||
18756 | ||
18757 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18758 | PyObject *resultobj = 0; | |
18759 | wxDC *arg1 = (wxDC *) 0 ; | |
18760 | wxPoint *arg2 = 0 ; | |
18761 | wxSize *arg3 = 0 ; | |
18762 | double arg4 ; | |
18763 | double arg5 ; | |
18764 | void *argp1 = 0 ; | |
18765 | int res1 = 0 ; | |
18766 | wxPoint temp2 ; | |
18767 | wxSize temp3 ; | |
18768 | double val4 ; | |
18769 | int ecode4 = 0 ; | |
18770 | double val5 ; | |
18771 | int ecode5 = 0 ; | |
18772 | PyObject * obj0 = 0 ; | |
18773 | PyObject * obj1 = 0 ; | |
18774 | PyObject * obj2 = 0 ; | |
18775 | PyObject * obj3 = 0 ; | |
18776 | PyObject * obj4 = 0 ; | |
18777 | char * kwnames[] = { | |
18778 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
18779 | }; | |
18780 | ||
18781 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18782 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18783 | if (!SWIG_IsOK(res1)) { | |
18784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18785 | } | |
18786 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18787 | { | |
18788 | arg2 = &temp2; | |
18789 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18790 | } | |
18791 | { | |
18792 | arg3 = &temp3; | |
18793 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
18794 | } | |
18795 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
18796 | if (!SWIG_IsOK(ecode4)) { | |
18797 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
18798 | } | |
18799 | arg4 = static_cast< double >(val4); | |
18800 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
18801 | if (!SWIG_IsOK(ecode5)) { | |
18802 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
18803 | } | |
18804 | arg5 = static_cast< double >(val5); | |
18805 | { | |
18806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18807 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
18808 | wxPyEndAllowThreads(__tstate); | |
18809 | if (PyErr_Occurred()) SWIG_fail; | |
18810 | } | |
18811 | resultobj = SWIG_Py_Void(); | |
18812 | return resultobj; | |
18813 | fail: | |
18814 | return NULL; | |
18815 | } | |
18816 | ||
18817 | ||
18818 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18819 | PyObject *resultobj = 0; | |
18820 | wxDC *arg1 = (wxDC *) 0 ; | |
18821 | int arg2 ; | |
18822 | int arg3 ; | |
18823 | void *argp1 = 0 ; | |
18824 | int res1 = 0 ; | |
18825 | int val2 ; | |
18826 | int ecode2 = 0 ; | |
18827 | int val3 ; | |
18828 | int ecode3 = 0 ; | |
18829 | PyObject * obj0 = 0 ; | |
18830 | PyObject * obj1 = 0 ; | |
18831 | PyObject * obj2 = 0 ; | |
18832 | char * kwnames[] = { | |
18833 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18834 | }; | |
18835 | ||
18836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18837 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18838 | if (!SWIG_IsOK(res1)) { | |
18839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18840 | } | |
18841 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18842 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18843 | if (!SWIG_IsOK(ecode2)) { | |
18844 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
18845 | } | |
18846 | arg2 = static_cast< int >(val2); | |
18847 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18848 | if (!SWIG_IsOK(ecode3)) { | |
18849 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
18850 | } | |
18851 | arg3 = static_cast< int >(val3); | |
18852 | { | |
18853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18854 | (arg1)->DrawPoint(arg2,arg3); | |
18855 | wxPyEndAllowThreads(__tstate); | |
18856 | if (PyErr_Occurred()) SWIG_fail; | |
18857 | } | |
18858 | resultobj = SWIG_Py_Void(); | |
18859 | return resultobj; | |
18860 | fail: | |
18861 | return NULL; | |
18862 | } | |
18863 | ||
18864 | ||
18865 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18866 | PyObject *resultobj = 0; | |
18867 | wxDC *arg1 = (wxDC *) 0 ; | |
18868 | wxPoint *arg2 = 0 ; | |
18869 | void *argp1 = 0 ; | |
18870 | int res1 = 0 ; | |
18871 | wxPoint temp2 ; | |
18872 | PyObject * obj0 = 0 ; | |
18873 | PyObject * obj1 = 0 ; | |
18874 | char * kwnames[] = { | |
18875 | (char *) "self",(char *) "pt", NULL | |
18876 | }; | |
18877 | ||
18878 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18879 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18880 | if (!SWIG_IsOK(res1)) { | |
18881 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18882 | } | |
18883 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18884 | { | |
18885 | arg2 = &temp2; | |
18886 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18887 | } | |
18888 | { | |
18889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18890 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
18891 | wxPyEndAllowThreads(__tstate); | |
18892 | if (PyErr_Occurred()) SWIG_fail; | |
18893 | } | |
18894 | resultobj = SWIG_Py_Void(); | |
18895 | return resultobj; | |
18896 | fail: | |
18897 | return NULL; | |
18898 | } | |
18899 | ||
18900 | ||
18901 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18902 | PyObject *resultobj = 0; | |
18903 | wxDC *arg1 = (wxDC *) 0 ; | |
18904 | int arg2 ; | |
18905 | int arg3 ; | |
18906 | int arg4 ; | |
18907 | int arg5 ; | |
18908 | void *argp1 = 0 ; | |
18909 | int res1 = 0 ; | |
18910 | int val2 ; | |
18911 | int ecode2 = 0 ; | |
18912 | int val3 ; | |
18913 | int ecode3 = 0 ; | |
18914 | int val4 ; | |
18915 | int ecode4 = 0 ; | |
18916 | int val5 ; | |
18917 | int ecode5 = 0 ; | |
18918 | PyObject * obj0 = 0 ; | |
18919 | PyObject * obj1 = 0 ; | |
18920 | PyObject * obj2 = 0 ; | |
18921 | PyObject * obj3 = 0 ; | |
18922 | PyObject * obj4 = 0 ; | |
18923 | char * kwnames[] = { | |
18924 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18925 | }; | |
18926 | ||
18927 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18928 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18929 | if (!SWIG_IsOK(res1)) { | |
18930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18931 | } | |
18932 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18933 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18934 | if (!SWIG_IsOK(ecode2)) { | |
18935 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
18936 | } | |
18937 | arg2 = static_cast< int >(val2); | |
18938 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18939 | if (!SWIG_IsOK(ecode3)) { | |
18940 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
18941 | } | |
18942 | arg3 = static_cast< int >(val3); | |
18943 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18944 | if (!SWIG_IsOK(ecode4)) { | |
18945 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
18946 | } | |
18947 | arg4 = static_cast< int >(val4); | |
18948 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18949 | if (!SWIG_IsOK(ecode5)) { | |
18950 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
18951 | } | |
18952 | arg5 = static_cast< int >(val5); | |
18953 | { | |
18954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18955 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
18956 | wxPyEndAllowThreads(__tstate); | |
18957 | if (PyErr_Occurred()) SWIG_fail; | |
18958 | } | |
18959 | resultobj = SWIG_Py_Void(); | |
18960 | return resultobj; | |
18961 | fail: | |
18962 | return NULL; | |
18963 | } | |
18964 | ||
18965 | ||
18966 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18967 | PyObject *resultobj = 0; | |
18968 | wxDC *arg1 = (wxDC *) 0 ; | |
18969 | wxRect *arg2 = 0 ; | |
18970 | void *argp1 = 0 ; | |
18971 | int res1 = 0 ; | |
18972 | wxRect temp2 ; | |
18973 | PyObject * obj0 = 0 ; | |
18974 | PyObject * obj1 = 0 ; | |
18975 | char * kwnames[] = { | |
18976 | (char *) "self",(char *) "rect", NULL | |
18977 | }; | |
18978 | ||
18979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18980 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18981 | if (!SWIG_IsOK(res1)) { | |
18982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18983 | } | |
18984 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18985 | { | |
18986 | arg2 = &temp2; | |
18987 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18988 | } | |
18989 | { | |
18990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18991 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
18992 | wxPyEndAllowThreads(__tstate); | |
18993 | if (PyErr_Occurred()) SWIG_fail; | |
18994 | } | |
18995 | resultobj = SWIG_Py_Void(); | |
18996 | return resultobj; | |
18997 | fail: | |
18998 | return NULL; | |
18999 | } | |
19000 | ||
19001 | ||
19002 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19003 | PyObject *resultobj = 0; | |
19004 | wxDC *arg1 = (wxDC *) 0 ; | |
19005 | wxPoint *arg2 = 0 ; | |
19006 | wxSize *arg3 = 0 ; | |
19007 | void *argp1 = 0 ; | |
19008 | int res1 = 0 ; | |
19009 | wxPoint temp2 ; | |
19010 | wxSize temp3 ; | |
19011 | PyObject * obj0 = 0 ; | |
19012 | PyObject * obj1 = 0 ; | |
19013 | PyObject * obj2 = 0 ; | |
19014 | char * kwnames[] = { | |
19015 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19016 | }; | |
19017 | ||
19018 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19019 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19020 | if (!SWIG_IsOK(res1)) { | |
19021 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19022 | } | |
19023 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19024 | { | |
19025 | arg2 = &temp2; | |
19026 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19027 | } | |
19028 | { | |
19029 | arg3 = &temp3; | |
19030 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19031 | } | |
19032 | { | |
19033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19034 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19035 | wxPyEndAllowThreads(__tstate); | |
19036 | if (PyErr_Occurred()) SWIG_fail; | |
19037 | } | |
19038 | resultobj = SWIG_Py_Void(); | |
19039 | return resultobj; | |
19040 | fail: | |
19041 | return NULL; | |
19042 | } | |
19043 | ||
19044 | ||
19045 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19046 | PyObject *resultobj = 0; | |
19047 | wxDC *arg1 = (wxDC *) 0 ; | |
19048 | int arg2 ; | |
19049 | int arg3 ; | |
19050 | int arg4 ; | |
19051 | int arg5 ; | |
19052 | double arg6 ; | |
19053 | void *argp1 = 0 ; | |
19054 | int res1 = 0 ; | |
19055 | int val2 ; | |
19056 | int ecode2 = 0 ; | |
19057 | int val3 ; | |
19058 | int ecode3 = 0 ; | |
19059 | int val4 ; | |
19060 | int ecode4 = 0 ; | |
19061 | int val5 ; | |
19062 | int ecode5 = 0 ; | |
19063 | double val6 ; | |
19064 | int ecode6 = 0 ; | |
19065 | PyObject * obj0 = 0 ; | |
19066 | PyObject * obj1 = 0 ; | |
19067 | PyObject * obj2 = 0 ; | |
19068 | PyObject * obj3 = 0 ; | |
19069 | PyObject * obj4 = 0 ; | |
19070 | PyObject * obj5 = 0 ; | |
19071 | char * kwnames[] = { | |
19072 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
19073 | }; | |
19074 | ||
19075 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
19076 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19077 | if (!SWIG_IsOK(res1)) { | |
19078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19079 | } | |
19080 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19081 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19082 | if (!SWIG_IsOK(ecode2)) { | |
19083 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
19084 | } | |
19085 | arg2 = static_cast< int >(val2); | |
19086 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19087 | if (!SWIG_IsOK(ecode3)) { | |
19088 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
19089 | } | |
19090 | arg3 = static_cast< int >(val3); | |
19091 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19092 | if (!SWIG_IsOK(ecode4)) { | |
19093 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
19094 | } | |
19095 | arg4 = static_cast< int >(val4); | |
19096 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19097 | if (!SWIG_IsOK(ecode5)) { | |
19098 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
19099 | } | |
19100 | arg5 = static_cast< int >(val5); | |
19101 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
19102 | if (!SWIG_IsOK(ecode6)) { | |
19103 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
19104 | } | |
19105 | arg6 = static_cast< double >(val6); | |
19106 | { | |
19107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19108 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
19109 | wxPyEndAllowThreads(__tstate); | |
19110 | if (PyErr_Occurred()) SWIG_fail; | |
19111 | } | |
19112 | resultobj = SWIG_Py_Void(); | |
19113 | return resultobj; | |
19114 | fail: | |
19115 | return NULL; | |
19116 | } | |
19117 | ||
19118 | ||
19119 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19120 | PyObject *resultobj = 0; | |
19121 | wxDC *arg1 = (wxDC *) 0 ; | |
19122 | wxRect *arg2 = 0 ; | |
19123 | double arg3 ; | |
19124 | void *argp1 = 0 ; | |
19125 | int res1 = 0 ; | |
19126 | wxRect temp2 ; | |
19127 | double val3 ; | |
19128 | int ecode3 = 0 ; | |
19129 | PyObject * obj0 = 0 ; | |
19130 | PyObject * obj1 = 0 ; | |
19131 | PyObject * obj2 = 0 ; | |
19132 | char * kwnames[] = { | |
19133 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
19134 | }; | |
19135 | ||
19136 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19137 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19138 | if (!SWIG_IsOK(res1)) { | |
19139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19140 | } | |
19141 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19142 | { | |
19143 | arg2 = &temp2; | |
19144 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19145 | } | |
19146 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
19147 | if (!SWIG_IsOK(ecode3)) { | |
19148 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
19149 | } | |
19150 | arg3 = static_cast< double >(val3); | |
19151 | { | |
19152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19153 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
19154 | wxPyEndAllowThreads(__tstate); | |
19155 | if (PyErr_Occurred()) SWIG_fail; | |
19156 | } | |
19157 | resultobj = SWIG_Py_Void(); | |
19158 | return resultobj; | |
19159 | fail: | |
19160 | return NULL; | |
19161 | } | |
19162 | ||
19163 | ||
19164 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19165 | PyObject *resultobj = 0; | |
19166 | wxDC *arg1 = (wxDC *) 0 ; | |
19167 | wxPoint *arg2 = 0 ; | |
19168 | wxSize *arg3 = 0 ; | |
19169 | double arg4 ; | |
19170 | void *argp1 = 0 ; | |
19171 | int res1 = 0 ; | |
19172 | wxPoint temp2 ; | |
19173 | wxSize temp3 ; | |
19174 | double val4 ; | |
19175 | int ecode4 = 0 ; | |
19176 | PyObject * obj0 = 0 ; | |
19177 | PyObject * obj1 = 0 ; | |
19178 | PyObject * obj2 = 0 ; | |
19179 | PyObject * obj3 = 0 ; | |
19180 | char * kwnames[] = { | |
19181 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
19182 | }; | |
19183 | ||
19184 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19185 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19186 | if (!SWIG_IsOK(res1)) { | |
19187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19188 | } | |
19189 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19190 | { | |
19191 | arg2 = &temp2; | |
19192 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19193 | } | |
19194 | { | |
19195 | arg3 = &temp3; | |
19196 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19197 | } | |
19198 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19199 | if (!SWIG_IsOK(ecode4)) { | |
19200 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
19201 | } | |
19202 | arg4 = static_cast< double >(val4); | |
19203 | { | |
19204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19205 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
19206 | wxPyEndAllowThreads(__tstate); | |
19207 | if (PyErr_Occurred()) SWIG_fail; | |
19208 | } | |
19209 | resultobj = SWIG_Py_Void(); | |
19210 | return resultobj; | |
19211 | fail: | |
19212 | return NULL; | |
19213 | } | |
19214 | ||
19215 | ||
19216 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19217 | PyObject *resultobj = 0; | |
19218 | wxDC *arg1 = (wxDC *) 0 ; | |
19219 | int arg2 ; | |
19220 | int arg3 ; | |
19221 | int arg4 ; | |
19222 | void *argp1 = 0 ; | |
19223 | int res1 = 0 ; | |
19224 | int val2 ; | |
19225 | int ecode2 = 0 ; | |
19226 | int val3 ; | |
19227 | int ecode3 = 0 ; | |
19228 | int val4 ; | |
19229 | int ecode4 = 0 ; | |
19230 | PyObject * obj0 = 0 ; | |
19231 | PyObject * obj1 = 0 ; | |
19232 | PyObject * obj2 = 0 ; | |
19233 | PyObject * obj3 = 0 ; | |
19234 | char * kwnames[] = { | |
19235 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
19236 | }; | |
19237 | ||
19238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19240 | if (!SWIG_IsOK(res1)) { | |
19241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19242 | } | |
19243 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19244 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19245 | if (!SWIG_IsOK(ecode2)) { | |
19246 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
19247 | } | |
19248 | arg2 = static_cast< int >(val2); | |
19249 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19250 | if (!SWIG_IsOK(ecode3)) { | |
19251 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
19252 | } | |
19253 | arg3 = static_cast< int >(val3); | |
19254 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19255 | if (!SWIG_IsOK(ecode4)) { | |
19256 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
19257 | } | |
19258 | arg4 = static_cast< int >(val4); | |
19259 | { | |
19260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19261 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
19262 | wxPyEndAllowThreads(__tstate); | |
19263 | if (PyErr_Occurred()) SWIG_fail; | |
19264 | } | |
19265 | resultobj = SWIG_Py_Void(); | |
19266 | return resultobj; | |
19267 | fail: | |
19268 | return NULL; | |
19269 | } | |
19270 | ||
19271 | ||
19272 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19273 | PyObject *resultobj = 0; | |
19274 | wxDC *arg1 = (wxDC *) 0 ; | |
19275 | wxPoint *arg2 = 0 ; | |
19276 | int arg3 ; | |
19277 | void *argp1 = 0 ; | |
19278 | int res1 = 0 ; | |
19279 | wxPoint temp2 ; | |
19280 | int val3 ; | |
19281 | int ecode3 = 0 ; | |
19282 | PyObject * obj0 = 0 ; | |
19283 | PyObject * obj1 = 0 ; | |
19284 | PyObject * obj2 = 0 ; | |
19285 | char * kwnames[] = { | |
19286 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
19287 | }; | |
19288 | ||
19289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19290 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19291 | if (!SWIG_IsOK(res1)) { | |
19292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19293 | } | |
19294 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19295 | { | |
19296 | arg2 = &temp2; | |
19297 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19298 | } | |
19299 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19300 | if (!SWIG_IsOK(ecode3)) { | |
19301 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
19302 | } | |
19303 | arg3 = static_cast< int >(val3); | |
19304 | { | |
19305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19306 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
19307 | wxPyEndAllowThreads(__tstate); | |
19308 | if (PyErr_Occurred()) SWIG_fail; | |
19309 | } | |
19310 | resultobj = SWIG_Py_Void(); | |
19311 | return resultobj; | |
19312 | fail: | |
19313 | return NULL; | |
19314 | } | |
19315 | ||
19316 | ||
19317 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19318 | PyObject *resultobj = 0; | |
19319 | wxDC *arg1 = (wxDC *) 0 ; | |
19320 | int arg2 ; | |
19321 | int arg3 ; | |
19322 | int arg4 ; | |
19323 | int arg5 ; | |
19324 | void *argp1 = 0 ; | |
19325 | int res1 = 0 ; | |
19326 | int val2 ; | |
19327 | int ecode2 = 0 ; | |
19328 | int val3 ; | |
19329 | int ecode3 = 0 ; | |
19330 | int val4 ; | |
19331 | int ecode4 = 0 ; | |
19332 | int val5 ; | |
19333 | int ecode5 = 0 ; | |
19334 | PyObject * obj0 = 0 ; | |
19335 | PyObject * obj1 = 0 ; | |
19336 | PyObject * obj2 = 0 ; | |
19337 | PyObject * obj3 = 0 ; | |
19338 | PyObject * obj4 = 0 ; | |
19339 | char * kwnames[] = { | |
19340 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19341 | }; | |
19342 | ||
19343 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19344 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19345 | if (!SWIG_IsOK(res1)) { | |
19346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19347 | } | |
19348 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19349 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19350 | if (!SWIG_IsOK(ecode2)) { | |
19351 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
19352 | } | |
19353 | arg2 = static_cast< int >(val2); | |
19354 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19355 | if (!SWIG_IsOK(ecode3)) { | |
19356 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
19357 | } | |
19358 | arg3 = static_cast< int >(val3); | |
19359 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19360 | if (!SWIG_IsOK(ecode4)) { | |
19361 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
19362 | } | |
19363 | arg4 = static_cast< int >(val4); | |
19364 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19365 | if (!SWIG_IsOK(ecode5)) { | |
19366 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
19367 | } | |
19368 | arg5 = static_cast< int >(val5); | |
19369 | { | |
19370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19371 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
19372 | wxPyEndAllowThreads(__tstate); | |
19373 | if (PyErr_Occurred()) SWIG_fail; | |
19374 | } | |
19375 | resultobj = SWIG_Py_Void(); | |
19376 | return resultobj; | |
19377 | fail: | |
19378 | return NULL; | |
19379 | } | |
19380 | ||
19381 | ||
19382 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19383 | PyObject *resultobj = 0; | |
19384 | wxDC *arg1 = (wxDC *) 0 ; | |
19385 | wxRect *arg2 = 0 ; | |
19386 | void *argp1 = 0 ; | |
19387 | int res1 = 0 ; | |
19388 | wxRect temp2 ; | |
19389 | PyObject * obj0 = 0 ; | |
19390 | PyObject * obj1 = 0 ; | |
19391 | char * kwnames[] = { | |
19392 | (char *) "self",(char *) "rect", NULL | |
19393 | }; | |
19394 | ||
19395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19396 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19397 | if (!SWIG_IsOK(res1)) { | |
19398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19399 | } | |
19400 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19401 | { | |
19402 | arg2 = &temp2; | |
19403 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19404 | } | |
19405 | { | |
19406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19407 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
19408 | wxPyEndAllowThreads(__tstate); | |
19409 | if (PyErr_Occurred()) SWIG_fail; | |
19410 | } | |
19411 | resultobj = SWIG_Py_Void(); | |
19412 | return resultobj; | |
19413 | fail: | |
19414 | return NULL; | |
19415 | } | |
19416 | ||
19417 | ||
19418 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19419 | PyObject *resultobj = 0; | |
19420 | wxDC *arg1 = (wxDC *) 0 ; | |
19421 | wxPoint *arg2 = 0 ; | |
19422 | wxSize *arg3 = 0 ; | |
19423 | void *argp1 = 0 ; | |
19424 | int res1 = 0 ; | |
19425 | wxPoint temp2 ; | |
19426 | wxSize temp3 ; | |
19427 | PyObject * obj0 = 0 ; | |
19428 | PyObject * obj1 = 0 ; | |
19429 | PyObject * obj2 = 0 ; | |
19430 | char * kwnames[] = { | |
19431 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19432 | }; | |
19433 | ||
19434 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19435 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19436 | if (!SWIG_IsOK(res1)) { | |
19437 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19438 | } | |
19439 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19440 | { | |
19441 | arg2 = &temp2; | |
19442 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19443 | } | |
19444 | { | |
19445 | arg3 = &temp3; | |
19446 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19447 | } | |
19448 | { | |
19449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19450 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19451 | wxPyEndAllowThreads(__tstate); | |
19452 | if (PyErr_Occurred()) SWIG_fail; | |
19453 | } | |
19454 | resultobj = SWIG_Py_Void(); | |
19455 | return resultobj; | |
19456 | fail: | |
19457 | return NULL; | |
19458 | } | |
19459 | ||
19460 | ||
19461 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19462 | PyObject *resultobj = 0; | |
19463 | wxDC *arg1 = (wxDC *) 0 ; | |
19464 | wxIcon *arg2 = 0 ; | |
19465 | int arg3 ; | |
19466 | int arg4 ; | |
19467 | void *argp1 = 0 ; | |
19468 | int res1 = 0 ; | |
19469 | void *argp2 = 0 ; | |
19470 | int res2 = 0 ; | |
19471 | int val3 ; | |
19472 | int ecode3 = 0 ; | |
19473 | int val4 ; | |
19474 | int ecode4 = 0 ; | |
19475 | PyObject * obj0 = 0 ; | |
19476 | PyObject * obj1 = 0 ; | |
19477 | PyObject * obj2 = 0 ; | |
19478 | PyObject * obj3 = 0 ; | |
19479 | char * kwnames[] = { | |
19480 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
19481 | }; | |
19482 | ||
19483 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19484 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19485 | if (!SWIG_IsOK(res1)) { | |
19486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19487 | } | |
19488 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19489 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19490 | if (!SWIG_IsOK(res2)) { | |
19491 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19492 | } | |
19493 | if (!argp2) { | |
19494 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19495 | } | |
19496 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19497 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19498 | if (!SWIG_IsOK(ecode3)) { | |
19499 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
19500 | } | |
19501 | arg3 = static_cast< int >(val3); | |
19502 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19503 | if (!SWIG_IsOK(ecode4)) { | |
19504 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
19505 | } | |
19506 | arg4 = static_cast< int >(val4); | |
19507 | { | |
19508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19509 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
19510 | wxPyEndAllowThreads(__tstate); | |
19511 | if (PyErr_Occurred()) SWIG_fail; | |
19512 | } | |
19513 | resultobj = SWIG_Py_Void(); | |
19514 | return resultobj; | |
19515 | fail: | |
19516 | return NULL; | |
19517 | } | |
19518 | ||
19519 | ||
19520 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19521 | PyObject *resultobj = 0; | |
19522 | wxDC *arg1 = (wxDC *) 0 ; | |
19523 | wxIcon *arg2 = 0 ; | |
19524 | wxPoint *arg3 = 0 ; | |
19525 | void *argp1 = 0 ; | |
19526 | int res1 = 0 ; | |
19527 | void *argp2 = 0 ; | |
19528 | int res2 = 0 ; | |
19529 | wxPoint temp3 ; | |
19530 | PyObject * obj0 = 0 ; | |
19531 | PyObject * obj1 = 0 ; | |
19532 | PyObject * obj2 = 0 ; | |
19533 | char * kwnames[] = { | |
19534 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
19535 | }; | |
19536 | ||
19537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19539 | if (!SWIG_IsOK(res1)) { | |
19540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19541 | } | |
19542 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19543 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19544 | if (!SWIG_IsOK(res2)) { | |
19545 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19546 | } | |
19547 | if (!argp2) { | |
19548 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19549 | } | |
19550 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19551 | { | |
19552 | arg3 = &temp3; | |
19553 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19554 | } | |
19555 | { | |
19556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19557 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
19558 | wxPyEndAllowThreads(__tstate); | |
19559 | if (PyErr_Occurred()) SWIG_fail; | |
19560 | } | |
19561 | resultobj = SWIG_Py_Void(); | |
19562 | return resultobj; | |
19563 | fail: | |
19564 | return NULL; | |
19565 | } | |
19566 | ||
19567 | ||
19568 | SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19569 | PyObject *resultobj = 0; | |
19570 | wxDC *arg1 = (wxDC *) 0 ; | |
19571 | wxBitmap *arg2 = 0 ; | |
19572 | int arg3 ; | |
19573 | int arg4 ; | |
19574 | bool arg5 = (bool) false ; | |
19575 | void *argp1 = 0 ; | |
19576 | int res1 = 0 ; | |
19577 | void *argp2 = 0 ; | |
19578 | int res2 = 0 ; | |
19579 | int val3 ; | |
19580 | int ecode3 = 0 ; | |
19581 | int val4 ; | |
19582 | int ecode4 = 0 ; | |
19583 | bool val5 ; | |
19584 | int ecode5 = 0 ; | |
19585 | PyObject * obj0 = 0 ; | |
19586 | PyObject * obj1 = 0 ; | |
19587 | PyObject * obj2 = 0 ; | |
19588 | PyObject * obj3 = 0 ; | |
19589 | PyObject * obj4 = 0 ; | |
19590 | char * kwnames[] = { | |
19591 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
19592 | }; | |
19593 | ||
19594 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19595 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19596 | if (!SWIG_IsOK(res1)) { | |
19597 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19598 | } | |
19599 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19600 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19601 | if (!SWIG_IsOK(res2)) { | |
19602 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19603 | } | |
19604 | if (!argp2) { | |
19605 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19606 | } | |
19607 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19608 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19609 | if (!SWIG_IsOK(ecode3)) { | |
19610 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
19611 | } | |
19612 | arg3 = static_cast< int >(val3); | |
19613 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19614 | if (!SWIG_IsOK(ecode4)) { | |
19615 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
19616 | } | |
19617 | arg4 = static_cast< int >(val4); | |
19618 | if (obj4) { | |
19619 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
19620 | if (!SWIG_IsOK(ecode5)) { | |
19621 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
19622 | } | |
19623 | arg5 = static_cast< bool >(val5); | |
19624 | } | |
19625 | { | |
19626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19627 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
19628 | wxPyEndAllowThreads(__tstate); | |
19629 | if (PyErr_Occurred()) SWIG_fail; | |
19630 | } | |
19631 | resultobj = SWIG_Py_Void(); | |
19632 | return resultobj; | |
19633 | fail: | |
19634 | return NULL; | |
19635 | } | |
19636 | ||
19637 | ||
19638 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19639 | PyObject *resultobj = 0; | |
19640 | wxDC *arg1 = (wxDC *) 0 ; | |
19641 | wxBitmap *arg2 = 0 ; | |
19642 | wxPoint *arg3 = 0 ; | |
19643 | bool arg4 = (bool) false ; | |
19644 | void *argp1 = 0 ; | |
19645 | int res1 = 0 ; | |
19646 | void *argp2 = 0 ; | |
19647 | int res2 = 0 ; | |
19648 | wxPoint temp3 ; | |
19649 | bool val4 ; | |
19650 | int ecode4 = 0 ; | |
19651 | PyObject * obj0 = 0 ; | |
19652 | PyObject * obj1 = 0 ; | |
19653 | PyObject * obj2 = 0 ; | |
19654 | PyObject * obj3 = 0 ; | |
19655 | char * kwnames[] = { | |
19656 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
19657 | }; | |
19658 | ||
19659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19661 | if (!SWIG_IsOK(res1)) { | |
19662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19663 | } | |
19664 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19665 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19666 | if (!SWIG_IsOK(res2)) { | |
19667 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19668 | } | |
19669 | if (!argp2) { | |
19670 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19671 | } | |
19672 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19673 | { | |
19674 | arg3 = &temp3; | |
19675 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19676 | } | |
19677 | if (obj3) { | |
19678 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
19679 | if (!SWIG_IsOK(ecode4)) { | |
19680 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
19681 | } | |
19682 | arg4 = static_cast< bool >(val4); | |
19683 | } | |
19684 | { | |
19685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19686 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19687 | wxPyEndAllowThreads(__tstate); | |
19688 | if (PyErr_Occurred()) SWIG_fail; | |
19689 | } | |
19690 | resultobj = SWIG_Py_Void(); | |
19691 | return resultobj; | |
19692 | fail: | |
19693 | return NULL; | |
19694 | } | |
19695 | ||
19696 | ||
19697 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19698 | PyObject *resultobj = 0; | |
19699 | wxDC *arg1 = (wxDC *) 0 ; | |
19700 | wxString *arg2 = 0 ; | |
19701 | int arg3 ; | |
19702 | int arg4 ; | |
19703 | void *argp1 = 0 ; | |
19704 | int res1 = 0 ; | |
19705 | bool temp2 = false ; | |
19706 | int val3 ; | |
19707 | int ecode3 = 0 ; | |
19708 | int val4 ; | |
19709 | int ecode4 = 0 ; | |
19710 | PyObject * obj0 = 0 ; | |
19711 | PyObject * obj1 = 0 ; | |
19712 | PyObject * obj2 = 0 ; | |
19713 | PyObject * obj3 = 0 ; | |
19714 | char * kwnames[] = { | |
19715 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
19716 | }; | |
19717 | ||
19718 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19719 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19720 | if (!SWIG_IsOK(res1)) { | |
19721 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19722 | } | |
19723 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19724 | { | |
19725 | arg2 = wxString_in_helper(obj1); | |
19726 | if (arg2 == NULL) SWIG_fail; | |
19727 | temp2 = true; | |
19728 | } | |
19729 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19730 | if (!SWIG_IsOK(ecode3)) { | |
19731 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
19732 | } | |
19733 | arg3 = static_cast< int >(val3); | |
19734 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19735 | if (!SWIG_IsOK(ecode4)) { | |
19736 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
19737 | } | |
19738 | arg4 = static_cast< int >(val4); | |
19739 | { | |
19740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19741 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
19742 | wxPyEndAllowThreads(__tstate); | |
19743 | if (PyErr_Occurred()) SWIG_fail; | |
19744 | } | |
19745 | resultobj = SWIG_Py_Void(); | |
19746 | { | |
19747 | if (temp2) | |
19748 | delete arg2; | |
19749 | } | |
19750 | return resultobj; | |
19751 | fail: | |
19752 | { | |
19753 | if (temp2) | |
19754 | delete arg2; | |
19755 | } | |
19756 | return NULL; | |
19757 | } | |
19758 | ||
19759 | ||
19760 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19761 | PyObject *resultobj = 0; | |
19762 | wxDC *arg1 = (wxDC *) 0 ; | |
19763 | wxString *arg2 = 0 ; | |
19764 | wxPoint *arg3 = 0 ; | |
19765 | void *argp1 = 0 ; | |
19766 | int res1 = 0 ; | |
19767 | bool temp2 = false ; | |
19768 | wxPoint temp3 ; | |
19769 | PyObject * obj0 = 0 ; | |
19770 | PyObject * obj1 = 0 ; | |
19771 | PyObject * obj2 = 0 ; | |
19772 | char * kwnames[] = { | |
19773 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
19774 | }; | |
19775 | ||
19776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19777 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19778 | if (!SWIG_IsOK(res1)) { | |
19779 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19780 | } | |
19781 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19782 | { | |
19783 | arg2 = wxString_in_helper(obj1); | |
19784 | if (arg2 == NULL) SWIG_fail; | |
19785 | temp2 = true; | |
19786 | } | |
19787 | { | |
19788 | arg3 = &temp3; | |
19789 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19790 | } | |
19791 | { | |
19792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19793 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
19794 | wxPyEndAllowThreads(__tstate); | |
19795 | if (PyErr_Occurred()) SWIG_fail; | |
19796 | } | |
19797 | resultobj = SWIG_Py_Void(); | |
19798 | { | |
19799 | if (temp2) | |
19800 | delete arg2; | |
19801 | } | |
19802 | return resultobj; | |
19803 | fail: | |
19804 | { | |
19805 | if (temp2) | |
19806 | delete arg2; | |
19807 | } | |
19808 | return NULL; | |
19809 | } | |
19810 | ||
19811 | ||
19812 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19813 | PyObject *resultobj = 0; | |
19814 | wxDC *arg1 = (wxDC *) 0 ; | |
19815 | wxString *arg2 = 0 ; | |
19816 | int arg3 ; | |
19817 | int arg4 ; | |
19818 | double arg5 ; | |
19819 | void *argp1 = 0 ; | |
19820 | int res1 = 0 ; | |
19821 | bool temp2 = false ; | |
19822 | int val3 ; | |
19823 | int ecode3 = 0 ; | |
19824 | int val4 ; | |
19825 | int ecode4 = 0 ; | |
19826 | double val5 ; | |
19827 | int ecode5 = 0 ; | |
19828 | PyObject * obj0 = 0 ; | |
19829 | PyObject * obj1 = 0 ; | |
19830 | PyObject * obj2 = 0 ; | |
19831 | PyObject * obj3 = 0 ; | |
19832 | PyObject * obj4 = 0 ; | |
19833 | char * kwnames[] = { | |
19834 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
19835 | }; | |
19836 | ||
19837 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19838 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19839 | if (!SWIG_IsOK(res1)) { | |
19840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19841 | } | |
19842 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19843 | { | |
19844 | arg2 = wxString_in_helper(obj1); | |
19845 | if (arg2 == NULL) SWIG_fail; | |
19846 | temp2 = true; | |
19847 | } | |
19848 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19849 | if (!SWIG_IsOK(ecode3)) { | |
19850 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
19851 | } | |
19852 | arg3 = static_cast< int >(val3); | |
19853 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19854 | if (!SWIG_IsOK(ecode4)) { | |
19855 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
19856 | } | |
19857 | arg4 = static_cast< int >(val4); | |
19858 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
19859 | if (!SWIG_IsOK(ecode5)) { | |
19860 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
19861 | } | |
19862 | arg5 = static_cast< double >(val5); | |
19863 | { | |
19864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19865 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
19866 | wxPyEndAllowThreads(__tstate); | |
19867 | if (PyErr_Occurred()) SWIG_fail; | |
19868 | } | |
19869 | resultobj = SWIG_Py_Void(); | |
19870 | { | |
19871 | if (temp2) | |
19872 | delete arg2; | |
19873 | } | |
19874 | return resultobj; | |
19875 | fail: | |
19876 | { | |
19877 | if (temp2) | |
19878 | delete arg2; | |
19879 | } | |
19880 | return NULL; | |
19881 | } | |
19882 | ||
19883 | ||
19884 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19885 | PyObject *resultobj = 0; | |
19886 | wxDC *arg1 = (wxDC *) 0 ; | |
19887 | wxString *arg2 = 0 ; | |
19888 | wxPoint *arg3 = 0 ; | |
19889 | double arg4 ; | |
19890 | void *argp1 = 0 ; | |
19891 | int res1 = 0 ; | |
19892 | bool temp2 = false ; | |
19893 | wxPoint temp3 ; | |
19894 | double val4 ; | |
19895 | int ecode4 = 0 ; | |
19896 | PyObject * obj0 = 0 ; | |
19897 | PyObject * obj1 = 0 ; | |
19898 | PyObject * obj2 = 0 ; | |
19899 | PyObject * obj3 = 0 ; | |
19900 | char * kwnames[] = { | |
19901 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
19902 | }; | |
19903 | ||
19904 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19905 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19906 | if (!SWIG_IsOK(res1)) { | |
19907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19908 | } | |
19909 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19910 | { | |
19911 | arg2 = wxString_in_helper(obj1); | |
19912 | if (arg2 == NULL) SWIG_fail; | |
19913 | temp2 = true; | |
19914 | } | |
19915 | { | |
19916 | arg3 = &temp3; | |
19917 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19918 | } | |
19919 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19920 | if (!SWIG_IsOK(ecode4)) { | |
19921 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
19922 | } | |
19923 | arg4 = static_cast< double >(val4); | |
19924 | { | |
19925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19926 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
19927 | wxPyEndAllowThreads(__tstate); | |
19928 | if (PyErr_Occurred()) SWIG_fail; | |
19929 | } | |
19930 | resultobj = SWIG_Py_Void(); | |
19931 | { | |
19932 | if (temp2) | |
19933 | delete arg2; | |
19934 | } | |
19935 | return resultobj; | |
19936 | fail: | |
19937 | { | |
19938 | if (temp2) | |
19939 | delete arg2; | |
19940 | } | |
19941 | return NULL; | |
19942 | } | |
19943 | ||
19944 | ||
19945 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19946 | PyObject *resultobj = 0; | |
19947 | wxDC *arg1 = (wxDC *) 0 ; | |
19948 | int arg2 ; | |
19949 | int arg3 ; | |
19950 | int arg4 ; | |
19951 | int arg5 ; | |
19952 | wxDC *arg6 = (wxDC *) 0 ; | |
19953 | int arg7 ; | |
19954 | int arg8 ; | |
19955 | int arg9 = (int) wxCOPY ; | |
19956 | bool arg10 = (bool) false ; | |
19957 | int arg11 = (int) -1 ; | |
19958 | int arg12 = (int) -1 ; | |
19959 | bool result; | |
19960 | void *argp1 = 0 ; | |
19961 | int res1 = 0 ; | |
19962 | int val2 ; | |
19963 | int ecode2 = 0 ; | |
19964 | int val3 ; | |
19965 | int ecode3 = 0 ; | |
19966 | int val4 ; | |
19967 | int ecode4 = 0 ; | |
19968 | int val5 ; | |
19969 | int ecode5 = 0 ; | |
19970 | void *argp6 = 0 ; | |
19971 | int res6 = 0 ; | |
19972 | int val7 ; | |
19973 | int ecode7 = 0 ; | |
19974 | int val8 ; | |
19975 | int ecode8 = 0 ; | |
19976 | int val9 ; | |
19977 | int ecode9 = 0 ; | |
19978 | bool val10 ; | |
19979 | int ecode10 = 0 ; | |
19980 | int val11 ; | |
19981 | int ecode11 = 0 ; | |
19982 | int val12 ; | |
19983 | int ecode12 = 0 ; | |
19984 | PyObject * obj0 = 0 ; | |
19985 | PyObject * obj1 = 0 ; | |
19986 | PyObject * obj2 = 0 ; | |
19987 | PyObject * obj3 = 0 ; | |
19988 | PyObject * obj4 = 0 ; | |
19989 | PyObject * obj5 = 0 ; | |
19990 | PyObject * obj6 = 0 ; | |
19991 | PyObject * obj7 = 0 ; | |
19992 | PyObject * obj8 = 0 ; | |
19993 | PyObject * obj9 = 0 ; | |
19994 | PyObject * obj10 = 0 ; | |
19995 | PyObject * obj11 = 0 ; | |
19996 | char * kwnames[] = { | |
19997 | (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 | |
19998 | }; | |
19999 | ||
20000 | 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; | |
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_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20004 | } | |
20005 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20006 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20007 | if (!SWIG_IsOK(ecode2)) { | |
20008 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
20009 | } | |
20010 | arg2 = static_cast< int >(val2); | |
20011 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20012 | if (!SWIG_IsOK(ecode3)) { | |
20013 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
20014 | } | |
20015 | arg3 = static_cast< int >(val3); | |
20016 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20017 | if (!SWIG_IsOK(ecode4)) { | |
20018 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
20019 | } | |
20020 | arg4 = static_cast< int >(val4); | |
20021 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20022 | if (!SWIG_IsOK(ecode5)) { | |
20023 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
20024 | } | |
20025 | arg5 = static_cast< int >(val5); | |
20026 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20027 | if (!SWIG_IsOK(res6)) { | |
20028 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
20029 | } | |
20030 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
20031 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
20032 | if (!SWIG_IsOK(ecode7)) { | |
20033 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
20034 | } | |
20035 | arg7 = static_cast< int >(val7); | |
20036 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
20037 | if (!SWIG_IsOK(ecode8)) { | |
20038 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
20039 | } | |
20040 | arg8 = static_cast< int >(val8); | |
20041 | if (obj8) { | |
20042 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
20043 | if (!SWIG_IsOK(ecode9)) { | |
20044 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
20045 | } | |
20046 | arg9 = static_cast< int >(val9); | |
20047 | } | |
20048 | if (obj9) { | |
20049 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
20050 | if (!SWIG_IsOK(ecode10)) { | |
20051 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
20052 | } | |
20053 | arg10 = static_cast< bool >(val10); | |
20054 | } | |
20055 | if (obj10) { | |
20056 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
20057 | if (!SWIG_IsOK(ecode11)) { | |
20058 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
20059 | } | |
20060 | arg11 = static_cast< int >(val11); | |
20061 | } | |
20062 | if (obj11) { | |
20063 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
20064 | if (!SWIG_IsOK(ecode12)) { | |
20065 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
20066 | } | |
20067 | arg12 = static_cast< int >(val12); | |
20068 | } | |
20069 | { | |
20070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20071 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
20072 | wxPyEndAllowThreads(__tstate); | |
20073 | if (PyErr_Occurred()) SWIG_fail; | |
20074 | } | |
20075 | { | |
20076 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20077 | } | |
20078 | return resultobj; | |
20079 | fail: | |
20080 | return NULL; | |
20081 | } | |
20082 | ||
20083 | ||
20084 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20085 | PyObject *resultobj = 0; | |
20086 | wxDC *arg1 = (wxDC *) 0 ; | |
20087 | wxPoint *arg2 = 0 ; | |
20088 | wxSize *arg3 = 0 ; | |
20089 | wxDC *arg4 = (wxDC *) 0 ; | |
20090 | wxPoint *arg5 = 0 ; | |
20091 | int arg6 = (int) wxCOPY ; | |
20092 | bool arg7 = (bool) false ; | |
20093 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
20094 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
20095 | bool result; | |
20096 | void *argp1 = 0 ; | |
20097 | int res1 = 0 ; | |
20098 | wxPoint temp2 ; | |
20099 | wxSize temp3 ; | |
20100 | void *argp4 = 0 ; | |
20101 | int res4 = 0 ; | |
20102 | wxPoint temp5 ; | |
20103 | int val6 ; | |
20104 | int ecode6 = 0 ; | |
20105 | bool val7 ; | |
20106 | int ecode7 = 0 ; | |
20107 | wxPoint temp8 ; | |
20108 | PyObject * obj0 = 0 ; | |
20109 | PyObject * obj1 = 0 ; | |
20110 | PyObject * obj2 = 0 ; | |
20111 | PyObject * obj3 = 0 ; | |
20112 | PyObject * obj4 = 0 ; | |
20113 | PyObject * obj5 = 0 ; | |
20114 | PyObject * obj6 = 0 ; | |
20115 | PyObject * obj7 = 0 ; | |
20116 | char * kwnames[] = { | |
20117 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
20118 | }; | |
20119 | ||
20120 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20121 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20122 | if (!SWIG_IsOK(res1)) { | |
20123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20124 | } | |
20125 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20126 | { | |
20127 | arg2 = &temp2; | |
20128 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20129 | } | |
20130 | { | |
20131 | arg3 = &temp3; | |
20132 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
20133 | } | |
20134 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20135 | if (!SWIG_IsOK(res4)) { | |
20136 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
20137 | } | |
20138 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
20139 | { | |
20140 | arg5 = &temp5; | |
20141 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
20142 | } | |
20143 | if (obj5) { | |
20144 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20145 | if (!SWIG_IsOK(ecode6)) { | |
20146 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
20147 | } | |
20148 | arg6 = static_cast< int >(val6); | |
20149 | } | |
20150 | if (obj6) { | |
20151 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
20152 | if (!SWIG_IsOK(ecode7)) { | |
20153 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
20154 | } | |
20155 | arg7 = static_cast< bool >(val7); | |
20156 | } | |
20157 | if (obj7) { | |
093d3ff1 | 20158 | { |
554f62e9 RD |
20159 | arg8 = &temp8; |
20160 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
093d3ff1 | 20161 | } |
554f62e9 RD |
20162 | } |
20163 | { | |
20164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20165 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
20166 | wxPyEndAllowThreads(__tstate); | |
20167 | if (PyErr_Occurred()) SWIG_fail; | |
20168 | } | |
20169 | { | |
20170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20171 | } | |
20172 | return resultobj; | |
20173 | fail: | |
20174 | return NULL; | |
20175 | } | |
20176 | ||
20177 | ||
20178 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20179 | PyObject *resultobj = 0; | |
20180 | wxDC *arg1 = (wxDC *) 0 ; | |
20181 | int arg2 ; | |
20182 | int arg3 ; | |
20183 | int arg4 ; | |
20184 | int arg5 ; | |
20185 | void *argp1 = 0 ; | |
20186 | int res1 = 0 ; | |
20187 | int val2 ; | |
20188 | int ecode2 = 0 ; | |
20189 | int val3 ; | |
20190 | int ecode3 = 0 ; | |
20191 | int val4 ; | |
20192 | int ecode4 = 0 ; | |
20193 | int val5 ; | |
20194 | int ecode5 = 0 ; | |
20195 | PyObject * obj0 = 0 ; | |
20196 | PyObject * obj1 = 0 ; | |
20197 | PyObject * obj2 = 0 ; | |
20198 | PyObject * obj3 = 0 ; | |
20199 | PyObject * obj4 = 0 ; | |
20200 | char * kwnames[] = { | |
20201 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
20202 | }; | |
20203 | ||
20204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20205 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20206 | if (!SWIG_IsOK(res1)) { | |
20207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20208 | } | |
20209 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20210 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20211 | if (!SWIG_IsOK(ecode2)) { | |
20212 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
20213 | } | |
20214 | arg2 = static_cast< int >(val2); | |
20215 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20216 | if (!SWIG_IsOK(ecode3)) { | |
20217 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
20218 | } | |
20219 | arg3 = static_cast< int >(val3); | |
20220 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20221 | if (!SWIG_IsOK(ecode4)) { | |
20222 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
20223 | } | |
20224 | arg4 = static_cast< int >(val4); | |
20225 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20226 | if (!SWIG_IsOK(ecode5)) { | |
20227 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
20228 | } | |
20229 | arg5 = static_cast< int >(val5); | |
20230 | { | |
20231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20232 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
20233 | wxPyEndAllowThreads(__tstate); | |
20234 | if (PyErr_Occurred()) SWIG_fail; | |
20235 | } | |
20236 | resultobj = SWIG_Py_Void(); | |
20237 | return resultobj; | |
20238 | fail: | |
20239 | return NULL; | |
20240 | } | |
20241 | ||
20242 | ||
20243 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20244 | PyObject *resultobj = 0; | |
20245 | wxDC *arg1 = (wxDC *) 0 ; | |
20246 | wxPoint *arg2 = 0 ; | |
20247 | wxSize *arg3 = 0 ; | |
20248 | void *argp1 = 0 ; | |
20249 | int res1 = 0 ; | |
20250 | wxPoint temp2 ; | |
20251 | wxSize temp3 ; | |
20252 | PyObject * obj0 = 0 ; | |
20253 | PyObject * obj1 = 0 ; | |
20254 | PyObject * obj2 = 0 ; | |
20255 | char * kwnames[] = { | |
20256 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
20257 | }; | |
20258 | ||
20259 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20261 | if (!SWIG_IsOK(res1)) { | |
20262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20263 | } | |
20264 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20265 | { | |
20266 | arg2 = &temp2; | |
20267 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20268 | } | |
20269 | { | |
20270 | arg3 = &temp3; | |
20271 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
20272 | } | |
20273 | { | |
20274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20275 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
20276 | wxPyEndAllowThreads(__tstate); | |
20277 | if (PyErr_Occurred()) SWIG_fail; | |
20278 | } | |
20279 | resultobj = SWIG_Py_Void(); | |
20280 | return resultobj; | |
20281 | fail: | |
20282 | return NULL; | |
20283 | } | |
20284 | ||
20285 | ||
20286 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20287 | PyObject *resultobj = 0; | |
20288 | wxDC *arg1 = (wxDC *) 0 ; | |
20289 | wxRegion *arg2 = 0 ; | |
20290 | void *argp1 = 0 ; | |
20291 | int res1 = 0 ; | |
20292 | void *argp2 = 0 ; | |
20293 | int res2 = 0 ; | |
20294 | PyObject * obj0 = 0 ; | |
20295 | PyObject * obj1 = 0 ; | |
20296 | char * kwnames[] = { | |
20297 | (char *) "self",(char *) "region", NULL | |
20298 | }; | |
20299 | ||
20300 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
20301 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20302 | if (!SWIG_IsOK(res1)) { | |
20303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20304 | } | |
20305 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20306 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
20307 | if (!SWIG_IsOK(res2)) { | |
20308 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20309 | } | |
20310 | if (!argp2) { | |
20311 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20312 | } | |
20313 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
20314 | { | |
20315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20316 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
20317 | wxPyEndAllowThreads(__tstate); | |
20318 | if (PyErr_Occurred()) SWIG_fail; | |
20319 | } | |
20320 | resultobj = SWIG_Py_Void(); | |
20321 | return resultobj; | |
20322 | fail: | |
20323 | return NULL; | |
20324 | } | |
20325 | ||
20326 | ||
20327 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20328 | PyObject *resultobj = 0; | |
20329 | wxDC *arg1 = (wxDC *) 0 ; | |
20330 | wxRect *arg2 = 0 ; | |
20331 | void *argp1 = 0 ; | |
20332 | int res1 = 0 ; | |
20333 | wxRect temp2 ; | |
20334 | PyObject * obj0 = 0 ; | |
20335 | PyObject * obj1 = 0 ; | |
20336 | char * kwnames[] = { | |
20337 | (char *) "self",(char *) "rect", NULL | |
20338 | }; | |
20339 | ||
20340 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
20341 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20342 | if (!SWIG_IsOK(res1)) { | |
20343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20344 | } | |
20345 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20346 | { | |
20347 | arg2 = &temp2; | |
20348 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
20349 | } | |
20350 | { | |
20351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20352 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
20353 | wxPyEndAllowThreads(__tstate); | |
20354 | if (PyErr_Occurred()) SWIG_fail; | |
20355 | } | |
20356 | resultobj = SWIG_Py_Void(); | |
20357 | return resultobj; | |
20358 | fail: | |
20359 | return NULL; | |
20360 | } | |
20361 | ||
20362 | ||
20363 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20364 | PyObject *resultobj = 0; | |
20365 | wxDC *arg1 = (wxDC *) 0 ; | |
20366 | int arg2 ; | |
20367 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20368 | int arg4 = (int) 0 ; | |
20369 | int arg5 = (int) 0 ; | |
20370 | void *argp1 = 0 ; | |
20371 | int res1 = 0 ; | |
20372 | int val4 ; | |
20373 | int ecode4 = 0 ; | |
20374 | int val5 ; | |
20375 | int ecode5 = 0 ; | |
20376 | PyObject * obj0 = 0 ; | |
20377 | PyObject * obj1 = 0 ; | |
20378 | PyObject * obj2 = 0 ; | |
20379 | PyObject * obj3 = 0 ; | |
20380 | char * kwnames[] = { | |
20381 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
20382 | }; | |
20383 | ||
20384 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20385 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20386 | if (!SWIG_IsOK(res1)) { | |
20387 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20388 | } | |
20389 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20390 | { | |
20391 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20392 | if (arg3 == NULL) SWIG_fail; | |
20393 | } | |
20394 | if (obj2) { | |
20395 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20396 | if (!SWIG_IsOK(ecode4)) { | |
20397 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
20398 | } | |
20399 | arg4 = static_cast< int >(val4); | |
20400 | } | |
20401 | if (obj3) { | |
20402 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20403 | if (!SWIG_IsOK(ecode5)) { | |
20404 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
20405 | } | |
20406 | arg5 = static_cast< int >(val5); | |
20407 | } | |
20408 | { | |
20409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20410 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
20411 | wxPyEndAllowThreads(__tstate); | |
20412 | if (PyErr_Occurred()) SWIG_fail; | |
20413 | } | |
20414 | resultobj = SWIG_Py_Void(); | |
20415 | { | |
20416 | if (arg3) delete [] arg3; | |
20417 | } | |
20418 | return resultobj; | |
20419 | fail: | |
20420 | { | |
20421 | if (arg3) delete [] arg3; | |
20422 | } | |
20423 | return NULL; | |
20424 | } | |
20425 | ||
20426 | ||
20427 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20428 | PyObject *resultobj = 0; | |
20429 | wxDC *arg1 = (wxDC *) 0 ; | |
20430 | int arg2 ; | |
20431 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20432 | int arg4 = (int) 0 ; | |
20433 | int arg5 = (int) 0 ; | |
20434 | int arg6 = (int) wxODDEVEN_RULE ; | |
20435 | void *argp1 = 0 ; | |
20436 | int res1 = 0 ; | |
20437 | int val4 ; | |
20438 | int ecode4 = 0 ; | |
20439 | int val5 ; | |
20440 | int ecode5 = 0 ; | |
20441 | int val6 ; | |
20442 | int ecode6 = 0 ; | |
20443 | PyObject * obj0 = 0 ; | |
20444 | PyObject * obj1 = 0 ; | |
20445 | PyObject * obj2 = 0 ; | |
20446 | PyObject * obj3 = 0 ; | |
20447 | PyObject * obj4 = 0 ; | |
20448 | char * kwnames[] = { | |
20449 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
20450 | }; | |
20451 | ||
20452 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20453 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20454 | if (!SWIG_IsOK(res1)) { | |
20455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20456 | } | |
20457 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20458 | { | |
20459 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20460 | if (arg3 == NULL) SWIG_fail; | |
20461 | } | |
20462 | if (obj2) { | |
20463 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20464 | if (!SWIG_IsOK(ecode4)) { | |
20465 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
20466 | } | |
20467 | arg4 = static_cast< int >(val4); | |
20468 | } | |
20469 | if (obj3) { | |
20470 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20471 | if (!SWIG_IsOK(ecode5)) { | |
20472 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
20473 | } | |
20474 | arg5 = static_cast< int >(val5); | |
20475 | } | |
20476 | if (obj4) { | |
20477 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
20478 | if (!SWIG_IsOK(ecode6)) { | |
20479 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
20480 | } | |
20481 | arg6 = static_cast< int >(val6); | |
20482 | } | |
20483 | { | |
20484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20485 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
20486 | wxPyEndAllowThreads(__tstate); | |
20487 | if (PyErr_Occurred()) SWIG_fail; | |
20488 | } | |
20489 | resultobj = SWIG_Py_Void(); | |
20490 | { | |
20491 | if (arg3) delete [] arg3; | |
20492 | } | |
20493 | return resultobj; | |
20494 | fail: | |
20495 | { | |
20496 | if (arg3) delete [] arg3; | |
20497 | } | |
20498 | return NULL; | |
20499 | } | |
20500 | ||
20501 | ||
20502 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20503 | PyObject *resultobj = 0; | |
20504 | wxDC *arg1 = (wxDC *) 0 ; | |
20505 | wxString *arg2 = 0 ; | |
20506 | wxRect *arg3 = 0 ; | |
20507 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20508 | int arg5 = (int) -1 ; | |
20509 | void *argp1 = 0 ; | |
20510 | int res1 = 0 ; | |
20511 | bool temp2 = false ; | |
20512 | wxRect temp3 ; | |
20513 | int val4 ; | |
20514 | int ecode4 = 0 ; | |
20515 | int val5 ; | |
20516 | int ecode5 = 0 ; | |
20517 | PyObject * obj0 = 0 ; | |
20518 | PyObject * obj1 = 0 ; | |
20519 | PyObject * obj2 = 0 ; | |
20520 | PyObject * obj3 = 0 ; | |
20521 | PyObject * obj4 = 0 ; | |
20522 | char * kwnames[] = { | |
20523 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20524 | }; | |
20525 | ||
20526 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20527 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20528 | if (!SWIG_IsOK(res1)) { | |
20529 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20530 | } | |
20531 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20532 | { | |
20533 | arg2 = wxString_in_helper(obj1); | |
20534 | if (arg2 == NULL) SWIG_fail; | |
20535 | temp2 = true; | |
20536 | } | |
20537 | { | |
20538 | arg3 = &temp3; | |
20539 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
20540 | } | |
20541 | if (obj3) { | |
20542 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20543 | if (!SWIG_IsOK(ecode4)) { | |
20544 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
20545 | } | |
20546 | arg4 = static_cast< int >(val4); | |
20547 | } | |
20548 | if (obj4) { | |
20549 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20550 | if (!SWIG_IsOK(ecode5)) { | |
20551 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
20552 | } | |
20553 | arg5 = static_cast< int >(val5); | |
20554 | } | |
20555 | { | |
20556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20557 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
20558 | wxPyEndAllowThreads(__tstate); | |
20559 | if (PyErr_Occurred()) SWIG_fail; | |
20560 | } | |
20561 | resultobj = SWIG_Py_Void(); | |
20562 | { | |
20563 | if (temp2) | |
20564 | delete arg2; | |
20565 | } | |
20566 | return resultobj; | |
20567 | fail: | |
20568 | { | |
20569 | if (temp2) | |
20570 | delete arg2; | |
20571 | } | |
20572 | return NULL; | |
20573 | } | |
20574 | ||
20575 | ||
20576 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20577 | PyObject *resultobj = 0; | |
20578 | wxDC *arg1 = (wxDC *) 0 ; | |
20579 | wxString *arg2 = 0 ; | |
20580 | wxBitmap *arg3 = 0 ; | |
20581 | wxRect *arg4 = 0 ; | |
20582 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20583 | int arg6 = (int) -1 ; | |
20584 | wxRect result; | |
20585 | void *argp1 = 0 ; | |
20586 | int res1 = 0 ; | |
20587 | bool temp2 = false ; | |
20588 | void *argp3 = 0 ; | |
20589 | int res3 = 0 ; | |
20590 | wxRect temp4 ; | |
20591 | int val5 ; | |
20592 | int ecode5 = 0 ; | |
20593 | int val6 ; | |
20594 | int ecode6 = 0 ; | |
20595 | PyObject * obj0 = 0 ; | |
20596 | PyObject * obj1 = 0 ; | |
20597 | PyObject * obj2 = 0 ; | |
20598 | PyObject * obj3 = 0 ; | |
20599 | PyObject * obj4 = 0 ; | |
20600 | PyObject * obj5 = 0 ; | |
20601 | char * kwnames[] = { | |
20602 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20603 | }; | |
20604 | ||
20605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20606 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20607 | if (!SWIG_IsOK(res1)) { | |
20608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20609 | } | |
20610 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20611 | { | |
20612 | arg2 = wxString_in_helper(obj1); | |
20613 | if (arg2 == NULL) SWIG_fail; | |
20614 | temp2 = true; | |
20615 | } | |
20616 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20617 | if (!SWIG_IsOK(res3)) { | |
20618 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20619 | } | |
20620 | if (!argp3) { | |
20621 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20622 | } | |
20623 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
20624 | { | |
20625 | arg4 = &temp4; | |
20626 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
20627 | } | |
20628 | if (obj4) { | |
20629 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20630 | if (!SWIG_IsOK(ecode5)) { | |
20631 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
20632 | } | |
20633 | arg5 = static_cast< int >(val5); | |
20634 | } | |
20635 | if (obj5) { | |
20636 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20637 | if (!SWIG_IsOK(ecode6)) { | |
20638 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
20639 | } | |
20640 | arg6 = static_cast< int >(val6); | |
20641 | } | |
20642 | { | |
20643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20644 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
20645 | wxPyEndAllowThreads(__tstate); | |
20646 | if (PyErr_Occurred()) SWIG_fail; | |
20647 | } | |
20648 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
20649 | { | |
20650 | if (temp2) | |
20651 | delete arg2; | |
20652 | } | |
20653 | return resultobj; | |
20654 | fail: | |
20655 | { | |
20656 | if (temp2) | |
20657 | delete arg2; | |
20658 | } | |
20659 | return NULL; | |
20660 | } | |
20661 | ||
20662 | ||
20663 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20664 | PyObject *resultobj = 0; | |
20665 | wxDC *arg1 = (wxDC *) 0 ; | |
20666 | int arg2 ; | |
20667 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20668 | void *argp1 = 0 ; | |
20669 | int res1 = 0 ; | |
20670 | PyObject * obj0 = 0 ; | |
20671 | PyObject * obj1 = 0 ; | |
20672 | char * kwnames[] = { | |
20673 | (char *) "self",(char *) "points", NULL | |
20674 | }; | |
20675 | ||
20676 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
20677 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20678 | if (!SWIG_IsOK(res1)) { | |
20679 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20680 | } | |
20681 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20682 | { | |
20683 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20684 | if (arg3 == NULL) SWIG_fail; | |
20685 | } | |
20686 | { | |
20687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20688 | (arg1)->DrawSpline(arg2,arg3); | |
20689 | wxPyEndAllowThreads(__tstate); | |
20690 | if (PyErr_Occurred()) SWIG_fail; | |
20691 | } | |
20692 | resultobj = SWIG_Py_Void(); | |
20693 | { | |
20694 | if (arg3) delete [] arg3; | |
20695 | } | |
20696 | return resultobj; | |
20697 | fail: | |
20698 | { | |
20699 | if (arg3) delete [] arg3; | |
20700 | } | |
20701 | return NULL; | |
20702 | } | |
20703 | ||
20704 | ||
20705 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20706 | PyObject *resultobj = 0; | |
20707 | wxDC *arg1 = (wxDC *) 0 ; | |
20708 | void *argp1 = 0 ; | |
20709 | int res1 = 0 ; | |
20710 | PyObject *swig_obj[1] ; | |
20711 | ||
20712 | if (!args) SWIG_fail; | |
20713 | swig_obj[0] = args; | |
20714 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20715 | if (!SWIG_IsOK(res1)) { | |
20716 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20717 | } | |
20718 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20719 | { | |
20720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20721 | (arg1)->Clear(); | |
20722 | wxPyEndAllowThreads(__tstate); | |
20723 | if (PyErr_Occurred()) SWIG_fail; | |
20724 | } | |
20725 | resultobj = SWIG_Py_Void(); | |
20726 | return resultobj; | |
20727 | fail: | |
20728 | return NULL; | |
20729 | } | |
20730 | ||
20731 | ||
20732 | SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20733 | PyObject *resultobj = 0; | |
20734 | wxDC *arg1 = (wxDC *) 0 ; | |
20735 | wxString *arg2 = 0 ; | |
20736 | bool result; | |
20737 | void *argp1 = 0 ; | |
20738 | int res1 = 0 ; | |
20739 | bool temp2 = false ; | |
20740 | PyObject * obj0 = 0 ; | |
20741 | PyObject * obj1 = 0 ; | |
20742 | char * kwnames[] = { | |
20743 | (char *) "self",(char *) "message", NULL | |
20744 | }; | |
20745 | ||
20746 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail; | |
20747 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20748 | if (!SWIG_IsOK(res1)) { | |
20749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20750 | } | |
20751 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20752 | { | |
20753 | arg2 = wxString_in_helper(obj1); | |
20754 | if (arg2 == NULL) SWIG_fail; | |
20755 | temp2 = true; | |
20756 | } | |
20757 | { | |
20758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20759 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
20760 | wxPyEndAllowThreads(__tstate); | |
20761 | if (PyErr_Occurred()) SWIG_fail; | |
20762 | } | |
20763 | { | |
20764 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20765 | } | |
20766 | { | |
20767 | if (temp2) | |
20768 | delete arg2; | |
20769 | } | |
20770 | return resultobj; | |
20771 | fail: | |
20772 | { | |
20773 | if (temp2) | |
20774 | delete arg2; | |
20775 | } | |
20776 | return NULL; | |
20777 | } | |
20778 | ||
20779 | ||
20780 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20781 | PyObject *resultobj = 0; | |
20782 | wxDC *arg1 = (wxDC *) 0 ; | |
20783 | void *argp1 = 0 ; | |
20784 | int res1 = 0 ; | |
20785 | PyObject *swig_obj[1] ; | |
20786 | ||
20787 | if (!args) SWIG_fail; | |
20788 | swig_obj[0] = args; | |
20789 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20790 | if (!SWIG_IsOK(res1)) { | |
20791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20792 | } | |
20793 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20794 | { | |
20795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20796 | (arg1)->EndDoc(); | |
20797 | wxPyEndAllowThreads(__tstate); | |
20798 | if (PyErr_Occurred()) SWIG_fail; | |
20799 | } | |
20800 | resultobj = SWIG_Py_Void(); | |
20801 | return resultobj; | |
20802 | fail: | |
20803 | return NULL; | |
20804 | } | |
20805 | ||
20806 | ||
20807 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20808 | PyObject *resultobj = 0; | |
20809 | wxDC *arg1 = (wxDC *) 0 ; | |
20810 | void *argp1 = 0 ; | |
20811 | int res1 = 0 ; | |
20812 | PyObject *swig_obj[1] ; | |
20813 | ||
20814 | if (!args) SWIG_fail; | |
20815 | swig_obj[0] = args; | |
20816 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20817 | if (!SWIG_IsOK(res1)) { | |
20818 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20819 | } | |
20820 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20821 | { | |
20822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20823 | (arg1)->StartPage(); | |
20824 | wxPyEndAllowThreads(__tstate); | |
20825 | if (PyErr_Occurred()) SWIG_fail; | |
20826 | } | |
20827 | resultobj = SWIG_Py_Void(); | |
20828 | return resultobj; | |
20829 | fail: | |
20830 | return NULL; | |
20831 | } | |
20832 | ||
20833 | ||
20834 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
20835 | PyObject *resultobj = 0; | |
20836 | wxDC *arg1 = (wxDC *) 0 ; | |
20837 | void *argp1 = 0 ; | |
20838 | int res1 = 0 ; | |
20839 | PyObject *swig_obj[1] ; | |
20840 | ||
20841 | if (!args) SWIG_fail; | |
20842 | swig_obj[0] = args; | |
20843 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20844 | if (!SWIG_IsOK(res1)) { | |
20845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20846 | } | |
20847 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20848 | { | |
20849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20850 | (arg1)->EndPage(); | |
20851 | wxPyEndAllowThreads(__tstate); | |
20852 | if (PyErr_Occurred()) SWIG_fail; | |
20853 | } | |
20854 | resultobj = SWIG_Py_Void(); | |
20855 | return resultobj; | |
20856 | fail: | |
20857 | return NULL; | |
20858 | } | |
20859 | ||
20860 | ||
20861 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20862 | PyObject *resultobj = 0; | |
20863 | wxDC *arg1 = (wxDC *) 0 ; | |
20864 | wxFont *arg2 = 0 ; | |
20865 | void *argp1 = 0 ; | |
20866 | int res1 = 0 ; | |
20867 | void *argp2 = 0 ; | |
20868 | int res2 = 0 ; | |
20869 | PyObject * obj0 = 0 ; | |
20870 | PyObject * obj1 = 0 ; | |
20871 | char * kwnames[] = { | |
20872 | (char *) "self",(char *) "font", NULL | |
20873 | }; | |
20874 | ||
20875 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
20876 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20877 | if (!SWIG_IsOK(res1)) { | |
20878 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20879 | } | |
20880 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20881 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
20882 | if (!SWIG_IsOK(res2)) { | |
20883 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20884 | } | |
20885 | if (!argp2) { | |
20886 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
20887 | } | |
20888 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
20889 | { | |
20890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20891 | (arg1)->SetFont((wxFont const &)*arg2); | |
20892 | wxPyEndAllowThreads(__tstate); | |
20893 | if (PyErr_Occurred()) SWIG_fail; | |
20894 | } | |
20895 | resultobj = SWIG_Py_Void(); | |
20896 | return resultobj; | |
20897 | fail: | |
20898 | return NULL; | |
20899 | } | |
20900 | ||
20901 | ||
20902 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20903 | PyObject *resultobj = 0; | |
20904 | wxDC *arg1 = (wxDC *) 0 ; | |
20905 | wxPen *arg2 = 0 ; | |
20906 | void *argp1 = 0 ; | |
20907 | int res1 = 0 ; | |
20908 | void *argp2 = 0 ; | |
20909 | int res2 = 0 ; | |
20910 | PyObject * obj0 = 0 ; | |
20911 | PyObject * obj1 = 0 ; | |
20912 | char * kwnames[] = { | |
20913 | (char *) "self",(char *) "pen", NULL | |
20914 | }; | |
20915 | ||
20916 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
20917 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20918 | if (!SWIG_IsOK(res1)) { | |
20919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20920 | } | |
20921 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20922 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
20923 | if (!SWIG_IsOK(res2)) { | |
20924 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20925 | } | |
20926 | if (!argp2) { | |
20927 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
20928 | } | |
20929 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
20930 | { | |
20931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20932 | (arg1)->SetPen((wxPen const &)*arg2); | |
20933 | wxPyEndAllowThreads(__tstate); | |
20934 | if (PyErr_Occurred()) SWIG_fail; | |
20935 | } | |
20936 | resultobj = SWIG_Py_Void(); | |
20937 | return resultobj; | |
20938 | fail: | |
20939 | return NULL; | |
20940 | } | |
20941 | ||
20942 | ||
20943 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20944 | PyObject *resultobj = 0; | |
20945 | wxDC *arg1 = (wxDC *) 0 ; | |
20946 | wxBrush *arg2 = 0 ; | |
20947 | void *argp1 = 0 ; | |
20948 | int res1 = 0 ; | |
20949 | void *argp2 = 0 ; | |
20950 | int res2 = 0 ; | |
20951 | PyObject * obj0 = 0 ; | |
20952 | PyObject * obj1 = 0 ; | |
20953 | char * kwnames[] = { | |
20954 | (char *) "self",(char *) "brush", NULL | |
20955 | }; | |
20956 | ||
20957 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
20958 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20959 | if (!SWIG_IsOK(res1)) { | |
20960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20961 | } | |
20962 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20963 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
20964 | if (!SWIG_IsOK(res2)) { | |
20965 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20966 | } | |
20967 | if (!argp2) { | |
20968 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
20969 | } | |
20970 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
20971 | { | |
20972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20973 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
20974 | wxPyEndAllowThreads(__tstate); | |
20975 | if (PyErr_Occurred()) SWIG_fail; | |
20976 | } | |
20977 | resultobj = SWIG_Py_Void(); | |
20978 | return resultobj; | |
20979 | fail: | |
20980 | return NULL; | |
20981 | } | |
20982 | ||
20983 | ||
20984 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20985 | PyObject *resultobj = 0; | |
20986 | wxDC *arg1 = (wxDC *) 0 ; | |
20987 | wxBrush *arg2 = 0 ; | |
20988 | void *argp1 = 0 ; | |
20989 | int res1 = 0 ; | |
20990 | void *argp2 = 0 ; | |
20991 | int res2 = 0 ; | |
20992 | PyObject * obj0 = 0 ; | |
20993 | PyObject * obj1 = 0 ; | |
20994 | char * kwnames[] = { | |
20995 | (char *) "self",(char *) "brush", NULL | |
20996 | }; | |
20997 | ||
20998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
20999 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21000 | if (!SWIG_IsOK(res1)) { | |
21001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21002 | } | |
21003 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21004 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
21005 | if (!SWIG_IsOK(res2)) { | |
21006 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21007 | } | |
21008 | if (!argp2) { | |
21009 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21010 | } | |
21011 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
21012 | { | |
21013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21014 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
21015 | wxPyEndAllowThreads(__tstate); | |
21016 | if (PyErr_Occurred()) SWIG_fail; | |
21017 | } | |
21018 | resultobj = SWIG_Py_Void(); | |
21019 | return resultobj; | |
21020 | fail: | |
21021 | return NULL; | |
21022 | } | |
21023 | ||
21024 | ||
21025 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21026 | PyObject *resultobj = 0; | |
21027 | wxDC *arg1 = (wxDC *) 0 ; | |
21028 | int arg2 ; | |
21029 | void *argp1 = 0 ; | |
21030 | int res1 = 0 ; | |
21031 | int val2 ; | |
21032 | int ecode2 = 0 ; | |
21033 | PyObject * obj0 = 0 ; | |
21034 | PyObject * obj1 = 0 ; | |
21035 | char * kwnames[] = { | |
21036 | (char *) "self",(char *) "mode", NULL | |
21037 | }; | |
21038 | ||
21039 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
21040 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21041 | if (!SWIG_IsOK(res1)) { | |
21042 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21043 | } | |
21044 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21045 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21046 | if (!SWIG_IsOK(ecode2)) { | |
21047 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
21048 | } | |
21049 | arg2 = static_cast< int >(val2); | |
21050 | { | |
21051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21052 | (arg1)->SetBackgroundMode(arg2); | |
21053 | wxPyEndAllowThreads(__tstate); | |
21054 | if (PyErr_Occurred()) SWIG_fail; | |
21055 | } | |
21056 | resultobj = SWIG_Py_Void(); | |
21057 | return resultobj; | |
21058 | fail: | |
21059 | return NULL; | |
21060 | } | |
21061 | ||
21062 | ||
21063 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21064 | PyObject *resultobj = 0; | |
21065 | wxDC *arg1 = (wxDC *) 0 ; | |
21066 | wxPalette *arg2 = 0 ; | |
21067 | void *argp1 = 0 ; | |
21068 | int res1 = 0 ; | |
21069 | void *argp2 = 0 ; | |
21070 | int res2 = 0 ; | |
21071 | PyObject * obj0 = 0 ; | |
21072 | PyObject * obj1 = 0 ; | |
21073 | char * kwnames[] = { | |
21074 | (char *) "self",(char *) "palette", NULL | |
21075 | }; | |
21076 | ||
21077 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
21078 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21079 | if (!SWIG_IsOK(res1)) { | |
21080 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21081 | } | |
21082 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21083 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
21084 | if (!SWIG_IsOK(res2)) { | |
21085 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
21086 | } | |
21087 | if (!argp2) { | |
21088 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
21089 | } | |
21090 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
21091 | { | |
21092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21093 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
21094 | wxPyEndAllowThreads(__tstate); | |
21095 | if (PyErr_Occurred()) SWIG_fail; | |
21096 | } | |
21097 | resultobj = SWIG_Py_Void(); | |
21098 | return resultobj; | |
21099 | fail: | |
21100 | return NULL; | |
21101 | } | |
21102 | ||
21103 | ||
21104 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21105 | PyObject *resultobj = 0; | |
21106 | wxDC *arg1 = (wxDC *) 0 ; | |
21107 | void *argp1 = 0 ; | |
21108 | int res1 = 0 ; | |
21109 | PyObject *swig_obj[1] ; | |
21110 | ||
21111 | if (!args) SWIG_fail; | |
21112 | swig_obj[0] = args; | |
21113 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21114 | if (!SWIG_IsOK(res1)) { | |
21115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21116 | } | |
21117 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21118 | { | |
21119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21120 | (arg1)->DestroyClippingRegion(); | |
21121 | wxPyEndAllowThreads(__tstate); | |
21122 | if (PyErr_Occurred()) SWIG_fail; | |
21123 | } | |
21124 | resultobj = SWIG_Py_Void(); | |
21125 | return resultobj; | |
21126 | fail: | |
21127 | return NULL; | |
21128 | } | |
21129 | ||
21130 | ||
21131 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21132 | PyObject *resultobj = 0; | |
21133 | wxDC *arg1 = (wxDC *) 0 ; | |
21134 | int *arg2 = (int *) 0 ; | |
21135 | int *arg3 = (int *) 0 ; | |
21136 | int *arg4 = (int *) 0 ; | |
21137 | int *arg5 = (int *) 0 ; | |
21138 | void *argp1 = 0 ; | |
21139 | int res1 = 0 ; | |
21140 | int temp2 ; | |
21141 | int res2 = SWIG_TMPOBJ ; | |
21142 | int temp3 ; | |
21143 | int res3 = SWIG_TMPOBJ ; | |
21144 | int temp4 ; | |
21145 | int res4 = SWIG_TMPOBJ ; | |
21146 | int temp5 ; | |
21147 | int res5 = SWIG_TMPOBJ ; | |
21148 | PyObject *swig_obj[1] ; | |
21149 | ||
21150 | arg2 = &temp2; | |
21151 | arg3 = &temp3; | |
21152 | arg4 = &temp4; | |
21153 | arg5 = &temp5; | |
21154 | if (!args) SWIG_fail; | |
21155 | swig_obj[0] = args; | |
21156 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21157 | if (!SWIG_IsOK(res1)) { | |
21158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21159 | } | |
21160 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21161 | { | |
21162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21163 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
21164 | wxPyEndAllowThreads(__tstate); | |
21165 | if (PyErr_Occurred()) SWIG_fail; | |
21166 | } | |
21167 | resultobj = SWIG_Py_Void(); | |
21168 | if (SWIG_IsTmpObj(res2)) { | |
21169 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21170 | } else { | |
21171 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21172 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21173 | } | |
21174 | if (SWIG_IsTmpObj(res3)) { | |
21175 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21176 | } else { | |
21177 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21178 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21179 | } | |
21180 | if (SWIG_IsTmpObj(res4)) { | |
21181 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21182 | } else { | |
21183 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21184 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21185 | } | |
21186 | if (SWIG_IsTmpObj(res5)) { | |
21187 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21188 | } else { | |
21189 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21190 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21191 | } | |
21192 | return resultobj; | |
21193 | fail: | |
21194 | return NULL; | |
21195 | } | |
21196 | ||
21197 | ||
21198 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21199 | PyObject *resultobj = 0; | |
21200 | wxDC *arg1 = (wxDC *) 0 ; | |
21201 | wxRect result; | |
21202 | void *argp1 = 0 ; | |
21203 | int res1 = 0 ; | |
21204 | PyObject *swig_obj[1] ; | |
21205 | ||
21206 | if (!args) SWIG_fail; | |
21207 | swig_obj[0] = args; | |
21208 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21209 | if (!SWIG_IsOK(res1)) { | |
21210 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21211 | } | |
21212 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21213 | { | |
21214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21215 | result = wxDC_GetClippingRect(arg1); | |
21216 | wxPyEndAllowThreads(__tstate); | |
21217 | if (PyErr_Occurred()) SWIG_fail; | |
21218 | } | |
21219 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
21220 | return resultobj; | |
21221 | fail: | |
21222 | return NULL; | |
21223 | } | |
21224 | ||
21225 | ||
21226 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21227 | PyObject *resultobj = 0; | |
21228 | wxDC *arg1 = (wxDC *) 0 ; | |
21229 | int result; | |
21230 | void *argp1 = 0 ; | |
21231 | int res1 = 0 ; | |
21232 | PyObject *swig_obj[1] ; | |
21233 | ||
21234 | if (!args) SWIG_fail; | |
21235 | swig_obj[0] = args; | |
21236 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21237 | if (!SWIG_IsOK(res1)) { | |
21238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21239 | } | |
21240 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21241 | { | |
21242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21243 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
21244 | wxPyEndAllowThreads(__tstate); | |
21245 | if (PyErr_Occurred()) SWIG_fail; | |
21246 | } | |
21247 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21248 | return resultobj; | |
21249 | fail: | |
21250 | return NULL; | |
21251 | } | |
21252 | ||
21253 | ||
21254 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21255 | PyObject *resultobj = 0; | |
21256 | wxDC *arg1 = (wxDC *) 0 ; | |
21257 | int result; | |
21258 | void *argp1 = 0 ; | |
21259 | int res1 = 0 ; | |
21260 | PyObject *swig_obj[1] ; | |
21261 | ||
21262 | if (!args) SWIG_fail; | |
21263 | swig_obj[0] = args; | |
21264 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21265 | if (!SWIG_IsOK(res1)) { | |
21266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21267 | } | |
21268 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21269 | { | |
21270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21271 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
21272 | wxPyEndAllowThreads(__tstate); | |
21273 | if (PyErr_Occurred()) SWIG_fail; | |
21274 | } | |
21275 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21276 | return resultobj; | |
21277 | fail: | |
21278 | return NULL; | |
21279 | } | |
21280 | ||
21281 | ||
21282 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21283 | PyObject *resultobj = 0; | |
21284 | wxDC *arg1 = (wxDC *) 0 ; | |
21285 | wxString *arg2 = 0 ; | |
21286 | int *arg3 = (int *) 0 ; | |
21287 | int *arg4 = (int *) 0 ; | |
21288 | void *argp1 = 0 ; | |
21289 | int res1 = 0 ; | |
21290 | bool temp2 = false ; | |
21291 | int temp3 ; | |
21292 | int res3 = SWIG_TMPOBJ ; | |
21293 | int temp4 ; | |
21294 | int res4 = SWIG_TMPOBJ ; | |
21295 | PyObject * obj0 = 0 ; | |
21296 | PyObject * obj1 = 0 ; | |
21297 | char * kwnames[] = { | |
21298 | (char *) "self",(char *) "string", NULL | |
21299 | }; | |
21300 | ||
21301 | arg3 = &temp3; | |
21302 | arg4 = &temp4; | |
21303 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
21304 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21305 | if (!SWIG_IsOK(res1)) { | |
21306 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21307 | } | |
21308 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21309 | { | |
21310 | arg2 = wxString_in_helper(obj1); | |
21311 | if (arg2 == NULL) SWIG_fail; | |
21312 | temp2 = true; | |
21313 | } | |
21314 | { | |
21315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21316 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
21317 | wxPyEndAllowThreads(__tstate); | |
21318 | if (PyErr_Occurred()) SWIG_fail; | |
21319 | } | |
21320 | resultobj = SWIG_Py_Void(); | |
21321 | if (SWIG_IsTmpObj(res3)) { | |
21322 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21323 | } else { | |
21324 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21325 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21326 | } | |
21327 | if (SWIG_IsTmpObj(res4)) { | |
21328 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21329 | } else { | |
21330 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21331 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21332 | } | |
21333 | { | |
21334 | if (temp2) | |
21335 | delete arg2; | |
21336 | } | |
21337 | return resultobj; | |
21338 | fail: | |
21339 | { | |
21340 | if (temp2) | |
21341 | delete arg2; | |
21342 | } | |
21343 | return NULL; | |
21344 | } | |
21345 | ||
21346 | ||
21347 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21348 | PyObject *resultobj = 0; | |
21349 | wxDC *arg1 = (wxDC *) 0 ; | |
21350 | wxString *arg2 = 0 ; | |
21351 | int *arg3 = (int *) 0 ; | |
21352 | int *arg4 = (int *) 0 ; | |
21353 | int *arg5 = (int *) 0 ; | |
21354 | int *arg6 = (int *) 0 ; | |
21355 | wxFont *arg7 = (wxFont *) NULL ; | |
21356 | void *argp1 = 0 ; | |
21357 | int res1 = 0 ; | |
21358 | bool temp2 = false ; | |
21359 | int temp3 ; | |
21360 | int res3 = SWIG_TMPOBJ ; | |
21361 | int temp4 ; | |
21362 | int res4 = SWIG_TMPOBJ ; | |
21363 | int temp5 ; | |
21364 | int res5 = SWIG_TMPOBJ ; | |
21365 | int temp6 ; | |
21366 | int res6 = SWIG_TMPOBJ ; | |
21367 | void *argp7 = 0 ; | |
21368 | int res7 = 0 ; | |
21369 | PyObject * obj0 = 0 ; | |
21370 | PyObject * obj1 = 0 ; | |
21371 | PyObject * obj2 = 0 ; | |
21372 | char * kwnames[] = { | |
21373 | (char *) "self",(char *) "string",(char *) "font", NULL | |
21374 | }; | |
21375 | ||
21376 | arg3 = &temp3; | |
21377 | arg4 = &temp4; | |
21378 | arg5 = &temp5; | |
21379 | arg6 = &temp6; | |
21380 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21381 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21382 | if (!SWIG_IsOK(res1)) { | |
21383 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21384 | } | |
21385 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21386 | { | |
21387 | arg2 = wxString_in_helper(obj1); | |
21388 | if (arg2 == NULL) SWIG_fail; | |
21389 | temp2 = true; | |
21390 | } | |
21391 | if (obj2) { | |
21392 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21393 | if (!SWIG_IsOK(res7)) { | |
21394 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
093d3ff1 | 21395 | } |
554f62e9 RD |
21396 | arg7 = reinterpret_cast< wxFont * >(argp7); |
21397 | } | |
21398 | { | |
21399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21400 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
21401 | wxPyEndAllowThreads(__tstate); | |
21402 | if (PyErr_Occurred()) SWIG_fail; | |
21403 | } | |
21404 | resultobj = SWIG_Py_Void(); | |
21405 | if (SWIG_IsTmpObj(res3)) { | |
21406 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21407 | } else { | |
21408 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21409 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21410 | } | |
21411 | if (SWIG_IsTmpObj(res4)) { | |
21412 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21413 | } else { | |
21414 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21415 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21416 | } | |
21417 | if (SWIG_IsTmpObj(res5)) { | |
21418 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21419 | } else { | |
21420 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21421 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21422 | } | |
21423 | if (SWIG_IsTmpObj(res6)) { | |
21424 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
21425 | } else { | |
21426 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21427 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
21428 | } | |
21429 | { | |
21430 | if (temp2) | |
21431 | delete arg2; | |
21432 | } | |
21433 | return resultobj; | |
21434 | fail: | |
21435 | { | |
21436 | if (temp2) | |
21437 | delete arg2; | |
21438 | } | |
21439 | return NULL; | |
21440 | } | |
21441 | ||
21442 | ||
21443 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21444 | PyObject *resultobj = 0; | |
21445 | wxDC *arg1 = (wxDC *) 0 ; | |
21446 | wxString *arg2 = 0 ; | |
21447 | int *arg3 = (int *) 0 ; | |
21448 | int *arg4 = (int *) 0 ; | |
21449 | int *arg5 = (int *) 0 ; | |
21450 | wxFont *arg6 = (wxFont *) NULL ; | |
21451 | void *argp1 = 0 ; | |
21452 | int res1 = 0 ; | |
21453 | bool temp2 = false ; | |
21454 | int temp3 ; | |
21455 | int res3 = SWIG_TMPOBJ ; | |
21456 | int temp4 ; | |
21457 | int res4 = SWIG_TMPOBJ ; | |
21458 | int temp5 ; | |
21459 | int res5 = SWIG_TMPOBJ ; | |
21460 | void *argp6 = 0 ; | |
21461 | int res6 = 0 ; | |
21462 | PyObject * obj0 = 0 ; | |
21463 | PyObject * obj1 = 0 ; | |
21464 | PyObject * obj2 = 0 ; | |
21465 | char * kwnames[] = { | |
21466 | (char *) "self",(char *) "text",(char *) "font", NULL | |
21467 | }; | |
21468 | ||
21469 | arg3 = &temp3; | |
21470 | arg4 = &temp4; | |
21471 | arg5 = &temp5; | |
21472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21474 | if (!SWIG_IsOK(res1)) { | |
21475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21476 | } | |
21477 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21478 | { | |
21479 | arg2 = wxString_in_helper(obj1); | |
21480 | if (arg2 == NULL) SWIG_fail; | |
21481 | temp2 = true; | |
21482 | } | |
21483 | if (obj2) { | |
21484 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21485 | if (!SWIG_IsOK(res6)) { | |
21486 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
093d3ff1 | 21487 | } |
554f62e9 RD |
21488 | arg6 = reinterpret_cast< wxFont * >(argp6); |
21489 | } | |
21490 | { | |
21491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21492 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
21493 | wxPyEndAllowThreads(__tstate); | |
21494 | if (PyErr_Occurred()) SWIG_fail; | |
21495 | } | |
21496 | resultobj = SWIG_Py_Void(); | |
21497 | if (SWIG_IsTmpObj(res3)) { | |
21498 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21499 | } else { | |
21500 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21501 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21502 | } | |
21503 | if (SWIG_IsTmpObj(res4)) { | |
21504 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21505 | } else { | |
21506 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21507 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21508 | } | |
21509 | if (SWIG_IsTmpObj(res5)) { | |
21510 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21511 | } else { | |
21512 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21513 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21514 | } | |
21515 | { | |
21516 | if (temp2) | |
21517 | delete arg2; | |
21518 | } | |
21519 | return resultobj; | |
21520 | fail: | |
21521 | { | |
21522 | if (temp2) | |
21523 | delete arg2; | |
21524 | } | |
21525 | return NULL; | |
21526 | } | |
21527 | ||
21528 | ||
21529 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21530 | PyObject *resultobj = 0; | |
21531 | wxDC *arg1 = (wxDC *) 0 ; | |
21532 | wxString *arg2 = 0 ; | |
21533 | wxArrayInt result; | |
21534 | void *argp1 = 0 ; | |
21535 | int res1 = 0 ; | |
21536 | bool temp2 = false ; | |
21537 | PyObject * obj0 = 0 ; | |
21538 | PyObject * obj1 = 0 ; | |
21539 | char * kwnames[] = { | |
21540 | (char *) "self",(char *) "text", NULL | |
21541 | }; | |
21542 | ||
21543 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
21544 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21545 | if (!SWIG_IsOK(res1)) { | |
21546 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21547 | } | |
21548 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21549 | { | |
21550 | arg2 = wxString_in_helper(obj1); | |
21551 | if (arg2 == NULL) SWIG_fail; | |
21552 | temp2 = true; | |
21553 | } | |
21554 | { | |
21555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21556 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
21557 | wxPyEndAllowThreads(__tstate); | |
21558 | if (PyErr_Occurred()) SWIG_fail; | |
21559 | } | |
21560 | { | |
b39fe951 | 21561 | resultobj = wxArrayInt2PyList_helper(result); |
554f62e9 RD |
21562 | } |
21563 | { | |
21564 | if (temp2) | |
21565 | delete arg2; | |
21566 | } | |
21567 | return resultobj; | |
21568 | fail: | |
21569 | { | |
21570 | if (temp2) | |
21571 | delete arg2; | |
21572 | } | |
21573 | return NULL; | |
21574 | } | |
21575 | ||
21576 | ||
21577 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21578 | PyObject *resultobj = 0; | |
21579 | wxDC *arg1 = (wxDC *) 0 ; | |
21580 | wxSize result; | |
21581 | void *argp1 = 0 ; | |
21582 | int res1 = 0 ; | |
21583 | PyObject *swig_obj[1] ; | |
21584 | ||
21585 | if (!args) SWIG_fail; | |
21586 | swig_obj[0] = args; | |
21587 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21588 | if (!SWIG_IsOK(res1)) { | |
21589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21590 | } | |
21591 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21592 | { | |
21593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21594 | result = (arg1)->GetSize(); | |
21595 | wxPyEndAllowThreads(__tstate); | |
21596 | if (PyErr_Occurred()) SWIG_fail; | |
21597 | } | |
21598 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21599 | return resultobj; | |
21600 | fail: | |
21601 | return NULL; | |
21602 | } | |
21603 | ||
21604 | ||
21605 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21606 | PyObject *resultobj = 0; | |
21607 | wxDC *arg1 = (wxDC *) 0 ; | |
21608 | int *arg2 = (int *) 0 ; | |
21609 | int *arg3 = (int *) 0 ; | |
21610 | void *argp1 = 0 ; | |
21611 | int res1 = 0 ; | |
21612 | int temp2 ; | |
21613 | int res2 = SWIG_TMPOBJ ; | |
21614 | int temp3 ; | |
21615 | int res3 = SWIG_TMPOBJ ; | |
21616 | PyObject *swig_obj[1] ; | |
21617 | ||
21618 | arg2 = &temp2; | |
21619 | arg3 = &temp3; | |
21620 | if (!args) SWIG_fail; | |
21621 | swig_obj[0] = args; | |
21622 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21623 | if (!SWIG_IsOK(res1)) { | |
21624 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21625 | } | |
21626 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21627 | { | |
21628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21629 | (arg1)->GetSize(arg2,arg3); | |
21630 | wxPyEndAllowThreads(__tstate); | |
21631 | if (PyErr_Occurred()) SWIG_fail; | |
21632 | } | |
21633 | resultobj = SWIG_Py_Void(); | |
21634 | if (SWIG_IsTmpObj(res2)) { | |
21635 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21636 | } else { | |
21637 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21638 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21639 | } | |
21640 | if (SWIG_IsTmpObj(res3)) { | |
21641 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21642 | } else { | |
21643 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21644 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21645 | } | |
21646 | return resultobj; | |
21647 | fail: | |
21648 | return NULL; | |
21649 | } | |
21650 | ||
21651 | ||
21652 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21653 | PyObject *resultobj = 0; | |
21654 | wxDC *arg1 = (wxDC *) 0 ; | |
21655 | wxSize result; | |
21656 | void *argp1 = 0 ; | |
21657 | int res1 = 0 ; | |
21658 | PyObject *swig_obj[1] ; | |
21659 | ||
21660 | if (!args) SWIG_fail; | |
21661 | swig_obj[0] = args; | |
21662 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21663 | if (!SWIG_IsOK(res1)) { | |
21664 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21665 | } | |
21666 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21667 | { | |
21668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21669 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
21670 | wxPyEndAllowThreads(__tstate); | |
21671 | if (PyErr_Occurred()) SWIG_fail; | |
21672 | } | |
21673 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21674 | return resultobj; | |
21675 | fail: | |
21676 | return NULL; | |
21677 | } | |
21678 | ||
21679 | ||
21680 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21681 | PyObject *resultobj = 0; | |
21682 | wxDC *arg1 = (wxDC *) 0 ; | |
21683 | int *arg2 = (int *) 0 ; | |
21684 | int *arg3 = (int *) 0 ; | |
21685 | void *argp1 = 0 ; | |
21686 | int res1 = 0 ; | |
21687 | int temp2 ; | |
21688 | int res2 = SWIG_TMPOBJ ; | |
21689 | int 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_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21700 | } | |
21701 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21702 | { | |
21703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21704 | ((wxDC const *)arg1)->GetSizeMM(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_int((*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_int, new_flags)); | |
21714 | } | |
21715 | if (SWIG_IsTmpObj(res3)) { | |
21716 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*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_int, new_flags)); | |
21720 | } | |
21721 | return resultobj; | |
21722 | fail: | |
21723 | return NULL; | |
21724 | } | |
21725 | ||
21726 | ||
21727 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21728 | PyObject *resultobj = 0; | |
21729 | wxDC *arg1 = (wxDC *) 0 ; | |
21730 | int arg2 ; | |
21731 | int result; | |
21732 | void *argp1 = 0 ; | |
21733 | int res1 = 0 ; | |
21734 | int val2 ; | |
21735 | int ecode2 = 0 ; | |
21736 | PyObject * obj0 = 0 ; | |
21737 | PyObject * obj1 = 0 ; | |
21738 | char * kwnames[] = { | |
21739 | (char *) "self",(char *) "x", NULL | |
21740 | }; | |
21741 | ||
21742 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21743 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21744 | if (!SWIG_IsOK(res1)) { | |
21745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21746 | } | |
21747 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21748 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21749 | if (!SWIG_IsOK(ecode2)) { | |
21750 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
21751 | } | |
21752 | arg2 = static_cast< int >(val2); | |
21753 | { | |
21754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21755 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
21756 | wxPyEndAllowThreads(__tstate); | |
21757 | if (PyErr_Occurred()) SWIG_fail; | |
21758 | } | |
21759 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21760 | return resultobj; | |
21761 | fail: | |
21762 | return NULL; | |
21763 | } | |
21764 | ||
21765 | ||
21766 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21767 | PyObject *resultobj = 0; | |
21768 | wxDC *arg1 = (wxDC *) 0 ; | |
21769 | int arg2 ; | |
21770 | int result; | |
21771 | void *argp1 = 0 ; | |
21772 | int res1 = 0 ; | |
21773 | int val2 ; | |
21774 | int ecode2 = 0 ; | |
21775 | PyObject * obj0 = 0 ; | |
21776 | PyObject * obj1 = 0 ; | |
21777 | char * kwnames[] = { | |
21778 | (char *) "self",(char *) "y", NULL | |
21779 | }; | |
21780 | ||
21781 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21782 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21783 | if (!SWIG_IsOK(res1)) { | |
21784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21785 | } | |
21786 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21787 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21788 | if (!SWIG_IsOK(ecode2)) { | |
21789 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
21790 | } | |
21791 | arg2 = static_cast< int >(val2); | |
21792 | { | |
21793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21794 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
21795 | wxPyEndAllowThreads(__tstate); | |
21796 | if (PyErr_Occurred()) SWIG_fail; | |
21797 | } | |
21798 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21799 | return resultobj; | |
21800 | fail: | |
21801 | return NULL; | |
21802 | } | |
21803 | ||
21804 | ||
21805 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21806 | PyObject *resultobj = 0; | |
21807 | wxDC *arg1 = (wxDC *) 0 ; | |
21808 | int arg2 ; | |
21809 | int result; | |
21810 | void *argp1 = 0 ; | |
21811 | int res1 = 0 ; | |
21812 | int val2 ; | |
21813 | int ecode2 = 0 ; | |
21814 | PyObject * obj0 = 0 ; | |
21815 | PyObject * obj1 = 0 ; | |
21816 | char * kwnames[] = { | |
21817 | (char *) "self",(char *) "x", NULL | |
21818 | }; | |
21819 | ||
21820 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21821 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21822 | if (!SWIG_IsOK(res1)) { | |
21823 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21824 | } | |
21825 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21826 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21827 | if (!SWIG_IsOK(ecode2)) { | |
21828 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
21829 | } | |
21830 | arg2 = static_cast< int >(val2); | |
21831 | { | |
21832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21833 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
21834 | wxPyEndAllowThreads(__tstate); | |
21835 | if (PyErr_Occurred()) SWIG_fail; | |
21836 | } | |
21837 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21838 | return resultobj; | |
21839 | fail: | |
21840 | return NULL; | |
21841 | } | |
21842 | ||
21843 | ||
21844 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21845 | PyObject *resultobj = 0; | |
21846 | wxDC *arg1 = (wxDC *) 0 ; | |
21847 | int arg2 ; | |
21848 | int result; | |
21849 | void *argp1 = 0 ; | |
21850 | int res1 = 0 ; | |
21851 | int val2 ; | |
21852 | int ecode2 = 0 ; | |
21853 | PyObject * obj0 = 0 ; | |
21854 | PyObject * obj1 = 0 ; | |
21855 | char * kwnames[] = { | |
21856 | (char *) "self",(char *) "y", NULL | |
21857 | }; | |
21858 | ||
21859 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21860 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21861 | if (!SWIG_IsOK(res1)) { | |
21862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21863 | } | |
21864 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21865 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21866 | if (!SWIG_IsOK(ecode2)) { | |
21867 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
21868 | } | |
21869 | arg2 = static_cast< int >(val2); | |
21870 | { | |
21871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21872 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
21873 | wxPyEndAllowThreads(__tstate); | |
21874 | if (PyErr_Occurred()) SWIG_fail; | |
21875 | } | |
21876 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21877 | return resultobj; | |
21878 | fail: | |
21879 | return NULL; | |
21880 | } | |
21881 | ||
21882 | ||
21883 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21884 | PyObject *resultobj = 0; | |
21885 | wxDC *arg1 = (wxDC *) 0 ; | |
21886 | int arg2 ; | |
21887 | int result; | |
21888 | void *argp1 = 0 ; | |
21889 | int res1 = 0 ; | |
21890 | int val2 ; | |
21891 | int ecode2 = 0 ; | |
21892 | PyObject * obj0 = 0 ; | |
21893 | PyObject * obj1 = 0 ; | |
21894 | char * kwnames[] = { | |
21895 | (char *) "self",(char *) "x", NULL | |
21896 | }; | |
21897 | ||
21898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
21899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21900 | if (!SWIG_IsOK(res1)) { | |
21901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21902 | } | |
21903 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21904 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21905 | if (!SWIG_IsOK(ecode2)) { | |
21906 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
21907 | } | |
21908 | arg2 = static_cast< int >(val2); | |
21909 | { | |
21910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21911 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
21912 | wxPyEndAllowThreads(__tstate); | |
21913 | if (PyErr_Occurred()) SWIG_fail; | |
21914 | } | |
21915 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21916 | return resultobj; | |
21917 | fail: | |
21918 | return NULL; | |
21919 | } | |
21920 | ||
21921 | ||
21922 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21923 | PyObject *resultobj = 0; | |
21924 | wxDC *arg1 = (wxDC *) 0 ; | |
21925 | int arg2 ; | |
21926 | int result; | |
21927 | void *argp1 = 0 ; | |
21928 | int res1 = 0 ; | |
21929 | int val2 ; | |
21930 | int ecode2 = 0 ; | |
21931 | PyObject * obj0 = 0 ; | |
21932 | PyObject * obj1 = 0 ; | |
21933 | char * kwnames[] = { | |
21934 | (char *) "self",(char *) "y", NULL | |
21935 | }; | |
21936 | ||
21937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
21938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21939 | if (!SWIG_IsOK(res1)) { | |
21940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21941 | } | |
21942 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21943 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21944 | if (!SWIG_IsOK(ecode2)) { | |
21945 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
21946 | } | |
21947 | arg2 = static_cast< int >(val2); | |
21948 | { | |
21949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21950 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
21951 | wxPyEndAllowThreads(__tstate); | |
21952 | if (PyErr_Occurred()) SWIG_fail; | |
21953 | } | |
21954 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21955 | return resultobj; | |
21956 | fail: | |
21957 | return NULL; | |
21958 | } | |
21959 | ||
21960 | ||
21961 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21962 | PyObject *resultobj = 0; | |
21963 | wxDC *arg1 = (wxDC *) 0 ; | |
21964 | int arg2 ; | |
21965 | int result; | |
21966 | void *argp1 = 0 ; | |
21967 | int res1 = 0 ; | |
21968 | int val2 ; | |
21969 | int ecode2 = 0 ; | |
21970 | PyObject * obj0 = 0 ; | |
21971 | PyObject * obj1 = 0 ; | |
21972 | char * kwnames[] = { | |
21973 | (char *) "self",(char *) "x", NULL | |
21974 | }; | |
21975 | ||
21976 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
21977 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21978 | if (!SWIG_IsOK(res1)) { | |
21979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21980 | } | |
21981 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21982 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21983 | if (!SWIG_IsOK(ecode2)) { | |
21984 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
21985 | } | |
21986 | arg2 = static_cast< int >(val2); | |
21987 | { | |
21988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21989 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
21990 | wxPyEndAllowThreads(__tstate); | |
21991 | if (PyErr_Occurred()) SWIG_fail; | |
21992 | } | |
21993 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21994 | return resultobj; | |
21995 | fail: | |
21996 | return NULL; | |
21997 | } | |
21998 | ||
21999 | ||
22000 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22001 | PyObject *resultobj = 0; | |
22002 | wxDC *arg1 = (wxDC *) 0 ; | |
22003 | int arg2 ; | |
22004 | int result; | |
22005 | void *argp1 = 0 ; | |
22006 | int res1 = 0 ; | |
22007 | int val2 ; | |
22008 | int ecode2 = 0 ; | |
22009 | PyObject * obj0 = 0 ; | |
22010 | PyObject * obj1 = 0 ; | |
22011 | char * kwnames[] = { | |
22012 | (char *) "self",(char *) "y", NULL | |
22013 | }; | |
22014 | ||
22015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22017 | if (!SWIG_IsOK(res1)) { | |
22018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22019 | } | |
22020 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22021 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22022 | if (!SWIG_IsOK(ecode2)) { | |
22023 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
22024 | } | |
22025 | arg2 = static_cast< int >(val2); | |
22026 | { | |
22027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22028 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
22029 | wxPyEndAllowThreads(__tstate); | |
22030 | if (PyErr_Occurred()) SWIG_fail; | |
22031 | } | |
22032 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22033 | return resultobj; | |
22034 | fail: | |
22035 | return NULL; | |
22036 | } | |
22037 | ||
22038 | ||
22039 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22040 | PyObject *resultobj = 0; | |
22041 | wxDC *arg1 = (wxDC *) 0 ; | |
22042 | bool result; | |
22043 | void *argp1 = 0 ; | |
22044 | int res1 = 0 ; | |
22045 | PyObject *swig_obj[1] ; | |
22046 | ||
22047 | if (!args) SWIG_fail; | |
22048 | swig_obj[0] = args; | |
22049 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22050 | if (!SWIG_IsOK(res1)) { | |
22051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22052 | } | |
22053 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22054 | { | |
22055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22056 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
22057 | wxPyEndAllowThreads(__tstate); | |
22058 | if (PyErr_Occurred()) SWIG_fail; | |
22059 | } | |
22060 | { | |
22061 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22062 | } | |
22063 | return resultobj; | |
22064 | fail: | |
22065 | return NULL; | |
22066 | } | |
22067 | ||
22068 | ||
22069 | SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22070 | PyObject *resultobj = 0; | |
22071 | wxDC *arg1 = (wxDC *) 0 ; | |
22072 | bool result; | |
22073 | void *argp1 = 0 ; | |
22074 | int res1 = 0 ; | |
22075 | PyObject *swig_obj[1] ; | |
22076 | ||
22077 | if (!args) SWIG_fail; | |
22078 | swig_obj[0] = args; | |
22079 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22080 | if (!SWIG_IsOK(res1)) { | |
22081 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22082 | } | |
22083 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22084 | { | |
22085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22086 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
22087 | wxPyEndAllowThreads(__tstate); | |
22088 | if (PyErr_Occurred()) SWIG_fail; | |
22089 | } | |
22090 | { | |
22091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22092 | } | |
22093 | return resultobj; | |
22094 | fail: | |
22095 | return NULL; | |
22096 | } | |
22097 | ||
22098 | ||
22099 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22100 | PyObject *resultobj = 0; | |
22101 | wxDC *arg1 = (wxDC *) 0 ; | |
22102 | int result; | |
22103 | void *argp1 = 0 ; | |
22104 | int res1 = 0 ; | |
22105 | PyObject *swig_obj[1] ; | |
22106 | ||
22107 | if (!args) SWIG_fail; | |
22108 | swig_obj[0] = args; | |
22109 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22110 | if (!SWIG_IsOK(res1)) { | |
22111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22112 | } | |
22113 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22114 | { | |
22115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22116 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
22117 | wxPyEndAllowThreads(__tstate); | |
22118 | if (PyErr_Occurred()) SWIG_fail; | |
22119 | } | |
22120 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22121 | return resultobj; | |
22122 | fail: | |
22123 | return NULL; | |
22124 | } | |
22125 | ||
22126 | ||
22127 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22128 | PyObject *resultobj = 0; | |
22129 | wxDC *arg1 = (wxDC *) 0 ; | |
22130 | wxSize result; | |
22131 | void *argp1 = 0 ; | |
22132 | int res1 = 0 ; | |
22133 | PyObject *swig_obj[1] ; | |
22134 | ||
22135 | if (!args) SWIG_fail; | |
22136 | swig_obj[0] = args; | |
22137 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22138 | if (!SWIG_IsOK(res1)) { | |
22139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22140 | } | |
22141 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22142 | { | |
22143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22144 | result = ((wxDC const *)arg1)->GetPPI(); | |
22145 | wxPyEndAllowThreads(__tstate); | |
22146 | if (PyErr_Occurred()) SWIG_fail; | |
22147 | } | |
22148 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22149 | return resultobj; | |
22150 | fail: | |
22151 | return NULL; | |
22152 | } | |
22153 | ||
22154 | ||
b39fe951 | 22155 | SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
22156 | PyObject *resultobj = 0; |
22157 | wxDC *arg1 = (wxDC *) 0 ; | |
22158 | bool result; | |
22159 | void *argp1 = 0 ; | |
22160 | int res1 = 0 ; | |
22161 | PyObject *swig_obj[1] ; | |
22162 | ||
22163 | if (!args) SWIG_fail; | |
22164 | swig_obj[0] = args; | |
22165 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22166 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 22167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'"); |
554f62e9 RD |
22168 | } |
22169 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22170 | { | |
22171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 22172 | result = (bool)((wxDC const *)arg1)->IsOk(); |
554f62e9 RD |
22173 | wxPyEndAllowThreads(__tstate); |
22174 | if (PyErr_Occurred()) SWIG_fail; | |
22175 | } | |
22176 | { | |
22177 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22178 | } | |
22179 | return resultobj; | |
22180 | fail: | |
22181 | return NULL; | |
22182 | } | |
22183 | ||
22184 | ||
22185 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22186 | PyObject *resultobj = 0; | |
22187 | wxDC *arg1 = (wxDC *) 0 ; | |
22188 | int result; | |
22189 | void *argp1 = 0 ; | |
22190 | int res1 = 0 ; | |
22191 | PyObject *swig_obj[1] ; | |
22192 | ||
22193 | if (!args) SWIG_fail; | |
22194 | swig_obj[0] = args; | |
22195 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22196 | if (!SWIG_IsOK(res1)) { | |
22197 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22198 | } | |
22199 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22200 | { | |
22201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22202 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
22203 | wxPyEndAllowThreads(__tstate); | |
22204 | if (PyErr_Occurred()) SWIG_fail; | |
22205 | } | |
22206 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22207 | return resultobj; | |
22208 | fail: | |
22209 | return NULL; | |
22210 | } | |
22211 | ||
22212 | ||
22213 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22214 | PyObject *resultobj = 0; | |
22215 | wxDC *arg1 = (wxDC *) 0 ; | |
22216 | wxBrush *result = 0 ; | |
22217 | void *argp1 = 0 ; | |
22218 | int res1 = 0 ; | |
22219 | PyObject *swig_obj[1] ; | |
22220 | ||
22221 | if (!args) SWIG_fail; | |
22222 | swig_obj[0] = args; | |
22223 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22224 | if (!SWIG_IsOK(res1)) { | |
22225 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22226 | } | |
22227 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22228 | { | |
22229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22230 | { |
554f62e9 RD |
22231 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
22232 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 22233 | } |
554f62e9 RD |
22234 | wxPyEndAllowThreads(__tstate); |
22235 | if (PyErr_Occurred()) SWIG_fail; | |
22236 | } | |
22237 | { | |
22238 | wxBrush* resultptr = new wxBrush(*result); | |
22239 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
22240 | } | |
22241 | return resultobj; | |
22242 | fail: | |
22243 | return NULL; | |
22244 | } | |
22245 | ||
22246 | ||
22247 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22248 | PyObject *resultobj = 0; | |
22249 | wxDC *arg1 = (wxDC *) 0 ; | |
22250 | wxBrush *result = 0 ; | |
22251 | void *argp1 = 0 ; | |
22252 | int res1 = 0 ; | |
22253 | PyObject *swig_obj[1] ; | |
22254 | ||
22255 | if (!args) SWIG_fail; | |
22256 | swig_obj[0] = args; | |
22257 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22258 | if (!SWIG_IsOK(res1)) { | |
22259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22260 | } | |
22261 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22262 | { | |
22263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22264 | { |
554f62e9 RD |
22265 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
22266 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 22267 | } |
554f62e9 RD |
22268 | wxPyEndAllowThreads(__tstate); |
22269 | if (PyErr_Occurred()) SWIG_fail; | |
22270 | } | |
22271 | { | |
22272 | wxBrush* resultptr = new wxBrush(*result); | |
22273 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
22274 | } | |
22275 | return resultobj; | |
22276 | fail: | |
22277 | return NULL; | |
22278 | } | |
22279 | ||
22280 | ||
22281 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22282 | PyObject *resultobj = 0; | |
22283 | wxDC *arg1 = (wxDC *) 0 ; | |
22284 | wxFont *result = 0 ; | |
22285 | void *argp1 = 0 ; | |
22286 | int res1 = 0 ; | |
22287 | PyObject *swig_obj[1] ; | |
22288 | ||
22289 | if (!args) SWIG_fail; | |
22290 | swig_obj[0] = args; | |
22291 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22292 | if (!SWIG_IsOK(res1)) { | |
22293 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22294 | } | |
22295 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22296 | { | |
22297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22298 | { |
554f62e9 RD |
22299 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
22300 | result = (wxFont *) &_result_ref; | |
093d3ff1 | 22301 | } |
554f62e9 RD |
22302 | wxPyEndAllowThreads(__tstate); |
22303 | if (PyErr_Occurred()) SWIG_fail; | |
22304 | } | |
22305 | { | |
22306 | wxFont* resultptr = new wxFont(*result); | |
22307 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
22308 | } | |
22309 | return resultobj; | |
22310 | fail: | |
22311 | return NULL; | |
22312 | } | |
22313 | ||
22314 | ||
22315 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22316 | PyObject *resultobj = 0; | |
22317 | wxDC *arg1 = (wxDC *) 0 ; | |
22318 | wxPen *result = 0 ; | |
22319 | void *argp1 = 0 ; | |
22320 | int res1 = 0 ; | |
22321 | PyObject *swig_obj[1] ; | |
22322 | ||
22323 | if (!args) SWIG_fail; | |
22324 | swig_obj[0] = args; | |
22325 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22326 | if (!SWIG_IsOK(res1)) { | |
22327 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22328 | } | |
22329 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22330 | { | |
22331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22332 | { |
554f62e9 RD |
22333 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
22334 | result = (wxPen *) &_result_ref; | |
093d3ff1 | 22335 | } |
554f62e9 RD |
22336 | wxPyEndAllowThreads(__tstate); |
22337 | if (PyErr_Occurred()) SWIG_fail; | |
22338 | } | |
22339 | { | |
22340 | wxPen* resultptr = new wxPen(*result); | |
22341 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
22342 | } | |
22343 | return resultobj; | |
22344 | fail: | |
22345 | return NULL; | |
22346 | } | |
22347 | ||
22348 | ||
22349 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22350 | PyObject *resultobj = 0; | |
22351 | wxDC *arg1 = (wxDC *) 0 ; | |
22352 | wxColour *result = 0 ; | |
22353 | void *argp1 = 0 ; | |
22354 | int res1 = 0 ; | |
22355 | PyObject *swig_obj[1] ; | |
22356 | ||
22357 | if (!args) SWIG_fail; | |
22358 | swig_obj[0] = args; | |
22359 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22360 | if (!SWIG_IsOK(res1)) { | |
22361 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22362 | } | |
22363 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22364 | { | |
22365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22366 | { |
554f62e9 RD |
22367 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
22368 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22369 | } |
554f62e9 RD |
22370 | wxPyEndAllowThreads(__tstate); |
22371 | if (PyErr_Occurred()) SWIG_fail; | |
22372 | } | |
22373 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22374 | return resultobj; | |
22375 | fail: | |
22376 | return NULL; | |
22377 | } | |
22378 | ||
22379 | ||
22380 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22381 | PyObject *resultobj = 0; | |
22382 | wxDC *arg1 = (wxDC *) 0 ; | |
22383 | wxColour *result = 0 ; | |
22384 | void *argp1 = 0 ; | |
22385 | int res1 = 0 ; | |
22386 | PyObject *swig_obj[1] ; | |
22387 | ||
22388 | if (!args) SWIG_fail; | |
22389 | swig_obj[0] = args; | |
22390 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22391 | if (!SWIG_IsOK(res1)) { | |
22392 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22393 | } | |
22394 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22395 | { | |
22396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22397 | { |
554f62e9 RD |
22398 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
22399 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22400 | } |
554f62e9 RD |
22401 | wxPyEndAllowThreads(__tstate); |
22402 | if (PyErr_Occurred()) SWIG_fail; | |
22403 | } | |
22404 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22405 | return resultobj; | |
22406 | fail: | |
22407 | return NULL; | |
22408 | } | |
22409 | ||
22410 | ||
22411 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22412 | PyObject *resultobj = 0; | |
22413 | wxDC *arg1 = (wxDC *) 0 ; | |
22414 | wxColour *arg2 = 0 ; | |
22415 | void *argp1 = 0 ; | |
22416 | int res1 = 0 ; | |
22417 | wxColour temp2 ; | |
22418 | PyObject * obj0 = 0 ; | |
22419 | PyObject * obj1 = 0 ; | |
22420 | char * kwnames[] = { | |
22421 | (char *) "self",(char *) "colour", NULL | |
22422 | }; | |
22423 | ||
22424 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22425 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22426 | if (!SWIG_IsOK(res1)) { | |
22427 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22428 | } | |
22429 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22430 | { | |
22431 | arg2 = &temp2; | |
22432 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22433 | } | |
22434 | { | |
22435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22436 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
22437 | wxPyEndAllowThreads(__tstate); | |
22438 | if (PyErr_Occurred()) SWIG_fail; | |
22439 | } | |
22440 | resultobj = SWIG_Py_Void(); | |
22441 | return resultobj; | |
22442 | fail: | |
22443 | return NULL; | |
22444 | } | |
22445 | ||
22446 | ||
22447 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22448 | PyObject *resultobj = 0; | |
22449 | wxDC *arg1 = (wxDC *) 0 ; | |
22450 | wxColour *arg2 = 0 ; | |
22451 | void *argp1 = 0 ; | |
22452 | int res1 = 0 ; | |
22453 | wxColour temp2 ; | |
22454 | PyObject * obj0 = 0 ; | |
22455 | PyObject * obj1 = 0 ; | |
22456 | char * kwnames[] = { | |
22457 | (char *) "self",(char *) "colour", NULL | |
22458 | }; | |
22459 | ||
22460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22462 | if (!SWIG_IsOK(res1)) { | |
22463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22464 | } | |
22465 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22466 | { | |
22467 | arg2 = &temp2; | |
22468 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22469 | } | |
22470 | { | |
22471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22472 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
22473 | wxPyEndAllowThreads(__tstate); | |
22474 | if (PyErr_Occurred()) SWIG_fail; | |
22475 | } | |
22476 | resultobj = SWIG_Py_Void(); | |
22477 | return resultobj; | |
22478 | fail: | |
22479 | return NULL; | |
22480 | } | |
22481 | ||
22482 | ||
22483 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22484 | PyObject *resultobj = 0; | |
22485 | wxDC *arg1 = (wxDC *) 0 ; | |
22486 | int result; | |
22487 | void *argp1 = 0 ; | |
22488 | int res1 = 0 ; | |
22489 | PyObject *swig_obj[1] ; | |
22490 | ||
22491 | if (!args) SWIG_fail; | |
22492 | swig_obj[0] = args; | |
22493 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22494 | if (!SWIG_IsOK(res1)) { | |
22495 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22496 | } | |
22497 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22498 | { | |
22499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22500 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
22501 | wxPyEndAllowThreads(__tstate); | |
22502 | if (PyErr_Occurred()) SWIG_fail; | |
22503 | } | |
22504 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22505 | return resultobj; | |
22506 | fail: | |
22507 | return NULL; | |
22508 | } | |
22509 | ||
22510 | ||
22511 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22512 | PyObject *resultobj = 0; | |
22513 | wxDC *arg1 = (wxDC *) 0 ; | |
22514 | int arg2 ; | |
22515 | void *argp1 = 0 ; | |
22516 | int res1 = 0 ; | |
22517 | int val2 ; | |
22518 | int ecode2 = 0 ; | |
22519 | PyObject * obj0 = 0 ; | |
22520 | PyObject * obj1 = 0 ; | |
22521 | char * kwnames[] = { | |
22522 | (char *) "self",(char *) "mode", NULL | |
22523 | }; | |
22524 | ||
22525 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22526 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22527 | if (!SWIG_IsOK(res1)) { | |
22528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22529 | } | |
22530 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22531 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22532 | if (!SWIG_IsOK(ecode2)) { | |
22533 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
22534 | } | |
22535 | arg2 = static_cast< int >(val2); | |
22536 | { | |
22537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22538 | (arg1)->SetMapMode(arg2); | |
22539 | wxPyEndAllowThreads(__tstate); | |
22540 | if (PyErr_Occurred()) SWIG_fail; | |
22541 | } | |
22542 | resultobj = SWIG_Py_Void(); | |
22543 | return resultobj; | |
22544 | fail: | |
22545 | return NULL; | |
22546 | } | |
22547 | ||
22548 | ||
22549 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22550 | PyObject *resultobj = 0; | |
22551 | wxDC *arg1 = (wxDC *) 0 ; | |
22552 | double *arg2 = (double *) 0 ; | |
22553 | double *arg3 = (double *) 0 ; | |
22554 | void *argp1 = 0 ; | |
22555 | int res1 = 0 ; | |
22556 | double temp2 ; | |
22557 | int res2 = SWIG_TMPOBJ ; | |
22558 | double temp3 ; | |
22559 | int res3 = SWIG_TMPOBJ ; | |
22560 | PyObject *swig_obj[1] ; | |
22561 | ||
22562 | arg2 = &temp2; | |
22563 | arg3 = &temp3; | |
22564 | if (!args) SWIG_fail; | |
22565 | swig_obj[0] = args; | |
22566 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22567 | if (!SWIG_IsOK(res1)) { | |
22568 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22569 | } | |
22570 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22571 | { | |
22572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22573 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
22574 | wxPyEndAllowThreads(__tstate); | |
22575 | if (PyErr_Occurred()) SWIG_fail; | |
22576 | } | |
22577 | resultobj = SWIG_Py_Void(); | |
22578 | if (SWIG_IsTmpObj(res2)) { | |
22579 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22580 | } else { | |
22581 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22582 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22583 | } | |
22584 | if (SWIG_IsTmpObj(res3)) { | |
22585 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22586 | } else { | |
22587 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22588 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22589 | } | |
22590 | return resultobj; | |
22591 | fail: | |
22592 | return NULL; | |
22593 | } | |
22594 | ||
22595 | ||
22596 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22597 | PyObject *resultobj = 0; | |
22598 | wxDC *arg1 = (wxDC *) 0 ; | |
22599 | double arg2 ; | |
22600 | double arg3 ; | |
22601 | void *argp1 = 0 ; | |
22602 | int res1 = 0 ; | |
22603 | double val2 ; | |
22604 | int ecode2 = 0 ; | |
22605 | double val3 ; | |
22606 | int ecode3 = 0 ; | |
22607 | PyObject * obj0 = 0 ; | |
22608 | PyObject * obj1 = 0 ; | |
22609 | PyObject * obj2 = 0 ; | |
22610 | char * kwnames[] = { | |
22611 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22612 | }; | |
22613 | ||
22614 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22615 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22616 | if (!SWIG_IsOK(res1)) { | |
22617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22618 | } | |
22619 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22620 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22621 | if (!SWIG_IsOK(ecode2)) { | |
22622 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
22623 | } | |
22624 | arg2 = static_cast< double >(val2); | |
22625 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22626 | if (!SWIG_IsOK(ecode3)) { | |
22627 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
22628 | } | |
22629 | arg3 = static_cast< double >(val3); | |
22630 | { | |
22631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22632 | (arg1)->SetUserScale(arg2,arg3); | |
22633 | wxPyEndAllowThreads(__tstate); | |
22634 | if (PyErr_Occurred()) SWIG_fail; | |
22635 | } | |
22636 | resultobj = SWIG_Py_Void(); | |
22637 | return resultobj; | |
22638 | fail: | |
22639 | return NULL; | |
22640 | } | |
22641 | ||
22642 | ||
22643 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22644 | PyObject *resultobj = 0; | |
22645 | wxDC *arg1 = (wxDC *) 0 ; | |
22646 | double *arg2 = (double *) 0 ; | |
22647 | double *arg3 = (double *) 0 ; | |
22648 | void *argp1 = 0 ; | |
22649 | int res1 = 0 ; | |
22650 | double temp2 ; | |
22651 | int res2 = SWIG_TMPOBJ ; | |
22652 | double temp3 ; | |
22653 | int res3 = SWIG_TMPOBJ ; | |
22654 | PyObject *swig_obj[1] ; | |
22655 | ||
22656 | arg2 = &temp2; | |
22657 | arg3 = &temp3; | |
22658 | if (!args) SWIG_fail; | |
22659 | swig_obj[0] = args; | |
22660 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22661 | if (!SWIG_IsOK(res1)) { | |
22662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22663 | } | |
22664 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22665 | { | |
22666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22667 | (arg1)->GetLogicalScale(arg2,arg3); | |
22668 | wxPyEndAllowThreads(__tstate); | |
22669 | if (PyErr_Occurred()) SWIG_fail; | |
22670 | } | |
22671 | resultobj = SWIG_Py_Void(); | |
22672 | if (SWIG_IsTmpObj(res2)) { | |
22673 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22674 | } else { | |
22675 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22676 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22677 | } | |
22678 | if (SWIG_IsTmpObj(res3)) { | |
22679 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22680 | } else { | |
22681 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22682 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22683 | } | |
22684 | return resultobj; | |
22685 | fail: | |
22686 | return NULL; | |
22687 | } | |
22688 | ||
22689 | ||
22690 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22691 | PyObject *resultobj = 0; | |
22692 | wxDC *arg1 = (wxDC *) 0 ; | |
22693 | double arg2 ; | |
22694 | double arg3 ; | |
22695 | void *argp1 = 0 ; | |
22696 | int res1 = 0 ; | |
22697 | double val2 ; | |
22698 | int ecode2 = 0 ; | |
22699 | double val3 ; | |
22700 | int ecode3 = 0 ; | |
22701 | PyObject * obj0 = 0 ; | |
22702 | PyObject * obj1 = 0 ; | |
22703 | PyObject * obj2 = 0 ; | |
22704 | char * kwnames[] = { | |
22705 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22706 | }; | |
22707 | ||
22708 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) 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_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22712 | } | |
22713 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22714 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22715 | if (!SWIG_IsOK(ecode2)) { | |
22716 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
22717 | } | |
22718 | arg2 = static_cast< double >(val2); | |
22719 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
22720 | if (!SWIG_IsOK(ecode3)) { | |
22721 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
22722 | } | |
22723 | arg3 = static_cast< double >(val3); | |
22724 | { | |
22725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22726 | (arg1)->SetLogicalScale(arg2,arg3); | |
22727 | wxPyEndAllowThreads(__tstate); | |
22728 | if (PyErr_Occurred()) SWIG_fail; | |
22729 | } | |
22730 | resultobj = SWIG_Py_Void(); | |
22731 | return resultobj; | |
22732 | fail: | |
22733 | return NULL; | |
22734 | } | |
22735 | ||
22736 | ||
22737 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22738 | PyObject *resultobj = 0; | |
22739 | wxDC *arg1 = (wxDC *) 0 ; | |
22740 | wxPoint result; | |
22741 | void *argp1 = 0 ; | |
22742 | int res1 = 0 ; | |
22743 | PyObject *swig_obj[1] ; | |
22744 | ||
22745 | if (!args) SWIG_fail; | |
22746 | swig_obj[0] = args; | |
22747 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22748 | if (!SWIG_IsOK(res1)) { | |
22749 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22750 | } | |
22751 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22752 | { | |
22753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22754 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
22755 | wxPyEndAllowThreads(__tstate); | |
22756 | if (PyErr_Occurred()) SWIG_fail; | |
22757 | } | |
22758 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22759 | return resultobj; | |
22760 | fail: | |
22761 | return NULL; | |
22762 | } | |
22763 | ||
22764 | ||
22765 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22766 | PyObject *resultobj = 0; | |
22767 | wxDC *arg1 = (wxDC *) 0 ; | |
22768 | int *arg2 = (int *) 0 ; | |
22769 | int *arg3 = (int *) 0 ; | |
22770 | void *argp1 = 0 ; | |
22771 | int res1 = 0 ; | |
22772 | int temp2 ; | |
22773 | int res2 = SWIG_TMPOBJ ; | |
22774 | int temp3 ; | |
22775 | int res3 = SWIG_TMPOBJ ; | |
22776 | PyObject *swig_obj[1] ; | |
22777 | ||
22778 | arg2 = &temp2; | |
22779 | arg3 = &temp3; | |
22780 | if (!args) SWIG_fail; | |
22781 | swig_obj[0] = args; | |
22782 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22783 | if (!SWIG_IsOK(res1)) { | |
22784 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22785 | } | |
22786 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22787 | { | |
22788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22789 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
22790 | wxPyEndAllowThreads(__tstate); | |
22791 | if (PyErr_Occurred()) SWIG_fail; | |
22792 | } | |
22793 | resultobj = SWIG_Py_Void(); | |
22794 | if (SWIG_IsTmpObj(res2)) { | |
22795 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22796 | } else { | |
22797 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22798 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22799 | } | |
22800 | if (SWIG_IsTmpObj(res3)) { | |
22801 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22802 | } else { | |
22803 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22804 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22805 | } | |
22806 | return resultobj; | |
22807 | fail: | |
22808 | return NULL; | |
22809 | } | |
22810 | ||
22811 | ||
22812 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22813 | PyObject *resultobj = 0; | |
22814 | wxDC *arg1 = (wxDC *) 0 ; | |
22815 | int arg2 ; | |
22816 | int arg3 ; | |
22817 | void *argp1 = 0 ; | |
22818 | int res1 = 0 ; | |
22819 | int val2 ; | |
22820 | int ecode2 = 0 ; | |
22821 | int val3 ; | |
22822 | int ecode3 = 0 ; | |
22823 | PyObject * obj0 = 0 ; | |
22824 | PyObject * obj1 = 0 ; | |
22825 | PyObject * obj2 = 0 ; | |
22826 | char * kwnames[] = { | |
22827 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22828 | }; | |
22829 | ||
22830 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22831 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22832 | if (!SWIG_IsOK(res1)) { | |
22833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22834 | } | |
22835 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22836 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22837 | if (!SWIG_IsOK(ecode2)) { | |
22838 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
22839 | } | |
22840 | arg2 = static_cast< int >(val2); | |
22841 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
22842 | if (!SWIG_IsOK(ecode3)) { | |
22843 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
22844 | } | |
22845 | arg3 = static_cast< int >(val3); | |
22846 | { | |
22847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22848 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
22849 | wxPyEndAllowThreads(__tstate); | |
22850 | if (PyErr_Occurred()) SWIG_fail; | |
22851 | } | |
22852 | resultobj = SWIG_Py_Void(); | |
22853 | return resultobj; | |
22854 | fail: | |
22855 | return NULL; | |
22856 | } | |
22857 | ||
22858 | ||
22859 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22860 | PyObject *resultobj = 0; | |
22861 | wxDC *arg1 = (wxDC *) 0 ; | |
22862 | wxPoint *arg2 = 0 ; | |
22863 | void *argp1 = 0 ; | |
22864 | int res1 = 0 ; | |
22865 | wxPoint temp2 ; | |
22866 | PyObject * obj0 = 0 ; | |
22867 | PyObject * obj1 = 0 ; | |
22868 | char * kwnames[] = { | |
22869 | (char *) "self",(char *) "point", NULL | |
22870 | }; | |
22871 | ||
22872 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
22873 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22874 | if (!SWIG_IsOK(res1)) { | |
22875 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22876 | } | |
22877 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22878 | { | |
22879 | arg2 = &temp2; | |
22880 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22881 | } | |
22882 | { | |
22883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22884 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
22885 | wxPyEndAllowThreads(__tstate); | |
22886 | if (PyErr_Occurred()) SWIG_fail; | |
22887 | } | |
22888 | resultobj = SWIG_Py_Void(); | |
22889 | return resultobj; | |
22890 | fail: | |
22891 | return NULL; | |
22892 | } | |
22893 | ||
22894 | ||
22895 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22896 | PyObject *resultobj = 0; | |
22897 | wxDC *arg1 = (wxDC *) 0 ; | |
22898 | wxPoint result; | |
22899 | void *argp1 = 0 ; | |
22900 | int res1 = 0 ; | |
22901 | PyObject *swig_obj[1] ; | |
22902 | ||
22903 | if (!args) SWIG_fail; | |
22904 | swig_obj[0] = args; | |
22905 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22906 | if (!SWIG_IsOK(res1)) { | |
22907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22908 | } | |
22909 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22910 | { | |
22911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22912 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
22913 | wxPyEndAllowThreads(__tstate); | |
22914 | if (PyErr_Occurred()) SWIG_fail; | |
22915 | } | |
22916 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
22917 | return resultobj; | |
22918 | fail: | |
22919 | return NULL; | |
22920 | } | |
22921 | ||
22922 | ||
22923 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22924 | PyObject *resultobj = 0; | |
22925 | wxDC *arg1 = (wxDC *) 0 ; | |
22926 | int *arg2 = (int *) 0 ; | |
22927 | int *arg3 = (int *) 0 ; | |
22928 | void *argp1 = 0 ; | |
22929 | int res1 = 0 ; | |
22930 | int temp2 ; | |
22931 | int res2 = SWIG_TMPOBJ ; | |
22932 | int temp3 ; | |
22933 | int res3 = SWIG_TMPOBJ ; | |
22934 | PyObject *swig_obj[1] ; | |
22935 | ||
22936 | arg2 = &temp2; | |
22937 | arg3 = &temp3; | |
22938 | if (!args) SWIG_fail; | |
22939 | swig_obj[0] = args; | |
22940 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22941 | if (!SWIG_IsOK(res1)) { | |
22942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22943 | } | |
22944 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22945 | { | |
22946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22947 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
22948 | wxPyEndAllowThreads(__tstate); | |
22949 | if (PyErr_Occurred()) SWIG_fail; | |
22950 | } | |
22951 | resultobj = SWIG_Py_Void(); | |
22952 | if (SWIG_IsTmpObj(res2)) { | |
22953 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22954 | } else { | |
22955 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22956 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22957 | } | |
22958 | if (SWIG_IsTmpObj(res3)) { | |
22959 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22960 | } else { | |
22961 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22962 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22963 | } | |
22964 | return resultobj; | |
22965 | fail: | |
22966 | return NULL; | |
22967 | } | |
22968 | ||
22969 | ||
22970 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22971 | PyObject *resultobj = 0; | |
22972 | wxDC *arg1 = (wxDC *) 0 ; | |
22973 | int arg2 ; | |
22974 | int arg3 ; | |
22975 | void *argp1 = 0 ; | |
22976 | int res1 = 0 ; | |
22977 | int val2 ; | |
22978 | int ecode2 = 0 ; | |
22979 | int val3 ; | |
22980 | int ecode3 = 0 ; | |
22981 | PyObject * obj0 = 0 ; | |
22982 | PyObject * obj1 = 0 ; | |
22983 | PyObject * obj2 = 0 ; | |
22984 | char * kwnames[] = { | |
22985 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22986 | }; | |
22987 | ||
22988 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22989 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22990 | if (!SWIG_IsOK(res1)) { | |
22991 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22992 | } | |
22993 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22994 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22995 | if (!SWIG_IsOK(ecode2)) { | |
22996 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
22997 | } | |
22998 | arg2 = static_cast< int >(val2); | |
22999 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23000 | if (!SWIG_IsOK(ecode3)) { | |
23001 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
23002 | } | |
23003 | arg3 = static_cast< int >(val3); | |
23004 | { | |
23005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23006 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
23007 | wxPyEndAllowThreads(__tstate); | |
23008 | if (PyErr_Occurred()) SWIG_fail; | |
23009 | } | |
23010 | resultobj = SWIG_Py_Void(); | |
23011 | return resultobj; | |
23012 | fail: | |
23013 | return NULL; | |
23014 | } | |
23015 | ||
23016 | ||
23017 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23018 | PyObject *resultobj = 0; | |
23019 | wxDC *arg1 = (wxDC *) 0 ; | |
23020 | wxPoint *arg2 = 0 ; | |
23021 | void *argp1 = 0 ; | |
23022 | int res1 = 0 ; | |
23023 | wxPoint temp2 ; | |
23024 | PyObject * obj0 = 0 ; | |
23025 | PyObject * obj1 = 0 ; | |
23026 | char * kwnames[] = { | |
23027 | (char *) "self",(char *) "point", NULL | |
23028 | }; | |
23029 | ||
23030 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23031 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23032 | if (!SWIG_IsOK(res1)) { | |
23033 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23034 | } | |
23035 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23036 | { | |
23037 | arg2 = &temp2; | |
23038 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23039 | } | |
23040 | { | |
23041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23042 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
23043 | wxPyEndAllowThreads(__tstate); | |
23044 | if (PyErr_Occurred()) SWIG_fail; | |
23045 | } | |
23046 | resultobj = SWIG_Py_Void(); | |
23047 | return resultobj; | |
23048 | fail: | |
23049 | return NULL; | |
23050 | } | |
23051 | ||
23052 | ||
23053 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23054 | PyObject *resultobj = 0; | |
23055 | wxDC *arg1 = (wxDC *) 0 ; | |
23056 | bool arg2 ; | |
23057 | bool arg3 ; | |
23058 | void *argp1 = 0 ; | |
23059 | int res1 = 0 ; | |
23060 | bool val2 ; | |
23061 | int ecode2 = 0 ; | |
23062 | bool val3 ; | |
23063 | int ecode3 = 0 ; | |
23064 | PyObject * obj0 = 0 ; | |
23065 | PyObject * obj1 = 0 ; | |
23066 | PyObject * obj2 = 0 ; | |
23067 | char * kwnames[] = { | |
23068 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
23069 | }; | |
23070 | ||
23071 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23072 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23073 | if (!SWIG_IsOK(res1)) { | |
23074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23075 | } | |
23076 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23077 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23078 | if (!SWIG_IsOK(ecode2)) { | |
23079 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
23080 | } | |
23081 | arg2 = static_cast< bool >(val2); | |
23082 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
23083 | if (!SWIG_IsOK(ecode3)) { | |
23084 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
23085 | } | |
23086 | arg3 = static_cast< bool >(val3); | |
23087 | { | |
23088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23089 | (arg1)->SetAxisOrientation(arg2,arg3); | |
23090 | wxPyEndAllowThreads(__tstate); | |
23091 | if (PyErr_Occurred()) SWIG_fail; | |
23092 | } | |
23093 | resultobj = SWIG_Py_Void(); | |
23094 | return resultobj; | |
23095 | fail: | |
23096 | return NULL; | |
23097 | } | |
23098 | ||
23099 | ||
23100 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23101 | PyObject *resultobj = 0; | |
23102 | wxDC *arg1 = (wxDC *) 0 ; | |
23103 | int result; | |
23104 | void *argp1 = 0 ; | |
23105 | int res1 = 0 ; | |
23106 | PyObject *swig_obj[1] ; | |
23107 | ||
23108 | if (!args) SWIG_fail; | |
23109 | swig_obj[0] = args; | |
23110 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23111 | if (!SWIG_IsOK(res1)) { | |
23112 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23113 | } | |
23114 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23115 | { | |
23116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23117 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
23118 | wxPyEndAllowThreads(__tstate); | |
23119 | if (PyErr_Occurred()) SWIG_fail; | |
23120 | } | |
23121 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23122 | return resultobj; | |
23123 | fail: | |
23124 | return NULL; | |
23125 | } | |
23126 | ||
23127 | ||
23128 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23129 | PyObject *resultobj = 0; | |
23130 | wxDC *arg1 = (wxDC *) 0 ; | |
23131 | int arg2 ; | |
23132 | void *argp1 = 0 ; | |
23133 | int res1 = 0 ; | |
23134 | int val2 ; | |
23135 | int ecode2 = 0 ; | |
23136 | PyObject * obj0 = 0 ; | |
23137 | PyObject * obj1 = 0 ; | |
23138 | char * kwnames[] = { | |
23139 | (char *) "self",(char *) "function", NULL | |
23140 | }; | |
23141 | ||
23142 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
23143 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23144 | if (!SWIG_IsOK(res1)) { | |
23145 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23146 | } | |
23147 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23148 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23149 | if (!SWIG_IsOK(ecode2)) { | |
23150 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
23151 | } | |
23152 | arg2 = static_cast< int >(val2); | |
23153 | { | |
23154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23155 | (arg1)->SetLogicalFunction(arg2); | |
23156 | wxPyEndAllowThreads(__tstate); | |
23157 | if (PyErr_Occurred()) SWIG_fail; | |
23158 | } | |
23159 | resultobj = SWIG_Py_Void(); | |
23160 | return resultobj; | |
23161 | fail: | |
23162 | return NULL; | |
23163 | } | |
23164 | ||
23165 | ||
23166 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23167 | PyObject *resultobj = 0; | |
23168 | wxDC *arg1 = (wxDC *) 0 ; | |
23169 | void *argp1 = 0 ; | |
23170 | int res1 = 0 ; | |
23171 | PyObject *swig_obj[1] ; | |
23172 | ||
23173 | if (!args) SWIG_fail; | |
23174 | swig_obj[0] = args; | |
23175 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23176 | if (!SWIG_IsOK(res1)) { | |
23177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23178 | } | |
23179 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23180 | { | |
23181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23182 | (arg1)->ComputeScaleAndOrigin(); | |
23183 | wxPyEndAllowThreads(__tstate); | |
23184 | if (PyErr_Occurred()) SWIG_fail; | |
23185 | } | |
23186 | resultobj = SWIG_Py_Void(); | |
23187 | return resultobj; | |
23188 | fail: | |
23189 | return NULL; | |
23190 | } | |
23191 | ||
23192 | ||
23193 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23194 | PyObject *resultobj = 0; | |
23195 | wxDC *arg1 = (wxDC *) 0 ; | |
23196 | int arg2 ; | |
23197 | int arg3 ; | |
23198 | void *argp1 = 0 ; | |
23199 | int res1 = 0 ; | |
23200 | int val2 ; | |
23201 | int ecode2 = 0 ; | |
23202 | int val3 ; | |
23203 | int ecode3 = 0 ; | |
23204 | PyObject * obj0 = 0 ; | |
23205 | PyObject * obj1 = 0 ; | |
23206 | PyObject * obj2 = 0 ; | |
23207 | char * kwnames[] = { | |
23208 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23209 | }; | |
23210 | ||
23211 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23212 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23213 | if (!SWIG_IsOK(res1)) { | |
23214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23215 | } | |
23216 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23217 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23218 | if (!SWIG_IsOK(ecode2)) { | |
23219 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
23220 | } | |
23221 | arg2 = static_cast< int >(val2); | |
23222 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23223 | if (!SWIG_IsOK(ecode3)) { | |
23224 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
23225 | } | |
23226 | arg3 = static_cast< int >(val3); | |
23227 | { | |
23228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23229 | (arg1)->CalcBoundingBox(arg2,arg3); | |
23230 | wxPyEndAllowThreads(__tstate); | |
23231 | if (PyErr_Occurred()) SWIG_fail; | |
23232 | } | |
23233 | resultobj = SWIG_Py_Void(); | |
23234 | return resultobj; | |
23235 | fail: | |
23236 | return NULL; | |
23237 | } | |
23238 | ||
23239 | ||
23240 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23241 | PyObject *resultobj = 0; | |
23242 | wxDC *arg1 = (wxDC *) 0 ; | |
23243 | wxPoint *arg2 = 0 ; | |
23244 | void *argp1 = 0 ; | |
23245 | int res1 = 0 ; | |
23246 | wxPoint temp2 ; | |
23247 | PyObject * obj0 = 0 ; | |
23248 | PyObject * obj1 = 0 ; | |
23249 | char * kwnames[] = { | |
23250 | (char *) "self",(char *) "point", NULL | |
23251 | }; | |
23252 | ||
23253 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23254 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23255 | if (!SWIG_IsOK(res1)) { | |
23256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23257 | } | |
23258 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23259 | { | |
23260 | arg2 = &temp2; | |
23261 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23262 | } | |
23263 | { | |
23264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23265 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
23266 | wxPyEndAllowThreads(__tstate); | |
23267 | if (PyErr_Occurred()) SWIG_fail; | |
23268 | } | |
23269 | resultobj = SWIG_Py_Void(); | |
23270 | return resultobj; | |
23271 | fail: | |
23272 | return NULL; | |
23273 | } | |
23274 | ||
23275 | ||
23276 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23277 | PyObject *resultobj = 0; | |
23278 | wxDC *arg1 = (wxDC *) 0 ; | |
23279 | void *argp1 = 0 ; | |
23280 | int res1 = 0 ; | |
23281 | PyObject *swig_obj[1] ; | |
23282 | ||
23283 | if (!args) SWIG_fail; | |
23284 | swig_obj[0] = args; | |
23285 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23286 | if (!SWIG_IsOK(res1)) { | |
23287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23288 | } | |
23289 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23290 | { | |
23291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23292 | (arg1)->ResetBoundingBox(); | |
23293 | wxPyEndAllowThreads(__tstate); | |
23294 | if (PyErr_Occurred()) SWIG_fail; | |
23295 | } | |
23296 | resultobj = SWIG_Py_Void(); | |
23297 | return resultobj; | |
23298 | fail: | |
23299 | return NULL; | |
23300 | } | |
23301 | ||
23302 | ||
23303 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23304 | PyObject *resultobj = 0; | |
23305 | wxDC *arg1 = (wxDC *) 0 ; | |
23306 | int result; | |
23307 | void *argp1 = 0 ; | |
23308 | int res1 = 0 ; | |
23309 | PyObject *swig_obj[1] ; | |
23310 | ||
23311 | if (!args) SWIG_fail; | |
23312 | swig_obj[0] = args; | |
23313 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23314 | if (!SWIG_IsOK(res1)) { | |
23315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23316 | } | |
23317 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23318 | { | |
23319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23320 | result = (int)((wxDC const *)arg1)->MinX(); | |
23321 | wxPyEndAllowThreads(__tstate); | |
23322 | if (PyErr_Occurred()) SWIG_fail; | |
23323 | } | |
23324 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23325 | return resultobj; | |
23326 | fail: | |
23327 | return NULL; | |
23328 | } | |
23329 | ||
23330 | ||
23331 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23332 | PyObject *resultobj = 0; | |
23333 | wxDC *arg1 = (wxDC *) 0 ; | |
23334 | int result; | |
23335 | void *argp1 = 0 ; | |
23336 | int res1 = 0 ; | |
23337 | PyObject *swig_obj[1] ; | |
23338 | ||
23339 | if (!args) SWIG_fail; | |
23340 | swig_obj[0] = args; | |
23341 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23342 | if (!SWIG_IsOK(res1)) { | |
23343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23344 | } | |
23345 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23346 | { | |
23347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23348 | result = (int)((wxDC const *)arg1)->MaxX(); | |
23349 | wxPyEndAllowThreads(__tstate); | |
23350 | if (PyErr_Occurred()) SWIG_fail; | |
23351 | } | |
23352 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23353 | return resultobj; | |
23354 | fail: | |
23355 | return NULL; | |
23356 | } | |
23357 | ||
23358 | ||
23359 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23360 | PyObject *resultobj = 0; | |
23361 | wxDC *arg1 = (wxDC *) 0 ; | |
23362 | int result; | |
23363 | void *argp1 = 0 ; | |
23364 | int res1 = 0 ; | |
23365 | PyObject *swig_obj[1] ; | |
23366 | ||
23367 | if (!args) SWIG_fail; | |
23368 | swig_obj[0] = args; | |
23369 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23370 | if (!SWIG_IsOK(res1)) { | |
23371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23372 | } | |
23373 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23374 | { | |
23375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23376 | result = (int)((wxDC const *)arg1)->MinY(); | |
23377 | wxPyEndAllowThreads(__tstate); | |
23378 | if (PyErr_Occurred()) SWIG_fail; | |
23379 | } | |
23380 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23381 | return resultobj; | |
23382 | fail: | |
23383 | return NULL; | |
23384 | } | |
23385 | ||
23386 | ||
23387 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23388 | PyObject *resultobj = 0; | |
23389 | wxDC *arg1 = (wxDC *) 0 ; | |
23390 | int result; | |
23391 | void *argp1 = 0 ; | |
23392 | int res1 = 0 ; | |
23393 | PyObject *swig_obj[1] ; | |
23394 | ||
23395 | if (!args) SWIG_fail; | |
23396 | swig_obj[0] = args; | |
23397 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23398 | if (!SWIG_IsOK(res1)) { | |
23399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23400 | } | |
23401 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23402 | { | |
23403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23404 | result = (int)((wxDC const *)arg1)->MaxY(); | |
23405 | wxPyEndAllowThreads(__tstate); | |
23406 | if (PyErr_Occurred()) SWIG_fail; | |
23407 | } | |
23408 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23409 | return resultobj; | |
23410 | fail: | |
23411 | return NULL; | |
23412 | } | |
23413 | ||
23414 | ||
23415 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23416 | PyObject *resultobj = 0; | |
23417 | wxDC *arg1 = (wxDC *) 0 ; | |
23418 | int *arg2 = (int *) 0 ; | |
23419 | int *arg3 = (int *) 0 ; | |
23420 | int *arg4 = (int *) 0 ; | |
23421 | int *arg5 = (int *) 0 ; | |
23422 | void *argp1 = 0 ; | |
23423 | int res1 = 0 ; | |
23424 | int temp2 ; | |
23425 | int res2 = SWIG_TMPOBJ ; | |
23426 | int temp3 ; | |
23427 | int res3 = SWIG_TMPOBJ ; | |
23428 | int temp4 ; | |
23429 | int res4 = SWIG_TMPOBJ ; | |
23430 | int temp5 ; | |
23431 | int res5 = SWIG_TMPOBJ ; | |
23432 | PyObject *swig_obj[1] ; | |
23433 | ||
23434 | arg2 = &temp2; | |
23435 | arg3 = &temp3; | |
23436 | arg4 = &temp4; | |
23437 | arg5 = &temp5; | |
23438 | if (!args) SWIG_fail; | |
23439 | swig_obj[0] = args; | |
23440 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23441 | if (!SWIG_IsOK(res1)) { | |
23442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23443 | } | |
23444 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23445 | { | |
23446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23447 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
23448 | wxPyEndAllowThreads(__tstate); | |
23449 | if (PyErr_Occurred()) SWIG_fail; | |
23450 | } | |
23451 | resultobj = SWIG_Py_Void(); | |
23452 | if (SWIG_IsTmpObj(res2)) { | |
23453 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23454 | } else { | |
23455 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23456 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23457 | } | |
23458 | if (SWIG_IsTmpObj(res3)) { | |
23459 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23460 | } else { | |
23461 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23462 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23463 | } | |
23464 | if (SWIG_IsTmpObj(res4)) { | |
23465 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
23466 | } else { | |
23467 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23468 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
23469 | } | |
23470 | if (SWIG_IsTmpObj(res5)) { | |
23471 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
23472 | } else { | |
23473 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23474 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
23475 | } | |
23476 | return resultobj; | |
23477 | fail: | |
23478 | return NULL; | |
23479 | } | |
23480 | ||
23481 | ||
b39fe951 RD |
23482 | SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23483 | PyObject *resultobj = 0; | |
23484 | wxDC *arg1 = (wxDC *) 0 ; | |
23485 | wxLayoutDirection result; | |
23486 | void *argp1 = 0 ; | |
23487 | int res1 = 0 ; | |
23488 | PyObject *swig_obj[1] ; | |
23489 | ||
23490 | if (!args) SWIG_fail; | |
23491 | swig_obj[0] = args; | |
23492 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23493 | if (!SWIG_IsOK(res1)) { | |
23494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23495 | } | |
23496 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23497 | { | |
23498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23499 | result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection(); | |
23500 | wxPyEndAllowThreads(__tstate); | |
23501 | if (PyErr_Occurred()) SWIG_fail; | |
23502 | } | |
23503 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23504 | return resultobj; | |
23505 | fail: | |
23506 | return NULL; | |
23507 | } | |
23508 | ||
23509 | ||
23510 | SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23511 | PyObject *resultobj = 0; | |
23512 | wxDC *arg1 = (wxDC *) 0 ; | |
23513 | wxLayoutDirection arg2 ; | |
23514 | void *argp1 = 0 ; | |
23515 | int res1 = 0 ; | |
23516 | int val2 ; | |
23517 | int ecode2 = 0 ; | |
23518 | PyObject * obj0 = 0 ; | |
23519 | PyObject * obj1 = 0 ; | |
23520 | char * kwnames[] = { | |
23521 | (char *) "self",(char *) "dir", NULL | |
23522 | }; | |
23523 | ||
23524 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail; | |
23525 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23526 | if (!SWIG_IsOK(res1)) { | |
23527 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23528 | } | |
23529 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23530 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23531 | if (!SWIG_IsOK(ecode2)) { | |
23532 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'"); | |
23533 | } | |
23534 | arg2 = static_cast< wxLayoutDirection >(val2); | |
23535 | { | |
23536 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23537 | (arg1)->SetLayoutDirection(arg2); | |
23538 | wxPyEndAllowThreads(__tstate); | |
23539 | if (PyErr_Occurred()) SWIG_fail; | |
23540 | } | |
23541 | resultobj = SWIG_Py_Void(); | |
23542 | return resultobj; | |
23543 | fail: | |
23544 | return NULL; | |
23545 | } | |
23546 | ||
23547 | ||
554f62e9 RD |
23548 | SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23549 | PyObject *resultobj = 0; | |
23550 | wxDC *arg1 = (wxDC *) 0 ; | |
23551 | long result; | |
23552 | void *argp1 = 0 ; | |
23553 | int res1 = 0 ; | |
23554 | PyObject *swig_obj[1] ; | |
23555 | ||
23556 | if (!args) SWIG_fail; | |
23557 | swig_obj[0] = args; | |
23558 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23559 | if (!SWIG_IsOK(res1)) { | |
23560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23561 | } | |
23562 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23563 | { | |
23564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23565 | result = (long)(arg1)->GetHDC(); | |
23566 | wxPyEndAllowThreads(__tstate); | |
23567 | if (PyErr_Occurred()) SWIG_fail; | |
23568 | } | |
23569 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
23570 | return resultobj; | |
23571 | fail: | |
23572 | return NULL; | |
23573 | } | |
23574 | ||
23575 | ||
23576 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23577 | PyObject *resultobj = 0; | |
23578 | wxDC *arg1 = (wxDC *) 0 ; | |
23579 | PyObject *arg2 = (PyObject *) 0 ; | |
23580 | PyObject *arg3 = (PyObject *) 0 ; | |
23581 | PyObject *arg4 = (PyObject *) 0 ; | |
23582 | PyObject *result = 0 ; | |
23583 | void *argp1 = 0 ; | |
23584 | int res1 = 0 ; | |
23585 | PyObject * obj0 = 0 ; | |
23586 | PyObject * obj1 = 0 ; | |
23587 | PyObject * obj2 = 0 ; | |
23588 | PyObject * obj3 = 0 ; | |
23589 | char * kwnames[] = { | |
23590 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23591 | }; | |
23592 | ||
23593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23594 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23595 | if (!SWIG_IsOK(res1)) { | |
23596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23597 | } | |
23598 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23599 | arg2 = obj1; | |
23600 | arg3 = obj2; | |
23601 | arg4 = obj3; | |
23602 | { | |
23603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23604 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
23605 | wxPyEndAllowThreads(__tstate); | |
23606 | if (PyErr_Occurred()) SWIG_fail; | |
23607 | } | |
23608 | resultobj = result; | |
23609 | return resultobj; | |
23610 | fail: | |
23611 | return NULL; | |
23612 | } | |
23613 | ||
23614 | ||
23615 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23616 | PyObject *resultobj = 0; | |
23617 | wxDC *arg1 = (wxDC *) 0 ; | |
23618 | PyObject *arg2 = (PyObject *) 0 ; | |
23619 | PyObject *arg3 = (PyObject *) 0 ; | |
23620 | PyObject *arg4 = (PyObject *) 0 ; | |
23621 | PyObject *result = 0 ; | |
23622 | void *argp1 = 0 ; | |
23623 | int res1 = 0 ; | |
23624 | PyObject * obj0 = 0 ; | |
23625 | PyObject * obj1 = 0 ; | |
23626 | PyObject * obj2 = 0 ; | |
23627 | PyObject * obj3 = 0 ; | |
23628 | char * kwnames[] = { | |
23629 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23630 | }; | |
23631 | ||
23632 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23633 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23634 | if (!SWIG_IsOK(res1)) { | |
23635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23636 | } | |
23637 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23638 | arg2 = obj1; | |
23639 | arg3 = obj2; | |
23640 | arg4 = obj3; | |
23641 | { | |
23642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23643 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
23644 | wxPyEndAllowThreads(__tstate); | |
23645 | if (PyErr_Occurred()) SWIG_fail; | |
23646 | } | |
23647 | resultobj = result; | |
23648 | return resultobj; | |
23649 | fail: | |
23650 | return NULL; | |
23651 | } | |
23652 | ||
23653 | ||
23654 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23655 | PyObject *resultobj = 0; | |
23656 | wxDC *arg1 = (wxDC *) 0 ; | |
23657 | PyObject *arg2 = (PyObject *) 0 ; | |
23658 | PyObject *arg3 = (PyObject *) 0 ; | |
23659 | PyObject *arg4 = (PyObject *) 0 ; | |
23660 | PyObject *result = 0 ; | |
23661 | void *argp1 = 0 ; | |
23662 | int res1 = 0 ; | |
23663 | PyObject * obj0 = 0 ; | |
23664 | PyObject * obj1 = 0 ; | |
23665 | PyObject * obj2 = 0 ; | |
23666 | PyObject * obj3 = 0 ; | |
23667 | char * kwnames[] = { | |
23668 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23669 | }; | |
23670 | ||
23671 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23672 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23673 | if (!SWIG_IsOK(res1)) { | |
23674 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23675 | } | |
23676 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23677 | arg2 = obj1; | |
23678 | arg3 = obj2; | |
23679 | arg4 = obj3; | |
23680 | { | |
23681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23682 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
23683 | wxPyEndAllowThreads(__tstate); | |
23684 | if (PyErr_Occurred()) SWIG_fail; | |
23685 | } | |
23686 | resultobj = result; | |
23687 | return resultobj; | |
23688 | fail: | |
23689 | return NULL; | |
23690 | } | |
23691 | ||
23692 | ||
23693 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23694 | PyObject *resultobj = 0; | |
23695 | wxDC *arg1 = (wxDC *) 0 ; | |
23696 | PyObject *arg2 = (PyObject *) 0 ; | |
23697 | PyObject *arg3 = (PyObject *) 0 ; | |
23698 | PyObject *arg4 = (PyObject *) 0 ; | |
23699 | PyObject *result = 0 ; | |
23700 | void *argp1 = 0 ; | |
23701 | int res1 = 0 ; | |
23702 | PyObject * obj0 = 0 ; | |
23703 | PyObject * obj1 = 0 ; | |
23704 | PyObject * obj2 = 0 ; | |
23705 | PyObject * obj3 = 0 ; | |
23706 | char * kwnames[] = { | |
23707 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23708 | }; | |
23709 | ||
23710 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23711 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23712 | if (!SWIG_IsOK(res1)) { | |
23713 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23714 | } | |
23715 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23716 | arg2 = obj1; | |
23717 | arg3 = obj2; | |
23718 | arg4 = obj3; | |
23719 | { | |
23720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23721 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
23722 | wxPyEndAllowThreads(__tstate); | |
23723 | if (PyErr_Occurred()) SWIG_fail; | |
23724 | } | |
23725 | resultobj = result; | |
23726 | return resultobj; | |
23727 | fail: | |
23728 | return NULL; | |
23729 | } | |
23730 | ||
23731 | ||
23732 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23733 | PyObject *resultobj = 0; | |
23734 | wxDC *arg1 = (wxDC *) 0 ; | |
23735 | PyObject *arg2 = (PyObject *) 0 ; | |
23736 | PyObject *arg3 = (PyObject *) 0 ; | |
23737 | PyObject *arg4 = (PyObject *) 0 ; | |
23738 | PyObject *result = 0 ; | |
23739 | void *argp1 = 0 ; | |
23740 | int res1 = 0 ; | |
23741 | PyObject * obj0 = 0 ; | |
23742 | PyObject * obj1 = 0 ; | |
23743 | PyObject * obj2 = 0 ; | |
23744 | PyObject * obj3 = 0 ; | |
23745 | char * kwnames[] = { | |
23746 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23747 | }; | |
23748 | ||
23749 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23750 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23751 | if (!SWIG_IsOK(res1)) { | |
23752 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23753 | } | |
23754 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23755 | arg2 = obj1; | |
23756 | arg3 = obj2; | |
23757 | arg4 = obj3; | |
23758 | { | |
23759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23760 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
23761 | wxPyEndAllowThreads(__tstate); | |
23762 | if (PyErr_Occurred()) SWIG_fail; | |
23763 | } | |
23764 | resultobj = result; | |
23765 | return resultobj; | |
23766 | fail: | |
23767 | return NULL; | |
23768 | } | |
23769 | ||
23770 | ||
23771 | SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23772 | PyObject *resultobj = 0; | |
23773 | wxDC *arg1 = (wxDC *) 0 ; | |
23774 | PyObject *arg2 = (PyObject *) 0 ; | |
23775 | PyObject *arg3 = (PyObject *) 0 ; | |
23776 | PyObject *arg4 = (PyObject *) 0 ; | |
23777 | PyObject *arg5 = (PyObject *) 0 ; | |
23778 | PyObject *result = 0 ; | |
23779 | void *argp1 = 0 ; | |
23780 | int res1 = 0 ; | |
23781 | PyObject * obj0 = 0 ; | |
23782 | PyObject * obj1 = 0 ; | |
23783 | PyObject * obj2 = 0 ; | |
23784 | PyObject * obj3 = 0 ; | |
23785 | PyObject * obj4 = 0 ; | |
23786 | char * kwnames[] = { | |
23787 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
23788 | }; | |
23789 | ||
23790 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
23791 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23792 | if (!SWIG_IsOK(res1)) { | |
23793 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23794 | } | |
23795 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23796 | arg2 = obj1; | |
23797 | arg3 = obj2; | |
23798 | arg4 = obj3; | |
23799 | arg5 = obj4; | |
23800 | { | |
23801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23802 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
23803 | wxPyEndAllowThreads(__tstate); | |
23804 | if (PyErr_Occurred()) SWIG_fail; | |
23805 | } | |
23806 | resultobj = result; | |
23807 | return resultobj; | |
23808 | fail: | |
23809 | return NULL; | |
23810 | } | |
23811 | ||
23812 | ||
23813 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23814 | PyObject *obj; | |
23815 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23816 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
23817 | return SWIG_Py_Void(); | |
23818 | } | |
23819 | ||
8e99bda9 | 23820 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 23821 | PyObject *resultobj = 0; |
8e99bda9 RD |
23822 | wxBitmap const &arg1_defvalue = wxNullBitmap ; |
23823 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
554f62e9 | 23824 | wxMemoryDC *result = 0 ; |
8e99bda9 RD |
23825 | void *argp1 = 0 ; |
23826 | int res1 = 0 ; | |
23827 | PyObject * obj0 = 0 ; | |
23828 | char * kwnames[] = { | |
23829 | (char *) "bitmap", NULL | |
23830 | }; | |
554f62e9 | 23831 | |
8e99bda9 RD |
23832 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail; |
23833 | if (obj0) { | |
23834 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23835 | if (!SWIG_IsOK(res1)) { | |
23836 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
23837 | } | |
23838 | if (!argp1) { | |
23839 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
23840 | } | |
23841 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
23842 | } | |
554f62e9 RD |
23843 | { |
23844 | if (!wxPyCheckForApp()) SWIG_fail; | |
23845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8e99bda9 | 23846 | result = (wxMemoryDC *)new wxMemoryDC((wxBitmap const &)*arg1); |
554f62e9 RD |
23847 | wxPyEndAllowThreads(__tstate); |
23848 | if (PyErr_Occurred()) SWIG_fail; | |
23849 | } | |
23850 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
23851 | return resultobj; | |
23852 | fail: | |
23853 | return NULL; | |
23854 | } | |
23855 | ||
23856 | ||
23857 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23858 | PyObject *resultobj = 0; | |
23859 | wxDC *arg1 = (wxDC *) 0 ; | |
23860 | wxMemoryDC *result = 0 ; | |
23861 | void *argp1 = 0 ; | |
23862 | int res1 = 0 ; | |
23863 | PyObject * obj0 = 0 ; | |
23864 | char * kwnames[] = { | |
23865 | (char *) "oldDC", NULL | |
23866 | }; | |
23867 | ||
23868 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
23869 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23870 | if (!SWIG_IsOK(res1)) { | |
23871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23872 | } | |
23873 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23874 | { | |
23875 | if (!wxPyCheckForApp()) SWIG_fail; | |
23876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23877 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
23878 | wxPyEndAllowThreads(__tstate); | |
23879 | if (PyErr_Occurred()) SWIG_fail; | |
23880 | } | |
23881 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
23882 | return resultobj; | |
23883 | fail: | |
23884 | return NULL; | |
23885 | } | |
23886 | ||
23887 | ||
23888 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23889 | PyObject *resultobj = 0; | |
23890 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
23891 | wxBitmap *arg2 = 0 ; | |
23892 | void *argp1 = 0 ; | |
23893 | int res1 = 0 ; | |
23894 | void *argp2 = 0 ; | |
23895 | int res2 = 0 ; | |
23896 | PyObject * obj0 = 0 ; | |
23897 | PyObject * obj1 = 0 ; | |
23898 | char * kwnames[] = { | |
23899 | (char *) "self",(char *) "bitmap", NULL | |
23900 | }; | |
23901 | ||
23902 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
23903 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
23904 | if (!SWIG_IsOK(res1)) { | |
23905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
23906 | } | |
23907 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
23908 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
23909 | if (!SWIG_IsOK(res2)) { | |
23910 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23911 | } | |
23912 | if (!argp2) { | |
23913 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
23914 | } | |
23915 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
23916 | { | |
23917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23918 | (arg1)->SelectObject((wxBitmap const &)*arg2); | |
23919 | wxPyEndAllowThreads(__tstate); | |
23920 | if (PyErr_Occurred()) SWIG_fail; | |
23921 | } | |
23922 | resultobj = SWIG_Py_Void(); | |
23923 | return resultobj; | |
23924 | fail: | |
23925 | return NULL; | |
23926 | } | |
23927 | ||
23928 | ||
23929 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23930 | PyObject *obj; | |
23931 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
23932 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
23933 | return SWIG_Py_Void(); | |
23934 | } | |
23935 | ||
23936 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23937 | return SWIG_Python_InitShadowInstance(args); | |
23938 | } | |
23939 | ||
24f6c4e8 RD |
23940 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23941 | PyObject *resultobj = 0; | |
23942 | wxScreenDC *result = 0 ; | |
23943 | ||
23944 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
23945 | { | |
23946 | if (!wxPyCheckForApp()) SWIG_fail; | |
23947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23948 | result = (wxScreenDC *)new wxScreenDC(); | |
23949 | wxPyEndAllowThreads(__tstate); | |
23950 | if (PyErr_Occurred()) SWIG_fail; | |
23951 | } | |
23952 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
23953 | return resultobj; | |
23954 | fail: | |
23955 | return NULL; | |
23956 | } | |
23957 | ||
23958 | ||
23959 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23960 | PyObject *resultobj = 0; | |
23961 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
23962 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23963 | bool result; | |
23964 | void *argp1 = 0 ; | |
23965 | int res1 = 0 ; | |
23966 | void *argp2 = 0 ; | |
23967 | int res2 = 0 ; | |
23968 | PyObject * obj0 = 0 ; | |
23969 | PyObject * obj1 = 0 ; | |
23970 | char * kwnames[] = { | |
23971 | (char *) "self",(char *) "window", NULL | |
23972 | }; | |
23973 | ||
23974 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
23975 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
23976 | if (!SWIG_IsOK(res1)) { | |
23977 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
23978 | } | |
23979 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
23980 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
23981 | if (!SWIG_IsOK(res2)) { | |
23982 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
23983 | } | |
23984 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
23985 | { | |
23986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23987 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
23988 | wxPyEndAllowThreads(__tstate); | |
23989 | if (PyErr_Occurred()) SWIG_fail; | |
23990 | } | |
23991 | { | |
23992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23993 | } | |
23994 | return resultobj; | |
23995 | fail: | |
23996 | return NULL; | |
23997 | } | |
23998 | ||
23999 | ||
24000 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24001 | PyObject *resultobj = 0; | |
24002 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24003 | wxRect *arg2 = (wxRect *) NULL ; | |
24004 | bool result; | |
24005 | void *argp1 = 0 ; | |
24006 | int res1 = 0 ; | |
24007 | void *argp2 = 0 ; | |
24008 | int res2 = 0 ; | |
24009 | PyObject * obj0 = 0 ; | |
24010 | PyObject * obj1 = 0 ; | |
24011 | char * kwnames[] = { | |
24012 | (char *) "self",(char *) "rect", NULL | |
24013 | }; | |
24014 | ||
24015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
24016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24017 | if (!SWIG_IsOK(res1)) { | |
24018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24019 | } | |
24020 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24021 | if (obj1) { | |
24022 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
24023 | if (!SWIG_IsOK(res2)) { | |
24024 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
24025 | } | |
24026 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
24027 | } | |
24028 | { | |
24029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24030 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24031 | wxPyEndAllowThreads(__tstate); | |
24032 | if (PyErr_Occurred()) SWIG_fail; | |
24033 | } | |
24034 | { | |
24035 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24036 | } | |
24037 | return resultobj; | |
24038 | fail: | |
24039 | return NULL; | |
24040 | } | |
24041 | ||
24042 | ||
24043 | SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24044 | PyObject *resultobj = 0; | |
24045 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24046 | bool result; | |
24047 | void *argp1 = 0 ; | |
24048 | int res1 = 0 ; | |
24049 | PyObject *swig_obj[1] ; | |
24050 | ||
24051 | if (!args) SWIG_fail; | |
24052 | swig_obj[0] = args; | |
24053 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24054 | if (!SWIG_IsOK(res1)) { | |
24055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24056 | } | |
24057 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24058 | { | |
24059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24060 | result = (bool)(arg1)->EndDrawingOnTop(); | |
24061 | wxPyEndAllowThreads(__tstate); | |
24062 | if (PyErr_Occurred()) SWIG_fail; | |
24063 | } | |
24064 | { | |
24065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24066 | } | |
24067 | return resultobj; | |
24068 | fail: | |
24069 | return NULL; | |
24070 | } | |
24071 | ||
24072 | ||
24073 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24074 | PyObject *obj; | |
24075 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24076 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
24077 | return SWIG_Py_Void(); | |
24078 | } | |
24079 | ||
24080 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24081 | return SWIG_Python_InitShadowInstance(args); | |
24082 | } | |
24083 | ||
24084 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24085 | PyObject *resultobj = 0; | |
24086 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24087 | wxWindowDC *result = 0 ; | |
24088 | void *argp1 = 0 ; | |
24089 | int res1 = 0 ; | |
24090 | PyObject * obj0 = 0 ; | |
24091 | char * kwnames[] = { | |
24092 | (char *) "win", NULL | |
24093 | }; | |
24094 | ||
24095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
24096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24097 | if (!SWIG_IsOK(res1)) { | |
24098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24099 | } | |
24100 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24101 | { | |
24102 | if (!wxPyCheckForApp()) SWIG_fail; | |
24103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24104 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
24105 | wxPyEndAllowThreads(__tstate); | |
24106 | if (PyErr_Occurred()) SWIG_fail; | |
24107 | } | |
24108 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
24109 | return resultobj; | |
24110 | fail: | |
24111 | return NULL; | |
24112 | } | |
24113 | ||
24114 | ||
24115 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24116 | PyObject *obj; | |
24117 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24118 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
24119 | return SWIG_Py_Void(); | |
24120 | } | |
24121 | ||
24122 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24123 | return SWIG_Python_InitShadowInstance(args); | |
24124 | } | |
24125 | ||
24126 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24127 | PyObject *resultobj = 0; | |
24128 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24129 | wxClientDC *result = 0 ; | |
24130 | void *argp1 = 0 ; | |
24131 | int res1 = 0 ; | |
24132 | PyObject * obj0 = 0 ; | |
24133 | char * kwnames[] = { | |
24134 | (char *) "win", NULL | |
24135 | }; | |
24136 | ||
24137 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
24138 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24139 | if (!SWIG_IsOK(res1)) { | |
24140 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24141 | } | |
24142 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24143 | { | |
24144 | if (!wxPyCheckForApp()) SWIG_fail; | |
24145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24146 | result = (wxClientDC *)new wxClientDC(arg1); | |
24147 | wxPyEndAllowThreads(__tstate); | |
24148 | if (PyErr_Occurred()) SWIG_fail; | |
24149 | } | |
24150 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
24151 | return resultobj; | |
24152 | fail: | |
24153 | return NULL; | |
24154 | } | |
24155 | ||
24156 | ||
24157 | SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24158 | PyObject *obj; | |
24159 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24160 | SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj)); | |
24161 | return SWIG_Py_Void(); | |
24162 | } | |
24163 | ||
24164 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24165 | return SWIG_Python_InitShadowInstance(args); | |
24166 | } | |
24167 | ||
24168 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24169 | PyObject *resultobj = 0; | |
24170 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24171 | wxPaintDC *result = 0 ; | |
24172 | void *argp1 = 0 ; | |
24173 | int res1 = 0 ; | |
24174 | PyObject * obj0 = 0 ; | |
24175 | char * kwnames[] = { | |
24176 | (char *) "win", NULL | |
24177 | }; | |
24178 | ||
24179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
24180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24181 | if (!SWIG_IsOK(res1)) { | |
24182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24183 | } | |
24184 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24185 | { | |
24186 | if (!wxPyCheckForApp()) SWIG_fail; | |
24187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24188 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
24189 | wxPyEndAllowThreads(__tstate); | |
24190 | if (PyErr_Occurred()) SWIG_fail; | |
24191 | } | |
24192 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
24193 | return resultobj; | |
24194 | fail: | |
24195 | return NULL; | |
24196 | } | |
24197 | ||
24198 | ||
24199 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24200 | PyObject *obj; | |
24201 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24202 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
24203 | return SWIG_Py_Void(); | |
24204 | } | |
24205 | ||
24206 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24207 | return SWIG_Python_InitShadowInstance(args); | |
24208 | } | |
24209 | ||
554f62e9 RD |
24210 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
24211 | PyObject *resultobj = 0; | |
24212 | wxDC *arg1 = (wxDC *) 0 ; | |
24213 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
24214 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
24215 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24216 | wxBufferedDC *result = 0 ; | |
24217 | void *argp1 = 0 ; | |
24218 | int res1 = 0 ; | |
24219 | void *argp2 = 0 ; | |
24220 | int res2 = 0 ; | |
24221 | int val3 ; | |
24222 | int ecode3 = 0 ; | |
24223 | ||
24224 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
24225 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24226 | if (!SWIG_IsOK(res1)) { | |
24227 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24228 | } | |
24229 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24230 | if (swig_obj[1]) { | |
24231 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24232 | if (!SWIG_IsOK(res2)) { | |
24233 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24234 | } |
554f62e9 RD |
24235 | if (!argp2) { |
24236 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24237 | } |
554f62e9 RD |
24238 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
24239 | } | |
24240 | if (swig_obj[2]) { | |
24241 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24242 | if (!SWIG_IsOK(ecode3)) { | |
24243 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24244 | } | |
24245 | arg3 = static_cast< int >(val3); | |
24246 | } | |
24247 | { | |
24248 | if (!wxPyCheckForApp()) SWIG_fail; | |
24249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24250 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3); | |
24251 | wxPyEndAllowThreads(__tstate); | |
24252 | if (PyErr_Occurred()) SWIG_fail; | |
24253 | } | |
24254 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24255 | return resultobj; | |
24256 | fail: | |
24257 | return NULL; | |
24258 | } | |
24259 | ||
24260 | ||
24261 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24262 | PyObject *resultobj = 0; | |
24263 | wxDC *arg1 = (wxDC *) 0 ; | |
24264 | wxSize *arg2 = 0 ; | |
24265 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24266 | wxBufferedDC *result = 0 ; | |
24267 | void *argp1 = 0 ; | |
24268 | int res1 = 0 ; | |
24269 | wxSize temp2 ; | |
24270 | int val3 ; | |
24271 | int ecode3 = 0 ; | |
24272 | ||
24273 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
24274 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24275 | if (!SWIG_IsOK(res1)) { | |
24276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24277 | } | |
24278 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24279 | { | |
24280 | arg2 = &temp2; | |
24281 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
24282 | } | |
24283 | if (swig_obj[2]) { | |
24284 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24285 | if (!SWIG_IsOK(ecode3)) { | |
24286 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
24287 | } | |
24288 | arg3 = static_cast< int >(val3); | |
24289 | } | |
24290 | { | |
24291 | if (!wxPyCheckForApp()) SWIG_fail; | |
24292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24293 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
24294 | wxPyEndAllowThreads(__tstate); | |
24295 | if (PyErr_Occurred()) SWIG_fail; | |
24296 | } | |
24297 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
24298 | return resultobj; | |
24299 | fail: | |
24300 | return NULL; | |
24301 | } | |
24302 | ||
24303 | ||
24304 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
24305 | int argc; | |
8e99bda9 | 24306 | PyObject *argv[4]; |
554f62e9 | 24307 | |
8e99bda9 | 24308 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; |
554f62e9 RD |
24309 | --argc; |
24310 | if ((argc >= 1) && (argc <= 3)) { | |
24311 | int _v = 0; | |
24312 | if (argc > 1) { | |
24313 | { | |
24314 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0); | |
24315 | _v = SWIG_CheckState(res); | |
24316 | } | |
24317 | if (!_v) goto check_1; | |
093d3ff1 | 24318 | } |
554f62e9 RD |
24319 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
24320 | } | |
24321 | check_1: | |
24322 | ||
24323 | if ((argc >= 2) && (argc <= 3)) { | |
24324 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
24325 | } | |
24326 | ||
24327 | fail: | |
24328 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
24329 | return NULL; | |
24330 | } | |
24331 | ||
24332 | ||
24333 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24334 | PyObject *resultobj = 0; | |
24335 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24336 | void *argp1 = 0 ; | |
24337 | int res1 = 0 ; | |
24338 | PyObject *swig_obj[1] ; | |
24339 | ||
24340 | if (!args) SWIG_fail; | |
24341 | swig_obj[0] = args; | |
24342 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
24343 | if (!SWIG_IsOK(res1)) { | |
24344 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24345 | } | |
24346 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24347 | { | |
24348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24349 | delete arg1; | |
24350 | ||
24351 | wxPyEndAllowThreads(__tstate); | |
24352 | if (PyErr_Occurred()) SWIG_fail; | |
24353 | } | |
24354 | resultobj = SWIG_Py_Void(); | |
24355 | return resultobj; | |
24356 | fail: | |
24357 | return NULL; | |
24358 | } | |
24359 | ||
24360 | ||
24361 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24362 | PyObject *resultobj = 0; | |
24363 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
24364 | void *argp1 = 0 ; | |
24365 | int res1 = 0 ; | |
24366 | PyObject *swig_obj[1] ; | |
24367 | ||
24368 | if (!args) SWIG_fail; | |
24369 | swig_obj[0] = args; | |
24370 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
24371 | if (!SWIG_IsOK(res1)) { | |
24372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
24373 | } | |
24374 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
24375 | { | |
24376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24377 | (arg1)->UnMask(); | |
24378 | wxPyEndAllowThreads(__tstate); | |
24379 | if (PyErr_Occurred()) SWIG_fail; | |
24380 | } | |
24381 | resultobj = SWIG_Py_Void(); | |
24382 | return resultobj; | |
24383 | fail: | |
24384 | return NULL; | |
24385 | } | |
24386 | ||
24387 | ||
24388 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24389 | PyObject *obj; | |
24390 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24391 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
24392 | return SWIG_Py_Void(); | |
24393 | } | |
24394 | ||
24395 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24396 | return SWIG_Python_InitShadowInstance(args); | |
24397 | } | |
24398 | ||
24399 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24400 | PyObject *resultobj = 0; | |
24401 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24402 | wxBitmap const &arg2_defvalue = wxNullBitmap ; | |
24403 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; | |
24404 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
24405 | wxBufferedPaintDC *result = 0 ; | |
24406 | void *argp1 = 0 ; | |
24407 | int res1 = 0 ; | |
24408 | void *argp2 = 0 ; | |
24409 | int res2 = 0 ; | |
24410 | int val3 ; | |
24411 | int ecode3 = 0 ; | |
24412 | PyObject * obj0 = 0 ; | |
24413 | PyObject * obj1 = 0 ; | |
24414 | PyObject * obj2 = 0 ; | |
24415 | char * kwnames[] = { | |
24416 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
24417 | }; | |
24418 | ||
24419 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24420 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24421 | if (!SWIG_IsOK(res1)) { | |
24422 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24423 | } | |
24424 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24425 | if (obj1) { | |
24426 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
24427 | if (!SWIG_IsOK(res2)) { | |
24428 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24429 | } |
554f62e9 RD |
24430 | if (!argp2) { |
24431 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 24432 | } |
554f62e9 RD |
24433 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
24434 | } | |
24435 | if (obj2) { | |
24436 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24437 | if (!SWIG_IsOK(ecode3)) { | |
24438 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
24439 | } | |
24440 | arg3 = static_cast< int >(val3); | |
24441 | } | |
24442 | { | |
24443 | if (!wxPyCheckForApp()) SWIG_fail; | |
24444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24445 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3); | |
24446 | wxPyEndAllowThreads(__tstate); | |
24447 | if (PyErr_Occurred()) SWIG_fail; | |
24448 | } | |
24449 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
24450 | return resultobj; | |
24451 | fail: | |
24452 | return NULL; | |
24453 | } | |
24454 | ||
24455 | ||
24456 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24457 | PyObject *obj; | |
24458 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24459 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
24460 | return SWIG_Py_Void(); | |
24461 | } | |
24462 | ||
24463 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24464 | return SWIG_Python_InitShadowInstance(args); | |
24465 | } | |
24466 | ||
24f6c4e8 | 24467 | SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
24468 | PyObject *resultobj = 0; |
24469 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24f6c4e8 | 24470 | wxAutoBufferedPaintDC *result = 0 ; |
554f62e9 RD |
24471 | void *argp1 = 0 ; |
24472 | int res1 = 0 ; | |
24473 | PyObject * obj0 = 0 ; | |
24474 | char * kwnames[] = { | |
24475 | (char *) "win", NULL | |
24476 | }; | |
24477 | ||
24f6c4e8 | 24478 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail; |
554f62e9 RD |
24479 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); |
24480 | if (!SWIG_IsOK(res1)) { | |
24f6c4e8 | 24481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); |
554f62e9 RD |
24482 | } |
24483 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24484 | { | |
554f62e9 | 24485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24f6c4e8 | 24486 | result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1); |
554f62e9 RD |
24487 | wxPyEndAllowThreads(__tstate); |
24488 | if (PyErr_Occurred()) SWIG_fail; | |
24489 | } | |
24f6c4e8 | 24490 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 ); |
554f62e9 RD |
24491 | return resultobj; |
24492 | fail: | |
24493 | return NULL; | |
24494 | } | |
24495 | ||
24496 | ||
24f6c4e8 | 24497 | SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
24498 | PyObject *obj; |
24499 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24f6c4e8 | 24500 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj)); |
554f62e9 RD |
24501 | return SWIG_Py_Void(); |
24502 | } | |
24503 | ||
24f6c4e8 | 24504 | SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
24505 | return SWIG_Python_InitShadowInstance(args); |
24506 | } | |
24507 | ||
8e99bda9 RD |
24508 | SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24509 | PyObject *resultobj = 0; | |
24510 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24511 | wxDC *result = 0 ; | |
24512 | void *argp1 = 0 ; | |
24513 | int res1 = 0 ; | |
24514 | PyObject * obj0 = 0 ; | |
24515 | char * kwnames[] = { | |
24516 | (char *) "window", NULL | |
24517 | }; | |
24518 | ||
24519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail; | |
24520 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24521 | if (!SWIG_IsOK(res1)) { | |
24522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24523 | } | |
24524 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24525 | { | |
24526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24527 | result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1); | |
24528 | wxPyEndAllowThreads(__tstate); | |
24529 | if (PyErr_Occurred()) SWIG_fail; | |
24530 | } | |
24531 | { | |
24532 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
24533 | } | |
24534 | return resultobj; | |
24535 | fail: | |
24536 | return NULL; | |
24537 | } | |
24538 | ||
24539 | ||
554f62e9 RD |
24540 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24541 | PyObject *resultobj = 0; | |
24542 | wxDC *arg1 = 0 ; | |
24543 | bool arg2 ; | |
24544 | wxMirrorDC *result = 0 ; | |
24545 | void *argp1 = 0 ; | |
24546 | int res1 = 0 ; | |
24547 | bool val2 ; | |
24548 | int ecode2 = 0 ; | |
24549 | PyObject * obj0 = 0 ; | |
24550 | PyObject * obj1 = 0 ; | |
24551 | char * kwnames[] = { | |
24552 | (char *) "dc",(char *) "mirror", NULL | |
24553 | }; | |
24554 | ||
24555 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
24556 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24557 | if (!SWIG_IsOK(res1)) { | |
24558 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24559 | } | |
24560 | if (!argp1) { | |
24561 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24562 | } | |
24563 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24564 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
24565 | if (!SWIG_IsOK(ecode2)) { | |
24566 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
24567 | } | |
24568 | arg2 = static_cast< bool >(val2); | |
24569 | { | |
24570 | if (!wxPyCheckForApp()) SWIG_fail; | |
24571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24572 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
24573 | wxPyEndAllowThreads(__tstate); | |
24574 | if (PyErr_Occurred()) SWIG_fail; | |
24575 | } | |
24576 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
24577 | return resultobj; | |
24578 | fail: | |
24579 | return NULL; | |
24580 | } | |
24581 | ||
24582 | ||
24583 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24584 | PyObject *obj; | |
24585 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24586 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
24587 | return SWIG_Py_Void(); | |
24588 | } | |
24589 | ||
24590 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24591 | return SWIG_Python_InitShadowInstance(args); | |
24592 | } | |
24593 | ||
24594 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24595 | PyObject *resultobj = 0; | |
24596 | wxPrintData *arg1 = 0 ; | |
24597 | wxPostScriptDC *result = 0 ; | |
24598 | void *argp1 = 0 ; | |
24599 | int res1 = 0 ; | |
24600 | PyObject * obj0 = 0 ; | |
24601 | char * kwnames[] = { | |
24602 | (char *) "printData", NULL | |
24603 | }; | |
24604 | ||
24605 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
24606 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24607 | if (!SWIG_IsOK(res1)) { | |
24608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24609 | } | |
24610 | if (!argp1) { | |
24611 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
24612 | } | |
24613 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
24614 | { | |
24615 | if (!wxPyCheckForApp()) SWIG_fail; | |
24616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24617 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
24618 | wxPyEndAllowThreads(__tstate); | |
24619 | if (PyErr_Occurred()) SWIG_fail; | |
24620 | } | |
24621 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
24622 | return resultobj; | |
24623 | fail: | |
24624 | return NULL; | |
24625 | } | |
24626 | ||
24627 | ||
24628 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24629 | PyObject *resultobj = 0; | |
24630 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
24631 | wxPrintData *result = 0 ; | |
24632 | void *argp1 = 0 ; | |
24633 | int res1 = 0 ; | |
24634 | PyObject *swig_obj[1] ; | |
24635 | ||
24636 | if (!args) SWIG_fail; | |
24637 | swig_obj[0] = args; | |
24638 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
24639 | if (!SWIG_IsOK(res1)) { | |
24640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
24641 | } | |
24642 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
24643 | { | |
24644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 24645 | { |
554f62e9 RD |
24646 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
24647 | result = (wxPrintData *) &_result_ref; | |
093d3ff1 | 24648 | } |
554f62e9 RD |
24649 | wxPyEndAllowThreads(__tstate); |
24650 | if (PyErr_Occurred()) SWIG_fail; | |
24651 | } | |
24652 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
24653 | return resultobj; | |
24654 | fail: | |
24655 | return NULL; | |
24656 | } | |
24657 | ||
24658 | ||
24659 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24660 | PyObject *resultobj = 0; | |
24661 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
24662 | wxPrintData *arg2 = 0 ; | |
24663 | void *argp1 = 0 ; | |
24664 | int res1 = 0 ; | |
24665 | void *argp2 = 0 ; | |
24666 | int res2 = 0 ; | |
24667 | PyObject * obj0 = 0 ; | |
24668 | PyObject * obj1 = 0 ; | |
24669 | char * kwnames[] = { | |
24670 | (char *) "self",(char *) "data", NULL | |
24671 | }; | |
24672 | ||
24673 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
24674 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
24675 | if (!SWIG_IsOK(res1)) { | |
24676 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
24677 | } | |
24678 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
24679 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
24680 | if (!SWIG_IsOK(res2)) { | |
24681 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
24682 | } | |
24683 | if (!argp2) { | |
24684 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
24685 | } | |
24686 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
24687 | { | |
24688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24689 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
24690 | wxPyEndAllowThreads(__tstate); | |
24691 | if (PyErr_Occurred()) SWIG_fail; | |
24692 | } | |
24693 | resultobj = SWIG_Py_Void(); | |
24694 | return resultobj; | |
24695 | fail: | |
24696 | return NULL; | |
24697 | } | |
24698 | ||
24699 | ||
24700 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24701 | PyObject *resultobj = 0; | |
24702 | int arg1 ; | |
24703 | int val1 ; | |
24704 | int ecode1 = 0 ; | |
24705 | PyObject * obj0 = 0 ; | |
24706 | char * kwnames[] = { | |
24707 | (char *) "ppi", NULL | |
24708 | }; | |
24709 | ||
24710 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
24711 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
24712 | if (!SWIG_IsOK(ecode1)) { | |
24713 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
24714 | } | |
24715 | arg1 = static_cast< int >(val1); | |
24716 | { | |
24717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24718 | wxPostScriptDC::SetResolution(arg1); | |
24719 | wxPyEndAllowThreads(__tstate); | |
24720 | if (PyErr_Occurred()) SWIG_fail; | |
24721 | } | |
24722 | resultobj = SWIG_Py_Void(); | |
24723 | return resultobj; | |
24724 | fail: | |
24725 | return NULL; | |
24726 | } | |
24727 | ||
24728 | ||
24729 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24730 | PyObject *resultobj = 0; | |
24731 | int result; | |
24732 | ||
24733 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
24734 | { | |
24735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24736 | result = (int)wxPostScriptDC::GetResolution(); | |
24737 | wxPyEndAllowThreads(__tstate); | |
24738 | if (PyErr_Occurred()) SWIG_fail; | |
24739 | } | |
24740 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24741 | return resultobj; | |
24742 | fail: | |
24743 | return NULL; | |
24744 | } | |
24745 | ||
24746 | ||
24747 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24748 | PyObject *obj; | |
24749 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24750 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
24751 | return SWIG_Py_Void(); | |
24752 | } | |
24753 | ||
24754 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24755 | return SWIG_Python_InitShadowInstance(args); | |
24756 | } | |
24757 | ||
24758 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24759 | PyObject *resultobj = 0; | |
24760 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
24761 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
24762 | wxMetaFile *result = 0 ; | |
24763 | bool temp1 = false ; | |
24764 | PyObject * obj0 = 0 ; | |
24765 | char * kwnames[] = { | |
24766 | (char *) "filename", NULL | |
24767 | }; | |
24768 | ||
24769 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
24770 | if (obj0) { | |
093d3ff1 | 24771 | { |
554f62e9 RD |
24772 | arg1 = wxString_in_helper(obj0); |
24773 | if (arg1 == NULL) SWIG_fail; | |
24774 | temp1 = true; | |
093d3ff1 | 24775 | } |
554f62e9 RD |
24776 | } |
24777 | { | |
24778 | if (!wxPyCheckForApp()) SWIG_fail; | |
24779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24780 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
24781 | wxPyEndAllowThreads(__tstate); | |
24782 | if (PyErr_Occurred()) SWIG_fail; | |
24783 | } | |
24784 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
24785 | { | |
24786 | if (temp1) | |
24787 | delete arg1; | |
24788 | } | |
24789 | return resultobj; | |
24790 | fail: | |
24791 | { | |
24792 | if (temp1) | |
24793 | delete arg1; | |
24794 | } | |
24795 | return NULL; | |
24796 | } | |
24797 | ||
24798 | ||
24799 | SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24800 | PyObject *resultobj = 0; | |
24801 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
24802 | void *argp1 = 0 ; | |
24803 | int res1 = 0 ; | |
24804 | PyObject *swig_obj[1] ; | |
24805 | ||
24806 | if (!args) SWIG_fail; | |
24807 | swig_obj[0] = args; | |
24808 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 ); | |
24809 | if (!SWIG_IsOK(res1)) { | |
24810 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
24811 | } | |
24812 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
24813 | { | |
24814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24815 | delete arg1; | |
24816 | ||
24817 | wxPyEndAllowThreads(__tstate); | |
24818 | if (PyErr_Occurred()) SWIG_fail; | |
24819 | } | |
24820 | resultobj = SWIG_Py_Void(); | |
24821 | return resultobj; | |
24822 | fail: | |
24823 | return NULL; | |
24824 | } | |
24825 | ||
24826 | ||
b39fe951 | 24827 | SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
24828 | PyObject *resultobj = 0; |
24829 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
24830 | bool result; | |
24831 | void *argp1 = 0 ; | |
24832 | int res1 = 0 ; | |
24833 | PyObject *swig_obj[1] ; | |
24834 | ||
24835 | if (!args) SWIG_fail; | |
24836 | swig_obj[0] = args; | |
24837 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
24838 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 24839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'"); |
554f62e9 RD |
24840 | } |
24841 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
24842 | { | |
24843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 24844 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
24845 | wxPyEndAllowThreads(__tstate); |
24846 | if (PyErr_Occurred()) SWIG_fail; | |
24847 | } | |
24848 | { | |
24849 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24850 | } | |
24851 | return resultobj; | |
24852 | fail: | |
24853 | return NULL; | |
24854 | } | |
24855 | ||
24856 | ||
24857 | SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24858 | PyObject *resultobj = 0; | |
24859 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
24860 | int arg2 = (int) 0 ; | |
24861 | int arg3 = (int) 0 ; | |
24862 | bool result; | |
24863 | void *argp1 = 0 ; | |
24864 | int res1 = 0 ; | |
24865 | int val2 ; | |
24866 | int ecode2 = 0 ; | |
24867 | int val3 ; | |
24868 | int ecode3 = 0 ; | |
24869 | PyObject * obj0 = 0 ; | |
24870 | PyObject * obj1 = 0 ; | |
24871 | PyObject * obj2 = 0 ; | |
24872 | char * kwnames[] = { | |
24873 | (char *) "self",(char *) "width",(char *) "height", NULL | |
24874 | }; | |
24875 | ||
24876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
24877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
24878 | if (!SWIG_IsOK(res1)) { | |
24879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
24880 | } | |
24881 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
24882 | if (obj1) { | |
24883 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
24884 | if (!SWIG_IsOK(ecode2)) { | |
24885 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'"); | |
24886 | } | |
24887 | arg2 = static_cast< int >(val2); | |
24888 | } | |
24889 | if (obj2) { | |
24890 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
24891 | if (!SWIG_IsOK(ecode3)) { | |
24892 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'"); | |
24893 | } | |
24894 | arg3 = static_cast< int >(val3); | |
24895 | } | |
24896 | { | |
24897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24898 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
24899 | wxPyEndAllowThreads(__tstate); | |
24900 | if (PyErr_Occurred()) SWIG_fail; | |
24901 | } | |
24902 | { | |
24903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24904 | } | |
24905 | return resultobj; | |
24906 | fail: | |
24907 | return NULL; | |
24908 | } | |
24909 | ||
24910 | ||
24911 | SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24912 | PyObject *resultobj = 0; | |
24913 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
24914 | wxSize result; | |
24915 | void *argp1 = 0 ; | |
24916 | int res1 = 0 ; | |
24917 | PyObject *swig_obj[1] ; | |
24918 | ||
24919 | if (!args) SWIG_fail; | |
24920 | swig_obj[0] = args; | |
24921 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
24922 | if (!SWIG_IsOK(res1)) { | |
24923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
24924 | } | |
24925 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
24926 | { | |
24927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24928 | result = (arg1)->GetSize(); | |
24929 | wxPyEndAllowThreads(__tstate); | |
24930 | if (PyErr_Occurred()) SWIG_fail; | |
24931 | } | |
24932 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
24933 | return resultobj; | |
24934 | fail: | |
24935 | return NULL; | |
24936 | } | |
24937 | ||
24938 | ||
24939 | SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24940 | PyObject *resultobj = 0; | |
24941 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
24942 | int result; | |
24943 | void *argp1 = 0 ; | |
24944 | int res1 = 0 ; | |
24945 | PyObject *swig_obj[1] ; | |
24946 | ||
24947 | if (!args) SWIG_fail; | |
24948 | swig_obj[0] = args; | |
24949 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
24950 | if (!SWIG_IsOK(res1)) { | |
24951 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
24952 | } | |
24953 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
24954 | { | |
24955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24956 | result = (int)(arg1)->GetWidth(); | |
24957 | wxPyEndAllowThreads(__tstate); | |
24958 | if (PyErr_Occurred()) SWIG_fail; | |
24959 | } | |
24960 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24961 | return resultobj; | |
24962 | fail: | |
24963 | return NULL; | |
24964 | } | |
24965 | ||
24966 | ||
24967 | SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24968 | PyObject *resultobj = 0; | |
24969 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
24970 | int result; | |
24971 | void *argp1 = 0 ; | |
24972 | int res1 = 0 ; | |
24973 | PyObject *swig_obj[1] ; | |
24974 | ||
24975 | if (!args) SWIG_fail; | |
24976 | swig_obj[0] = args; | |
24977 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
24978 | if (!SWIG_IsOK(res1)) { | |
24979 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
24980 | } | |
24981 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
24982 | { | |
24983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24984 | result = (int)(arg1)->GetHeight(); | |
24985 | wxPyEndAllowThreads(__tstate); | |
24986 | if (PyErr_Occurred()) SWIG_fail; | |
24987 | } | |
24988 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
24989 | return resultobj; | |
24990 | fail: | |
24991 | return NULL; | |
24992 | } | |
24993 | ||
24994 | ||
24995 | SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24996 | PyObject *resultobj = 0; | |
24997 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
24998 | wxString *result = 0 ; | |
24999 | void *argp1 = 0 ; | |
25000 | int res1 = 0 ; | |
25001 | PyObject *swig_obj[1] ; | |
25002 | ||
25003 | if (!args) SWIG_fail; | |
25004 | swig_obj[0] = args; | |
25005 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25006 | if (!SWIG_IsOK(res1)) { | |
25007 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'"); | |
25008 | } | |
25009 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25010 | { | |
25011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 25012 | { |
554f62e9 RD |
25013 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); |
25014 | result = (wxString *) &_result_ref; | |
e2950dbb | 25015 | } |
554f62e9 RD |
25016 | wxPyEndAllowThreads(__tstate); |
25017 | if (PyErr_Occurred()) SWIG_fail; | |
25018 | } | |
25019 | { | |
25020 | #if wxUSE_UNICODE | |
25021 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
25022 | #else | |
25023 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
25024 | #endif | |
25025 | } | |
25026 | return resultobj; | |
25027 | fail: | |
25028 | return NULL; | |
25029 | } | |
25030 | ||
25031 | ||
25032 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25033 | PyObject *obj; | |
25034 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25035 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
25036 | return SWIG_Py_Void(); | |
25037 | } | |
25038 | ||
25039 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25040 | return SWIG_Python_InitShadowInstance(args); | |
25041 | } | |
25042 | ||
25043 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25044 | PyObject *resultobj = 0; | |
25045 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25046 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25047 | int arg2 = (int) 0 ; | |
25048 | int arg3 = (int) 0 ; | |
25049 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25050 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25051 | wxMetaFileDC *result = 0 ; | |
25052 | bool temp1 = false ; | |
25053 | int val2 ; | |
25054 | int ecode2 = 0 ; | |
25055 | int val3 ; | |
25056 | int ecode3 = 0 ; | |
25057 | bool temp4 = false ; | |
25058 | PyObject * obj0 = 0 ; | |
25059 | PyObject * obj1 = 0 ; | |
25060 | PyObject * obj2 = 0 ; | |
25061 | PyObject * obj3 = 0 ; | |
25062 | char * kwnames[] = { | |
25063 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
25064 | }; | |
25065 | ||
25066 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
25067 | if (obj0) { | |
e2950dbb | 25068 | { |
554f62e9 RD |
25069 | arg1 = wxString_in_helper(obj0); |
25070 | if (arg1 == NULL) SWIG_fail; | |
25071 | temp1 = true; | |
e2950dbb | 25072 | } |
554f62e9 RD |
25073 | } |
25074 | if (obj1) { | |
25075 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25076 | if (!SWIG_IsOK(ecode2)) { | |
25077 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
25078 | } | |
25079 | arg2 = static_cast< int >(val2); | |
25080 | } | |
25081 | if (obj2) { | |
25082 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25083 | if (!SWIG_IsOK(ecode3)) { | |
25084 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
25085 | } | |
25086 | arg3 = static_cast< int >(val3); | |
25087 | } | |
25088 | if (obj3) { | |
093d3ff1 | 25089 | { |
554f62e9 RD |
25090 | arg4 = wxString_in_helper(obj3); |
25091 | if (arg4 == NULL) SWIG_fail; | |
25092 | temp4 = true; | |
093d3ff1 | 25093 | } |
554f62e9 RD |
25094 | } |
25095 | { | |
25096 | if (!wxPyCheckForApp()) SWIG_fail; | |
25097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25098 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
25099 | wxPyEndAllowThreads(__tstate); | |
25100 | if (PyErr_Occurred()) SWIG_fail; | |
25101 | } | |
25102 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
25103 | { | |
25104 | if (temp1) | |
25105 | delete arg1; | |
25106 | } | |
25107 | { | |
25108 | if (temp4) | |
25109 | delete arg4; | |
25110 | } | |
25111 | return resultobj; | |
25112 | fail: | |
25113 | { | |
25114 | if (temp1) | |
25115 | delete arg1; | |
25116 | } | |
25117 | { | |
25118 | if (temp4) | |
25119 | delete arg4; | |
25120 | } | |
25121 | return NULL; | |
25122 | } | |
25123 | ||
25124 | ||
25125 | SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25126 | PyObject *resultobj = 0; | |
25127 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
25128 | wxMetaFile *result = 0 ; | |
25129 | void *argp1 = 0 ; | |
25130 | int res1 = 0 ; | |
25131 | PyObject *swig_obj[1] ; | |
25132 | ||
25133 | if (!args) SWIG_fail; | |
25134 | swig_obj[0] = args; | |
25135 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 ); | |
25136 | if (!SWIG_IsOK(res1)) { | |
25137 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'"); | |
25138 | } | |
25139 | arg1 = reinterpret_cast< wxMetaFileDC * >(argp1); | |
25140 | { | |
25141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25142 | result = (wxMetaFile *)(arg1)->Close(); | |
25143 | wxPyEndAllowThreads(__tstate); | |
25144 | if (PyErr_Occurred()) SWIG_fail; | |
25145 | } | |
25146 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25147 | return resultobj; | |
25148 | fail: | |
25149 | return NULL; | |
25150 | } | |
25151 | ||
25152 | ||
25153 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25154 | PyObject *obj; | |
25155 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25156 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
25157 | return SWIG_Py_Void(); | |
25158 | } | |
25159 | ||
25160 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25161 | return SWIG_Python_InitShadowInstance(args); | |
25162 | } | |
25163 | ||
25164 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25165 | PyObject *resultobj = 0; | |
25166 | wxPrintData *arg1 = 0 ; | |
25167 | wxPrinterDC *result = 0 ; | |
25168 | void *argp1 = 0 ; | |
25169 | int res1 = 0 ; | |
25170 | PyObject * obj0 = 0 ; | |
25171 | char * kwnames[] = { | |
25172 | (char *) "printData", NULL | |
25173 | }; | |
25174 | ||
25175 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
25176 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25177 | if (!SWIG_IsOK(res1)) { | |
25178 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25179 | } | |
25180 | if (!argp1) { | |
25181 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25182 | } | |
25183 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25184 | { | |
25185 | if (!wxPyCheckForApp()) SWIG_fail; | |
25186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25187 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
25188 | wxPyEndAllowThreads(__tstate); | |
25189 | if (PyErr_Occurred()) SWIG_fail; | |
25190 | } | |
25191 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
25192 | return resultobj; | |
25193 | fail: | |
25194 | return NULL; | |
25195 | } | |
25196 | ||
25197 | ||
25198 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25199 | PyObject *obj; | |
25200 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25201 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
25202 | return SWIG_Py_Void(); | |
25203 | } | |
25204 | ||
25205 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25206 | return SWIG_Python_InitShadowInstance(args); | |
25207 | } | |
25208 | ||
72ef6efb | 25209 | SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 25210 | PyObject *resultobj = 0; |
72ef6efb | 25211 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
554f62e9 RD |
25212 | void *argp1 = 0 ; |
25213 | int res1 = 0 ; | |
25214 | PyObject *swig_obj[1] ; | |
25215 | ||
25216 | if (!args) SWIG_fail; | |
25217 | swig_obj[0] = args; | |
72ef6efb | 25218 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 ); |
554f62e9 | 25219 | if (!SWIG_IsOK(res1)) { |
72ef6efb | 25220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
554f62e9 | 25221 | } |
72ef6efb | 25222 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
554f62e9 | 25223 | { |
554f62e9 RD |
25224 | delete arg1; |
25225 | ||
554f62e9 RD |
25226 | if (PyErr_Occurred()) SWIG_fail; |
25227 | } | |
25228 | resultobj = SWIG_Py_Void(); | |
25229 | return resultobj; | |
25230 | fail: | |
25231 | return NULL; | |
25232 | } | |
25233 | ||
25234 | ||
72ef6efb | 25235 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 25236 | PyObject *resultobj = 0; |
72ef6efb RD |
25237 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
25238 | wxDouble arg2 ; | |
25239 | wxDouble arg3 ; | |
554f62e9 RD |
25240 | void *argp1 = 0 ; |
25241 | int res1 = 0 ; | |
72ef6efb RD |
25242 | double val2 ; |
25243 | int ecode2 = 0 ; | |
25244 | double val3 ; | |
25245 | int ecode3 = 0 ; | |
554f62e9 RD |
25246 | PyObject * obj0 = 0 ; |
25247 | PyObject * obj1 = 0 ; | |
25248 | PyObject * obj2 = 0 ; | |
25249 | char * kwnames[] = { | |
72ef6efb | 25250 | (char *) "self",(char *) "x",(char *) "y", NULL |
554f62e9 RD |
25251 | }; |
25252 | ||
72ef6efb RD |
25253 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_MoveToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25254 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
554f62e9 | 25255 | if (!SWIG_IsOK(res1)) { |
72ef6efb | 25256 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
554f62e9 | 25257 | } |
72ef6efb RD |
25258 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
25259 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25260 | if (!SWIG_IsOK(ecode2)) { | |
25261 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25262 | } | |
25263 | arg2 = static_cast< wxDouble >(val2); | |
25264 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25265 | if (!SWIG_IsOK(ecode3)) { | |
25266 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25267 | } | |
25268 | arg3 = static_cast< wxDouble >(val3); | |
554f62e9 | 25269 | { |
72ef6efb | 25270 | (arg1)->MoveToPoint(arg2,arg3); |
554f62e9 RD |
25271 | if (PyErr_Occurred()) SWIG_fail; |
25272 | } | |
72ef6efb | 25273 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
25274 | return resultobj; |
25275 | fail: | |
25276 | return NULL; | |
25277 | } | |
25278 | ||
25279 | ||
72ef6efb | 25280 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 25281 | PyObject *resultobj = 0; |
72ef6efb RD |
25282 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
25283 | wxDouble arg2 ; | |
25284 | wxDouble arg3 ; | |
554f62e9 RD |
25285 | void *argp1 = 0 ; |
25286 | int res1 = 0 ; | |
72ef6efb RD |
25287 | double val2 ; |
25288 | int ecode2 = 0 ; | |
25289 | double val3 ; | |
25290 | int ecode3 = 0 ; | |
554f62e9 RD |
25291 | PyObject * obj0 = 0 ; |
25292 | PyObject * obj1 = 0 ; | |
25293 | PyObject * obj2 = 0 ; | |
25294 | char * kwnames[] = { | |
72ef6efb | 25295 | (char *) "self",(char *) "x",(char *) "y", NULL |
554f62e9 RD |
25296 | }; |
25297 | ||
72ef6efb RD |
25298 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsPath_AddLineToPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
25299 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
554f62e9 | 25300 | if (!SWIG_IsOK(res1)) { |
72ef6efb | 25301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
554f62e9 | 25302 | } |
72ef6efb RD |
25303 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
25304 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25305 | if (!SWIG_IsOK(ecode2)) { | |
25306 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25307 | } | |
25308 | arg2 = static_cast< wxDouble >(val2); | |
25309 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25310 | if (!SWIG_IsOK(ecode3)) { | |
25311 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25312 | } | |
25313 | arg3 = static_cast< wxDouble >(val3); | |
554f62e9 | 25314 | { |
72ef6efb | 25315 | (arg1)->AddLineToPoint(arg2,arg3); |
554f62e9 RD |
25316 | if (PyErr_Occurred()) SWIG_fail; |
25317 | } | |
72ef6efb | 25318 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
25319 | return resultobj; |
25320 | fail: | |
25321 | return NULL; | |
25322 | } | |
25323 | ||
25324 | ||
72ef6efb | 25325 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 25326 | PyObject *resultobj = 0; |
72ef6efb RD |
25327 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
25328 | wxDouble arg2 ; | |
25329 | wxDouble arg3 ; | |
25330 | wxDouble arg4 ; | |
25331 | wxDouble arg5 ; | |
25332 | wxDouble arg6 ; | |
25333 | wxDouble arg7 ; | |
554f62e9 RD |
25334 | void *argp1 = 0 ; |
25335 | int res1 = 0 ; | |
72ef6efb RD |
25336 | double val2 ; |
25337 | int ecode2 = 0 ; | |
25338 | double val3 ; | |
25339 | int ecode3 = 0 ; | |
25340 | double val4 ; | |
25341 | int ecode4 = 0 ; | |
25342 | double val5 ; | |
25343 | int ecode5 = 0 ; | |
25344 | double val6 ; | |
25345 | int ecode6 = 0 ; | |
25346 | double val7 ; | |
25347 | int ecode7 = 0 ; | |
25348 | PyObject * obj0 = 0 ; | |
25349 | PyObject * obj1 = 0 ; | |
25350 | PyObject * obj2 = 0 ; | |
25351 | PyObject * obj3 = 0 ; | |
25352 | PyObject * obj4 = 0 ; | |
25353 | PyObject * obj5 = 0 ; | |
25354 | PyObject * obj6 = 0 ; | |
25355 | char * kwnames[] = { | |
25356 | (char *) "self",(char *) "cx1",(char *) "cy1",(char *) "cx2",(char *) "cy2",(char *) "x",(char *) "y", NULL | |
25357 | }; | |
25358 | ||
25359 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
25360 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
25361 | if (!SWIG_IsOK(res1)) { | |
25362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); | |
25363 | } | |
25364 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
25365 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25366 | if (!SWIG_IsOK(ecode2)) { | |
25367 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25368 | } | |
25369 | arg2 = static_cast< wxDouble >(val2); | |
25370 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25371 | if (!SWIG_IsOK(ecode3)) { | |
25372 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25373 | } | |
25374 | arg3 = static_cast< wxDouble >(val3); | |
25375 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
25376 | if (!SWIG_IsOK(ecode4)) { | |
25377 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
25378 | } | |
25379 | arg4 = static_cast< wxDouble >(val4); | |
25380 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
25381 | if (!SWIG_IsOK(ecode5)) { | |
25382 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
25383 | } | |
25384 | arg5 = static_cast< wxDouble >(val5); | |
25385 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
25386 | if (!SWIG_IsOK(ecode6)) { | |
25387 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); | |
25388 | } | |
25389 | arg6 = static_cast< wxDouble >(val6); | |
25390 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
25391 | if (!SWIG_IsOK(ecode7)) { | |
25392 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'"); | |
25393 | } | |
25394 | arg7 = static_cast< wxDouble >(val7); | |
25395 | { | |
72ef6efb | 25396 | (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
25397 | if (PyErr_Occurred()) SWIG_fail; |
25398 | } | |
25399 | resultobj = SWIG_Py_Void(); | |
25400 | return resultobj; | |
25401 | fail: | |
25402 | return NULL; | |
25403 | } | |
25404 | ||
25405 | ||
25406 | SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25407 | PyObject *resultobj = 0; | |
25408 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
25409 | void *argp1 = 0 ; | |
25410 | int res1 = 0 ; | |
25411 | PyObject *swig_obj[1] ; | |
25412 | ||
25413 | if (!args) SWIG_fail; | |
25414 | swig_obj[0] = args; | |
25415 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
25416 | if (!SWIG_IsOK(res1)) { | |
25417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); | |
25418 | } | |
25419 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
25420 | { | |
72ef6efb | 25421 | (arg1)->CloseSubpath(); |
72ef6efb RD |
25422 | if (PyErr_Occurred()) SWIG_fail; |
25423 | } | |
25424 | resultobj = SWIG_Py_Void(); | |
25425 | return resultobj; | |
25426 | fail: | |
25427 | return NULL; | |
25428 | } | |
25429 | ||
25430 | ||
25431 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25432 | PyObject *resultobj = 0; | |
25433 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
25434 | wxPoint2D result; | |
25435 | void *argp1 = 0 ; | |
25436 | int res1 = 0 ; | |
25437 | PyObject *swig_obj[1] ; | |
25438 | ||
25439 | if (!args) SWIG_fail; | |
25440 | swig_obj[0] = args; | |
25441 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
25442 | if (!SWIG_IsOK(res1)) { | |
25443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); | |
25444 | } | |
25445 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
25446 | { | |
72ef6efb | 25447 | result = (arg1)->GetCurrentPoint(); |
72ef6efb RD |
25448 | if (PyErr_Occurred()) SWIG_fail; |
25449 | } | |
25450 | resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 ); | |
25451 | return resultobj; | |
25452 | fail: | |
25453 | return NULL; | |
25454 | } | |
25455 | ||
25456 | ||
25457 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25458 | PyObject *resultobj = 0; | |
25459 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
25460 | wxDouble arg2 ; | |
25461 | wxDouble arg3 ; | |
25462 | wxDouble arg4 ; | |
25463 | wxDouble arg5 ; | |
25464 | wxDouble arg6 ; | |
25465 | bool arg7 ; | |
25466 | void *argp1 = 0 ; | |
25467 | int res1 = 0 ; | |
25468 | double val2 ; | |
25469 | int ecode2 = 0 ; | |
25470 | double val3 ; | |
25471 | int ecode3 = 0 ; | |
25472 | double val4 ; | |
25473 | int ecode4 = 0 ; | |
25474 | double val5 ; | |
25475 | int ecode5 = 0 ; | |
25476 | double val6 ; | |
25477 | int ecode6 = 0 ; | |
25478 | bool val7 ; | |
25479 | int ecode7 = 0 ; | |
25480 | PyObject * obj0 = 0 ; | |
25481 | PyObject * obj1 = 0 ; | |
25482 | PyObject * obj2 = 0 ; | |
25483 | PyObject * obj3 = 0 ; | |
25484 | PyObject * obj4 = 0 ; | |
25485 | PyObject * obj5 = 0 ; | |
25486 | PyObject * obj6 = 0 ; | |
25487 | char * kwnames[] = { | |
25488 | (char *) "self",(char *) "x",(char *) "y",(char *) "r",(char *) "startAngle",(char *) "endAngle",(char *) "clockwise", NULL | |
25489 | }; | |
25490 | ||
25491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsPath_AddArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
25492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
25493 | if (!SWIG_IsOK(res1)) { | |
25494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); | |
25495 | } | |
25496 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
25497 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25498 | if (!SWIG_IsOK(ecode2)) { | |
25499 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25500 | } | |
25501 | arg2 = static_cast< wxDouble >(val2); | |
25502 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25503 | if (!SWIG_IsOK(ecode3)) { | |
25504 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25505 | } | |
25506 | arg3 = static_cast< wxDouble >(val3); | |
25507 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
25508 | if (!SWIG_IsOK(ecode4)) { | |
25509 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
25510 | } | |
25511 | arg4 = static_cast< wxDouble >(val4); | |
25512 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
25513 | if (!SWIG_IsOK(ecode5)) { | |
25514 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
25515 | } | |
25516 | arg5 = static_cast< wxDouble >(val5); | |
25517 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
25518 | if (!SWIG_IsOK(ecode6)) { | |
25519 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'"); | |
25520 | } | |
25521 | arg6 = static_cast< wxDouble >(val6); | |
25522 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
25523 | if (!SWIG_IsOK(ecode7)) { | |
25524 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'"); | |
25525 | } | |
25526 | arg7 = static_cast< bool >(val7); | |
25527 | { | |
72ef6efb | 25528 | (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
25529 | if (PyErr_Occurred()) SWIG_fail; |
25530 | } | |
25531 | resultobj = SWIG_Py_Void(); | |
25532 | return resultobj; | |
25533 | fail: | |
25534 | return NULL; | |
25535 | } | |
25536 | ||
25537 | ||
25538 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25539 | PyObject *resultobj = 0; | |
25540 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
25541 | wxDouble arg2 ; | |
25542 | wxDouble arg3 ; | |
25543 | wxDouble arg4 ; | |
25544 | wxDouble arg5 ; | |
25545 | void *argp1 = 0 ; | |
25546 | int res1 = 0 ; | |
25547 | double val2 ; | |
25548 | int ecode2 = 0 ; | |
25549 | double val3 ; | |
25550 | int ecode3 = 0 ; | |
25551 | double val4 ; | |
25552 | int ecode4 = 0 ; | |
25553 | double val5 ; | |
25554 | int ecode5 = 0 ; | |
25555 | PyObject * obj0 = 0 ; | |
25556 | PyObject * obj1 = 0 ; | |
25557 | PyObject * obj2 = 0 ; | |
25558 | PyObject * obj3 = 0 ; | |
25559 | PyObject * obj4 = 0 ; | |
25560 | char * kwnames[] = { | |
25561 | (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL | |
25562 | }; | |
25563 | ||
25564 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
25565 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
25566 | if (!SWIG_IsOK(res1)) { | |
25567 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); | |
25568 | } | |
25569 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
25570 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25571 | if (!SWIG_IsOK(ecode2)) { | |
25572 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25573 | } | |
25574 | arg2 = static_cast< wxDouble >(val2); | |
25575 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25576 | if (!SWIG_IsOK(ecode3)) { | |
25577 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25578 | } | |
25579 | arg3 = static_cast< wxDouble >(val3); | |
25580 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
25581 | if (!SWIG_IsOK(ecode4)) { | |
25582 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
25583 | } | |
25584 | arg4 = static_cast< wxDouble >(val4); | |
25585 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
25586 | if (!SWIG_IsOK(ecode5)) { | |
25587 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
25588 | } | |
25589 | arg5 = static_cast< wxDouble >(val5); | |
25590 | { | |
72ef6efb | 25591 | (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5); |
72ef6efb RD |
25592 | if (PyErr_Occurred()) SWIG_fail; |
25593 | } | |
25594 | resultobj = SWIG_Py_Void(); | |
25595 | return resultobj; | |
25596 | fail: | |
25597 | return NULL; | |
25598 | } | |
25599 | ||
25600 | ||
25601 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25602 | PyObject *resultobj = 0; | |
25603 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
25604 | wxDouble arg2 ; | |
25605 | wxDouble arg3 ; | |
25606 | wxDouble arg4 ; | |
25607 | wxDouble arg5 ; | |
25608 | void *argp1 = 0 ; | |
25609 | int res1 = 0 ; | |
25610 | double val2 ; | |
25611 | int ecode2 = 0 ; | |
25612 | double val3 ; | |
25613 | int ecode3 = 0 ; | |
25614 | double val4 ; | |
25615 | int ecode4 = 0 ; | |
25616 | double val5 ; | |
25617 | int ecode5 = 0 ; | |
25618 | PyObject * obj0 = 0 ; | |
25619 | PyObject * obj1 = 0 ; | |
25620 | PyObject * obj2 = 0 ; | |
25621 | PyObject * obj3 = 0 ; | |
25622 | PyObject * obj4 = 0 ; | |
25623 | char * kwnames[] = { | |
25624 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
25625 | }; | |
25626 | ||
25627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
25628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
25629 | if (!SWIG_IsOK(res1)) { | |
25630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); | |
25631 | } | |
25632 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
25633 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25634 | if (!SWIG_IsOK(ecode2)) { | |
25635 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25636 | } | |
25637 | arg2 = static_cast< wxDouble >(val2); | |
25638 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25639 | if (!SWIG_IsOK(ecode3)) { | |
25640 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25641 | } | |
25642 | arg3 = static_cast< wxDouble >(val3); | |
25643 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
25644 | if (!SWIG_IsOK(ecode4)) { | |
25645 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
25646 | } | |
25647 | arg4 = static_cast< wxDouble >(val4); | |
25648 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
25649 | if (!SWIG_IsOK(ecode5)) { | |
25650 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
25651 | } | |
25652 | arg5 = static_cast< wxDouble >(val5); | |
25653 | { | |
72ef6efb | 25654 | (arg1)->AddRectangle(arg2,arg3,arg4,arg5); |
72ef6efb RD |
25655 | if (PyErr_Occurred()) SWIG_fail; |
25656 | } | |
25657 | resultobj = SWIG_Py_Void(); | |
25658 | return resultobj; | |
25659 | fail: | |
25660 | return NULL; | |
25661 | } | |
25662 | ||
25663 | ||
25664 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25665 | PyObject *resultobj = 0; | |
25666 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
25667 | wxDouble arg2 ; | |
25668 | wxDouble arg3 ; | |
25669 | wxDouble arg4 ; | |
25670 | void *argp1 = 0 ; | |
25671 | int res1 = 0 ; | |
25672 | double val2 ; | |
25673 | int ecode2 = 0 ; | |
25674 | double val3 ; | |
25675 | int ecode3 = 0 ; | |
25676 | double val4 ; | |
25677 | int ecode4 = 0 ; | |
25678 | PyObject * obj0 = 0 ; | |
25679 | PyObject * obj1 = 0 ; | |
25680 | PyObject * obj2 = 0 ; | |
25681 | PyObject * obj3 = 0 ; | |
25682 | char * kwnames[] = { | |
25683 | (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL | |
25684 | }; | |
25685 | ||
25686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
25687 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
25688 | if (!SWIG_IsOK(res1)) { | |
25689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); | |
25690 | } | |
25691 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
25692 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25693 | if (!SWIG_IsOK(ecode2)) { | |
25694 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25695 | } | |
25696 | arg2 = static_cast< wxDouble >(val2); | |
25697 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25698 | if (!SWIG_IsOK(ecode3)) { | |
25699 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25700 | } | |
25701 | arg3 = static_cast< wxDouble >(val3); | |
25702 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
25703 | if (!SWIG_IsOK(ecode4)) { | |
25704 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
25705 | } | |
25706 | arg4 = static_cast< wxDouble >(val4); | |
25707 | { | |
72ef6efb | 25708 | (arg1)->AddCircle(arg2,arg3,arg4); |
72ef6efb RD |
25709 | if (PyErr_Occurred()) SWIG_fail; |
25710 | } | |
25711 | resultobj = SWIG_Py_Void(); | |
25712 | return resultobj; | |
25713 | fail: | |
25714 | return NULL; | |
25715 | } | |
25716 | ||
25717 | ||
25718 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25719 | PyObject *resultobj = 0; | |
25720 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
25721 | wxDouble arg2 ; | |
25722 | wxDouble arg3 ; | |
25723 | wxDouble arg4 ; | |
25724 | wxDouble arg5 ; | |
25725 | wxDouble arg6 ; | |
25726 | void *argp1 = 0 ; | |
25727 | int res1 = 0 ; | |
25728 | double val2 ; | |
25729 | int ecode2 = 0 ; | |
25730 | double val3 ; | |
25731 | int ecode3 = 0 ; | |
25732 | double val4 ; | |
25733 | int ecode4 = 0 ; | |
25734 | double val5 ; | |
25735 | int ecode5 = 0 ; | |
25736 | double val6 ; | |
25737 | int ecode6 = 0 ; | |
25738 | PyObject * obj0 = 0 ; | |
25739 | PyObject * obj1 = 0 ; | |
25740 | PyObject * obj2 = 0 ; | |
25741 | PyObject * obj3 = 0 ; | |
25742 | PyObject * obj4 = 0 ; | |
25743 | PyObject * obj5 = 0 ; | |
25744 | char * kwnames[] = { | |
25745 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL | |
25746 | }; | |
25747 | ||
25748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
25749 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
25750 | if (!SWIG_IsOK(res1)) { | |
25751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); | |
25752 | } | |
25753 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
25754 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
25755 | if (!SWIG_IsOK(ecode2)) { | |
25756 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
25757 | } | |
25758 | arg2 = static_cast< wxDouble >(val2); | |
25759 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
25760 | if (!SWIG_IsOK(ecode3)) { | |
25761 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
25762 | } | |
25763 | arg3 = static_cast< wxDouble >(val3); | |
25764 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
25765 | if (!SWIG_IsOK(ecode4)) { | |
25766 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
25767 | } | |
25768 | arg4 = static_cast< wxDouble >(val4); | |
25769 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
25770 | if (!SWIG_IsOK(ecode5)) { | |
25771 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
25772 | } | |
25773 | arg5 = static_cast< wxDouble >(val5); | |
25774 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
25775 | if (!SWIG_IsOK(ecode6)) { | |
25776 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); | |
25777 | } | |
25778 | arg6 = static_cast< wxDouble >(val6); | |
25779 | { | |
72ef6efb | 25780 | (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
25781 | if (PyErr_Occurred()) SWIG_fail; |
25782 | } | |
25783 | resultobj = SWIG_Py_Void(); | |
25784 | return resultobj; | |
25785 | fail: | |
25786 | return NULL; | |
25787 | } | |
25788 | ||
25789 | ||
25790 | SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25791 | PyObject *obj; | |
25792 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25793 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj)); | |
25794 | return SWIG_Py_Void(); | |
25795 | } | |
25796 | ||
25797 | SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25798 | PyObject *resultobj = 0; | |
25799 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
25800 | void *argp1 = 0 ; | |
25801 | int res1 = 0 ; | |
25802 | PyObject *swig_obj[1] ; | |
25803 | ||
25804 | if (!args) SWIG_fail; | |
25805 | swig_obj[0] = args; | |
25806 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 ); | |
25807 | if (!SWIG_IsOK(res1)) { | |
25808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
25809 | } | |
25810 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
25811 | { | |
72ef6efb RD |
25812 | delete arg1; |
25813 | ||
72ef6efb RD |
25814 | if (PyErr_Occurred()) SWIG_fail; |
25815 | } | |
25816 | resultobj = SWIG_Py_Void(); | |
25817 | return resultobj; | |
25818 | fail: | |
25819 | return NULL; | |
25820 | } | |
25821 | ||
25822 | ||
0a27f394 | 25823 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
25824 | PyObject *resultobj = 0; |
25825 | wxWindowDC *arg1 = 0 ; | |
25826 | wxGraphicsContext *result = 0 ; | |
25827 | void *argp1 = 0 ; | |
25828 | int res1 = 0 ; | |
72ef6efb | 25829 | |
0a27f394 RD |
25830 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; |
25831 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
72ef6efb RD |
25832 | if (!SWIG_IsOK(res1)) { |
25833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
25834 | } | |
25835 | if (!argp1) { | |
25836 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
25837 | } | |
25838 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
25839 | { | |
72ef6efb | 25840 | result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1); |
72ef6efb RD |
25841 | if (PyErr_Occurred()) SWIG_fail; |
25842 | } | |
be68621e | 25843 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
25844 | return resultobj; |
25845 | fail: | |
25846 | return NULL; | |
25847 | } | |
25848 | ||
25849 | ||
0a27f394 RD |
25850 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25851 | PyObject *resultobj = 0; | |
25852 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25853 | wxGraphicsContext *result = 0 ; | |
25854 | void *argp1 = 0 ; | |
25855 | int res1 = 0 ; | |
25856 | ||
25857 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
25858 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25859 | if (!SWIG_IsOK(res1)) { | |
25860 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25861 | } | |
25862 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25863 | { | |
25864 | result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1); | |
25865 | if (PyErr_Occurred()) SWIG_fail; | |
25866 | } | |
be68621e | 25867 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
0a27f394 RD |
25868 | return resultobj; |
25869 | fail: | |
25870 | return NULL; | |
25871 | } | |
25872 | ||
25873 | ||
25874 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) { | |
25875 | int argc; | |
25876 | PyObject *argv[2]; | |
25877 | ||
25878 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail; | |
25879 | --argc; | |
25880 | if (argc == 1) { | |
25881 | int _v = 0; | |
25882 | { | |
25883 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
25884 | _v = SWIG_CheckState(res); | |
25885 | } | |
25886 | if (!_v) goto check_1; | |
25887 | return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv); | |
25888 | } | |
25889 | check_1: | |
25890 | ||
25891 | if (argc == 1) { | |
25892 | return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv); | |
25893 | } | |
25894 | ||
25895 | fail: | |
25896 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'"); | |
25897 | return NULL; | |
25898 | } | |
25899 | ||
25900 | ||
25901 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25902 | PyObject *resultobj = 0; | |
25903 | void *arg1 = (void *) 0 ; | |
25904 | wxGraphicsContext *result = 0 ; | |
25905 | int res1 ; | |
25906 | PyObject * obj0 = 0 ; | |
25907 | char * kwnames[] = { | |
25908 | (char *) "context", NULL | |
25909 | }; | |
25910 | ||
25911 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail; | |
25912 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
25913 | if (!SWIG_IsOK(res1)) { | |
25914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'"); | |
25915 | } | |
25916 | { | |
25917 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1); | |
25918 | if (PyErr_Occurred()) SWIG_fail; | |
25919 | } | |
be68621e | 25920 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
0a27f394 RD |
25921 | return resultobj; |
25922 | fail: | |
25923 | return NULL; | |
25924 | } | |
25925 | ||
25926 | ||
72ef6efb RD |
25927 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25928 | PyObject *resultobj = 0; | |
25929 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
25930 | wxGraphicsPath *result = 0 ; | |
25931 | void *argp1 = 0 ; | |
25932 | int res1 = 0 ; | |
25933 | PyObject *swig_obj[1] ; | |
25934 | ||
25935 | if (!args) SWIG_fail; | |
25936 | swig_obj[0] = args; | |
25937 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
25938 | if (!SWIG_IsOK(res1)) { | |
25939 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
25940 | } | |
25941 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
25942 | { | |
72ef6efb | 25943 | result = (wxGraphicsPath *)(arg1)->CreatePath(); |
72ef6efb RD |
25944 | if (PyErr_Occurred()) SWIG_fail; |
25945 | } | |
be68621e | 25946 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
25947 | return resultobj; |
25948 | fail: | |
25949 | return NULL; | |
25950 | } | |
25951 | ||
25952 | ||
25953 | SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25954 | PyObject *resultobj = 0; | |
25955 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
25956 | void *argp1 = 0 ; | |
25957 | int res1 = 0 ; | |
25958 | PyObject *swig_obj[1] ; | |
25959 | ||
25960 | if (!args) SWIG_fail; | |
25961 | swig_obj[0] = args; | |
25962 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
25963 | if (!SWIG_IsOK(res1)) { | |
25964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
25965 | } | |
25966 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
25967 | { | |
72ef6efb | 25968 | (arg1)->PushState(); |
72ef6efb RD |
25969 | if (PyErr_Occurred()) SWIG_fail; |
25970 | } | |
25971 | resultobj = SWIG_Py_Void(); | |
25972 | return resultobj; | |
25973 | fail: | |
25974 | return NULL; | |
25975 | } | |
25976 | ||
25977 | ||
25978 | SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25979 | PyObject *resultobj = 0; | |
25980 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
25981 | void *argp1 = 0 ; | |
25982 | int res1 = 0 ; | |
25983 | PyObject *swig_obj[1] ; | |
25984 | ||
25985 | if (!args) SWIG_fail; | |
25986 | swig_obj[0] = args; | |
25987 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
25988 | if (!SWIG_IsOK(res1)) { | |
25989 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
25990 | } | |
25991 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
25992 | { | |
72ef6efb | 25993 | (arg1)->PopState(); |
72ef6efb RD |
25994 | if (PyErr_Occurred()) SWIG_fail; |
25995 | } | |
25996 | resultobj = SWIG_Py_Void(); | |
25997 | return resultobj; | |
25998 | fail: | |
25999 | return NULL; | |
26000 | } | |
26001 | ||
26002 | ||
0a27f394 | 26003 | SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
26004 | PyObject *resultobj = 0; |
26005 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26006 | wxRegion *arg2 = 0 ; | |
26007 | void *argp1 = 0 ; | |
26008 | int res1 = 0 ; | |
26009 | void *argp2 = 0 ; | |
26010 | int res2 = 0 ; | |
26011 | PyObject * obj0 = 0 ; | |
26012 | PyObject * obj1 = 0 ; | |
26013 | char * kwnames[] = { | |
26014 | (char *) "self",(char *) "region", NULL | |
26015 | }; | |
26016 | ||
0a27f394 | 26017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
26018 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
26019 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 26020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
26021 | } |
26022 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26023 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
26024 | if (!SWIG_IsOK(res2)) { | |
0a27f394 | 26025 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
26026 | } |
26027 | if (!argp2) { | |
0a27f394 | 26028 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
26029 | } |
26030 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
26031 | { | |
72ef6efb | 26032 | (arg1)->Clip((wxRegion const &)*arg2); |
72ef6efb RD |
26033 | if (PyErr_Occurred()) SWIG_fail; |
26034 | } | |
26035 | resultobj = SWIG_Py_Void(); | |
26036 | return resultobj; | |
26037 | fail: | |
26038 | return NULL; | |
26039 | } | |
26040 | ||
26041 | ||
0a27f394 RD |
26042 | SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26043 | PyObject *resultobj = 0; | |
26044 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26045 | wxDouble arg2 ; | |
26046 | wxDouble arg3 ; | |
26047 | wxDouble arg4 ; | |
26048 | wxDouble arg5 ; | |
26049 | void *argp1 = 0 ; | |
26050 | int res1 = 0 ; | |
26051 | double val2 ; | |
26052 | int ecode2 = 0 ; | |
26053 | double val3 ; | |
26054 | int ecode3 = 0 ; | |
26055 | double val4 ; | |
26056 | int ecode4 = 0 ; | |
26057 | double val5 ; | |
26058 | int ecode5 = 0 ; | |
26059 | PyObject * obj0 = 0 ; | |
26060 | PyObject * obj1 = 0 ; | |
26061 | PyObject * obj2 = 0 ; | |
26062 | PyObject * obj3 = 0 ; | |
26063 | PyObject * obj4 = 0 ; | |
26064 | char * kwnames[] = { | |
26065 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
26066 | }; | |
26067 | ||
26068 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
26069 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26070 | if (!SWIG_IsOK(res1)) { | |
26071 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26072 | } | |
26073 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26074 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26075 | if (!SWIG_IsOK(ecode2)) { | |
26076 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26077 | } | |
26078 | arg2 = static_cast< wxDouble >(val2); | |
26079 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26080 | if (!SWIG_IsOK(ecode3)) { | |
26081 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26082 | } | |
26083 | arg3 = static_cast< wxDouble >(val3); | |
26084 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26085 | if (!SWIG_IsOK(ecode4)) { | |
26086 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26087 | } | |
26088 | arg4 = static_cast< wxDouble >(val4); | |
26089 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26090 | if (!SWIG_IsOK(ecode5)) { | |
26091 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26092 | } | |
26093 | arg5 = static_cast< wxDouble >(val5); | |
26094 | { | |
26095 | (arg1)->Clip(arg2,arg3,arg4,arg5); | |
26096 | if (PyErr_Occurred()) SWIG_fail; | |
26097 | } | |
26098 | resultobj = SWIG_Py_Void(); | |
26099 | return resultobj; | |
26100 | fail: | |
26101 | return NULL; | |
26102 | } | |
26103 | ||
26104 | ||
26105 | SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26106 | PyObject *resultobj = 0; | |
26107 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26108 | void *argp1 = 0 ; | |
26109 | int res1 = 0 ; | |
26110 | PyObject *swig_obj[1] ; | |
26111 | ||
26112 | if (!args) SWIG_fail; | |
26113 | swig_obj[0] = args; | |
26114 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26115 | if (!SWIG_IsOK(res1)) { | |
26116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26117 | } | |
26118 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26119 | { | |
26120 | (arg1)->ResetClip(); | |
26121 | if (PyErr_Occurred()) SWIG_fail; | |
26122 | } | |
26123 | resultobj = SWIG_Py_Void(); | |
26124 | return resultobj; | |
26125 | fail: | |
26126 | return NULL; | |
26127 | } | |
26128 | ||
26129 | ||
26130 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26131 | PyObject *resultobj = 0; | |
26132 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26133 | void *result = 0 ; | |
26134 | void *argp1 = 0 ; | |
26135 | int res1 = 0 ; | |
26136 | PyObject *swig_obj[1] ; | |
26137 | ||
26138 | if (!args) SWIG_fail; | |
26139 | swig_obj[0] = args; | |
26140 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26141 | if (!SWIG_IsOK(res1)) { | |
26142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26143 | } | |
26144 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26145 | { | |
26146 | result = (void *)(arg1)->GetNativeContext(); | |
26147 | if (PyErr_Occurred()) SWIG_fail; | |
26148 | } | |
26149 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
26150 | return resultobj; | |
26151 | fail: | |
26152 | return NULL; | |
26153 | } | |
26154 | ||
26155 | ||
72ef6efb RD |
26156 | SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26157 | PyObject *resultobj = 0; | |
26158 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26159 | wxDouble arg2 ; | |
26160 | wxDouble arg3 ; | |
26161 | void *argp1 = 0 ; | |
26162 | int res1 = 0 ; | |
26163 | double val2 ; | |
26164 | int ecode2 = 0 ; | |
26165 | double val3 ; | |
26166 | int ecode3 = 0 ; | |
26167 | PyObject * obj0 = 0 ; | |
26168 | PyObject * obj1 = 0 ; | |
26169 | PyObject * obj2 = 0 ; | |
26170 | char * kwnames[] = { | |
26171 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
26172 | }; | |
26173 | ||
26174 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26175 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26176 | if (!SWIG_IsOK(res1)) { | |
26177 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26178 | } | |
26179 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26180 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26181 | if (!SWIG_IsOK(ecode2)) { | |
26182 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26183 | } | |
26184 | arg2 = static_cast< wxDouble >(val2); | |
26185 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26186 | if (!SWIG_IsOK(ecode3)) { | |
26187 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26188 | } | |
26189 | arg3 = static_cast< wxDouble >(val3); | |
26190 | { | |
72ef6efb | 26191 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
26192 | if (PyErr_Occurred()) SWIG_fail; |
26193 | } | |
26194 | resultobj = SWIG_Py_Void(); | |
26195 | return resultobj; | |
26196 | fail: | |
26197 | return NULL; | |
26198 | } | |
26199 | ||
26200 | ||
26201 | SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26202 | PyObject *resultobj = 0; | |
26203 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26204 | wxDouble arg2 ; | |
26205 | wxDouble arg3 ; | |
26206 | void *argp1 = 0 ; | |
26207 | int res1 = 0 ; | |
26208 | double val2 ; | |
26209 | int ecode2 = 0 ; | |
26210 | double val3 ; | |
26211 | int ecode3 = 0 ; | |
26212 | PyObject * obj0 = 0 ; | |
26213 | PyObject * obj1 = 0 ; | |
26214 | PyObject * obj2 = 0 ; | |
26215 | char * kwnames[] = { | |
26216 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
26217 | }; | |
26218 | ||
26219 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26220 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26221 | if (!SWIG_IsOK(res1)) { | |
26222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26223 | } | |
26224 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26225 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26226 | if (!SWIG_IsOK(ecode2)) { | |
26227 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26228 | } | |
26229 | arg2 = static_cast< wxDouble >(val2); | |
26230 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26231 | if (!SWIG_IsOK(ecode3)) { | |
26232 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26233 | } | |
26234 | arg3 = static_cast< wxDouble >(val3); | |
26235 | { | |
72ef6efb | 26236 | (arg1)->Scale(arg2,arg3); |
72ef6efb RD |
26237 | if (PyErr_Occurred()) SWIG_fail; |
26238 | } | |
26239 | resultobj = SWIG_Py_Void(); | |
26240 | return resultobj; | |
26241 | fail: | |
26242 | return NULL; | |
26243 | } | |
26244 | ||
26245 | ||
26246 | SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26247 | PyObject *resultobj = 0; | |
26248 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26249 | wxDouble arg2 ; | |
26250 | void *argp1 = 0 ; | |
26251 | int res1 = 0 ; | |
26252 | double val2 ; | |
26253 | int ecode2 = 0 ; | |
26254 | PyObject * obj0 = 0 ; | |
26255 | PyObject * obj1 = 0 ; | |
26256 | char * kwnames[] = { | |
26257 | (char *) "self",(char *) "angle", NULL | |
26258 | }; | |
26259 | ||
26260 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; | |
26261 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26262 | if (!SWIG_IsOK(res1)) { | |
26263 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26264 | } | |
26265 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26266 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26267 | if (!SWIG_IsOK(ecode2)) { | |
26268 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26269 | } | |
26270 | arg2 = static_cast< wxDouble >(val2); | |
26271 | { | |
72ef6efb | 26272 | (arg1)->Rotate(arg2); |
72ef6efb RD |
26273 | if (PyErr_Occurred()) SWIG_fail; |
26274 | } | |
26275 | resultobj = SWIG_Py_Void(); | |
26276 | return resultobj; | |
26277 | fail: | |
26278 | return NULL; | |
26279 | } | |
26280 | ||
26281 | ||
26282 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26283 | PyObject *resultobj = 0; | |
26284 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26285 | wxPen *arg2 = 0 ; | |
26286 | void *argp1 = 0 ; | |
26287 | int res1 = 0 ; | |
26288 | void *argp2 = 0 ; | |
26289 | int res2 = 0 ; | |
26290 | PyObject * obj0 = 0 ; | |
26291 | PyObject * obj1 = 0 ; | |
26292 | char * kwnames[] = { | |
26293 | (char *) "self",(char *) "pen", NULL | |
26294 | }; | |
26295 | ||
26296 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
26297 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26298 | if (!SWIG_IsOK(res1)) { | |
26299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26300 | } | |
26301 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26302 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
26303 | if (!SWIG_IsOK(res2)) { | |
26304 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
26305 | } | |
26306 | if (!argp2) { | |
26307 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
26308 | } | |
26309 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
26310 | { | |
72ef6efb | 26311 | (arg1)->SetPen((wxPen const &)*arg2); |
72ef6efb RD |
26312 | if (PyErr_Occurred()) SWIG_fail; |
26313 | } | |
26314 | resultobj = SWIG_Py_Void(); | |
26315 | return resultobj; | |
26316 | fail: | |
26317 | return NULL; | |
26318 | } | |
26319 | ||
26320 | ||
26321 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26322 | PyObject *resultobj = 0; | |
26323 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26324 | wxBrush *arg2 = 0 ; | |
26325 | void *argp1 = 0 ; | |
26326 | int res1 = 0 ; | |
26327 | void *argp2 = 0 ; | |
26328 | int res2 = 0 ; | |
26329 | PyObject * obj0 = 0 ; | |
26330 | PyObject * obj1 = 0 ; | |
26331 | char * kwnames[] = { | |
26332 | (char *) "self",(char *) "brush", NULL | |
26333 | }; | |
26334 | ||
26335 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
26336 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26337 | if (!SWIG_IsOK(res1)) { | |
26338 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26339 | } | |
26340 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26341 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
26342 | if (!SWIG_IsOK(res2)) { | |
26343 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
26344 | } | |
26345 | if (!argp2) { | |
26346 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
26347 | } | |
26348 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
26349 | { | |
72ef6efb | 26350 | (arg1)->SetBrush((wxBrush const &)*arg2); |
72ef6efb RD |
26351 | if (PyErr_Occurred()) SWIG_fail; |
26352 | } | |
26353 | resultobj = SWIG_Py_Void(); | |
26354 | return resultobj; | |
26355 | fail: | |
26356 | return NULL; | |
26357 | } | |
26358 | ||
26359 | ||
26360 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26361 | PyObject *resultobj = 0; | |
26362 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26363 | wxDouble arg2 ; | |
26364 | wxDouble arg3 ; | |
26365 | wxDouble arg4 ; | |
26366 | wxDouble arg5 ; | |
26367 | wxColour *arg6 = 0 ; | |
26368 | wxColour *arg7 = 0 ; | |
26369 | void *argp1 = 0 ; | |
26370 | int res1 = 0 ; | |
26371 | double val2 ; | |
26372 | int ecode2 = 0 ; | |
26373 | double val3 ; | |
26374 | int ecode3 = 0 ; | |
26375 | double val4 ; | |
26376 | int ecode4 = 0 ; | |
26377 | double val5 ; | |
26378 | int ecode5 = 0 ; | |
26379 | wxColour temp6 ; | |
26380 | wxColour temp7 ; | |
26381 | PyObject * obj0 = 0 ; | |
26382 | PyObject * obj1 = 0 ; | |
26383 | PyObject * obj2 = 0 ; | |
26384 | PyObject * obj3 = 0 ; | |
26385 | PyObject * obj4 = 0 ; | |
26386 | PyObject * obj5 = 0 ; | |
26387 | PyObject * obj6 = 0 ; | |
26388 | char * kwnames[] = { | |
26389 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL | |
26390 | }; | |
26391 | ||
26392 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_SetLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
26393 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26394 | if (!SWIG_IsOK(res1)) { | |
26395 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26396 | } | |
26397 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26398 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26399 | if (!SWIG_IsOK(ecode2)) { | |
26400 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26401 | } | |
26402 | arg2 = static_cast< wxDouble >(val2); | |
26403 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26404 | if (!SWIG_IsOK(ecode3)) { | |
26405 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26406 | } | |
26407 | arg3 = static_cast< wxDouble >(val3); | |
26408 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26409 | if (!SWIG_IsOK(ecode4)) { | |
26410 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26411 | } | |
26412 | arg4 = static_cast< wxDouble >(val4); | |
26413 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26414 | if (!SWIG_IsOK(ecode5)) { | |
26415 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26416 | } | |
26417 | arg5 = static_cast< wxDouble >(val5); | |
26418 | { | |
26419 | arg6 = &temp6; | |
26420 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
26421 | } | |
26422 | { | |
26423 | arg7 = &temp7; | |
26424 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
26425 | } | |
26426 | { | |
72ef6efb | 26427 | (arg1)->SetLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); |
72ef6efb RD |
26428 | if (PyErr_Occurred()) SWIG_fail; |
26429 | } | |
26430 | resultobj = SWIG_Py_Void(); | |
26431 | return resultobj; | |
26432 | fail: | |
26433 | return NULL; | |
26434 | } | |
26435 | ||
26436 | ||
26437 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26438 | PyObject *resultobj = 0; | |
26439 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26440 | wxDouble arg2 ; | |
26441 | wxDouble arg3 ; | |
26442 | wxDouble arg4 ; | |
26443 | wxDouble arg5 ; | |
26444 | wxDouble arg6 ; | |
26445 | wxColour *arg7 = 0 ; | |
26446 | wxColour *arg8 = 0 ; | |
26447 | void *argp1 = 0 ; | |
26448 | int res1 = 0 ; | |
26449 | double val2 ; | |
26450 | int ecode2 = 0 ; | |
26451 | double val3 ; | |
26452 | int ecode3 = 0 ; | |
26453 | double val4 ; | |
26454 | int ecode4 = 0 ; | |
26455 | double val5 ; | |
26456 | int ecode5 = 0 ; | |
26457 | double val6 ; | |
26458 | int ecode6 = 0 ; | |
26459 | wxColour temp7 ; | |
26460 | wxColour temp8 ; | |
26461 | PyObject * obj0 = 0 ; | |
26462 | PyObject * obj1 = 0 ; | |
26463 | PyObject * obj2 = 0 ; | |
26464 | PyObject * obj3 = 0 ; | |
26465 | PyObject * obj4 = 0 ; | |
26466 | PyObject * obj5 = 0 ; | |
26467 | PyObject * obj6 = 0 ; | |
26468 | PyObject * obj7 = 0 ; | |
26469 | char * kwnames[] = { | |
be68621e | 26470 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColour",(char *) "cColour", NULL |
72ef6efb RD |
26471 | }; |
26472 | ||
26473 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_SetRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
26474 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26475 | if (!SWIG_IsOK(res1)) { | |
26476 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26477 | } | |
26478 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26479 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26480 | if (!SWIG_IsOK(ecode2)) { | |
26481 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26482 | } | |
26483 | arg2 = static_cast< wxDouble >(val2); | |
26484 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26485 | if (!SWIG_IsOK(ecode3)) { | |
26486 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26487 | } | |
26488 | arg3 = static_cast< wxDouble >(val3); | |
26489 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26490 | if (!SWIG_IsOK(ecode4)) { | |
26491 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26492 | } | |
26493 | arg4 = static_cast< wxDouble >(val4); | |
26494 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26495 | if (!SWIG_IsOK(ecode5)) { | |
26496 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26497 | } | |
26498 | arg5 = static_cast< wxDouble >(val5); | |
26499 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
26500 | if (!SWIG_IsOK(ecode6)) { | |
26501 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_SetRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26502 | } | |
26503 | arg6 = static_cast< wxDouble >(val6); | |
26504 | { | |
26505 | arg7 = &temp7; | |
26506 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
26507 | } | |
26508 | { | |
26509 | arg8 = &temp8; | |
26510 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
26511 | } | |
26512 | { | |
72ef6efb | 26513 | (arg1)->SetRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); |
72ef6efb RD |
26514 | if (PyErr_Occurred()) SWIG_fail; |
26515 | } | |
26516 | resultobj = SWIG_Py_Void(); | |
26517 | return resultobj; | |
26518 | fail: | |
26519 | return NULL; | |
26520 | } | |
26521 | ||
26522 | ||
26523 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26524 | PyObject *resultobj = 0; | |
26525 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26526 | wxFont *arg2 = 0 ; | |
26527 | void *argp1 = 0 ; | |
26528 | int res1 = 0 ; | |
26529 | void *argp2 = 0 ; | |
26530 | int res2 = 0 ; | |
26531 | PyObject * obj0 = 0 ; | |
26532 | PyObject * obj1 = 0 ; | |
26533 | char * kwnames[] = { | |
26534 | (char *) "self",(char *) "font", NULL | |
26535 | }; | |
26536 | ||
26537 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
26538 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26539 | if (!SWIG_IsOK(res1)) { | |
26540 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26541 | } | |
26542 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26543 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
26544 | if (!SWIG_IsOK(res2)) { | |
26545 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26546 | } | |
26547 | if (!argp2) { | |
26548 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
26549 | } | |
26550 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
26551 | { | |
72ef6efb | 26552 | (arg1)->SetFont((wxFont const &)*arg2); |
72ef6efb RD |
26553 | if (PyErr_Occurred()) SWIG_fail; |
26554 | } | |
26555 | resultobj = SWIG_Py_Void(); | |
26556 | return resultobj; | |
26557 | fail: | |
26558 | return NULL; | |
26559 | } | |
26560 | ||
26561 | ||
be68621e | 26562 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetTextColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
26563 | PyObject *resultobj = 0; |
26564 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26565 | wxColour *arg2 = 0 ; | |
26566 | void *argp1 = 0 ; | |
26567 | int res1 = 0 ; | |
26568 | wxColour temp2 ; | |
26569 | PyObject * obj0 = 0 ; | |
26570 | PyObject * obj1 = 0 ; | |
26571 | char * kwnames[] = { | |
26572 | (char *) "self",(char *) "col", NULL | |
26573 | }; | |
26574 | ||
be68621e | 26575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTextColour",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
26576 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
26577 | if (!SWIG_IsOK(res1)) { | |
be68621e | 26578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTextColour" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
26579 | } |
26580 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26581 | { | |
26582 | arg2 = &temp2; | |
26583 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
26584 | } | |
26585 | { | |
be68621e | 26586 | (arg1)->SetTextColour((wxColour const &)*arg2); |
72ef6efb RD |
26587 | if (PyErr_Occurred()) SWIG_fail; |
26588 | } | |
26589 | resultobj = SWIG_Py_Void(); | |
26590 | return resultobj; | |
26591 | fail: | |
26592 | return NULL; | |
26593 | } | |
26594 | ||
26595 | ||
26596 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26597 | PyObject *resultobj = 0; | |
26598 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26599 | wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ; | |
26600 | void *argp1 = 0 ; | |
26601 | int res1 = 0 ; | |
26602 | void *argp2 = 0 ; | |
26603 | int res2 = 0 ; | |
26604 | PyObject * obj0 = 0 ; | |
26605 | PyObject * obj1 = 0 ; | |
26606 | char * kwnames[] = { | |
26607 | (char *) "self",(char *) "path", NULL | |
26608 | }; | |
26609 | ||
26610 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
26611 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26612 | if (!SWIG_IsOK(res1)) { | |
26613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26614 | } | |
26615 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26616 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
26617 | if (!SWIG_IsOK(res2)) { | |
26618 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'"); | |
26619 | } | |
26620 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
26621 | { | |
72ef6efb | 26622 | (arg1)->StrokePath((wxGraphicsPath const *)arg2); |
72ef6efb RD |
26623 | if (PyErr_Occurred()) SWIG_fail; |
26624 | } | |
26625 | resultobj = SWIG_Py_Void(); | |
26626 | return resultobj; | |
26627 | fail: | |
26628 | return NULL; | |
26629 | } | |
26630 | ||
26631 | ||
26632 | SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26633 | PyObject *resultobj = 0; | |
26634 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26635 | wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ; | |
26636 | int arg3 = (int) wxWINDING_RULE ; | |
26637 | void *argp1 = 0 ; | |
26638 | int res1 = 0 ; | |
26639 | void *argp2 = 0 ; | |
26640 | int res2 = 0 ; | |
26641 | int val3 ; | |
26642 | int ecode3 = 0 ; | |
26643 | PyObject * obj0 = 0 ; | |
26644 | PyObject * obj1 = 0 ; | |
26645 | PyObject * obj2 = 0 ; | |
26646 | char * kwnames[] = { | |
26647 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
26648 | }; | |
26649 | ||
26650 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26651 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26652 | if (!SWIG_IsOK(res1)) { | |
26653 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26654 | } | |
26655 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26656 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
26657 | if (!SWIG_IsOK(res2)) { | |
26658 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'"); | |
26659 | } | |
26660 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
26661 | if (obj2) { | |
26662 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
26663 | if (!SWIG_IsOK(ecode3)) { | |
26664 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'"); | |
26665 | } | |
26666 | arg3 = static_cast< int >(val3); | |
26667 | } | |
26668 | { | |
72ef6efb | 26669 | (arg1)->FillPath((wxGraphicsPath const *)arg2,arg3); |
72ef6efb RD |
26670 | if (PyErr_Occurred()) SWIG_fail; |
26671 | } | |
26672 | resultobj = SWIG_Py_Void(); | |
26673 | return resultobj; | |
26674 | fail: | |
26675 | return NULL; | |
26676 | } | |
26677 | ||
26678 | ||
26679 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26680 | PyObject *resultobj = 0; | |
26681 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26682 | wxGraphicsPath *arg2 = (wxGraphicsPath *) 0 ; | |
26683 | int arg3 = (int) wxWINDING_RULE ; | |
26684 | void *argp1 = 0 ; | |
26685 | int res1 = 0 ; | |
26686 | void *argp2 = 0 ; | |
26687 | int res2 = 0 ; | |
26688 | int val3 ; | |
26689 | int ecode3 = 0 ; | |
26690 | PyObject * obj0 = 0 ; | |
26691 | PyObject * obj1 = 0 ; | |
26692 | PyObject * obj2 = 0 ; | |
26693 | char * kwnames[] = { | |
26694 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
26695 | }; | |
26696 | ||
26697 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26698 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26699 | if (!SWIG_IsOK(res1)) { | |
26700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26701 | } | |
26702 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26703 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
26704 | if (!SWIG_IsOK(res2)) { | |
26705 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const *""'"); | |
26706 | } | |
26707 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
26708 | if (obj2) { | |
26709 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
26710 | if (!SWIG_IsOK(ecode3)) { | |
26711 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'"); | |
26712 | } | |
26713 | arg3 = static_cast< int >(val3); | |
26714 | } | |
26715 | { | |
72ef6efb | 26716 | (arg1)->DrawPath((wxGraphicsPath const *)arg2,arg3); |
72ef6efb RD |
26717 | if (PyErr_Occurred()) SWIG_fail; |
26718 | } | |
26719 | resultobj = SWIG_Py_Void(); | |
26720 | return resultobj; | |
26721 | fail: | |
26722 | return NULL; | |
26723 | } | |
26724 | ||
26725 | ||
b39fe951 | 26726 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
26727 | PyObject *resultobj = 0; |
26728 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26729 | wxString *arg2 = 0 ; | |
26730 | wxDouble arg3 ; | |
26731 | wxDouble arg4 ; | |
26732 | void *argp1 = 0 ; | |
26733 | int res1 = 0 ; | |
26734 | bool temp2 = false ; | |
26735 | double val3 ; | |
26736 | int ecode3 = 0 ; | |
26737 | double val4 ; | |
26738 | int ecode4 = 0 ; | |
b39fe951 RD |
26739 | PyObject * obj0 = 0 ; |
26740 | PyObject * obj1 = 0 ; | |
26741 | PyObject * obj2 = 0 ; | |
26742 | PyObject * obj3 = 0 ; | |
26743 | char * kwnames[] = { | |
26744 | (char *) "self",(char *) "str",(char *) "x",(char *) "y", NULL | |
26745 | }; | |
72ef6efb | 26746 | |
b39fe951 RD |
26747 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
26748 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
26749 | if (!SWIG_IsOK(res1)) { |
26750 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26751 | } | |
26752 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26753 | { | |
b39fe951 | 26754 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
26755 | if (arg2 == NULL) SWIG_fail; |
26756 | temp2 = true; | |
26757 | } | |
b39fe951 | 26758 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb RD |
26759 | if (!SWIG_IsOK(ecode3)) { |
26760 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26761 | } | |
26762 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 26763 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb RD |
26764 | if (!SWIG_IsOK(ecode4)) { |
26765 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26766 | } | |
26767 | arg4 = static_cast< wxDouble >(val4); | |
26768 | { | |
72ef6efb | 26769 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); |
72ef6efb RD |
26770 | if (PyErr_Occurred()) SWIG_fail; |
26771 | } | |
26772 | resultobj = SWIG_Py_Void(); | |
26773 | { | |
26774 | if (temp2) | |
26775 | delete arg2; | |
26776 | } | |
26777 | return resultobj; | |
26778 | fail: | |
26779 | { | |
26780 | if (temp2) | |
26781 | delete arg2; | |
26782 | } | |
26783 | return NULL; | |
26784 | } | |
26785 | ||
26786 | ||
b39fe951 | 26787 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
26788 | PyObject *resultobj = 0; |
26789 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26790 | wxString *arg2 = 0 ; | |
26791 | wxDouble arg3 ; | |
26792 | wxDouble arg4 ; | |
26793 | wxDouble arg5 ; | |
26794 | void *argp1 = 0 ; | |
26795 | int res1 = 0 ; | |
26796 | bool temp2 = false ; | |
26797 | double val3 ; | |
26798 | int ecode3 = 0 ; | |
26799 | double val4 ; | |
26800 | int ecode4 = 0 ; | |
26801 | double val5 ; | |
26802 | int ecode5 = 0 ; | |
b39fe951 RD |
26803 | PyObject * obj0 = 0 ; |
26804 | PyObject * obj1 = 0 ; | |
26805 | PyObject * obj2 = 0 ; | |
26806 | PyObject * obj3 = 0 ; | |
26807 | PyObject * obj4 = 0 ; | |
26808 | char * kwnames[] = { | |
26809 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle", NULL | |
26810 | }; | |
72ef6efb | 26811 | |
b39fe951 RD |
26812 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
26813 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 26814 | if (!SWIG_IsOK(res1)) { |
b39fe951 | 26815 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
26816 | } |
26817 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26818 | { | |
b39fe951 | 26819 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
26820 | if (arg2 == NULL) SWIG_fail; |
26821 | temp2 = true; | |
26822 | } | |
b39fe951 | 26823 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 26824 | if (!SWIG_IsOK(ecode3)) { |
b39fe951 | 26825 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
26826 | } |
26827 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 26828 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb | 26829 | if (!SWIG_IsOK(ecode4)) { |
b39fe951 | 26830 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
26831 | } |
26832 | arg4 = static_cast< wxDouble >(val4); | |
b39fe951 | 26833 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
72ef6efb | 26834 | if (!SWIG_IsOK(ecode5)) { |
b39fe951 | 26835 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
26836 | } |
26837 | arg5 = static_cast< wxDouble >(val5); | |
26838 | { | |
72ef6efb | 26839 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4,arg5); |
72ef6efb RD |
26840 | if (PyErr_Occurred()) SWIG_fail; |
26841 | } | |
26842 | resultobj = SWIG_Py_Void(); | |
26843 | { | |
26844 | if (temp2) | |
26845 | delete arg2; | |
26846 | } | |
26847 | return resultobj; | |
26848 | fail: | |
26849 | { | |
26850 | if (temp2) | |
26851 | delete arg2; | |
26852 | } | |
26853 | return NULL; | |
26854 | } | |
26855 | ||
26856 | ||
be68621e | 26857 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
26858 | PyObject *resultobj = 0; |
26859 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26860 | wxString *arg2 = 0 ; | |
26861 | wxDouble *arg3 = (wxDouble *) 0 ; | |
26862 | wxDouble *arg4 = (wxDouble *) 0 ; | |
26863 | wxDouble *arg5 = (wxDouble *) 0 ; | |
26864 | wxDouble *arg6 = (wxDouble *) 0 ; | |
26865 | void *argp1 = 0 ; | |
26866 | int res1 = 0 ; | |
26867 | bool temp2 = false ; | |
26868 | wxDouble temp3 ; | |
26869 | int res3 = SWIG_TMPOBJ ; | |
26870 | wxDouble temp4 ; | |
26871 | int res4 = SWIG_TMPOBJ ; | |
26872 | wxDouble temp5 ; | |
26873 | int res5 = SWIG_TMPOBJ ; | |
26874 | wxDouble temp6 ; | |
26875 | int res6 = SWIG_TMPOBJ ; | |
26876 | PyObject * obj0 = 0 ; | |
26877 | PyObject * obj1 = 0 ; | |
26878 | char * kwnames[] = { | |
26879 | (char *) "self",(char *) "text", NULL | |
26880 | }; | |
26881 | ||
26882 | arg3 = &temp3; | |
26883 | arg4 = &temp4; | |
26884 | arg5 = &temp5; | |
26885 | arg6 = &temp6; | |
be68621e | 26886 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
26887 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
26888 | if (!SWIG_IsOK(res1)) { | |
be68621e | 26889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
26890 | } |
26891 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26892 | { | |
26893 | arg2 = wxString_in_helper(obj1); | |
26894 | if (arg2 == NULL) SWIG_fail; | |
26895 | temp2 = true; | |
26896 | } | |
26897 | { | |
72ef6efb | 26898 | ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
26899 | if (PyErr_Occurred()) SWIG_fail; |
26900 | } | |
26901 | resultobj = SWIG_Py_Void(); | |
26902 | if (SWIG_IsTmpObj(res3)) { | |
26903 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26904 | } else { | |
26905 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26906 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26907 | } | |
26908 | if (SWIG_IsTmpObj(res4)) { | |
26909 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
26910 | } else { | |
26911 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26912 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
26913 | } | |
26914 | if (SWIG_IsTmpObj(res5)) { | |
26915 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
26916 | } else { | |
26917 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26918 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
26919 | } | |
26920 | if (SWIG_IsTmpObj(res6)) { | |
26921 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
26922 | } else { | |
26923 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26924 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
26925 | } | |
26926 | { | |
26927 | if (temp2) | |
26928 | delete arg2; | |
26929 | } | |
26930 | return resultobj; | |
26931 | fail: | |
26932 | { | |
26933 | if (temp2) | |
26934 | delete arg2; | |
26935 | } | |
26936 | return NULL; | |
26937 | } | |
26938 | ||
26939 | ||
be68621e RD |
26940 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26941 | PyObject *resultobj = 0; | |
26942 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26943 | wxString *arg2 = 0 ; | |
26944 | PyObject *result = 0 ; | |
26945 | void *argp1 = 0 ; | |
26946 | int res1 = 0 ; | |
26947 | bool temp2 = false ; | |
26948 | PyObject * obj0 = 0 ; | |
26949 | PyObject * obj1 = 0 ; | |
26950 | char * kwnames[] = { | |
26951 | (char *) "self",(char *) "text", NULL | |
26952 | }; | |
26953 | ||
26954 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
26955 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
26956 | if (!SWIG_IsOK(res1)) { | |
26957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
26958 | } | |
26959 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
26960 | { | |
26961 | arg2 = wxString_in_helper(obj1); | |
26962 | if (arg2 == NULL) SWIG_fail; | |
26963 | temp2 = true; | |
26964 | } | |
26965 | { | |
26966 | result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2); | |
26967 | if (PyErr_Occurred()) SWIG_fail; | |
26968 | } | |
26969 | resultobj = result; | |
26970 | { | |
26971 | if (temp2) | |
26972 | delete arg2; | |
26973 | } | |
26974 | return resultobj; | |
26975 | fail: | |
26976 | { | |
26977 | if (temp2) | |
26978 | delete arg2; | |
26979 | } | |
26980 | return NULL; | |
26981 | } | |
26982 | ||
26983 | ||
72ef6efb RD |
26984 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26985 | PyObject *resultobj = 0; | |
26986 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
26987 | wxString *arg2 = 0 ; | |
b39fe951 | 26988 | wxArrayDouble result; |
72ef6efb RD |
26989 | void *argp1 = 0 ; |
26990 | int res1 = 0 ; | |
26991 | bool temp2 = false ; | |
72ef6efb RD |
26992 | PyObject * obj0 = 0 ; |
26993 | PyObject * obj1 = 0 ; | |
72ef6efb | 26994 | char * kwnames[] = { |
b39fe951 | 26995 | (char *) "self",(char *) "text", NULL |
72ef6efb RD |
26996 | }; |
26997 | ||
b39fe951 | 26998 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
26999 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
27000 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 27001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
27002 | } |
27003 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27004 | { | |
27005 | arg2 = wxString_in_helper(obj1); | |
27006 | if (arg2 == NULL) SWIG_fail; | |
27007 | temp2 = true; | |
27008 | } | |
72ef6efb | 27009 | { |
b39fe951 | 27010 | result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
72ef6efb RD |
27011 | if (PyErr_Occurred()) SWIG_fail; |
27012 | } | |
b39fe951 RD |
27013 | { |
27014 | resultobj = wxArrayDouble2PyList_helper(result); | |
27015 | } | |
72ef6efb RD |
27016 | { |
27017 | if (temp2) | |
27018 | delete arg2; | |
27019 | } | |
27020 | return resultobj; | |
27021 | fail: | |
27022 | { | |
27023 | if (temp2) | |
27024 | delete arg2; | |
27025 | } | |
27026 | return NULL; | |
27027 | } | |
27028 | ||
27029 | ||
27030 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27031 | PyObject *resultobj = 0; | |
27032 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27033 | wxBitmap *arg2 = 0 ; | |
27034 | wxDouble arg3 ; | |
27035 | wxDouble arg4 ; | |
27036 | wxDouble arg5 ; | |
27037 | wxDouble arg6 ; | |
27038 | void *argp1 = 0 ; | |
27039 | int res1 = 0 ; | |
27040 | void *argp2 = 0 ; | |
27041 | int res2 = 0 ; | |
27042 | double val3 ; | |
27043 | int ecode3 = 0 ; | |
27044 | double val4 ; | |
27045 | int ecode4 = 0 ; | |
27046 | double val5 ; | |
27047 | int ecode5 = 0 ; | |
27048 | double val6 ; | |
27049 | int ecode6 = 0 ; | |
27050 | PyObject * obj0 = 0 ; | |
27051 | PyObject * obj1 = 0 ; | |
27052 | PyObject * obj2 = 0 ; | |
27053 | PyObject * obj3 = 0 ; | |
27054 | PyObject * obj4 = 0 ; | |
27055 | PyObject * obj5 = 0 ; | |
27056 | char * kwnames[] = { | |
27057 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27058 | }; | |
27059 | ||
27060 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
27061 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27062 | if (!SWIG_IsOK(res1)) { | |
27063 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27064 | } | |
27065 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27066 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
27067 | if (!SWIG_IsOK(res2)) { | |
27068 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
27069 | } | |
27070 | if (!argp2) { | |
27071 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
27072 | } | |
27073 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
27074 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27075 | if (!SWIG_IsOK(ecode3)) { | |
27076 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27077 | } | |
27078 | arg3 = static_cast< wxDouble >(val3); | |
27079 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27080 | if (!SWIG_IsOK(ecode4)) { | |
27081 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27082 | } | |
27083 | arg4 = static_cast< wxDouble >(val4); | |
27084 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27085 | if (!SWIG_IsOK(ecode5)) { | |
27086 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27087 | } | |
27088 | arg5 = static_cast< wxDouble >(val5); | |
27089 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27090 | if (!SWIG_IsOK(ecode6)) { | |
27091 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27092 | } | |
27093 | arg6 = static_cast< wxDouble >(val6); | |
27094 | { | |
72ef6efb | 27095 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
27096 | if (PyErr_Occurred()) SWIG_fail; |
27097 | } | |
27098 | resultobj = SWIG_Py_Void(); | |
27099 | return resultobj; | |
27100 | fail: | |
27101 | return NULL; | |
27102 | } | |
27103 | ||
27104 | ||
27105 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27106 | PyObject *resultobj = 0; | |
27107 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27108 | wxIcon *arg2 = 0 ; | |
27109 | wxDouble arg3 ; | |
27110 | wxDouble arg4 ; | |
27111 | wxDouble arg5 ; | |
27112 | wxDouble arg6 ; | |
27113 | void *argp1 = 0 ; | |
27114 | int res1 = 0 ; | |
27115 | void *argp2 = 0 ; | |
27116 | int res2 = 0 ; | |
27117 | double val3 ; | |
27118 | int ecode3 = 0 ; | |
27119 | double val4 ; | |
27120 | int ecode4 = 0 ; | |
27121 | double val5 ; | |
27122 | int ecode5 = 0 ; | |
27123 | double val6 ; | |
27124 | int ecode6 = 0 ; | |
27125 | PyObject * obj0 = 0 ; | |
27126 | PyObject * obj1 = 0 ; | |
27127 | PyObject * obj2 = 0 ; | |
27128 | PyObject * obj3 = 0 ; | |
27129 | PyObject * obj4 = 0 ; | |
27130 | PyObject * obj5 = 0 ; | |
27131 | char * kwnames[] = { | |
27132 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27133 | }; | |
27134 | ||
27135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
27136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27137 | if (!SWIG_IsOK(res1)) { | |
27138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27139 | } | |
27140 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27141 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
27142 | if (!SWIG_IsOK(res2)) { | |
27143 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
27144 | } | |
27145 | if (!argp2) { | |
27146 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
27147 | } | |
27148 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
27149 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27150 | if (!SWIG_IsOK(ecode3)) { | |
27151 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27152 | } | |
27153 | arg3 = static_cast< wxDouble >(val3); | |
27154 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27155 | if (!SWIG_IsOK(ecode4)) { | |
27156 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27157 | } | |
27158 | arg4 = static_cast< wxDouble >(val4); | |
27159 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27160 | if (!SWIG_IsOK(ecode5)) { | |
27161 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27162 | } | |
27163 | arg5 = static_cast< wxDouble >(val5); | |
27164 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27165 | if (!SWIG_IsOK(ecode6)) { | |
27166 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27167 | } | |
27168 | arg6 = static_cast< wxDouble >(val6); | |
27169 | { | |
72ef6efb | 27170 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
27171 | if (PyErr_Occurred()) SWIG_fail; |
27172 | } | |
27173 | resultobj = SWIG_Py_Void(); | |
27174 | return resultobj; | |
27175 | fail: | |
27176 | return NULL; | |
27177 | } | |
27178 | ||
27179 | ||
27180 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27181 | PyObject *resultobj = 0; | |
27182 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27183 | wxDouble arg2 ; | |
27184 | wxDouble arg3 ; | |
27185 | wxDouble arg4 ; | |
27186 | wxDouble arg5 ; | |
27187 | void *argp1 = 0 ; | |
27188 | int res1 = 0 ; | |
27189 | double val2 ; | |
27190 | int ecode2 = 0 ; | |
27191 | double val3 ; | |
27192 | int ecode3 = 0 ; | |
27193 | double val4 ; | |
27194 | int ecode4 = 0 ; | |
27195 | double val5 ; | |
27196 | int ecode5 = 0 ; | |
27197 | PyObject * obj0 = 0 ; | |
27198 | PyObject * obj1 = 0 ; | |
27199 | PyObject * obj2 = 0 ; | |
27200 | PyObject * obj3 = 0 ; | |
27201 | PyObject * obj4 = 0 ; | |
27202 | char * kwnames[] = { | |
27203 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
27204 | }; | |
27205 | ||
27206 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
27207 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27208 | if (!SWIG_IsOK(res1)) { | |
27209 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27210 | } | |
27211 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27212 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27213 | if (!SWIG_IsOK(ecode2)) { | |
27214 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27215 | } | |
27216 | arg2 = static_cast< wxDouble >(val2); | |
27217 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27218 | if (!SWIG_IsOK(ecode3)) { | |
27219 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27220 | } | |
27221 | arg3 = static_cast< wxDouble >(val3); | |
27222 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27223 | if (!SWIG_IsOK(ecode4)) { | |
27224 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27225 | } | |
27226 | arg4 = static_cast< wxDouble >(val4); | |
27227 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27228 | if (!SWIG_IsOK(ecode5)) { | |
27229 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27230 | } | |
27231 | arg5 = static_cast< wxDouble >(val5); | |
27232 | { | |
72ef6efb | 27233 | (arg1)->StrokeLine(arg2,arg3,arg4,arg5); |
72ef6efb RD |
27234 | if (PyErr_Occurred()) SWIG_fail; |
27235 | } | |
27236 | resultobj = SWIG_Py_Void(); | |
27237 | return resultobj; | |
27238 | fail: | |
27239 | return NULL; | |
27240 | } | |
27241 | ||
27242 | ||
b39fe951 | 27243 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
27244 | PyObject *resultobj = 0; |
27245 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27246 | size_t arg2 ; | |
27247 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
27248 | void *argp1 = 0 ; | |
27249 | int res1 = 0 ; | |
b39fe951 RD |
27250 | PyObject * obj0 = 0 ; |
27251 | PyObject * obj1 = 0 ; | |
27252 | char * kwnames[] = { | |
27253 | (char *) "self",(char *) "points", NULL | |
27254 | }; | |
72ef6efb | 27255 | |
b39fe951 RD |
27256 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail; |
27257 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
27258 | if (!SWIG_IsOK(res1)) { |
27259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27260 | } | |
27261 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
b39fe951 RD |
27262 | { |
27263 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
27264 | if (arg3 == NULL) SWIG_fail; | |
72ef6efb | 27265 | } |
72ef6efb | 27266 | { |
72ef6efb | 27267 | (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3); |
72ef6efb RD |
27268 | if (PyErr_Occurred()) SWIG_fail; |
27269 | } | |
27270 | resultobj = SWIG_Py_Void(); | |
b39fe951 RD |
27271 | { |
27272 | if (arg3) delete [] arg3; | |
27273 | } | |
72ef6efb RD |
27274 | return resultobj; |
27275 | fail: | |
b39fe951 RD |
27276 | { |
27277 | if (arg3) delete [] arg3; | |
27278 | } | |
72ef6efb RD |
27279 | return NULL; |
27280 | } | |
27281 | ||
27282 | ||
f8eb59b9 | 27283 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
27284 | PyObject *resultobj = 0; |
27285 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
b39fe951 RD |
27286 | PyObject *arg2 = (PyObject *) 0 ; |
27287 | PyObject *arg3 = (PyObject *) 0 ; | |
72ef6efb RD |
27288 | void *argp1 = 0 ; |
27289 | int res1 = 0 ; | |
b39fe951 RD |
27290 | PyObject * obj0 = 0 ; |
27291 | PyObject * obj1 = 0 ; | |
27292 | PyObject * obj2 = 0 ; | |
27293 | char * kwnames[] = { | |
27294 | (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL | |
27295 | }; | |
72ef6efb | 27296 | |
f8eb59b9 | 27297 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
b39fe951 | 27298 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb | 27299 | if (!SWIG_IsOK(res1)) { |
f8eb59b9 | 27300 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
27301 | } |
27302 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
b39fe951 RD |
27303 | arg2 = obj1; |
27304 | arg3 = obj2; | |
72ef6efb | 27305 | { |
f8eb59b9 | 27306 | wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3); |
72ef6efb RD |
27307 | if (PyErr_Occurred()) SWIG_fail; |
27308 | } | |
27309 | resultobj = SWIG_Py_Void(); | |
27310 | return resultobj; | |
27311 | fail: | |
27312 | return NULL; | |
27313 | } | |
27314 | ||
27315 | ||
72ef6efb RD |
27316 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27317 | PyObject *resultobj = 0; | |
27318 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27319 | size_t arg2 ; | |
27320 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
27321 | int arg4 = (int) wxWINDING_RULE ; | |
27322 | void *argp1 = 0 ; | |
27323 | int res1 = 0 ; | |
72ef6efb RD |
27324 | int val4 ; |
27325 | int ecode4 = 0 ; | |
27326 | PyObject * obj0 = 0 ; | |
27327 | PyObject * obj1 = 0 ; | |
27328 | PyObject * obj2 = 0 ; | |
72ef6efb | 27329 | char * kwnames[] = { |
b39fe951 | 27330 | (char *) "self",(char *) "points",(char *) "fillStyle", NULL |
72ef6efb RD |
27331 | }; |
27332 | ||
b39fe951 | 27333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
72ef6efb RD |
27334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
27335 | if (!SWIG_IsOK(res1)) { | |
27336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27337 | } | |
27338 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
b39fe951 RD |
27339 | { |
27340 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
27341 | if (arg3 == NULL) SWIG_fail; | |
72ef6efb | 27342 | } |
b39fe951 RD |
27343 | if (obj2) { |
27344 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
72ef6efb RD |
27345 | if (!SWIG_IsOK(ecode4)) { |
27346 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
27347 | } | |
27348 | arg4 = static_cast< int >(val4); | |
27349 | } | |
27350 | { | |
72ef6efb | 27351 | (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4); |
72ef6efb RD |
27352 | if (PyErr_Occurred()) SWIG_fail; |
27353 | } | |
27354 | resultobj = SWIG_Py_Void(); | |
b39fe951 RD |
27355 | { |
27356 | if (arg3) delete [] arg3; | |
27357 | } | |
72ef6efb RD |
27358 | return resultobj; |
27359 | fail: | |
b39fe951 RD |
27360 | { |
27361 | if (arg3) delete [] arg3; | |
27362 | } | |
72ef6efb RD |
27363 | return NULL; |
27364 | } | |
27365 | ||
27366 | ||
27367 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27368 | PyObject *resultobj = 0; | |
27369 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27370 | wxDouble arg2 ; | |
27371 | wxDouble arg3 ; | |
27372 | wxDouble arg4 ; | |
27373 | wxDouble arg5 ; | |
27374 | void *argp1 = 0 ; | |
27375 | int res1 = 0 ; | |
27376 | double val2 ; | |
27377 | int ecode2 = 0 ; | |
27378 | double val3 ; | |
27379 | int ecode3 = 0 ; | |
27380 | double val4 ; | |
27381 | int ecode4 = 0 ; | |
27382 | double val5 ; | |
27383 | int ecode5 = 0 ; | |
27384 | PyObject * obj0 = 0 ; | |
27385 | PyObject * obj1 = 0 ; | |
27386 | PyObject * obj2 = 0 ; | |
27387 | PyObject * obj3 = 0 ; | |
27388 | PyObject * obj4 = 0 ; | |
27389 | char * kwnames[] = { | |
27390 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27391 | }; | |
27392 | ||
27393 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
27394 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27395 | if (!SWIG_IsOK(res1)) { | |
27396 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27397 | } | |
27398 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27399 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27400 | if (!SWIG_IsOK(ecode2)) { | |
27401 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27402 | } | |
27403 | arg2 = static_cast< wxDouble >(val2); | |
27404 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27405 | if (!SWIG_IsOK(ecode3)) { | |
27406 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27407 | } | |
27408 | arg3 = static_cast< wxDouble >(val3); | |
27409 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27410 | if (!SWIG_IsOK(ecode4)) { | |
27411 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27412 | } | |
27413 | arg4 = static_cast< wxDouble >(val4); | |
27414 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27415 | if (!SWIG_IsOK(ecode5)) { | |
27416 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27417 | } | |
27418 | arg5 = static_cast< wxDouble >(val5); | |
27419 | { | |
72ef6efb | 27420 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); |
72ef6efb RD |
27421 | if (PyErr_Occurred()) SWIG_fail; |
27422 | } | |
27423 | resultobj = SWIG_Py_Void(); | |
27424 | return resultobj; | |
27425 | fail: | |
27426 | return NULL; | |
27427 | } | |
27428 | ||
27429 | ||
27430 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27431 | PyObject *resultobj = 0; | |
27432 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27433 | wxDouble arg2 ; | |
27434 | wxDouble arg3 ; | |
27435 | wxDouble arg4 ; | |
27436 | wxDouble arg5 ; | |
27437 | void *argp1 = 0 ; | |
27438 | int res1 = 0 ; | |
27439 | double val2 ; | |
27440 | int ecode2 = 0 ; | |
27441 | double val3 ; | |
27442 | int ecode3 = 0 ; | |
27443 | double val4 ; | |
27444 | int ecode4 = 0 ; | |
27445 | double val5 ; | |
27446 | int ecode5 = 0 ; | |
27447 | PyObject * obj0 = 0 ; | |
27448 | PyObject * obj1 = 0 ; | |
27449 | PyObject * obj2 = 0 ; | |
27450 | PyObject * obj3 = 0 ; | |
27451 | PyObject * obj4 = 0 ; | |
27452 | char * kwnames[] = { | |
27453 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27454 | }; | |
27455 | ||
27456 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
27457 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27458 | if (!SWIG_IsOK(res1)) { | |
27459 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27460 | } | |
27461 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27462 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27463 | if (!SWIG_IsOK(ecode2)) { | |
27464 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27465 | } | |
27466 | arg2 = static_cast< wxDouble >(val2); | |
27467 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27468 | if (!SWIG_IsOK(ecode3)) { | |
27469 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27470 | } | |
27471 | arg3 = static_cast< wxDouble >(val3); | |
27472 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27473 | if (!SWIG_IsOK(ecode4)) { | |
27474 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27475 | } | |
27476 | arg4 = static_cast< wxDouble >(val4); | |
27477 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27478 | if (!SWIG_IsOK(ecode5)) { | |
27479 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27480 | } | |
27481 | arg5 = static_cast< wxDouble >(val5); | |
27482 | { | |
72ef6efb | 27483 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
72ef6efb RD |
27484 | if (PyErr_Occurred()) SWIG_fail; |
27485 | } | |
27486 | resultobj = SWIG_Py_Void(); | |
27487 | return resultobj; | |
27488 | fail: | |
27489 | return NULL; | |
27490 | } | |
27491 | ||
27492 | ||
27493 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27494 | PyObject *resultobj = 0; | |
27495 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
27496 | wxDouble arg2 ; | |
27497 | wxDouble arg3 ; | |
27498 | wxDouble arg4 ; | |
27499 | wxDouble arg5 ; | |
27500 | wxDouble arg6 ; | |
27501 | void *argp1 = 0 ; | |
27502 | int res1 = 0 ; | |
27503 | double val2 ; | |
27504 | int ecode2 = 0 ; | |
27505 | double val3 ; | |
27506 | int ecode3 = 0 ; | |
27507 | double val4 ; | |
27508 | int ecode4 = 0 ; | |
27509 | double val5 ; | |
27510 | int ecode5 = 0 ; | |
27511 | double val6 ; | |
27512 | int ecode6 = 0 ; | |
27513 | PyObject * obj0 = 0 ; | |
27514 | PyObject * obj1 = 0 ; | |
27515 | PyObject * obj2 = 0 ; | |
27516 | PyObject * obj3 = 0 ; | |
27517 | PyObject * obj4 = 0 ; | |
27518 | PyObject * obj5 = 0 ; | |
27519 | char * kwnames[] = { | |
27520 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL | |
27521 | }; | |
27522 | ||
27523 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
27524 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27525 | if (!SWIG_IsOK(res1)) { | |
27526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
27527 | } | |
27528 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
27529 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27530 | if (!SWIG_IsOK(ecode2)) { | |
27531 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27532 | } | |
27533 | arg2 = static_cast< wxDouble >(val2); | |
27534 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27535 | if (!SWIG_IsOK(ecode3)) { | |
27536 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27537 | } | |
27538 | arg3 = static_cast< wxDouble >(val3); | |
27539 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27540 | if (!SWIG_IsOK(ecode4)) { | |
27541 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27542 | } | |
27543 | arg4 = static_cast< wxDouble >(val4); | |
27544 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27545 | if (!SWIG_IsOK(ecode5)) { | |
27546 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27547 | } | |
27548 | arg5 = static_cast< wxDouble >(val5); | |
27549 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27550 | if (!SWIG_IsOK(ecode6)) { | |
27551 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27552 | } | |
27553 | arg6 = static_cast< wxDouble >(val6); | |
27554 | { | |
72ef6efb | 27555 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
27556 | if (PyErr_Occurred()) SWIG_fail; |
27557 | } | |
27558 | resultobj = SWIG_Py_Void(); | |
27559 | return resultobj; | |
27560 | fail: | |
27561 | return NULL; | |
27562 | } | |
27563 | ||
27564 | ||
27565 | SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27566 | PyObject *obj; | |
27567 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27568 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj)); | |
27569 | return SWIG_Py_Void(); | |
27570 | } | |
27571 | ||
27572 | SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
27573 | PyObject *resultobj = 0; | |
27574 | wxWindowDC *arg1 = 0 ; | |
27575 | wxGCDC *result = 0 ; | |
27576 | void *argp1 = 0 ; | |
27577 | int res1 = 0 ; | |
27578 | PyObject * obj0 = 0 ; | |
27579 | char * kwnames[] = { | |
27580 | (char *) "dc", NULL | |
27581 | }; | |
27582 | ||
27583 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_GCDC",kwnames,&obj0)) SWIG_fail; | |
27584 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
27585 | if (!SWIG_IsOK(res1)) { | |
27586 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27587 | } | |
27588 | if (!argp1) { | |
27589 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
27590 | } | |
27591 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
27592 | { | |
27593 | if (!wxPyCheckForApp()) SWIG_fail; | |
27594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27595 | result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1); | |
27596 | wxPyEndAllowThreads(__tstate); | |
27597 | if (PyErr_Occurred()) SWIG_fail; | |
27598 | } | |
27599 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
27600 | return resultobj; | |
27601 | fail: | |
27602 | return NULL; | |
27603 | } | |
27604 | ||
27605 | ||
27606 | SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27607 | PyObject *resultobj = 0; | |
27608 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
27609 | void *argp1 = 0 ; | |
27610 | int res1 = 0 ; | |
27611 | PyObject *swig_obj[1] ; | |
27612 | ||
27613 | if (!args) SWIG_fail; | |
27614 | swig_obj[0] = args; | |
27615 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 ); | |
27616 | if (!SWIG_IsOK(res1)) { | |
27617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
27618 | } | |
27619 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
27620 | { | |
72ef6efb RD |
27621 | delete arg1; |
27622 | ||
72ef6efb RD |
27623 | if (PyErr_Occurred()) SWIG_fail; |
27624 | } | |
27625 | resultobj = SWIG_Py_Void(); | |
27626 | return resultobj; | |
27627 | fail: | |
27628 | return NULL; | |
27629 | } | |
27630 | ||
27631 | ||
0a27f394 | 27632 | SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
27633 | PyObject *resultobj = 0; |
27634 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
27635 | wxGraphicsContext *result = 0 ; | |
27636 | void *argp1 = 0 ; | |
27637 | int res1 = 0 ; | |
27638 | PyObject *swig_obj[1] ; | |
27639 | ||
27640 | if (!args) SWIG_fail; | |
27641 | swig_obj[0] = args; | |
27642 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
27643 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 27644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); |
72ef6efb RD |
27645 | } |
27646 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
27647 | { | |
0a27f394 | 27648 | result = (wxGraphicsContext *)(arg1)->GetGraphicsContext(); |
72ef6efb RD |
27649 | if (PyErr_Occurred()) SWIG_fail; |
27650 | } | |
27651 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27652 | return resultobj; | |
27653 | fail: | |
27654 | return NULL; | |
27655 | } | |
27656 | ||
27657 | ||
0a27f394 RD |
27658 | SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27659 | PyObject *resultobj = 0; | |
27660 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
27661 | wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ; | |
27662 | void *argp1 = 0 ; | |
27663 | int res1 = 0 ; | |
27664 | void *argp2 = 0 ; | |
27665 | int res2 = 0 ; | |
27666 | PyObject * obj0 = 0 ; | |
27667 | PyObject * obj1 = 0 ; | |
27668 | char * kwnames[] = { | |
27669 | (char *) "self",(char *) "ctx", NULL | |
27670 | }; | |
27671 | ||
27672 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail; | |
27673 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
27674 | if (!SWIG_IsOK(res1)) { | |
27675 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
27676 | } | |
27677 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
27678 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
27679 | if (!SWIG_IsOK(res2)) { | |
27680 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'"); | |
27681 | } | |
27682 | arg2 = reinterpret_cast< wxGraphicsContext * >(argp2); | |
27683 | { | |
27684 | (arg1)->SetGraphicsContext(arg2); | |
27685 | if (PyErr_Occurred()) SWIG_fail; | |
27686 | } | |
27687 | resultobj = SWIG_Py_Void(); | |
27688 | return resultobj; | |
27689 | fail: | |
27690 | return NULL; | |
27691 | } | |
27692 | ||
27693 | ||
72ef6efb RD |
27694 | SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27695 | PyObject *obj; | |
27696 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27697 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj)); | |
27698 | return SWIG_Py_Void(); | |
27699 | } | |
27700 | ||
27701 | SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27702 | return SWIG_Python_InitShadowInstance(args); | |
27703 | } | |
27704 | ||
b39fe951 RD |
27705 | SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27706 | PyObject *resultobj = 0; | |
27707 | wxOverlay *result = 0 ; | |
27708 | ||
27709 | if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail; | |
27710 | { | |
27711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27712 | result = (wxOverlay *)new wxOverlay(); | |
27713 | wxPyEndAllowThreads(__tstate); | |
27714 | if (PyErr_Occurred()) SWIG_fail; | |
27715 | } | |
27716 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 ); | |
27717 | return resultobj; | |
27718 | fail: | |
27719 | return NULL; | |
27720 | } | |
27721 | ||
27722 | ||
27723 | SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27724 | PyObject *resultobj = 0; | |
27725 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
27726 | void *argp1 = 0 ; | |
27727 | int res1 = 0 ; | |
27728 | PyObject *swig_obj[1] ; | |
27729 | ||
27730 | if (!args) SWIG_fail; | |
27731 | swig_obj[0] = args; | |
27732 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 ); | |
27733 | if (!SWIG_IsOK(res1)) { | |
27734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
27735 | } | |
27736 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
27737 | { | |
27738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27739 | delete arg1; | |
27740 | ||
27741 | wxPyEndAllowThreads(__tstate); | |
27742 | if (PyErr_Occurred()) SWIG_fail; | |
27743 | } | |
27744 | resultobj = SWIG_Py_Void(); | |
27745 | return resultobj; | |
27746 | fail: | |
27747 | return NULL; | |
27748 | } | |
27749 | ||
27750 | ||
27751 | SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27752 | PyObject *resultobj = 0; | |
27753 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
27754 | void *argp1 = 0 ; | |
27755 | int res1 = 0 ; | |
27756 | PyObject *swig_obj[1] ; | |
27757 | ||
27758 | if (!args) SWIG_fail; | |
27759 | swig_obj[0] = args; | |
27760 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 ); | |
27761 | if (!SWIG_IsOK(res1)) { | |
27762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
27763 | } | |
27764 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
27765 | { | |
27766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27767 | (arg1)->Reset(); | |
27768 | wxPyEndAllowThreads(__tstate); | |
27769 | if (PyErr_Occurred()) SWIG_fail; | |
27770 | } | |
27771 | resultobj = SWIG_Py_Void(); | |
27772 | return resultobj; | |
27773 | fail: | |
27774 | return NULL; | |
27775 | } | |
27776 | ||
27777 | ||
27778 | SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27779 | PyObject *obj; | |
27780 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27781 | SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj)); | |
27782 | return SWIG_Py_Void(); | |
27783 | } | |
27784 | ||
27785 | SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27786 | return SWIG_Python_InitShadowInstance(args); | |
27787 | } | |
27788 | ||
27789 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27790 | PyObject *resultobj = 0; | |
27791 | wxOverlay *arg1 = 0 ; | |
27792 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
27793 | int arg3 ; | |
27794 | int arg4 ; | |
27795 | int arg5 ; | |
27796 | int arg6 ; | |
27797 | wxDCOverlay *result = 0 ; | |
27798 | void *argp1 = 0 ; | |
27799 | int res1 = 0 ; | |
27800 | void *argp2 = 0 ; | |
27801 | int res2 = 0 ; | |
27802 | int val3 ; | |
27803 | int ecode3 = 0 ; | |
27804 | int val4 ; | |
27805 | int ecode4 = 0 ; | |
27806 | int val5 ; | |
27807 | int ecode5 = 0 ; | |
27808 | int val6 ; | |
27809 | int ecode6 = 0 ; | |
27810 | ||
27811 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; | |
27812 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
27813 | if (!SWIG_IsOK(res1)) { | |
27814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
27815 | } | |
27816 | if (!argp1) { | |
27817 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
27818 | } | |
27819 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
27820 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
27821 | if (!SWIG_IsOK(res2)) { | |
27822 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
27823 | } | |
27824 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
27825 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
27826 | if (!SWIG_IsOK(ecode3)) { | |
27827 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'"); | |
27828 | } | |
27829 | arg3 = static_cast< int >(val3); | |
27830 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
27831 | if (!SWIG_IsOK(ecode4)) { | |
27832 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'"); | |
27833 | } | |
27834 | arg4 = static_cast< int >(val4); | |
27835 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
27836 | if (!SWIG_IsOK(ecode5)) { | |
27837 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'"); | |
27838 | } | |
27839 | arg5 = static_cast< int >(val5); | |
27840 | ecode6 = SWIG_AsVal_int(swig_obj[5], &val6); | |
27841 | if (!SWIG_IsOK(ecode6)) { | |
27842 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'"); | |
27843 | } | |
27844 | arg6 = static_cast< int >(val6); | |
27845 | { | |
27846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27847 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6); | |
27848 | wxPyEndAllowThreads(__tstate); | |
27849 | if (PyErr_Occurred()) SWIG_fail; | |
27850 | } | |
27851 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
27852 | return resultobj; | |
27853 | fail: | |
27854 | return NULL; | |
27855 | } | |
27856 | ||
27857 | ||
27858 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
27859 | PyObject *resultobj = 0; | |
27860 | wxOverlay *arg1 = 0 ; | |
27861 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
27862 | wxDCOverlay *result = 0 ; | |
27863 | void *argp1 = 0 ; | |
27864 | int res1 = 0 ; | |
27865 | void *argp2 = 0 ; | |
27866 | int res2 = 0 ; | |
27867 | ||
27868 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
27869 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
27870 | if (!SWIG_IsOK(res1)) { | |
27871 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
27872 | } | |
27873 | if (!argp1) { | |
27874 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
27875 | } | |
27876 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
27877 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
27878 | if (!SWIG_IsOK(res2)) { | |
27879 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
27880 | } | |
27881 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
27882 | { | |
27883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27884 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2); | |
27885 | wxPyEndAllowThreads(__tstate); | |
27886 | if (PyErr_Occurred()) SWIG_fail; | |
27887 | } | |
27888 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
27889 | return resultobj; | |
27890 | fail: | |
27891 | return NULL; | |
27892 | } | |
27893 | ||
27894 | ||
27895 | SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) { | |
27896 | int argc; | |
27897 | PyObject *argv[7]; | |
27898 | ||
27899 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail; | |
27900 | --argc; | |
27901 | if (argc == 2) { | |
27902 | return _wrap_new_DCOverlay__SWIG_1(self, argc, argv); | |
27903 | } | |
27904 | if (argc == 6) { | |
27905 | return _wrap_new_DCOverlay__SWIG_0(self, argc, argv); | |
27906 | } | |
27907 | ||
27908 | fail: | |
27909 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'"); | |
27910 | return NULL; | |
27911 | } | |
27912 | ||
27913 | ||
27914 | SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27915 | PyObject *resultobj = 0; | |
27916 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
27917 | void *argp1 = 0 ; | |
27918 | int res1 = 0 ; | |
27919 | PyObject *swig_obj[1] ; | |
27920 | ||
27921 | if (!args) SWIG_fail; | |
27922 | swig_obj[0] = args; | |
27923 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 ); | |
27924 | if (!SWIG_IsOK(res1)) { | |
27925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
27926 | } | |
27927 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
27928 | { | |
27929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27930 | delete arg1; | |
27931 | ||
27932 | wxPyEndAllowThreads(__tstate); | |
27933 | if (PyErr_Occurred()) SWIG_fail; | |
27934 | } | |
27935 | resultobj = SWIG_Py_Void(); | |
27936 | return resultobj; | |
27937 | fail: | |
27938 | return NULL; | |
27939 | } | |
27940 | ||
27941 | ||
27942 | SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27943 | PyObject *resultobj = 0; | |
27944 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
27945 | void *argp1 = 0 ; | |
27946 | int res1 = 0 ; | |
27947 | PyObject *swig_obj[1] ; | |
27948 | ||
27949 | if (!args) SWIG_fail; | |
27950 | swig_obj[0] = args; | |
27951 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 ); | |
27952 | if (!SWIG_IsOK(res1)) { | |
27953 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
27954 | } | |
27955 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
27956 | { | |
27957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27958 | (arg1)->Clear(); | |
27959 | wxPyEndAllowThreads(__tstate); | |
27960 | if (PyErr_Occurred()) SWIG_fail; | |
27961 | } | |
27962 | resultobj = SWIG_Py_Void(); | |
27963 | return resultobj; | |
27964 | fail: | |
27965 | return NULL; | |
27966 | } | |
27967 | ||
27968 | ||
27969 | SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27970 | PyObject *obj; | |
27971 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27972 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj)); | |
27973 | return SWIG_Py_Void(); | |
27974 | } | |
27975 | ||
27976 | SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27977 | return SWIG_Python_InitShadowInstance(args); | |
27978 | } | |
27979 | ||
72ef6efb RD |
27980 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
27981 | PyObject *resultobj = 0; | |
27982 | int arg1 ; | |
27983 | int arg2 ; | |
27984 | int arg3 = (int) true ; | |
27985 | int arg4 = (int) 1 ; | |
27986 | wxImageList *result = 0 ; | |
27987 | int val1 ; | |
27988 | int ecode1 = 0 ; | |
27989 | int val2 ; | |
27990 | int ecode2 = 0 ; | |
27991 | int val3 ; | |
27992 | int ecode3 = 0 ; | |
27993 | int val4 ; | |
27994 | int ecode4 = 0 ; | |
27995 | PyObject * obj0 = 0 ; | |
27996 | PyObject * obj1 = 0 ; | |
27997 | PyObject * obj2 = 0 ; | |
27998 | PyObject * obj3 = 0 ; | |
27999 | char * kwnames[] = { | |
28000 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
28001 | }; | |
28002 | ||
28003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
28004 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
28005 | if (!SWIG_IsOK(ecode1)) { | |
28006 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
28007 | } | |
28008 | arg1 = static_cast< int >(val1); | |
28009 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28010 | if (!SWIG_IsOK(ecode2)) { | |
28011 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
28012 | } | |
28013 | arg2 = static_cast< int >(val2); | |
28014 | if (obj2) { | |
28015 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
28016 | if (!SWIG_IsOK(ecode3)) { | |
28017 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
28018 | } | |
28019 | arg3 = static_cast< int >(val3); | |
28020 | } | |
28021 | if (obj3) { | |
28022 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
28023 | if (!SWIG_IsOK(ecode4)) { | |
28024 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
28025 | } | |
28026 | arg4 = static_cast< int >(val4); | |
28027 | } | |
28028 | { | |
28029 | if (!wxPyCheckForApp()) SWIG_fail; | |
28030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28031 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
28032 | wxPyEndAllowThreads(__tstate); | |
28033 | if (PyErr_Occurred()) SWIG_fail; | |
28034 | } | |
e02c0a13 | 28035 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 ); |
72ef6efb RD |
28036 | return resultobj; |
28037 | fail: | |
28038 | return NULL; | |
28039 | } | |
28040 | ||
28041 | ||
28042 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28043 | PyObject *resultobj = 0; | |
28044 | wxImageList *arg1 = (wxImageList *) 0 ; | |
28045 | void *argp1 = 0 ; | |
28046 | int res1 = 0 ; | |
28047 | PyObject *swig_obj[1] ; | |
28048 | ||
28049 | if (!args) SWIG_fail; | |
28050 | swig_obj[0] = args; | |
28051 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
28052 | if (!SWIG_IsOK(res1)) { | |
28053 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
28054 | } | |
28055 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
28056 | { | |
28057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28058 | delete arg1; | |
28059 | ||
28060 | wxPyEndAllowThreads(__tstate); | |
28061 | if (PyErr_Occurred()) SWIG_fail; | |
28062 | } | |
28063 | resultobj = SWIG_Py_Void(); | |
28064 | return resultobj; | |
28065 | fail: | |
28066 | return NULL; | |
28067 | } | |
28068 | ||
28069 | ||
28070 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28071 | PyObject *resultobj = 0; | |
28072 | wxImageList *arg1 = (wxImageList *) 0 ; | |
28073 | wxBitmap *arg2 = 0 ; | |
28074 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
28075 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
28076 | int result; | |
28077 | void *argp1 = 0 ; | |
28078 | int res1 = 0 ; | |
28079 | void *argp2 = 0 ; | |
28080 | int res2 = 0 ; | |
28081 | void *argp3 = 0 ; | |
28082 | int res3 = 0 ; | |
28083 | PyObject * obj0 = 0 ; | |
28084 | PyObject * obj1 = 0 ; | |
28085 | PyObject * obj2 = 0 ; | |
28086 | char * kwnames[] = { | |
28087 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
28088 | }; | |
28089 | ||
28090 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28091 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
28092 | if (!SWIG_IsOK(res1)) { | |
28093 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
28094 | } | |
28095 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
28096 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
28097 | if (!SWIG_IsOK(res2)) { | |
28098 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
28099 | } | |
28100 | if (!argp2) { | |
28101 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
28102 | } | |
28103 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
28104 | if (obj2) { | |
28105 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
28106 | if (!SWIG_IsOK(res3)) { | |
28107 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
28108 | } | |
28109 | if (!argp3) { | |
28110 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
28111 | } | |
28112 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
28113 | } | |
28114 | { | |
28115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28116 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
28117 | wxPyEndAllowThreads(__tstate); | |
28118 | if (PyErr_Occurred()) SWIG_fail; | |
28119 | } | |
28120 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28121 | return resultobj; | |
28122 | fail: | |
28123 | return NULL; | |
28124 | } | |
28125 | ||
28126 | ||
28127 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28128 | PyObject *resultobj = 0; | |
28129 | wxImageList *arg1 = (wxImageList *) 0 ; | |
28130 | wxBitmap *arg2 = 0 ; | |
28131 | wxColour *arg3 = 0 ; | |
28132 | int result; | |
28133 | void *argp1 = 0 ; | |
28134 | int res1 = 0 ; | |
28135 | void *argp2 = 0 ; | |
28136 | int res2 = 0 ; | |
28137 | wxColour temp3 ; | |
28138 | PyObject * obj0 = 0 ; | |
28139 | PyObject * obj1 = 0 ; | |
28140 | PyObject * obj2 = 0 ; | |
28141 | char * kwnames[] = { | |
28142 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
28143 | }; | |
28144 | ||
28145 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
28146 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
28147 | if (!SWIG_IsOK(res1)) { | |
28148 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
28149 | } | |
28150 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
28151 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
28152 | if (!SWIG_IsOK(res2)) { | |
28153 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
28154 | } | |
28155 | if (!argp2) { | |
28156 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
28157 | } | |
28158 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
28159 | { | |
28160 | arg3 = &temp3; | |
28161 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
28162 | } | |
28163 | { | |
28164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28165 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
28166 | wxPyEndAllowThreads(__tstate); | |
28167 | if (PyErr_Occurred()) SWIG_fail; | |
28168 | } | |
28169 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28170 | return resultobj; | |
28171 | fail: | |
28172 | return NULL; | |
28173 | } | |
28174 | ||
28175 | ||
28176 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28177 | PyObject *resultobj = 0; | |
28178 | wxImageList *arg1 = (wxImageList *) 0 ; | |
28179 | wxIcon *arg2 = 0 ; | |
28180 | int result; | |
28181 | void *argp1 = 0 ; | |
28182 | int res1 = 0 ; | |
28183 | void *argp2 = 0 ; | |
28184 | int res2 = 0 ; | |
28185 | PyObject * obj0 = 0 ; | |
28186 | PyObject * obj1 = 0 ; | |
28187 | char * kwnames[] = { | |
28188 | (char *) "self",(char *) "icon", NULL | |
28189 | }; | |
28190 | ||
28191 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
28192 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
28193 | if (!SWIG_IsOK(res1)) { | |
28194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
28195 | } | |
554f62e9 RD |
28196 | arg1 = reinterpret_cast< wxImageList * >(argp1); |
28197 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
28198 | if (!SWIG_IsOK(res2)) { | |
28199 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
28200 | } | |
28201 | if (!argp2) { | |
28202 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
28203 | } | |
28204 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
28205 | { | |
28206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28207 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
28208 | wxPyEndAllowThreads(__tstate); | |
28209 | if (PyErr_Occurred()) SWIG_fail; | |
28210 | } | |
28211 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28212 | return resultobj; | |
28213 | fail: | |
28214 | return NULL; | |
28215 | } | |
28216 | ||
28217 | ||
28218 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28219 | PyObject *resultobj = 0; | |
28220 | wxImageList *arg1 = (wxImageList *) 0 ; | |
28221 | int arg2 ; | |
28222 | SwigValueWrapper<wxBitmap > result; | |
28223 | void *argp1 = 0 ; | |
28224 | int res1 = 0 ; | |
28225 | int val2 ; | |
28226 | int ecode2 = 0 ; | |
28227 | PyObject * obj0 = 0 ; | |
28228 | PyObject * obj1 = 0 ; | |
28229 | char * kwnames[] = { | |
28230 | (char *) "self",(char *) "index", NULL | |
28231 | }; | |
28232 | ||
28233 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
28234 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
28235 | if (!SWIG_IsOK(res1)) { | |
28236 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
28237 | } | |
28238 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
28239 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28240 | if (!SWIG_IsOK(ecode2)) { | |
28241 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
28242 | } | |
28243 | arg2 = static_cast< int >(val2); | |
28244 | { | |
28245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28246 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
28247 | wxPyEndAllowThreads(__tstate); | |
28248 | if (PyErr_Occurred()) SWIG_fail; | |
28249 | } | |
28250 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
28251 | return resultobj; | |
28252 | fail: | |
28253 | return NULL; | |
28254 | } | |
28255 | ||
28256 | ||
28257 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28258 | PyObject *resultobj = 0; | |
28259 | wxImageList *arg1 = (wxImageList *) 0 ; | |
28260 | int arg2 ; | |
28261 | wxIcon result; | |
28262 | void *argp1 = 0 ; | |
28263 | int res1 = 0 ; | |
28264 | int val2 ; | |
28265 | int ecode2 = 0 ; | |
28266 | PyObject * obj0 = 0 ; | |
28267 | PyObject * obj1 = 0 ; | |
28268 | char * kwnames[] = { | |
28269 | (char *) "self",(char *) "index", NULL | |
28270 | }; | |
28271 | ||
28272 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
28273 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
28274 | if (!SWIG_IsOK(res1)) { | |
28275 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
28276 | } | |
28277 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
28278 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28279 | if (!SWIG_IsOK(ecode2)) { | |
28280 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
28281 | } | |
28282 | arg2 = static_cast< int >(val2); | |
28283 | { | |
28284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28285 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
28286 | wxPyEndAllowThreads(__tstate); | |
28287 | if (PyErr_Occurred()) SWIG_fail; | |
28288 | } | |
28289 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
28290 | return resultobj; | |
28291 | fail: | |
28292 | return NULL; | |
28293 | } | |
28294 | ||
28295 | ||
28296 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28297 | PyObject *resultobj = 0; | |
28298 | wxImageList *arg1 = (wxImageList *) 0 ; | |
28299 | int arg2 ; | |
28300 | wxBitmap *arg3 = 0 ; | |
28301 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
28302 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
28303 | bool result; | |
28304 | void *argp1 = 0 ; | |
28305 | int res1 = 0 ; | |
28306 | int val2 ; | |
28307 | int ecode2 = 0 ; | |
28308 | void *argp3 = 0 ; | |
28309 | int res3 = 0 ; | |
28310 | void *argp4 = 0 ; | |
28311 | int res4 = 0 ; | |
28312 | PyObject * obj0 = 0 ; | |
28313 | PyObject * obj1 = 0 ; | |
28314 | PyObject * obj2 = 0 ; | |
28315 | PyObject * obj3 = 0 ; | |
28316 | char * kwnames[] = { | |
28317 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
28318 | }; | |
28319 | ||
28320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
28321 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
28322 | if (!SWIG_IsOK(res1)) { | |
28323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
28324 | } | |
28325 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
28326 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28327 | if (!SWIG_IsOK(ecode2)) { | |
28328 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
28329 | } | |
28330 | arg2 = static_cast< int >(val2); | |
28331 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
28332 | if (!SWIG_IsOK(res3)) { | |
28333 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
28334 | } | |
28335 | if (!argp3) { | |
28336 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
28337 | } | |
28338 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
28339 | if (obj3) { | |
28340 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
28341 | if (!SWIG_IsOK(res4)) { | |
28342 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 28343 | } |
554f62e9 RD |
28344 | if (!argp4) { |
28345 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 28346 | } |
554f62e9 RD |
28347 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
28348 | } | |
28349 | { | |
28350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28351 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
28352 | wxPyEndAllowThreads(__tstate); | |
28353 | if (PyErr_Occurred()) SWIG_fail; | |
28354 | } | |
28355 | { | |
28356 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28357 | } | |
28358 | return resultobj; | |
28359 | fail: | |
28360 | return NULL; | |
28361 | } | |
28362 | ||
28363 | ||
28364 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28365 | PyObject *resultobj = 0; | |
28366 | wxImageList *arg1 = (wxImageList *) 0 ; | |
28367 | int arg2 ; | |
28368 | wxDC *arg3 = 0 ; | |
28369 | int arg4 ; | |
28370 | int arg5 ; | |
28371 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
28372 | bool arg7 = (bool) (bool)false ; | |
28373 | bool result; | |
28374 | void *argp1 = 0 ; | |
28375 | int res1 = 0 ; | |
28376 | int val2 ; | |
28377 | int ecode2 = 0 ; | |
28378 | void *argp3 = 0 ; | |
28379 | int res3 = 0 ; | |
28380 | int val4 ; | |
28381 | int ecode4 = 0 ; | |
28382 | int val5 ; | |
28383 | int ecode5 = 0 ; | |
28384 | int val6 ; | |
28385 | int ecode6 = 0 ; | |
28386 | bool val7 ; | |
28387 | int ecode7 = 0 ; | |
28388 | PyObject * obj0 = 0 ; | |
28389 | PyObject * obj1 = 0 ; | |
28390 | PyObject * obj2 = 0 ; | |
28391 | PyObject * obj3 = 0 ; | |
28392 | PyObject * obj4 = 0 ; | |
28393 | PyObject * obj5 = 0 ; | |
28394 | PyObject * obj6 = 0 ; | |
28395 | char * kwnames[] = { | |
28396 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
28397 | }; | |
28398 | ||
28399 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
28400 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
28401 | if (!SWIG_IsOK(res1)) { | |
28402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
28403 | } | |
28404 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
28405 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28406 | if (!SWIG_IsOK(ecode2)) { | |
28407 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
28408 | } | |
28409 | arg2 = static_cast< int >(val2); | |
28410 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
28411 | if (!SWIG_IsOK(res3)) { | |
28412 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
28413 | } | |
28414 | if (!argp3) { | |
28415 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
28416 | } | |
28417 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
28418 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
28419 | if (!SWIG_IsOK(ecode4)) { | |
28420 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
28421 | } | |
28422 | arg4 = static_cast< int >(val4); | |
28423 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
28424 | if (!SWIG_IsOK(ecode5)) { | |
28425 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
28426 | } | |
28427 | arg5 = static_cast< int >(val5); | |
28428 | if (obj5) { | |
28429 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
28430 | if (!SWIG_IsOK(ecode6)) { | |
28431 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
28432 | } | |
28433 | arg6 = static_cast< int >(val6); | |
28434 | } | |
28435 | if (obj6) { | |
28436 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
28437 | if (!SWIG_IsOK(ecode7)) { | |
28438 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
28439 | } | |
28440 | arg7 = static_cast< bool >(val7); | |
28441 | } | |
28442 | { | |
28443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28444 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
28445 | wxPyEndAllowThreads(__tstate); | |
28446 | if (PyErr_Occurred()) SWIG_fail; | |
28447 | } | |
28448 | { | |
28449 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28450 | } | |
28451 | return resultobj; | |
28452 | fail: | |
28453 | return NULL; | |
28454 | } | |
28455 | ||
28456 | ||
28457 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28458 | PyObject *resultobj = 0; | |
28459 | wxImageList *arg1 = (wxImageList *) 0 ; | |
28460 | int result; | |
28461 | void *argp1 = 0 ; | |
28462 | int res1 = 0 ; | |
28463 | PyObject *swig_obj[1] ; | |
28464 | ||
28465 | if (!args) SWIG_fail; | |
28466 | swig_obj[0] = args; | |
28467 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
28468 | if (!SWIG_IsOK(res1)) { | |
28469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
28470 | } | |
28471 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
28472 | { | |
28473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28474 | result = (int)(arg1)->GetImageCount(); | |
28475 | wxPyEndAllowThreads(__tstate); | |
28476 | if (PyErr_Occurred()) SWIG_fail; | |
28477 | } | |
28478 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
28479 | return resultobj; | |
28480 | fail: | |
28481 | return NULL; | |
28482 | } | |
28483 | ||
28484 | ||
28485 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28486 | PyObject *resultobj = 0; | |
28487 | wxImageList *arg1 = (wxImageList *) 0 ; | |
28488 | int arg2 ; | |
28489 | bool result; | |
28490 | void *argp1 = 0 ; | |
28491 | int res1 = 0 ; | |
28492 | int val2 ; | |
28493 | int ecode2 = 0 ; | |
28494 | PyObject * obj0 = 0 ; | |
28495 | PyObject * obj1 = 0 ; | |
28496 | char * kwnames[] = { | |
28497 | (char *) "self",(char *) "index", NULL | |
28498 | }; | |
28499 | ||
28500 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
28501 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
28502 | if (!SWIG_IsOK(res1)) { | |
28503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
28504 | } | |
28505 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
28506 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28507 | if (!SWIG_IsOK(ecode2)) { | |
28508 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
28509 | } | |
28510 | arg2 = static_cast< int >(val2); | |
28511 | { | |
28512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28513 | result = (bool)(arg1)->Remove(arg2); | |
28514 | wxPyEndAllowThreads(__tstate); | |
28515 | if (PyErr_Occurred()) SWIG_fail; | |
28516 | } | |
28517 | { | |
28518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28519 | } | |
28520 | return resultobj; | |
28521 | fail: | |
28522 | return NULL; | |
28523 | } | |
28524 | ||
28525 | ||
28526 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28527 | PyObject *resultobj = 0; | |
28528 | wxImageList *arg1 = (wxImageList *) 0 ; | |
28529 | bool result; | |
28530 | void *argp1 = 0 ; | |
28531 | int res1 = 0 ; | |
28532 | PyObject *swig_obj[1] ; | |
28533 | ||
28534 | if (!args) SWIG_fail; | |
28535 | swig_obj[0] = args; | |
28536 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
28537 | if (!SWIG_IsOK(res1)) { | |
28538 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
28539 | } | |
28540 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
28541 | { | |
28542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28543 | result = (bool)(arg1)->RemoveAll(); | |
28544 | wxPyEndAllowThreads(__tstate); | |
28545 | if (PyErr_Occurred()) SWIG_fail; | |
28546 | } | |
28547 | { | |
28548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28549 | } | |
28550 | return resultobj; | |
28551 | fail: | |
28552 | return NULL; | |
28553 | } | |
28554 | ||
28555 | ||
28556 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28557 | PyObject *resultobj = 0; | |
28558 | wxImageList *arg1 = (wxImageList *) 0 ; | |
28559 | int arg2 ; | |
28560 | int *arg3 = 0 ; | |
28561 | int *arg4 = 0 ; | |
28562 | void *argp1 = 0 ; | |
28563 | int res1 = 0 ; | |
28564 | int val2 ; | |
28565 | int ecode2 = 0 ; | |
28566 | int temp3 ; | |
28567 | int res3 = SWIG_TMPOBJ ; | |
28568 | int temp4 ; | |
28569 | int res4 = SWIG_TMPOBJ ; | |
28570 | PyObject * obj0 = 0 ; | |
28571 | PyObject * obj1 = 0 ; | |
28572 | char * kwnames[] = { | |
28573 | (char *) "self",(char *) "index", NULL | |
28574 | }; | |
28575 | ||
28576 | arg3 = &temp3; | |
28577 | arg4 = &temp4; | |
28578 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
28579 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
28580 | if (!SWIG_IsOK(res1)) { | |
28581 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
28582 | } | |
28583 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
28584 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28585 | if (!SWIG_IsOK(ecode2)) { | |
28586 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
28587 | } | |
28588 | arg2 = static_cast< int >(val2); | |
28589 | { | |
28590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28591 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
28592 | wxPyEndAllowThreads(__tstate); | |
28593 | if (PyErr_Occurred()) SWIG_fail; | |
28594 | } | |
28595 | resultobj = SWIG_Py_Void(); | |
28596 | if (SWIG_IsTmpObj(res3)) { | |
28597 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
28598 | } else { | |
28599 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28600 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
28601 | } | |
28602 | if (SWIG_IsTmpObj(res4)) { | |
28603 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
28604 | } else { | |
28605 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
28606 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
28607 | } | |
28608 | return resultobj; | |
28609 | fail: | |
28610 | return NULL; | |
28611 | } | |
28612 | ||
28613 | ||
28614 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28615 | PyObject *obj; | |
28616 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28617 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
28618 | return SWIG_Py_Void(); | |
28619 | } | |
28620 | ||
28621 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28622 | return SWIG_Python_InitShadowInstance(args); | |
28623 | } | |
28624 | ||
50efceee RD |
28625 | SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28626 | PyObject *resultobj = 0; | |
28627 | wxStockGDI *result = 0 ; | |
554f62e9 | 28628 | |
50efceee RD |
28629 | if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail; |
28630 | { | |
28631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28632 | result = (wxStockGDI *)new wxStockGDI(); | |
28633 | wxPyEndAllowThreads(__tstate); | |
28634 | if (PyErr_Occurred()) SWIG_fail; | |
28635 | } | |
28636 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 ); | |
28637 | return resultobj; | |
28638 | fail: | |
28639 | return NULL; | |
554f62e9 RD |
28640 | } |
28641 | ||
28642 | ||
50efceee RD |
28643 | SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28644 | PyObject *resultobj = 0; | |
28645 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
28646 | void *argp1 = 0 ; | |
28647 | int res1 = 0 ; | |
28648 | PyObject *swig_obj[1] ; | |
554f62e9 | 28649 | |
50efceee RD |
28650 | if (!args) SWIG_fail; |
28651 | swig_obj[0] = args; | |
28652 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 ); | |
28653 | if (!SWIG_IsOK(res1)) { | |
28654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
28655 | } | |
28656 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
28657 | { | |
28658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28659 | delete arg1; | |
28660 | ||
28661 | wxPyEndAllowThreads(__tstate); | |
28662 | if (PyErr_Occurred()) SWIG_fail; | |
28663 | } | |
28664 | resultobj = SWIG_Py_Void(); | |
28665 | return resultobj; | |
28666 | fail: | |
28667 | return NULL; | |
554f62e9 RD |
28668 | } |
28669 | ||
28670 | ||
50efceee RD |
28671 | SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28672 | PyObject *resultobj = 0; | |
554f62e9 | 28673 | |
50efceee RD |
28674 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail; |
28675 | { | |
28676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28677 | wxStockGDI::DeleteAll(); | |
28678 | wxPyEndAllowThreads(__tstate); | |
28679 | if (PyErr_Occurred()) SWIG_fail; | |
28680 | } | |
28681 | resultobj = SWIG_Py_Void(); | |
28682 | return resultobj; | |
28683 | fail: | |
28684 | return NULL; | |
554f62e9 RD |
28685 | } |
28686 | ||
28687 | ||
50efceee RD |
28688 | SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28689 | PyObject *resultobj = 0; | |
28690 | wxStockGDI *result = 0 ; | |
554f62e9 | 28691 | |
50efceee RD |
28692 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail; |
28693 | { | |
28694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28695 | { | |
28696 | wxStockGDI &_result_ref = wxStockGDI::instance(); | |
28697 | result = (wxStockGDI *) &_result_ref; | |
28698 | } | |
28699 | wxPyEndAllowThreads(__tstate); | |
28700 | if (PyErr_Occurred()) SWIG_fail; | |
28701 | } | |
28702 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
28703 | return resultobj; | |
28704 | fail: | |
28705 | return NULL; | |
554f62e9 RD |
28706 | } |
28707 | ||
28708 | ||
50efceee RD |
28709 | SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28710 | PyObject *resultobj = 0; | |
28711 | wxStockGDI::Item arg1 ; | |
28712 | wxBrush *result = 0 ; | |
28713 | int val1 ; | |
28714 | int ecode1 = 0 ; | |
28715 | PyObject * obj0 = 0 ; | |
28716 | char * kwnames[] = { | |
28717 | (char *) "item", NULL | |
28718 | }; | |
28719 | ||
28720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail; | |
28721 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
28722 | if (!SWIG_IsOK(ecode1)) { | |
28723 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
28724 | } | |
28725 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
28726 | { | |
28727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28728 | result = (wxBrush *)wxStockGDI::GetBrush(arg1); | |
28729 | wxPyEndAllowThreads(__tstate); | |
28730 | if (PyErr_Occurred()) SWIG_fail; | |
28731 | } | |
28732 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
28733 | return resultobj; | |
28734 | fail: | |
28735 | return NULL; | |
554f62e9 RD |
28736 | } |
28737 | ||
28738 | ||
50efceee RD |
28739 | SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28740 | PyObject *resultobj = 0; | |
28741 | wxStockGDI::Item arg1 ; | |
28742 | wxColour *result = 0 ; | |
28743 | int val1 ; | |
28744 | int ecode1 = 0 ; | |
28745 | PyObject * obj0 = 0 ; | |
28746 | char * kwnames[] = { | |
28747 | (char *) "item", NULL | |
28748 | }; | |
554f62e9 | 28749 | |
50efceee RD |
28750 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail; |
28751 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
28752 | if (!SWIG_IsOK(ecode1)) { | |
28753 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
28754 | } | |
28755 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
28756 | { | |
28757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28758 | result = (wxColour *)wxStockGDI::GetColour(arg1); | |
28759 | wxPyEndAllowThreads(__tstate); | |
28760 | if (PyErr_Occurred()) SWIG_fail; | |
28761 | } | |
28762 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
28763 | return resultobj; | |
28764 | fail: | |
28765 | return NULL; | |
554f62e9 RD |
28766 | } |
28767 | ||
28768 | ||
50efceee RD |
28769 | SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28770 | PyObject *resultobj = 0; | |
28771 | wxStockGDI::Item arg1 ; | |
28772 | wxCursor *result = 0 ; | |
28773 | int val1 ; | |
28774 | int ecode1 = 0 ; | |
28775 | PyObject * obj0 = 0 ; | |
28776 | char * kwnames[] = { | |
28777 | (char *) "item", NULL | |
28778 | }; | |
28779 | ||
28780 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail; | |
28781 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
28782 | if (!SWIG_IsOK(ecode1)) { | |
28783 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
28784 | } | |
28785 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
28786 | { | |
28787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28788 | result = (wxCursor *)wxStockGDI::GetCursor(arg1); | |
28789 | wxPyEndAllowThreads(__tstate); | |
28790 | if (PyErr_Occurred()) SWIG_fail; | |
28791 | } | |
28792 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 ); | |
28793 | return resultobj; | |
28794 | fail: | |
28795 | return NULL; | |
554f62e9 RD |
28796 | } |
28797 | ||
28798 | ||
50efceee RD |
28799 | SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28800 | PyObject *resultobj = 0; | |
28801 | wxStockGDI::Item arg1 ; | |
28802 | wxPen *result = 0 ; | |
28803 | int val1 ; | |
28804 | int ecode1 = 0 ; | |
28805 | PyObject * obj0 = 0 ; | |
28806 | char * kwnames[] = { | |
28807 | (char *) "item", NULL | |
28808 | }; | |
28809 | ||
28810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail; | |
28811 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
28812 | if (!SWIG_IsOK(ecode1)) { | |
28813 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
28814 | } | |
28815 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
28816 | { | |
28817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28818 | result = (wxPen *)wxStockGDI::GetPen(arg1); | |
28819 | wxPyEndAllowThreads(__tstate); | |
28820 | if (PyErr_Occurred()) SWIG_fail; | |
28821 | } | |
28822 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
28823 | return resultobj; | |
28824 | fail: | |
28825 | return NULL; | |
554f62e9 RD |
28826 | } |
28827 | ||
28828 | ||
50efceee RD |
28829 | SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28830 | PyObject *resultobj = 0; | |
28831 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
28832 | wxStockGDI::Item arg2 ; | |
28833 | wxFont *result = 0 ; | |
28834 | void *argp1 = 0 ; | |
28835 | int res1 = 0 ; | |
28836 | int val2 ; | |
28837 | int ecode2 = 0 ; | |
28838 | PyObject * obj0 = 0 ; | |
28839 | PyObject * obj1 = 0 ; | |
28840 | char * kwnames[] = { | |
28841 | (char *) "self",(char *) "item", NULL | |
28842 | }; | |
554f62e9 | 28843 | |
50efceee RD |
28844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; |
28845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
28846 | if (!SWIG_IsOK(res1)) { | |
28847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
28848 | } | |
28849 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
28850 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
28851 | if (!SWIG_IsOK(ecode2)) { | |
28852 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'"); | |
28853 | } | |
28854 | arg2 = static_cast< wxStockGDI::Item >(val2); | |
28855 | { | |
28856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28857 | result = (wxFont *)(arg1)->GetFont(arg2); | |
28858 | wxPyEndAllowThreads(__tstate); | |
28859 | if (PyErr_Occurred()) SWIG_fail; | |
28860 | } | |
28861 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
28862 | return resultobj; | |
28863 | fail: | |
28864 | return NULL; | |
554f62e9 RD |
28865 | } |
28866 | ||
28867 | ||
50efceee RD |
28868 | SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28869 | PyObject *obj; | |
28870 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
28871 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj)); | |
28872 | return SWIG_Py_Void(); | |
554f62e9 RD |
28873 | } |
28874 | ||
50efceee RD |
28875 | SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28876 | return SWIG_Python_InitShadowInstance(args); | |
554f62e9 RD |
28877 | } |
28878 | ||
554f62e9 RD |
28879 | SWIGINTERN int NullBitmap_set(PyObject *) { |
28880 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
28881 | return 1; | |
28882 | } | |
28883 | ||
28884 | ||
28885 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
28886 | PyObject *pyobj = 0; | |
28887 | ||
28888 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
28889 | return pyobj; | |
28890 | } | |
28891 | ||
28892 | ||
28893 | SWIGINTERN int NullIcon_set(PyObject *) { | |
28894 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
28895 | return 1; | |
28896 | } | |
28897 | ||
28898 | ||
28899 | SWIGINTERN PyObject *NullIcon_get(void) { | |
28900 | PyObject *pyobj = 0; | |
28901 | ||
28902 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
28903 | return pyobj; | |
28904 | } | |
28905 | ||
28906 | ||
28907 | SWIGINTERN int NullCursor_set(PyObject *) { | |
28908 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
28909 | return 1; | |
28910 | } | |
28911 | ||
28912 | ||
28913 | SWIGINTERN PyObject *NullCursor_get(void) { | |
28914 | PyObject *pyobj = 0; | |
28915 | ||
28916 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
28917 | return pyobj; | |
28918 | } | |
28919 | ||
28920 | ||
28921 | SWIGINTERN int NullPen_set(PyObject *) { | |
28922 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
28923 | return 1; | |
28924 | } | |
28925 | ||
28926 | ||
28927 | SWIGINTERN PyObject *NullPen_get(void) { | |
28928 | PyObject *pyobj = 0; | |
28929 | ||
28930 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
28931 | return pyobj; | |
28932 | } | |
28933 | ||
28934 | ||
28935 | SWIGINTERN int NullBrush_set(PyObject *) { | |
28936 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
28937 | return 1; | |
28938 | } | |
28939 | ||
28940 | ||
28941 | SWIGINTERN PyObject *NullBrush_get(void) { | |
28942 | PyObject *pyobj = 0; | |
28943 | ||
28944 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
28945 | return pyobj; | |
28946 | } | |
28947 | ||
28948 | ||
28949 | SWIGINTERN int NullPalette_set(PyObject *) { | |
28950 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
28951 | return 1; | |
28952 | } | |
28953 | ||
28954 | ||
28955 | SWIGINTERN PyObject *NullPalette_get(void) { | |
28956 | PyObject *pyobj = 0; | |
28957 | ||
28958 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
28959 | return pyobj; | |
28960 | } | |
28961 | ||
28962 | ||
28963 | SWIGINTERN int NullFont_set(PyObject *) { | |
28964 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
28965 | return 1; | |
28966 | } | |
28967 | ||
28968 | ||
28969 | SWIGINTERN PyObject *NullFont_get(void) { | |
28970 | PyObject *pyobj = 0; | |
28971 | ||
28972 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
28973 | return pyobj; | |
28974 | } | |
28975 | ||
28976 | ||
28977 | SWIGINTERN int NullColour_set(PyObject *) { | |
28978 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
28979 | return 1; | |
28980 | } | |
28981 | ||
28982 | ||
28983 | SWIGINTERN PyObject *NullColour_get(void) { | |
28984 | PyObject *pyobj = 0; | |
28985 | ||
28986 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
28987 | return pyobj; | |
28988 | } | |
28989 | ||
28990 | ||
50efceee | 28991 | SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 28992 | PyObject *resultobj = 0; |
50efceee RD |
28993 | wxGDIObjListBase *result = 0 ; |
28994 | ||
28995 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail; | |
28996 | { | |
28997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28998 | result = (wxGDIObjListBase *)new wxGDIObjListBase(); | |
28999 | wxPyEndAllowThreads(__tstate); | |
29000 | if (PyErr_Occurred()) SWIG_fail; | |
29001 | } | |
29002 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 ); | |
29003 | return resultobj; | |
29004 | fail: | |
29005 | return NULL; | |
29006 | } | |
29007 | ||
29008 | ||
29009 | SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29010 | PyObject *resultobj = 0; | |
29011 | wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ; | |
554f62e9 RD |
29012 | void *argp1 = 0 ; |
29013 | int res1 = 0 ; | |
50efceee | 29014 | PyObject *swig_obj[1] ; |
554f62e9 | 29015 | |
50efceee RD |
29016 | if (!args) SWIG_fail; |
29017 | swig_obj[0] = args; | |
29018 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 ); | |
554f62e9 | 29019 | if (!SWIG_IsOK(res1)) { |
50efceee | 29020 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'"); |
554f62e9 | 29021 | } |
50efceee | 29022 | arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1); |
554f62e9 RD |
29023 | { |
29024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee RD |
29025 | delete arg1; |
29026 | ||
554f62e9 RD |
29027 | wxPyEndAllowThreads(__tstate); |
29028 | if (PyErr_Occurred()) SWIG_fail; | |
29029 | } | |
29030 | resultobj = SWIG_Py_Void(); | |
29031 | return resultobj; | |
29032 | fail: | |
29033 | return NULL; | |
29034 | } | |
29035 | ||
29036 | ||
50efceee RD |
29037 | SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29038 | PyObject *obj; | |
29039 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29040 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj)); | |
29041 | return SWIG_Py_Void(); | |
29042 | } | |
29043 | ||
29044 | SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29045 | return SWIG_Python_InitShadowInstance(args); | |
29046 | } | |
29047 | ||
554f62e9 RD |
29048 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29049 | PyObject *resultobj = 0; | |
29050 | wxPenList *arg1 = (wxPenList *) 0 ; | |
29051 | wxColour *arg2 = 0 ; | |
29052 | int arg3 ; | |
29053 | int arg4 ; | |
29054 | wxPen *result = 0 ; | |
29055 | void *argp1 = 0 ; | |
29056 | int res1 = 0 ; | |
29057 | wxColour temp2 ; | |
29058 | int val3 ; | |
29059 | int ecode3 = 0 ; | |
29060 | int val4 ; | |
29061 | int ecode4 = 0 ; | |
29062 | PyObject * obj0 = 0 ; | |
29063 | PyObject * obj1 = 0 ; | |
29064 | PyObject * obj2 = 0 ; | |
29065 | PyObject * obj3 = 0 ; | |
29066 | char * kwnames[] = { | |
29067 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
29068 | }; | |
29069 | ||
29070 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
29071 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
29072 | if (!SWIG_IsOK(res1)) { | |
29073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
29074 | } | |
29075 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
29076 | { | |
29077 | arg2 = &temp2; | |
29078 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29079 | } | |
29080 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29081 | if (!SWIG_IsOK(ecode3)) { | |
29082 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
29083 | } | |
29084 | arg3 = static_cast< int >(val3); | |
29085 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29086 | if (!SWIG_IsOK(ecode4)) { | |
29087 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
29088 | } | |
29089 | arg4 = static_cast< int >(val4); | |
29090 | { | |
29091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29092 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
29093 | wxPyEndAllowThreads(__tstate); | |
29094 | if (PyErr_Occurred()) SWIG_fail; | |
29095 | } | |
29096 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
29097 | return resultobj; | |
29098 | fail: | |
29099 | return NULL; | |
29100 | } | |
29101 | ||
29102 | ||
50efceee | 29103 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
29104 | PyObject *resultobj = 0; |
29105 | wxPenList *arg1 = (wxPenList *) 0 ; | |
29106 | wxPen *arg2 = (wxPen *) 0 ; | |
29107 | void *argp1 = 0 ; | |
29108 | int res1 = 0 ; | |
29109 | void *argp2 = 0 ; | |
29110 | int res2 = 0 ; | |
29111 | PyObject * obj0 = 0 ; | |
29112 | PyObject * obj1 = 0 ; | |
29113 | char * kwnames[] = { | |
29114 | (char *) "self",(char *) "pen", NULL | |
29115 | }; | |
29116 | ||
50efceee | 29117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; |
554f62e9 RD |
29118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); |
29119 | if (!SWIG_IsOK(res1)) { | |
50efceee | 29120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
554f62e9 RD |
29121 | } |
29122 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
29123 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
29124 | if (!SWIG_IsOK(res2)) { | |
50efceee | 29125 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); |
554f62e9 RD |
29126 | } |
29127 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
29128 | { | |
29129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 29130 | (arg1)->AddPen(arg2); |
554f62e9 RD |
29131 | wxPyEndAllowThreads(__tstate); |
29132 | if (PyErr_Occurred()) SWIG_fail; | |
29133 | } | |
29134 | resultobj = SWIG_Py_Void(); | |
29135 | return resultobj; | |
29136 | fail: | |
29137 | return NULL; | |
29138 | } | |
29139 | ||
29140 | ||
50efceee | 29141 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
29142 | PyObject *resultobj = 0; |
29143 | wxPenList *arg1 = (wxPenList *) 0 ; | |
50efceee | 29144 | wxPen *arg2 = (wxPen *) 0 ; |
554f62e9 RD |
29145 | void *argp1 = 0 ; |
29146 | int res1 = 0 ; | |
50efceee RD |
29147 | void *argp2 = 0 ; |
29148 | int res2 = 0 ; | |
29149 | PyObject * obj0 = 0 ; | |
29150 | PyObject * obj1 = 0 ; | |
29151 | char * kwnames[] = { | |
29152 | (char *) "self",(char *) "pen", NULL | |
29153 | }; | |
554f62e9 | 29154 | |
50efceee RD |
29155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; |
29156 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
554f62e9 | 29157 | if (!SWIG_IsOK(res1)) { |
50efceee | 29158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
554f62e9 RD |
29159 | } |
29160 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
50efceee RD |
29161 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); |
29162 | if (!SWIG_IsOK(res2)) { | |
29163 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
29164 | } | |
29165 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
554f62e9 RD |
29166 | { |
29167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 29168 | (arg1)->RemovePen(arg2); |
554f62e9 RD |
29169 | wxPyEndAllowThreads(__tstate); |
29170 | if (PyErr_Occurred()) SWIG_fail; | |
29171 | } | |
50efceee | 29172 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
29173 | return resultobj; |
29174 | fail: | |
29175 | return NULL; | |
29176 | } | |
29177 | ||
29178 | ||
29179 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29180 | PyObject *obj; | |
29181 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29182 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
29183 | return SWIG_Py_Void(); | |
29184 | } | |
29185 | ||
50efceee RD |
29186 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29187 | PyObject *resultobj = 0; | |
29188 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
29189 | wxColour *arg2 = 0 ; | |
29190 | int arg3 = (int) wxSOLID ; | |
29191 | wxBrush *result = 0 ; | |
29192 | void *argp1 = 0 ; | |
29193 | int res1 = 0 ; | |
29194 | wxColour temp2 ; | |
29195 | int val3 ; | |
29196 | int ecode3 = 0 ; | |
29197 | PyObject * obj0 = 0 ; | |
29198 | PyObject * obj1 = 0 ; | |
29199 | PyObject * obj2 = 0 ; | |
29200 | char * kwnames[] = { | |
29201 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
29202 | }; | |
29203 | ||
29204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29205 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
29206 | if (!SWIG_IsOK(res1)) { | |
29207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
29208 | } | |
29209 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
29210 | { | |
29211 | arg2 = &temp2; | |
29212 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29213 | } | |
29214 | if (obj2) { | |
29215 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29216 | if (!SWIG_IsOK(ecode3)) { | |
29217 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
29218 | } | |
29219 | arg3 = static_cast< int >(val3); | |
29220 | } | |
29221 | { | |
29222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29223 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
29224 | wxPyEndAllowThreads(__tstate); | |
29225 | if (PyErr_Occurred()) SWIG_fail; | |
29226 | } | |
29227 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
29228 | return resultobj; | |
29229 | fail: | |
29230 | return NULL; | |
29231 | } | |
29232 | ||
29233 | ||
554f62e9 RD |
29234 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29235 | PyObject *resultobj = 0; | |
29236 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
29237 | wxBrush *arg2 = (wxBrush *) 0 ; | |
29238 | void *argp1 = 0 ; | |
29239 | int res1 = 0 ; | |
29240 | void *argp2 = 0 ; | |
29241 | int res2 = 0 ; | |
29242 | PyObject * obj0 = 0 ; | |
29243 | PyObject * obj1 = 0 ; | |
29244 | char * kwnames[] = { | |
29245 | (char *) "self",(char *) "brush", NULL | |
29246 | }; | |
29247 | ||
29248 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
29249 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
29250 | if (!SWIG_IsOK(res1)) { | |
29251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
29252 | } | |
29253 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
29254 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
29255 | if (!SWIG_IsOK(res2)) { | |
29256 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
29257 | } | |
29258 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
29259 | { | |
29260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29261 | (arg1)->AddBrush(arg2); | |
29262 | wxPyEndAllowThreads(__tstate); | |
29263 | if (PyErr_Occurred()) SWIG_fail; | |
29264 | } | |
29265 | resultobj = SWIG_Py_Void(); | |
29266 | return resultobj; | |
29267 | fail: | |
29268 | return NULL; | |
29269 | } | |
29270 | ||
29271 | ||
50efceee | 29272 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
29273 | PyObject *resultobj = 0; |
29274 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
50efceee | 29275 | wxBrush *arg2 = (wxBrush *) 0 ; |
554f62e9 RD |
29276 | void *argp1 = 0 ; |
29277 | int res1 = 0 ; | |
50efceee RD |
29278 | void *argp2 = 0 ; |
29279 | int res2 = 0 ; | |
29280 | PyObject * obj0 = 0 ; | |
29281 | PyObject * obj1 = 0 ; | |
29282 | char * kwnames[] = { | |
29283 | (char *) "self",(char *) "brush", NULL | |
29284 | }; | |
29285 | ||
29286 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
29287 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
29288 | if (!SWIG_IsOK(res1)) { | |
29289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
29290 | } | |
29291 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
29292 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
29293 | if (!SWIG_IsOK(res2)) { | |
29294 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
29295 | } | |
29296 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
29297 | { | |
29298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29299 | (arg1)->RemoveBrush(arg2); | |
29300 | wxPyEndAllowThreads(__tstate); | |
29301 | if (PyErr_Occurred()) SWIG_fail; | |
29302 | } | |
29303 | resultobj = SWIG_Py_Void(); | |
29304 | return resultobj; | |
29305 | fail: | |
29306 | return NULL; | |
29307 | } | |
29308 | ||
29309 | ||
29310 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29311 | PyObject *obj; | |
29312 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29313 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
29314 | return SWIG_Py_Void(); | |
29315 | } | |
29316 | ||
29317 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29318 | PyObject *resultobj = 0; | |
29319 | wxFontList *arg1 = (wxFontList *) 0 ; | |
29320 | int arg2 ; | |
29321 | int arg3 ; | |
29322 | int arg4 ; | |
29323 | int arg5 ; | |
29324 | bool arg6 = (bool) false ; | |
29325 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
29326 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29327 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
29328 | wxFont *result = 0 ; | |
29329 | void *argp1 = 0 ; | |
29330 | int res1 = 0 ; | |
29331 | int val2 ; | |
29332 | int ecode2 = 0 ; | |
554f62e9 RD |
29333 | int val3 ; |
29334 | int ecode3 = 0 ; | |
50efceee RD |
29335 | int val4 ; |
29336 | int ecode4 = 0 ; | |
29337 | int val5 ; | |
29338 | int ecode5 = 0 ; | |
29339 | bool val6 ; | |
29340 | int ecode6 = 0 ; | |
29341 | bool temp7 = false ; | |
29342 | int val8 ; | |
29343 | int ecode8 = 0 ; | |
554f62e9 RD |
29344 | PyObject * obj0 = 0 ; |
29345 | PyObject * obj1 = 0 ; | |
29346 | PyObject * obj2 = 0 ; | |
50efceee RD |
29347 | PyObject * obj3 = 0 ; |
29348 | PyObject * obj4 = 0 ; | |
29349 | PyObject * obj5 = 0 ; | |
29350 | PyObject * obj6 = 0 ; | |
29351 | PyObject * obj7 = 0 ; | |
554f62e9 | 29352 | char * kwnames[] = { |
50efceee | 29353 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL |
554f62e9 RD |
29354 | }; |
29355 | ||
50efceee RD |
29356 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
29357 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 29358 | if (!SWIG_IsOK(res1)) { |
50efceee | 29359 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 29360 | } |
50efceee RD |
29361 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
29362 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29363 | if (!SWIG_IsOK(ecode2)) { | |
29364 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
29365 | } | |
29366 | arg2 = static_cast< int >(val2); | |
29367 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29368 | if (!SWIG_IsOK(ecode3)) { | |
29369 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
29370 | } | |
29371 | arg3 = static_cast< int >(val3); | |
29372 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29373 | if (!SWIG_IsOK(ecode4)) { | |
29374 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
29375 | } | |
29376 | arg4 = static_cast< int >(val4); | |
29377 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
29378 | if (!SWIG_IsOK(ecode5)) { | |
29379 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
29380 | } | |
29381 | arg5 = static_cast< int >(val5); | |
29382 | if (obj5) { | |
29383 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
29384 | if (!SWIG_IsOK(ecode6)) { | |
29385 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
29386 | } | |
29387 | arg6 = static_cast< bool >(val6); | |
554f62e9 | 29388 | } |
50efceee RD |
29389 | if (obj6) { |
29390 | { | |
29391 | arg7 = wxString_in_helper(obj6); | |
29392 | if (arg7 == NULL) SWIG_fail; | |
29393 | temp7 = true; | |
29394 | } | |
29395 | } | |
29396 | if (obj7) { | |
29397 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
29398 | if (!SWIG_IsOK(ecode8)) { | |
29399 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
554f62e9 | 29400 | } |
50efceee | 29401 | arg8 = static_cast< wxFontEncoding >(val8); |
554f62e9 RD |
29402 | } |
29403 | { | |
29404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 29405 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
554f62e9 RD |
29406 | wxPyEndAllowThreads(__tstate); |
29407 | if (PyErr_Occurred()) SWIG_fail; | |
29408 | } | |
50efceee RD |
29409 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); |
29410 | { | |
29411 | if (temp7) | |
29412 | delete arg7; | |
29413 | } | |
554f62e9 RD |
29414 | return resultobj; |
29415 | fail: | |
50efceee RD |
29416 | { |
29417 | if (temp7) | |
29418 | delete arg7; | |
29419 | } | |
554f62e9 RD |
29420 | return NULL; |
29421 | } | |
29422 | ||
29423 | ||
50efceee | 29424 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 29425 | PyObject *resultobj = 0; |
50efceee RD |
29426 | wxFontList *arg1 = (wxFontList *) 0 ; |
29427 | wxFont *arg2 = (wxFont *) 0 ; | |
554f62e9 RD |
29428 | void *argp1 = 0 ; |
29429 | int res1 = 0 ; | |
29430 | void *argp2 = 0 ; | |
29431 | int res2 = 0 ; | |
29432 | PyObject * obj0 = 0 ; | |
29433 | PyObject * obj1 = 0 ; | |
29434 | char * kwnames[] = { | |
50efceee | 29435 | (char *) "self",(char *) "font", NULL |
554f62e9 RD |
29436 | }; |
29437 | ||
50efceee RD |
29438 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; |
29439 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 29440 | if (!SWIG_IsOK(res1)) { |
50efceee | 29441 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 29442 | } |
50efceee RD |
29443 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
29444 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
554f62e9 | 29445 | if (!SWIG_IsOK(res2)) { |
50efceee | 29446 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); |
554f62e9 | 29447 | } |
50efceee | 29448 | arg2 = reinterpret_cast< wxFont * >(argp2); |
554f62e9 RD |
29449 | { |
29450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 29451 | (arg1)->AddFont(arg2); |
554f62e9 RD |
29452 | wxPyEndAllowThreads(__tstate); |
29453 | if (PyErr_Occurred()) SWIG_fail; | |
29454 | } | |
29455 | resultobj = SWIG_Py_Void(); | |
29456 | return resultobj; | |
29457 | fail: | |
29458 | return NULL; | |
29459 | } | |
29460 | ||
29461 | ||
50efceee | 29462 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 29463 | PyObject *resultobj = 0; |
50efceee RD |
29464 | wxFontList *arg1 = (wxFontList *) 0 ; |
29465 | wxFont *arg2 = (wxFont *) 0 ; | |
554f62e9 RD |
29466 | void *argp1 = 0 ; |
29467 | int res1 = 0 ; | |
50efceee RD |
29468 | void *argp2 = 0 ; |
29469 | int res2 = 0 ; | |
29470 | PyObject * obj0 = 0 ; | |
29471 | PyObject * obj1 = 0 ; | |
29472 | char * kwnames[] = { | |
29473 | (char *) "self",(char *) "font", NULL | |
29474 | }; | |
554f62e9 | 29475 | |
50efceee RD |
29476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; |
29477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 29478 | if (!SWIG_IsOK(res1)) { |
50efceee | 29479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 29480 | } |
50efceee RD |
29481 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
29482 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
29483 | if (!SWIG_IsOK(res2)) { | |
29484 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
29485 | } | |
29486 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
554f62e9 RD |
29487 | { |
29488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 29489 | (arg1)->RemoveFont(arg2); |
554f62e9 RD |
29490 | wxPyEndAllowThreads(__tstate); |
29491 | if (PyErr_Occurred()) SWIG_fail; | |
29492 | } | |
50efceee | 29493 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
29494 | return resultobj; |
29495 | fail: | |
29496 | return NULL; | |
29497 | } | |
29498 | ||
29499 | ||
50efceee | 29500 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
29501 | PyObject *obj; |
29502 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
50efceee | 29503 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); |
554f62e9 RD |
29504 | return SWIG_Py_Void(); |
29505 | } | |
29506 | ||
29507 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29508 | PyObject *resultobj = 0; | |
29509 | wxColourDatabase *result = 0 ; | |
29510 | ||
29511 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
29512 | { | |
29513 | if (!wxPyCheckForApp()) SWIG_fail; | |
29514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29515 | result = (wxColourDatabase *)new wxColourDatabase(); | |
29516 | wxPyEndAllowThreads(__tstate); | |
29517 | if (PyErr_Occurred()) SWIG_fail; | |
29518 | } | |
29519 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
29520 | return resultobj; | |
29521 | fail: | |
29522 | return NULL; | |
29523 | } | |
29524 | ||
29525 | ||
29526 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29527 | PyObject *resultobj = 0; | |
29528 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
29529 | void *argp1 = 0 ; | |
29530 | int res1 = 0 ; | |
29531 | PyObject *swig_obj[1] ; | |
29532 | ||
29533 | if (!args) SWIG_fail; | |
29534 | swig_obj[0] = args; | |
29535 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
29536 | if (!SWIG_IsOK(res1)) { | |
29537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
29538 | } | |
29539 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
29540 | { | |
29541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29542 | delete arg1; | |
29543 | ||
29544 | wxPyEndAllowThreads(__tstate); | |
29545 | if (PyErr_Occurred()) SWIG_fail; | |
29546 | } | |
29547 | resultobj = SWIG_Py_Void(); | |
29548 | return resultobj; | |
29549 | fail: | |
29550 | return NULL; | |
29551 | } | |
29552 | ||
29553 | ||
29554 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29555 | PyObject *resultobj = 0; | |
29556 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
29557 | wxString *arg2 = 0 ; | |
29558 | wxColour result; | |
29559 | void *argp1 = 0 ; | |
29560 | int res1 = 0 ; | |
29561 | bool temp2 = false ; | |
29562 | PyObject * obj0 = 0 ; | |
29563 | PyObject * obj1 = 0 ; | |
29564 | char * kwnames[] = { | |
29565 | (char *) "self",(char *) "name", NULL | |
29566 | }; | |
29567 | ||
29568 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
29569 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
29570 | if (!SWIG_IsOK(res1)) { | |
29571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
29572 | } | |
29573 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
29574 | { | |
29575 | arg2 = wxString_in_helper(obj1); | |
29576 | if (arg2 == NULL) SWIG_fail; | |
29577 | temp2 = true; | |
29578 | } | |
29579 | { | |
29580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29581 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
29582 | wxPyEndAllowThreads(__tstate); | |
29583 | if (PyErr_Occurred()) SWIG_fail; | |
29584 | } | |
29585 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
29586 | { | |
29587 | if (temp2) | |
29588 | delete arg2; | |
29589 | } | |
29590 | return resultobj; | |
29591 | fail: | |
29592 | { | |
29593 | if (temp2) | |
29594 | delete arg2; | |
29595 | } | |
29596 | return NULL; | |
29597 | } | |
29598 | ||
29599 | ||
29600 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29601 | PyObject *resultobj = 0; | |
29602 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
29603 | wxColour *arg2 = 0 ; | |
29604 | wxString result; | |
29605 | void *argp1 = 0 ; | |
29606 | int res1 = 0 ; | |
29607 | wxColour temp2 ; | |
29608 | PyObject * obj0 = 0 ; | |
29609 | PyObject * obj1 = 0 ; | |
29610 | char * kwnames[] = { | |
29611 | (char *) "self",(char *) "colour", NULL | |
29612 | }; | |
29613 | ||
29614 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
29615 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
29616 | if (!SWIG_IsOK(res1)) { | |
29617 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
29618 | } | |
29619 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
29620 | { | |
29621 | arg2 = &temp2; | |
29622 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29623 | } | |
29624 | { | |
29625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29626 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
29627 | wxPyEndAllowThreads(__tstate); | |
29628 | if (PyErr_Occurred()) SWIG_fail; | |
29629 | } | |
29630 | { | |
29631 | #if wxUSE_UNICODE | |
29632 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29633 | #else | |
29634 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29635 | #endif | |
29636 | } | |
29637 | return resultobj; | |
29638 | fail: | |
29639 | return NULL; | |
29640 | } | |
29641 | ||
29642 | ||
29643 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29644 | PyObject *resultobj = 0; | |
29645 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
29646 | wxString *arg2 = 0 ; | |
29647 | wxColour *arg3 = 0 ; | |
29648 | void *argp1 = 0 ; | |
29649 | int res1 = 0 ; | |
29650 | bool temp2 = false ; | |
29651 | wxColour temp3 ; | |
29652 | PyObject * obj0 = 0 ; | |
29653 | PyObject * obj1 = 0 ; | |
29654 | PyObject * obj2 = 0 ; | |
29655 | char * kwnames[] = { | |
29656 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
29657 | }; | |
29658 | ||
29659 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29660 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
29661 | if (!SWIG_IsOK(res1)) { | |
29662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
29663 | } | |
29664 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
29665 | { | |
29666 | arg2 = wxString_in_helper(obj1); | |
29667 | if (arg2 == NULL) SWIG_fail; | |
29668 | temp2 = true; | |
29669 | } | |
29670 | { | |
29671 | arg3 = &temp3; | |
29672 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
29673 | } | |
29674 | { | |
29675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29676 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
29677 | wxPyEndAllowThreads(__tstate); | |
29678 | if (PyErr_Occurred()) SWIG_fail; | |
29679 | } | |
29680 | resultobj = SWIG_Py_Void(); | |
29681 | { | |
29682 | if (temp2) | |
29683 | delete arg2; | |
29684 | } | |
29685 | return resultobj; | |
29686 | fail: | |
29687 | { | |
29688 | if (temp2) | |
29689 | delete arg2; | |
29690 | } | |
29691 | return NULL; | |
29692 | } | |
29693 | ||
29694 | ||
29695 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29696 | PyObject *resultobj = 0; | |
29697 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
29698 | wxString *arg2 = 0 ; | |
29699 | int arg3 ; | |
29700 | int arg4 ; | |
29701 | int arg5 ; | |
29702 | void *argp1 = 0 ; | |
29703 | int res1 = 0 ; | |
29704 | bool temp2 = false ; | |
29705 | int val3 ; | |
29706 | int ecode3 = 0 ; | |
29707 | int val4 ; | |
29708 | int ecode4 = 0 ; | |
50efceee RD |
29709 | int val5 ; |
29710 | int ecode5 = 0 ; | |
554f62e9 RD |
29711 | PyObject * obj0 = 0 ; |
29712 | PyObject * obj1 = 0 ; | |
29713 | PyObject * obj2 = 0 ; | |
29714 | PyObject * obj3 = 0 ; | |
29715 | PyObject * obj4 = 0 ; | |
554f62e9 | 29716 | char * kwnames[] = { |
50efceee | 29717 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL |
554f62e9 RD |
29718 | }; |
29719 | ||
50efceee RD |
29720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
29721 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
554f62e9 | 29722 | if (!SWIG_IsOK(res1)) { |
50efceee RD |
29723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); |
29724 | } | |
29725 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
29726 | { | |
29727 | arg2 = wxString_in_helper(obj1); | |
29728 | if (arg2 == NULL) SWIG_fail; | |
29729 | temp2 = true; | |
554f62e9 | 29730 | } |
554f62e9 RD |
29731 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
29732 | if (!SWIG_IsOK(ecode3)) { | |
50efceee | 29733 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); |
554f62e9 RD |
29734 | } |
29735 | arg3 = static_cast< int >(val3); | |
29736 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
29737 | if (!SWIG_IsOK(ecode4)) { | |
50efceee | 29738 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); |
554f62e9 RD |
29739 | } |
29740 | arg4 = static_cast< int >(val4); | |
29741 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
29742 | if (!SWIG_IsOK(ecode5)) { | |
50efceee | 29743 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); |
554f62e9 RD |
29744 | } |
29745 | arg5 = static_cast< int >(val5); | |
554f62e9 RD |
29746 | { |
29747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 29748 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); |
554f62e9 RD |
29749 | wxPyEndAllowThreads(__tstate); |
29750 | if (PyErr_Occurred()) SWIG_fail; | |
29751 | } | |
50efceee | 29752 | resultobj = SWIG_Py_Void(); |
554f62e9 | 29753 | { |
50efceee RD |
29754 | if (temp2) |
29755 | delete arg2; | |
554f62e9 RD |
29756 | } |
29757 | return resultobj; | |
29758 | fail: | |
29759 | { | |
50efceee RD |
29760 | if (temp2) |
29761 | delete arg2; | |
554f62e9 RD |
29762 | } |
29763 | return NULL; | |
29764 | } | |
29765 | ||
29766 | ||
50efceee RD |
29767 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29768 | PyObject *obj; | |
29769 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
29770 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
29771 | return SWIG_Py_Void(); | |
29772 | } | |
29773 | ||
29774 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29775 | return SWIG_Python_InitShadowInstance(args); | |
29776 | } | |
29777 | ||
29778 | SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
554f62e9 | 29779 | PyObject *resultobj = 0; |
50efceee | 29780 | wxFontList *result = 0 ; |
554f62e9 | 29781 | |
50efceee | 29782 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail; |
554f62e9 RD |
29783 | { |
29784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 29785 | result = (wxFontList *)_wxPyInitTheFontList(); |
554f62e9 RD |
29786 | wxPyEndAllowThreads(__tstate); |
29787 | if (PyErr_Occurred()) SWIG_fail; | |
29788 | } | |
50efceee | 29789 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 ); |
554f62e9 RD |
29790 | return resultobj; |
29791 | fail: | |
29792 | return NULL; | |
29793 | } | |
29794 | ||
29795 | ||
50efceee | 29796 | SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 29797 | PyObject *resultobj = 0; |
50efceee | 29798 | wxPenList *result = 0 ; |
554f62e9 | 29799 | |
50efceee | 29800 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail; |
554f62e9 RD |
29801 | { |
29802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 29803 | result = (wxPenList *)_wxPyInitThePenList(); |
554f62e9 RD |
29804 | wxPyEndAllowThreads(__tstate); |
29805 | if (PyErr_Occurred()) SWIG_fail; | |
29806 | } | |
50efceee | 29807 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 ); |
554f62e9 RD |
29808 | return resultobj; |
29809 | fail: | |
29810 | return NULL; | |
29811 | } | |
29812 | ||
29813 | ||
50efceee RD |
29814 | SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29815 | PyObject *resultobj = 0; | |
29816 | wxBrushList *result = 0 ; | |
554f62e9 | 29817 | |
50efceee RD |
29818 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail; |
29819 | { | |
29820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29821 | result = (wxBrushList *)_wxPyInitTheBrushList(); | |
29822 | wxPyEndAllowThreads(__tstate); | |
29823 | if (PyErr_Occurred()) SWIG_fail; | |
29824 | } | |
29825 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
29826 | return resultobj; | |
29827 | fail: | |
29828 | return NULL; | |
554f62e9 RD |
29829 | } |
29830 | ||
29831 | ||
50efceee RD |
29832 | SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29833 | PyObject *resultobj = 0; | |
29834 | wxColourDatabase *result = 0 ; | |
554f62e9 | 29835 | |
50efceee RD |
29836 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail; |
29837 | { | |
29838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29839 | result = (wxColourDatabase *)_wxPyInitTheColourDatabase(); | |
29840 | wxPyEndAllowThreads(__tstate); | |
29841 | if (PyErr_Occurred()) SWIG_fail; | |
29842 | } | |
29843 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
29844 | return resultobj; | |
29845 | fail: | |
29846 | return NULL; | |
554f62e9 RD |
29847 | } |
29848 | ||
29849 | ||
29850 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29851 | PyObject *resultobj = 0; | |
29852 | wxEffects *result = 0 ; | |
29853 | ||
29854 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
29855 | { | |
29856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29857 | result = (wxEffects *)new wxEffects(); | |
29858 | wxPyEndAllowThreads(__tstate); | |
29859 | if (PyErr_Occurred()) SWIG_fail; | |
29860 | } | |
29861 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
29862 | return resultobj; | |
29863 | fail: | |
29864 | return NULL; | |
29865 | } | |
29866 | ||
29867 | ||
29868 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29869 | PyObject *resultobj = 0; | |
29870 | wxEffects *arg1 = (wxEffects *) 0 ; | |
29871 | wxColour result; | |
29872 | void *argp1 = 0 ; | |
29873 | int res1 = 0 ; | |
29874 | PyObject *swig_obj[1] ; | |
29875 | ||
29876 | if (!args) SWIG_fail; | |
29877 | swig_obj[0] = args; | |
29878 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
29879 | if (!SWIG_IsOK(res1)) { | |
29880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
29881 | } | |
29882 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
29883 | { | |
29884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29885 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
29886 | wxPyEndAllowThreads(__tstate); | |
29887 | if (PyErr_Occurred()) SWIG_fail; | |
29888 | } | |
29889 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
29890 | return resultobj; | |
29891 | fail: | |
29892 | return NULL; | |
29893 | } | |
29894 | ||
29895 | ||
29896 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29897 | PyObject *resultobj = 0; | |
29898 | wxEffects *arg1 = (wxEffects *) 0 ; | |
29899 | wxColour result; | |
29900 | void *argp1 = 0 ; | |
29901 | int res1 = 0 ; | |
29902 | PyObject *swig_obj[1] ; | |
29903 | ||
29904 | if (!args) SWIG_fail; | |
29905 | swig_obj[0] = args; | |
29906 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
29907 | if (!SWIG_IsOK(res1)) { | |
29908 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
29909 | } | |
29910 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
29911 | { | |
29912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29913 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
29914 | wxPyEndAllowThreads(__tstate); | |
29915 | if (PyErr_Occurred()) SWIG_fail; | |
29916 | } | |
29917 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
29918 | return resultobj; | |
29919 | fail: | |
29920 | return NULL; | |
29921 | } | |
29922 | ||
29923 | ||
29924 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29925 | PyObject *resultobj = 0; | |
29926 | wxEffects *arg1 = (wxEffects *) 0 ; | |
29927 | wxColour result; | |
29928 | void *argp1 = 0 ; | |
29929 | int res1 = 0 ; | |
29930 | PyObject *swig_obj[1] ; | |
29931 | ||
29932 | if (!args) SWIG_fail; | |
29933 | swig_obj[0] = args; | |
29934 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
29935 | if (!SWIG_IsOK(res1)) { | |
29936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
29937 | } | |
29938 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
29939 | { | |
29940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29941 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
29942 | wxPyEndAllowThreads(__tstate); | |
29943 | if (PyErr_Occurred()) SWIG_fail; | |
29944 | } | |
29945 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
29946 | return resultobj; | |
29947 | fail: | |
29948 | return NULL; | |
29949 | } | |
29950 | ||
29951 | ||
29952 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29953 | PyObject *resultobj = 0; | |
29954 | wxEffects *arg1 = (wxEffects *) 0 ; | |
29955 | wxColour result; | |
29956 | void *argp1 = 0 ; | |
29957 | int res1 = 0 ; | |
29958 | PyObject *swig_obj[1] ; | |
29959 | ||
29960 | if (!args) SWIG_fail; | |
29961 | swig_obj[0] = args; | |
29962 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
29963 | if (!SWIG_IsOK(res1)) { | |
29964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
29965 | } | |
29966 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
29967 | { | |
29968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29969 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
29970 | wxPyEndAllowThreads(__tstate); | |
29971 | if (PyErr_Occurred()) SWIG_fail; | |
29972 | } | |
29973 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
29974 | return resultobj; | |
29975 | fail: | |
29976 | return NULL; | |
29977 | } | |
29978 | ||
29979 | ||
29980 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29981 | PyObject *resultobj = 0; | |
29982 | wxEffects *arg1 = (wxEffects *) 0 ; | |
29983 | wxColour result; | |
29984 | void *argp1 = 0 ; | |
29985 | int res1 = 0 ; | |
29986 | PyObject *swig_obj[1] ; | |
29987 | ||
29988 | if (!args) SWIG_fail; | |
29989 | swig_obj[0] = args; | |
29990 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
29991 | if (!SWIG_IsOK(res1)) { | |
29992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
29993 | } | |
29994 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
29995 | { | |
29996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29997 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
29998 | wxPyEndAllowThreads(__tstate); | |
29999 | if (PyErr_Occurred()) SWIG_fail; | |
30000 | } | |
30001 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
30002 | return resultobj; | |
30003 | fail: | |
30004 | return NULL; | |
30005 | } | |
30006 | ||
30007 | ||
30008 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30009 | PyObject *resultobj = 0; | |
30010 | wxEffects *arg1 = (wxEffects *) 0 ; | |
30011 | wxColour *arg2 = 0 ; | |
30012 | void *argp1 = 0 ; | |
30013 | int res1 = 0 ; | |
30014 | wxColour temp2 ; | |
30015 | PyObject * obj0 = 0 ; | |
30016 | PyObject * obj1 = 0 ; | |
30017 | char * kwnames[] = { | |
30018 | (char *) "self",(char *) "c", NULL | |
30019 | }; | |
30020 | ||
30021 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
30022 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
30023 | if (!SWIG_IsOK(res1)) { | |
30024 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
30025 | } | |
30026 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
30027 | { | |
30028 | arg2 = &temp2; | |
30029 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30030 | } | |
30031 | { | |
30032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30033 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
30034 | wxPyEndAllowThreads(__tstate); | |
30035 | if (PyErr_Occurred()) SWIG_fail; | |
30036 | } | |
30037 | resultobj = SWIG_Py_Void(); | |
30038 | return resultobj; | |
30039 | fail: | |
30040 | return NULL; | |
30041 | } | |
30042 | ||
30043 | ||
30044 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30045 | PyObject *resultobj = 0; | |
30046 | wxEffects *arg1 = (wxEffects *) 0 ; | |
30047 | wxColour *arg2 = 0 ; | |
30048 | void *argp1 = 0 ; | |
30049 | int res1 = 0 ; | |
30050 | wxColour temp2 ; | |
30051 | PyObject * obj0 = 0 ; | |
30052 | PyObject * obj1 = 0 ; | |
30053 | char * kwnames[] = { | |
30054 | (char *) "self",(char *) "c", NULL | |
30055 | }; | |
30056 | ||
30057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
30058 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
30059 | if (!SWIG_IsOK(res1)) { | |
30060 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
30061 | } | |
30062 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
30063 | { | |
30064 | arg2 = &temp2; | |
30065 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30066 | } | |
30067 | { | |
30068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30069 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
30070 | wxPyEndAllowThreads(__tstate); | |
30071 | if (PyErr_Occurred()) SWIG_fail; | |
30072 | } | |
30073 | resultobj = SWIG_Py_Void(); | |
30074 | return resultobj; | |
30075 | fail: | |
30076 | return NULL; | |
30077 | } | |
30078 | ||
30079 | ||
30080 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30081 | PyObject *resultobj = 0; | |
30082 | wxEffects *arg1 = (wxEffects *) 0 ; | |
30083 | wxColour *arg2 = 0 ; | |
30084 | void *argp1 = 0 ; | |
30085 | int res1 = 0 ; | |
30086 | wxColour temp2 ; | |
30087 | PyObject * obj0 = 0 ; | |
30088 | PyObject * obj1 = 0 ; | |
30089 | char * kwnames[] = { | |
30090 | (char *) "self",(char *) "c", NULL | |
30091 | }; | |
30092 | ||
30093 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
30094 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
30095 | if (!SWIG_IsOK(res1)) { | |
30096 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
30097 | } | |
30098 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
30099 | { | |
30100 | arg2 = &temp2; | |
30101 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30102 | } | |
30103 | { | |
30104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30105 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
30106 | wxPyEndAllowThreads(__tstate); | |
30107 | if (PyErr_Occurred()) SWIG_fail; | |
30108 | } | |
30109 | resultobj = SWIG_Py_Void(); | |
30110 | return resultobj; | |
30111 | fail: | |
30112 | return NULL; | |
30113 | } | |
30114 | ||
30115 | ||
30116 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30117 | PyObject *resultobj = 0; | |
30118 | wxEffects *arg1 = (wxEffects *) 0 ; | |
30119 | wxColour *arg2 = 0 ; | |
30120 | void *argp1 = 0 ; | |
30121 | int res1 = 0 ; | |
30122 | wxColour temp2 ; | |
30123 | PyObject * obj0 = 0 ; | |
30124 | PyObject * obj1 = 0 ; | |
30125 | char * kwnames[] = { | |
30126 | (char *) "self",(char *) "c", NULL | |
30127 | }; | |
30128 | ||
30129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
30130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
30131 | if (!SWIG_IsOK(res1)) { | |
30132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
30133 | } | |
30134 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
30135 | { | |
30136 | arg2 = &temp2; | |
30137 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30138 | } | |
30139 | { | |
30140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30141 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
30142 | wxPyEndAllowThreads(__tstate); | |
30143 | if (PyErr_Occurred()) SWIG_fail; | |
30144 | } | |
30145 | resultobj = SWIG_Py_Void(); | |
30146 | return resultobj; | |
30147 | fail: | |
30148 | return NULL; | |
30149 | } | |
30150 | ||
30151 | ||
30152 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30153 | PyObject *resultobj = 0; | |
30154 | wxEffects *arg1 = (wxEffects *) 0 ; | |
30155 | wxColour *arg2 = 0 ; | |
30156 | void *argp1 = 0 ; | |
30157 | int res1 = 0 ; | |
30158 | wxColour temp2 ; | |
30159 | PyObject * obj0 = 0 ; | |
30160 | PyObject * obj1 = 0 ; | |
30161 | char * kwnames[] = { | |
30162 | (char *) "self",(char *) "c", NULL | |
30163 | }; | |
30164 | ||
30165 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
30166 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
30167 | if (!SWIG_IsOK(res1)) { | |
30168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
30169 | } | |
30170 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
30171 | { | |
30172 | arg2 = &temp2; | |
30173 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30174 | } | |
30175 | { | |
30176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30177 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
30178 | wxPyEndAllowThreads(__tstate); | |
30179 | if (PyErr_Occurred()) SWIG_fail; | |
30180 | } | |
30181 | resultobj = SWIG_Py_Void(); | |
30182 | return resultobj; | |
30183 | fail: | |
30184 | return NULL; | |
30185 | } | |
30186 | ||
30187 | ||
30188 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30189 | PyObject *resultobj = 0; | |
30190 | wxEffects *arg1 = (wxEffects *) 0 ; | |
30191 | wxColour *arg2 = 0 ; | |
30192 | wxColour *arg3 = 0 ; | |
30193 | wxColour *arg4 = 0 ; | |
30194 | wxColour *arg5 = 0 ; | |
30195 | wxColour *arg6 = 0 ; | |
30196 | void *argp1 = 0 ; | |
30197 | int res1 = 0 ; | |
30198 | wxColour temp2 ; | |
30199 | wxColour temp3 ; | |
30200 | wxColour temp4 ; | |
30201 | wxColour temp5 ; | |
30202 | wxColour temp6 ; | |
30203 | PyObject * obj0 = 0 ; | |
30204 | PyObject * obj1 = 0 ; | |
30205 | PyObject * obj2 = 0 ; | |
30206 | PyObject * obj3 = 0 ; | |
30207 | PyObject * obj4 = 0 ; | |
30208 | PyObject * obj5 = 0 ; | |
30209 | char * kwnames[] = { | |
30210 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
30211 | }; | |
30212 | ||
30213 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
30214 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
30215 | if (!SWIG_IsOK(res1)) { | |
30216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
30217 | } | |
30218 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
30219 | { | |
30220 | arg2 = &temp2; | |
30221 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
30222 | } | |
30223 | { | |
30224 | arg3 = &temp3; | |
30225 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
30226 | } | |
30227 | { | |
30228 | arg4 = &temp4; | |
30229 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
30230 | } | |
30231 | { | |
30232 | arg5 = &temp5; | |
30233 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
30234 | } | |
30235 | { | |
30236 | arg6 = &temp6; | |
30237 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
30238 | } | |
30239 | { | |
30240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30241 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
30242 | wxPyEndAllowThreads(__tstate); | |
30243 | if (PyErr_Occurred()) SWIG_fail; | |
30244 | } | |
30245 | resultobj = SWIG_Py_Void(); | |
30246 | return resultobj; | |
30247 | fail: | |
30248 | return NULL; | |
30249 | } | |
30250 | ||
30251 | ||
30252 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30253 | PyObject *resultobj = 0; | |
30254 | wxEffects *arg1 = (wxEffects *) 0 ; | |
30255 | wxDC *arg2 = 0 ; | |
30256 | wxRect *arg3 = 0 ; | |
30257 | int arg4 = (int) 1 ; | |
30258 | void *argp1 = 0 ; | |
30259 | int res1 = 0 ; | |
30260 | void *argp2 = 0 ; | |
30261 | int res2 = 0 ; | |
30262 | wxRect temp3 ; | |
30263 | int val4 ; | |
30264 | int ecode4 = 0 ; | |
30265 | PyObject * obj0 = 0 ; | |
30266 | PyObject * obj1 = 0 ; | |
30267 | PyObject * obj2 = 0 ; | |
30268 | PyObject * obj3 = 0 ; | |
30269 | char * kwnames[] = { | |
30270 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
30271 | }; | |
30272 | ||
30273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30274 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
30275 | if (!SWIG_IsOK(res1)) { | |
30276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
30277 | } | |
30278 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
30279 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
30280 | if (!SWIG_IsOK(res2)) { | |
30281 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
30282 | } | |
30283 | if (!argp2) { | |
30284 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
30285 | } | |
30286 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
30287 | { | |
30288 | arg3 = &temp3; | |
30289 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
30290 | } | |
30291 | if (obj3) { | |
30292 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
30293 | if (!SWIG_IsOK(ecode4)) { | |
30294 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
30295 | } | |
30296 | arg4 = static_cast< int >(val4); | |
30297 | } | |
30298 | { | |
30299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30300 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
30301 | wxPyEndAllowThreads(__tstate); | |
30302 | if (PyErr_Occurred()) SWIG_fail; | |
30303 | } | |
30304 | resultobj = SWIG_Py_Void(); | |
30305 | return resultobj; | |
30306 | fail: | |
30307 | return NULL; | |
30308 | } | |
30309 | ||
30310 | ||
30311 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30312 | PyObject *resultobj = 0; | |
30313 | wxEffects *arg1 = (wxEffects *) 0 ; | |
30314 | wxRect *arg2 = 0 ; | |
30315 | wxDC *arg3 = 0 ; | |
30316 | wxBitmap *arg4 = 0 ; | |
30317 | bool result; | |
30318 | void *argp1 = 0 ; | |
30319 | int res1 = 0 ; | |
30320 | wxRect temp2 ; | |
30321 | void *argp3 = 0 ; | |
30322 | int res3 = 0 ; | |
30323 | void *argp4 = 0 ; | |
30324 | int res4 = 0 ; | |
30325 | PyObject * obj0 = 0 ; | |
30326 | PyObject * obj1 = 0 ; | |
30327 | PyObject * obj2 = 0 ; | |
30328 | PyObject * obj3 = 0 ; | |
30329 | char * kwnames[] = { | |
30330 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
30331 | }; | |
30332 | ||
30333 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
30334 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
30335 | if (!SWIG_IsOK(res1)) { | |
30336 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
30337 | } | |
30338 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
30339 | { | |
30340 | arg2 = &temp2; | |
30341 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
30342 | } | |
30343 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
30344 | if (!SWIG_IsOK(res3)) { | |
30345 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
30346 | } | |
30347 | if (!argp3) { | |
30348 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
30349 | } | |
30350 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
30351 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
30352 | if (!SWIG_IsOK(res4)) { | |
30353 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
30354 | } | |
30355 | if (!argp4) { | |
30356 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
30357 | } | |
30358 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
30359 | { | |
30360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30361 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
30362 | wxPyEndAllowThreads(__tstate); | |
30363 | if (PyErr_Occurred()) SWIG_fail; | |
30364 | } | |
30365 | { | |
30366 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30367 | } | |
30368 | return resultobj; | |
30369 | fail: | |
30370 | return NULL; | |
30371 | } | |
30372 | ||
30373 | ||
30374 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30375 | PyObject *obj; | |
30376 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30377 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
30378 | return SWIG_Py_Void(); | |
30379 | } | |
30380 | ||
30381 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30382 | return SWIG_Python_InitShadowInstance(args); | |
30383 | } | |
30384 | ||
30385 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30386 | PyObject *resultobj = 0; | |
30387 | int arg1 ; | |
30388 | int arg2 ; | |
30389 | bool arg3 ; | |
30390 | wxSplitterRenderParams *result = 0 ; | |
30391 | int val1 ; | |
30392 | int ecode1 = 0 ; | |
30393 | int val2 ; | |
30394 | int ecode2 = 0 ; | |
30395 | bool val3 ; | |
30396 | int ecode3 = 0 ; | |
30397 | PyObject * obj0 = 0 ; | |
30398 | PyObject * obj1 = 0 ; | |
30399 | PyObject * obj2 = 0 ; | |
30400 | char * kwnames[] = { | |
30401 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
30402 | }; | |
30403 | ||
30404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30405 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
30406 | if (!SWIG_IsOK(ecode1)) { | |
30407 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
30408 | } | |
30409 | arg1 = static_cast< int >(val1); | |
30410 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30411 | if (!SWIG_IsOK(ecode2)) { | |
30412 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
30413 | } | |
30414 | arg2 = static_cast< int >(val2); | |
30415 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
30416 | if (!SWIG_IsOK(ecode3)) { | |
30417 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
30418 | } | |
30419 | arg3 = static_cast< bool >(val3); | |
30420 | { | |
30421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30422 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
30423 | wxPyEndAllowThreads(__tstate); | |
30424 | if (PyErr_Occurred()) SWIG_fail; | |
30425 | } | |
30426 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
30427 | return resultobj; | |
30428 | fail: | |
30429 | return NULL; | |
30430 | } | |
30431 | ||
30432 | ||
30433 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30434 | PyObject *resultobj = 0; | |
30435 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
30436 | void *argp1 = 0 ; | |
30437 | int res1 = 0 ; | |
30438 | PyObject *swig_obj[1] ; | |
30439 | ||
30440 | if (!args) SWIG_fail; | |
30441 | swig_obj[0] = args; | |
30442 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
30443 | if (!SWIG_IsOK(res1)) { | |
30444 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
30445 | } | |
30446 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
30447 | { | |
30448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30449 | delete arg1; | |
30450 | ||
30451 | wxPyEndAllowThreads(__tstate); | |
30452 | if (PyErr_Occurred()) SWIG_fail; | |
30453 | } | |
30454 | resultobj = SWIG_Py_Void(); | |
30455 | return resultobj; | |
30456 | fail: | |
30457 | return NULL; | |
30458 | } | |
30459 | ||
30460 | ||
30461 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30462 | PyObject *resultobj = 0; | |
30463 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
30464 | int result; | |
30465 | void *argp1 = 0 ; | |
30466 | int res1 = 0 ; | |
30467 | PyObject *swig_obj[1] ; | |
30468 | ||
30469 | if (!args) SWIG_fail; | |
30470 | swig_obj[0] = args; | |
30471 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
30472 | if (!SWIG_IsOK(res1)) { | |
30473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
30474 | } | |
30475 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
30476 | result = (int)(int) ((arg1)->widthSash); | |
30477 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30478 | return resultobj; | |
30479 | fail: | |
30480 | return NULL; | |
30481 | } | |
30482 | ||
30483 | ||
30484 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30485 | PyObject *resultobj = 0; | |
30486 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
30487 | int result; | |
30488 | void *argp1 = 0 ; | |
30489 | int res1 = 0 ; | |
30490 | PyObject *swig_obj[1] ; | |
30491 | ||
30492 | if (!args) SWIG_fail; | |
30493 | swig_obj[0] = args; | |
30494 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
30495 | if (!SWIG_IsOK(res1)) { | |
30496 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
30497 | } | |
30498 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
30499 | result = (int)(int) ((arg1)->border); | |
30500 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30501 | return resultobj; | |
30502 | fail: | |
30503 | return NULL; | |
30504 | } | |
30505 | ||
30506 | ||
30507 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30508 | PyObject *resultobj = 0; | |
30509 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
30510 | bool result; | |
30511 | void *argp1 = 0 ; | |
30512 | int res1 = 0 ; | |
30513 | PyObject *swig_obj[1] ; | |
30514 | ||
30515 | if (!args) SWIG_fail; | |
30516 | swig_obj[0] = args; | |
30517 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
30518 | if (!SWIG_IsOK(res1)) { | |
30519 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
30520 | } | |
30521 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
30522 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
30523 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
30524 | return resultobj; | |
30525 | fail: | |
30526 | return NULL; | |
30527 | } | |
30528 | ||
30529 | ||
30530 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30531 | PyObject *obj; | |
30532 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30533 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
30534 | return SWIG_Py_Void(); | |
30535 | } | |
30536 | ||
30537 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30538 | return SWIG_Python_InitShadowInstance(args); | |
30539 | } | |
30540 | ||
33d6fd3b RD |
30541 | SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30542 | PyObject *resultobj = 0; | |
30543 | wxHeaderButtonParams *result = 0 ; | |
30544 | ||
30545 | if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail; | |
30546 | { | |
30547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30548 | result = (wxHeaderButtonParams *)new wxHeaderButtonParams(); | |
30549 | wxPyEndAllowThreads(__tstate); | |
30550 | if (PyErr_Occurred()) SWIG_fail; | |
30551 | } | |
30552 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 ); | |
30553 | return resultobj; | |
30554 | fail: | |
30555 | return NULL; | |
30556 | } | |
30557 | ||
30558 | ||
30559 | SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30560 | PyObject *resultobj = 0; | |
30561 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30562 | void *argp1 = 0 ; | |
30563 | int res1 = 0 ; | |
30564 | PyObject *swig_obj[1] ; | |
30565 | ||
30566 | if (!args) SWIG_fail; | |
30567 | swig_obj[0] = args; | |
30568 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 ); | |
30569 | if (!SWIG_IsOK(res1)) { | |
30570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30571 | } | |
30572 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30573 | { | |
30574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30575 | delete arg1; | |
30576 | ||
30577 | wxPyEndAllowThreads(__tstate); | |
30578 | if (PyErr_Occurred()) SWIG_fail; | |
30579 | } | |
30580 | resultobj = SWIG_Py_Void(); | |
30581 | return resultobj; | |
30582 | fail: | |
30583 | return NULL; | |
30584 | } | |
30585 | ||
30586 | ||
30587 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30588 | PyObject *resultobj = 0; | |
30589 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30590 | wxColour *arg2 = (wxColour *) 0 ; | |
30591 | void *argp1 = 0 ; | |
30592 | int res1 = 0 ; | |
30593 | wxColour temp2 ; | |
30594 | PyObject *swig_obj[2] ; | |
30595 | ||
30596 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail; | |
30597 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30598 | if (!SWIG_IsOK(res1)) { | |
30599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30600 | } | |
30601 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30602 | { | |
30603 | arg2 = &temp2; | |
30604 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
30605 | } | |
30606 | if (arg1) (arg1)->m_arrowColour = *arg2; | |
30607 | ||
30608 | resultobj = SWIG_Py_Void(); | |
30609 | return resultobj; | |
30610 | fail: | |
30611 | return NULL; | |
30612 | } | |
30613 | ||
30614 | ||
30615 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30616 | PyObject *resultobj = 0; | |
30617 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30618 | wxColour *result = 0 ; | |
30619 | void *argp1 = 0 ; | |
30620 | int res1 = 0 ; | |
30621 | PyObject *swig_obj[1] ; | |
30622 | ||
30623 | if (!args) SWIG_fail; | |
30624 | swig_obj[0] = args; | |
30625 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30626 | if (!SWIG_IsOK(res1)) { | |
30627 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30628 | } | |
30629 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30630 | result = (wxColour *)& ((arg1)->m_arrowColour); | |
30631 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
30632 | return resultobj; | |
30633 | fail: | |
30634 | return NULL; | |
30635 | } | |
30636 | ||
30637 | ||
30638 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30639 | PyObject *resultobj = 0; | |
30640 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30641 | wxColour *arg2 = (wxColour *) 0 ; | |
30642 | void *argp1 = 0 ; | |
30643 | int res1 = 0 ; | |
30644 | wxColour temp2 ; | |
30645 | PyObject *swig_obj[2] ; | |
30646 | ||
30647 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail; | |
30648 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30649 | if (!SWIG_IsOK(res1)) { | |
30650 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30651 | } | |
30652 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30653 | { | |
30654 | arg2 = &temp2; | |
30655 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
30656 | } | |
30657 | if (arg1) (arg1)->m_selectionColour = *arg2; | |
30658 | ||
30659 | resultobj = SWIG_Py_Void(); | |
30660 | return resultobj; | |
30661 | fail: | |
30662 | return NULL; | |
30663 | } | |
30664 | ||
30665 | ||
30666 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30667 | PyObject *resultobj = 0; | |
30668 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30669 | wxColour *result = 0 ; | |
30670 | void *argp1 = 0 ; | |
30671 | int res1 = 0 ; | |
30672 | PyObject *swig_obj[1] ; | |
30673 | ||
30674 | if (!args) SWIG_fail; | |
30675 | swig_obj[0] = args; | |
30676 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30677 | if (!SWIG_IsOK(res1)) { | |
30678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30679 | } | |
30680 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30681 | result = (wxColour *)& ((arg1)->m_selectionColour); | |
30682 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
30683 | return resultobj; | |
30684 | fail: | |
30685 | return NULL; | |
30686 | } | |
30687 | ||
30688 | ||
30689 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30690 | PyObject *resultobj = 0; | |
30691 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30692 | wxString *arg2 = (wxString *) 0 ; | |
30693 | void *argp1 = 0 ; | |
30694 | int res1 = 0 ; | |
30695 | bool temp2 = false ; | |
30696 | PyObject *swig_obj[2] ; | |
30697 | ||
30698 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail; | |
30699 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30700 | if (!SWIG_IsOK(res1)) { | |
30701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30702 | } | |
30703 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30704 | { | |
30705 | arg2 = wxString_in_helper(swig_obj[1]); | |
30706 | if (arg2 == NULL) SWIG_fail; | |
30707 | temp2 = true; | |
30708 | } | |
30709 | if (arg1) (arg1)->m_labelText = *arg2; | |
30710 | ||
30711 | resultobj = SWIG_Py_Void(); | |
30712 | { | |
30713 | if (temp2) | |
30714 | delete arg2; | |
30715 | } | |
30716 | return resultobj; | |
30717 | fail: | |
30718 | { | |
30719 | if (temp2) | |
30720 | delete arg2; | |
30721 | } | |
30722 | return NULL; | |
30723 | } | |
30724 | ||
30725 | ||
30726 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30727 | PyObject *resultobj = 0; | |
30728 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30729 | wxString *result = 0 ; | |
30730 | void *argp1 = 0 ; | |
30731 | int res1 = 0 ; | |
30732 | PyObject *swig_obj[1] ; | |
30733 | ||
30734 | if (!args) SWIG_fail; | |
30735 | swig_obj[0] = args; | |
30736 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30737 | if (!SWIG_IsOK(res1)) { | |
30738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30739 | } | |
30740 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30741 | result = (wxString *)& ((arg1)->m_labelText); | |
30742 | { | |
30743 | #if wxUSE_UNICODE | |
30744 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30745 | #else | |
30746 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30747 | #endif | |
30748 | } | |
30749 | return resultobj; | |
30750 | fail: | |
30751 | return NULL; | |
30752 | } | |
30753 | ||
30754 | ||
30755 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30756 | PyObject *resultobj = 0; | |
30757 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30758 | wxFont *arg2 = (wxFont *) 0 ; | |
30759 | void *argp1 = 0 ; | |
30760 | int res1 = 0 ; | |
30761 | void *argp2 = 0 ; | |
30762 | int res2 = 0 ; | |
30763 | PyObject *swig_obj[2] ; | |
30764 | ||
30765 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail; | |
30766 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30767 | if (!SWIG_IsOK(res1)) { | |
30768 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30769 | } | |
30770 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30771 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
30772 | if (!SWIG_IsOK(res2)) { | |
30773 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'"); | |
30774 | } | |
30775 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
30776 | if (arg1) (arg1)->m_labelFont = *arg2; | |
30777 | ||
30778 | resultobj = SWIG_Py_Void(); | |
30779 | return resultobj; | |
30780 | fail: | |
30781 | return NULL; | |
30782 | } | |
30783 | ||
30784 | ||
30785 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30786 | PyObject *resultobj = 0; | |
30787 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30788 | wxFont *result = 0 ; | |
30789 | void *argp1 = 0 ; | |
30790 | int res1 = 0 ; | |
30791 | PyObject *swig_obj[1] ; | |
30792 | ||
30793 | if (!args) SWIG_fail; | |
30794 | swig_obj[0] = args; | |
30795 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30796 | if (!SWIG_IsOK(res1)) { | |
30797 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30798 | } | |
30799 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30800 | result = (wxFont *)& ((arg1)->m_labelFont); | |
30801 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
30802 | return resultobj; | |
30803 | fail: | |
30804 | return NULL; | |
30805 | } | |
30806 | ||
30807 | ||
30808 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30809 | PyObject *resultobj = 0; | |
30810 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30811 | wxColour *arg2 = (wxColour *) 0 ; | |
30812 | void *argp1 = 0 ; | |
30813 | int res1 = 0 ; | |
30814 | wxColour temp2 ; | |
30815 | PyObject *swig_obj[2] ; | |
30816 | ||
30817 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail; | |
30818 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30819 | if (!SWIG_IsOK(res1)) { | |
30820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30821 | } | |
30822 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30823 | { | |
30824 | arg2 = &temp2; | |
30825 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
30826 | } | |
30827 | if (arg1) (arg1)->m_labelColour = *arg2; | |
30828 | ||
30829 | resultobj = SWIG_Py_Void(); | |
30830 | return resultobj; | |
30831 | fail: | |
30832 | return NULL; | |
30833 | } | |
30834 | ||
30835 | ||
30836 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30837 | PyObject *resultobj = 0; | |
30838 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30839 | wxColour *result = 0 ; | |
30840 | void *argp1 = 0 ; | |
30841 | int res1 = 0 ; | |
30842 | PyObject *swig_obj[1] ; | |
30843 | ||
30844 | if (!args) SWIG_fail; | |
30845 | swig_obj[0] = args; | |
30846 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30847 | if (!SWIG_IsOK(res1)) { | |
30848 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30849 | } | |
30850 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30851 | result = (wxColour *)& ((arg1)->m_labelColour); | |
30852 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
30853 | return resultobj; | |
30854 | fail: | |
30855 | return NULL; | |
30856 | } | |
30857 | ||
30858 | ||
30859 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30860 | PyObject *resultobj = 0; | |
30861 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30862 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
30863 | void *argp1 = 0 ; | |
30864 | int res1 = 0 ; | |
30865 | void *argp2 = 0 ; | |
30866 | int res2 = 0 ; | |
30867 | PyObject *swig_obj[2] ; | |
30868 | ||
30869 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail; | |
30870 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30871 | if (!SWIG_IsOK(res1)) { | |
30872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30873 | } | |
30874 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30875 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
30876 | if (!SWIG_IsOK(res2)) { | |
30877 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
30878 | } | |
30879 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
30880 | if (arg1) (arg1)->m_labelBitmap = *arg2; | |
30881 | ||
30882 | resultobj = SWIG_Py_Void(); | |
30883 | return resultobj; | |
30884 | fail: | |
30885 | return NULL; | |
30886 | } | |
30887 | ||
30888 | ||
30889 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30890 | PyObject *resultobj = 0; | |
30891 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30892 | wxBitmap *result = 0 ; | |
30893 | void *argp1 = 0 ; | |
30894 | int res1 = 0 ; | |
30895 | PyObject *swig_obj[1] ; | |
30896 | ||
30897 | if (!args) SWIG_fail; | |
30898 | swig_obj[0] = args; | |
30899 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30900 | if (!SWIG_IsOK(res1)) { | |
30901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30902 | } | |
30903 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30904 | result = (wxBitmap *)& ((arg1)->m_labelBitmap); | |
30905 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
30906 | return resultobj; | |
30907 | fail: | |
30908 | return NULL; | |
30909 | } | |
30910 | ||
30911 | ||
30912 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30913 | PyObject *resultobj = 0; | |
30914 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30915 | int arg2 ; | |
30916 | void *argp1 = 0 ; | |
30917 | int res1 = 0 ; | |
30918 | int val2 ; | |
30919 | int ecode2 = 0 ; | |
30920 | PyObject *swig_obj[2] ; | |
30921 | ||
30922 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail; | |
30923 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30924 | if (!SWIG_IsOK(res1)) { | |
30925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30926 | } | |
30927 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30928 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
30929 | if (!SWIG_IsOK(ecode2)) { | |
30930 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'"); | |
30931 | } | |
30932 | arg2 = static_cast< int >(val2); | |
30933 | if (arg1) (arg1)->m_labelAlignment = arg2; | |
30934 | ||
30935 | resultobj = SWIG_Py_Void(); | |
30936 | return resultobj; | |
30937 | fail: | |
30938 | return NULL; | |
30939 | } | |
30940 | ||
30941 | ||
30942 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30943 | PyObject *resultobj = 0; | |
30944 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
30945 | int result; | |
30946 | void *argp1 = 0 ; | |
30947 | int res1 = 0 ; | |
30948 | PyObject *swig_obj[1] ; | |
30949 | ||
30950 | if (!args) SWIG_fail; | |
30951 | swig_obj[0] = args; | |
30952 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
30953 | if (!SWIG_IsOK(res1)) { | |
30954 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
30955 | } | |
30956 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
30957 | result = (int) ((arg1)->m_labelAlignment); | |
30958 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
30959 | return resultobj; | |
30960 | fail: | |
30961 | return NULL; | |
30962 | } | |
30963 | ||
30964 | ||
30965 | SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30966 | PyObject *obj; | |
30967 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30968 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj)); | |
30969 | return SWIG_Py_Void(); | |
30970 | } | |
30971 | ||
30972 | SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30973 | return SWIG_Python_InitShadowInstance(args); | |
30974 | } | |
30975 | ||
554f62e9 RD |
30976 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30977 | PyObject *resultobj = 0; | |
30978 | int arg1 ; | |
30979 | int arg2 ; | |
30980 | wxRendererVersion *result = 0 ; | |
30981 | int val1 ; | |
30982 | int ecode1 = 0 ; | |
30983 | int val2 ; | |
30984 | int ecode2 = 0 ; | |
30985 | PyObject * obj0 = 0 ; | |
30986 | PyObject * obj1 = 0 ; | |
30987 | char * kwnames[] = { | |
30988 | (char *) "version_",(char *) "age_", NULL | |
30989 | }; | |
30990 | ||
30991 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
30992 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
30993 | if (!SWIG_IsOK(ecode1)) { | |
30994 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
30995 | } | |
30996 | arg1 = static_cast< int >(val1); | |
30997 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
30998 | if (!SWIG_IsOK(ecode2)) { | |
30999 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
31000 | } | |
31001 | arg2 = static_cast< int >(val2); | |
31002 | { | |
31003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31004 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
31005 | wxPyEndAllowThreads(__tstate); | |
31006 | if (PyErr_Occurred()) SWIG_fail; | |
31007 | } | |
31008 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
31009 | return resultobj; | |
31010 | fail: | |
31011 | return NULL; | |
31012 | } | |
31013 | ||
31014 | ||
31015 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31016 | PyObject *resultobj = 0; | |
31017 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
31018 | void *argp1 = 0 ; | |
31019 | int res1 = 0 ; | |
31020 | PyObject *swig_obj[1] ; | |
31021 | ||
31022 | if (!args) SWIG_fail; | |
31023 | swig_obj[0] = args; | |
31024 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
31025 | if (!SWIG_IsOK(res1)) { | |
31026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
31027 | } | |
31028 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
31029 | { | |
31030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31031 | delete arg1; | |
31032 | ||
31033 | wxPyEndAllowThreads(__tstate); | |
31034 | if (PyErr_Occurred()) SWIG_fail; | |
31035 | } | |
31036 | resultobj = SWIG_Py_Void(); | |
31037 | return resultobj; | |
31038 | fail: | |
31039 | return NULL; | |
31040 | } | |
31041 | ||
31042 | ||
31043 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31044 | PyObject *resultobj = 0; | |
31045 | wxRendererVersion *arg1 = 0 ; | |
31046 | bool result; | |
31047 | void *argp1 = 0 ; | |
31048 | int res1 = 0 ; | |
31049 | PyObject * obj0 = 0 ; | |
31050 | char * kwnames[] = { | |
31051 | (char *) "ver", NULL | |
31052 | }; | |
31053 | ||
31054 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
31055 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
31056 | if (!SWIG_IsOK(res1)) { | |
31057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
31058 | } | |
31059 | if (!argp1) { | |
31060 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
31061 | } | |
31062 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
31063 | { | |
31064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31065 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
31066 | wxPyEndAllowThreads(__tstate); | |
31067 | if (PyErr_Occurred()) SWIG_fail; | |
31068 | } | |
31069 | { | |
31070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31071 | } | |
31072 | return resultobj; | |
31073 | fail: | |
31074 | return NULL; | |
31075 | } | |
31076 | ||
31077 | ||
31078 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31079 | PyObject *resultobj = 0; | |
31080 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
31081 | int result; | |
31082 | void *argp1 = 0 ; | |
31083 | int res1 = 0 ; | |
31084 | PyObject *swig_obj[1] ; | |
31085 | ||
31086 | if (!args) SWIG_fail; | |
31087 | swig_obj[0] = args; | |
31088 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
31089 | if (!SWIG_IsOK(res1)) { | |
31090 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
31091 | } | |
31092 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
31093 | result = (int)(int) ((arg1)->version); | |
31094 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31095 | return resultobj; | |
31096 | fail: | |
31097 | return NULL; | |
31098 | } | |
31099 | ||
31100 | ||
31101 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31102 | PyObject *resultobj = 0; | |
31103 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
31104 | int result; | |
31105 | void *argp1 = 0 ; | |
31106 | int res1 = 0 ; | |
31107 | PyObject *swig_obj[1] ; | |
31108 | ||
31109 | if (!args) SWIG_fail; | |
31110 | swig_obj[0] = args; | |
31111 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
31112 | if (!SWIG_IsOK(res1)) { | |
31113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
31114 | } | |
31115 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
31116 | result = (int)(int) ((arg1)->age); | |
31117 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31118 | return resultobj; | |
31119 | fail: | |
31120 | return NULL; | |
31121 | } | |
31122 | ||
31123 | ||
31124 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31125 | PyObject *obj; | |
31126 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31127 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
31128 | return SWIG_Py_Void(); | |
31129 | } | |
31130 | ||
31131 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31132 | return SWIG_Python_InitShadowInstance(args); | |
31133 | } | |
31134 | ||
31135 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31136 | PyObject *resultobj = 0; | |
31137 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
31138 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31139 | wxDC *arg3 = 0 ; | |
31140 | wxRect *arg4 = 0 ; | |
31141 | int arg5 = (int) 0 ; | |
33d6fd3b RD |
31142 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; |
31143 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
554f62e9 RD |
31144 | void *argp1 = 0 ; |
31145 | int res1 = 0 ; | |
31146 | void *argp2 = 0 ; | |
31147 | int res2 = 0 ; | |
31148 | void *argp3 = 0 ; | |
31149 | int res3 = 0 ; | |
31150 | wxRect temp4 ; | |
31151 | int val5 ; | |
31152 | int ecode5 = 0 ; | |
33d6fd3b RD |
31153 | int val6 ; |
31154 | int ecode6 = 0 ; | |
31155 | void *argp7 = 0 ; | |
31156 | int res7 = 0 ; | |
554f62e9 RD |
31157 | PyObject * obj0 = 0 ; |
31158 | PyObject * obj1 = 0 ; | |
31159 | PyObject * obj2 = 0 ; | |
31160 | PyObject * obj3 = 0 ; | |
31161 | PyObject * obj4 = 0 ; | |
33d6fd3b RD |
31162 | PyObject * obj5 = 0 ; |
31163 | PyObject * obj6 = 0 ; | |
554f62e9 | 31164 | char * kwnames[] = { |
33d6fd3b | 31165 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL |
554f62e9 RD |
31166 | }; |
31167 | ||
33d6fd3b | 31168 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
554f62e9 RD |
31169 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
31170 | if (!SWIG_IsOK(res1)) { | |
31171 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
31172 | } | |
31173 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
31174 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31175 | if (!SWIG_IsOK(res2)) { | |
31176 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
31177 | } | |
31178 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31179 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31180 | if (!SWIG_IsOK(res3)) { | |
31181 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31182 | } | |
31183 | if (!argp3) { | |
31184 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31185 | } | |
31186 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31187 | { | |
31188 | arg4 = &temp4; | |
31189 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31190 | } | |
31191 | if (obj4) { | |
31192 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31193 | if (!SWIG_IsOK(ecode5)) { | |
31194 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
31195 | } | |
31196 | arg5 = static_cast< int >(val5); | |
31197 | } | |
33d6fd3b RD |
31198 | if (obj5) { |
31199 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
31200 | if (!SWIG_IsOK(ecode6)) { | |
31201 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
31202 | } | |
31203 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
31204 | } | |
31205 | if (obj6) { | |
31206 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
31207 | if (!SWIG_IsOK(res7)) { | |
31208 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
31209 | } | |
31210 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
31211 | } | |
31212 | { | |
31213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31214 | (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); | |
31215 | wxPyEndAllowThreads(__tstate); | |
31216 | if (PyErr_Occurred()) SWIG_fail; | |
31217 | } | |
31218 | resultobj = SWIG_Py_Void(); | |
31219 | return resultobj; | |
31220 | fail: | |
31221 | return NULL; | |
31222 | } | |
31223 | ||
31224 | ||
31225 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31226 | PyObject *resultobj = 0; | |
31227 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
31228 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31229 | wxDC *arg3 = 0 ; | |
31230 | wxRect *arg4 = 0 ; | |
31231 | int arg5 = (int) 0 ; | |
31232 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; | |
31233 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
31234 | void *argp1 = 0 ; | |
31235 | int res1 = 0 ; | |
31236 | void *argp2 = 0 ; | |
31237 | int res2 = 0 ; | |
31238 | void *argp3 = 0 ; | |
31239 | int res3 = 0 ; | |
31240 | wxRect temp4 ; | |
31241 | int val5 ; | |
31242 | int ecode5 = 0 ; | |
31243 | int val6 ; | |
31244 | int ecode6 = 0 ; | |
31245 | void *argp7 = 0 ; | |
31246 | int res7 = 0 ; | |
31247 | PyObject * obj0 = 0 ; | |
31248 | PyObject * obj1 = 0 ; | |
31249 | PyObject * obj2 = 0 ; | |
31250 | PyObject * obj3 = 0 ; | |
31251 | PyObject * obj4 = 0 ; | |
31252 | PyObject * obj5 = 0 ; | |
31253 | PyObject * obj6 = 0 ; | |
31254 | char * kwnames[] = { | |
31255 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL | |
31256 | }; | |
31257 | ||
31258 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
31259 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
31260 | if (!SWIG_IsOK(res1)) { | |
31261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
31262 | } | |
31263 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
31264 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31265 | if (!SWIG_IsOK(res2)) { | |
31266 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
31267 | } | |
31268 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31269 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31270 | if (!SWIG_IsOK(res3)) { | |
31271 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31272 | } | |
31273 | if (!argp3) { | |
31274 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31275 | } | |
31276 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31277 | { | |
31278 | arg4 = &temp4; | |
31279 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31280 | } | |
31281 | if (obj4) { | |
31282 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31283 | if (!SWIG_IsOK(ecode5)) { | |
31284 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'"); | |
31285 | } | |
31286 | arg5 = static_cast< int >(val5); | |
31287 | } | |
31288 | if (obj5) { | |
31289 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
31290 | if (!SWIG_IsOK(ecode6)) { | |
31291 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
31292 | } | |
31293 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
31294 | } | |
31295 | if (obj6) { | |
31296 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
31297 | if (!SWIG_IsOK(res7)) { | |
31298 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
31299 | } | |
31300 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
31301 | } | |
554f62e9 RD |
31302 | { |
31303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33d6fd3b | 31304 | (arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
554f62e9 RD |
31305 | wxPyEndAllowThreads(__tstate); |
31306 | if (PyErr_Occurred()) SWIG_fail; | |
31307 | } | |
31308 | resultobj = SWIG_Py_Void(); | |
31309 | return resultobj; | |
31310 | fail: | |
31311 | return NULL; | |
31312 | } | |
31313 | ||
31314 | ||
33d6fd3b RD |
31315 | SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31316 | PyObject *resultobj = 0; | |
31317 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
31318 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31319 | int result; | |
31320 | void *argp1 = 0 ; | |
31321 | int res1 = 0 ; | |
31322 | void *argp2 = 0 ; | |
31323 | int res2 = 0 ; | |
31324 | PyObject * obj0 = 0 ; | |
31325 | PyObject * obj1 = 0 ; | |
31326 | char * kwnames[] = { | |
31327 | (char *) "self",(char *) "win", NULL | |
31328 | }; | |
31329 | ||
31330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
31331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
31332 | if (!SWIG_IsOK(res1)) { | |
31333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
31334 | } | |
31335 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
31336 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31337 | if (!SWIG_IsOK(res2)) { | |
31338 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
31339 | } | |
31340 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31341 | { | |
31342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31343 | result = (int)(arg1)->GetHeaderButtonHeight(arg2); | |
31344 | wxPyEndAllowThreads(__tstate); | |
31345 | if (PyErr_Occurred()) SWIG_fail; | |
31346 | } | |
31347 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
31348 | return resultobj; | |
31349 | fail: | |
31350 | return NULL; | |
31351 | } | |
31352 | ||
31353 | ||
554f62e9 RD |
31354 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31355 | PyObject *resultobj = 0; | |
31356 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
31357 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31358 | wxDC *arg3 = 0 ; | |
31359 | wxRect *arg4 = 0 ; | |
31360 | int arg5 = (int) 0 ; | |
31361 | void *argp1 = 0 ; | |
31362 | int res1 = 0 ; | |
31363 | void *argp2 = 0 ; | |
31364 | int res2 = 0 ; | |
31365 | void *argp3 = 0 ; | |
31366 | int res3 = 0 ; | |
31367 | wxRect temp4 ; | |
31368 | int val5 ; | |
31369 | int ecode5 = 0 ; | |
31370 | PyObject * obj0 = 0 ; | |
31371 | PyObject * obj1 = 0 ; | |
31372 | PyObject * obj2 = 0 ; | |
31373 | PyObject * obj3 = 0 ; | |
31374 | PyObject * obj4 = 0 ; | |
31375 | char * kwnames[] = { | |
31376 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
31377 | }; | |
31378 | ||
31379 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
31380 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
31381 | if (!SWIG_IsOK(res1)) { | |
31382 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
31383 | } | |
31384 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
31385 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31386 | if (!SWIG_IsOK(res2)) { | |
31387 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
31388 | } | |
31389 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31390 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31391 | if (!SWIG_IsOK(res3)) { | |
31392 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31393 | } | |
31394 | if (!argp3) { | |
31395 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31396 | } | |
31397 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31398 | { | |
31399 | arg4 = &temp4; | |
31400 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31401 | } | |
31402 | if (obj4) { | |
31403 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31404 | if (!SWIG_IsOK(ecode5)) { | |
31405 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
31406 | } | |
31407 | arg5 = static_cast< int >(val5); | |
31408 | } | |
31409 | { | |
31410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31411 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
31412 | wxPyEndAllowThreads(__tstate); | |
31413 | if (PyErr_Occurred()) SWIG_fail; | |
31414 | } | |
31415 | resultobj = SWIG_Py_Void(); | |
31416 | return resultobj; | |
31417 | fail: | |
31418 | return NULL; | |
31419 | } | |
31420 | ||
31421 | ||
31422 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31423 | PyObject *resultobj = 0; | |
31424 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
31425 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31426 | wxDC *arg3 = 0 ; | |
31427 | wxRect *arg4 = 0 ; | |
31428 | int arg5 = (int) 0 ; | |
31429 | void *argp1 = 0 ; | |
31430 | int res1 = 0 ; | |
31431 | void *argp2 = 0 ; | |
31432 | int res2 = 0 ; | |
31433 | void *argp3 = 0 ; | |
31434 | int res3 = 0 ; | |
31435 | wxRect temp4 ; | |
31436 | int val5 ; | |
31437 | int ecode5 = 0 ; | |
31438 | PyObject * obj0 = 0 ; | |
31439 | PyObject * obj1 = 0 ; | |
31440 | PyObject * obj2 = 0 ; | |
31441 | PyObject * obj3 = 0 ; | |
31442 | PyObject * obj4 = 0 ; | |
31443 | char * kwnames[] = { | |
31444 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
31445 | }; | |
31446 | ||
31447 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
31448 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
31449 | if (!SWIG_IsOK(res1)) { | |
31450 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
31451 | } | |
31452 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
31453 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31454 | if (!SWIG_IsOK(res2)) { | |
31455 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
31456 | } | |
31457 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31458 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31459 | if (!SWIG_IsOK(res3)) { | |
31460 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31461 | } | |
31462 | if (!argp3) { | |
31463 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31464 | } | |
31465 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31466 | { | |
31467 | arg4 = &temp4; | |
31468 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31469 | } | |
31470 | if (obj4) { | |
31471 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31472 | if (!SWIG_IsOK(ecode5)) { | |
31473 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
31474 | } | |
31475 | arg5 = static_cast< int >(val5); | |
31476 | } | |
31477 | { | |
31478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31479 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
31480 | wxPyEndAllowThreads(__tstate); | |
31481 | if (PyErr_Occurred()) SWIG_fail; | |
31482 | } | |
31483 | resultobj = SWIG_Py_Void(); | |
31484 | return resultobj; | |
31485 | fail: | |
31486 | return NULL; | |
31487 | } | |
31488 | ||
31489 | ||
31490 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31491 | PyObject *resultobj = 0; | |
31492 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
31493 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31494 | wxDC *arg3 = 0 ; | |
31495 | wxSize *arg4 = 0 ; | |
31496 | int arg5 ; | |
31497 | wxOrientation arg6 ; | |
31498 | int arg7 = (int) 0 ; | |
31499 | void *argp1 = 0 ; | |
31500 | int res1 = 0 ; | |
31501 | void *argp2 = 0 ; | |
31502 | int res2 = 0 ; | |
31503 | void *argp3 = 0 ; | |
31504 | int res3 = 0 ; | |
31505 | wxSize temp4 ; | |
31506 | int val5 ; | |
31507 | int ecode5 = 0 ; | |
31508 | int val6 ; | |
31509 | int ecode6 = 0 ; | |
31510 | int val7 ; | |
31511 | int ecode7 = 0 ; | |
31512 | PyObject * obj0 = 0 ; | |
31513 | PyObject * obj1 = 0 ; | |
31514 | PyObject * obj2 = 0 ; | |
31515 | PyObject * obj3 = 0 ; | |
31516 | PyObject * obj4 = 0 ; | |
31517 | PyObject * obj5 = 0 ; | |
31518 | PyObject * obj6 = 0 ; | |
31519 | char * kwnames[] = { | |
31520 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
31521 | }; | |
31522 | ||
31523 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
31524 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
31525 | if (!SWIG_IsOK(res1)) { | |
31526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
31527 | } | |
31528 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
31529 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31530 | if (!SWIG_IsOK(res2)) { | |
31531 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
31532 | } | |
31533 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31534 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31535 | if (!SWIG_IsOK(res3)) { | |
31536 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31537 | } | |
31538 | if (!argp3) { | |
31539 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31540 | } | |
31541 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31542 | { | |
31543 | arg4 = &temp4; | |
31544 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
31545 | } | |
31546 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31547 | if (!SWIG_IsOK(ecode5)) { | |
31548 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
31549 | } | |
31550 | arg5 = static_cast< int >(val5); | |
31551 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
31552 | if (!SWIG_IsOK(ecode6)) { | |
31553 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
31554 | } | |
31555 | arg6 = static_cast< wxOrientation >(val6); | |
31556 | if (obj6) { | |
31557 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
31558 | if (!SWIG_IsOK(ecode7)) { | |
31559 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
31560 | } | |
31561 | arg7 = static_cast< int >(val7); | |
31562 | } | |
31563 | { | |
31564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31565 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
31566 | wxPyEndAllowThreads(__tstate); | |
31567 | if (PyErr_Occurred()) SWIG_fail; | |
31568 | } | |
31569 | resultobj = SWIG_Py_Void(); | |
31570 | return resultobj; | |
31571 | fail: | |
31572 | return NULL; | |
31573 | } | |
31574 | ||
31575 | ||
31576 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31577 | PyObject *resultobj = 0; | |
31578 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
31579 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31580 | wxDC *arg3 = 0 ; | |
31581 | wxRect *arg4 = 0 ; | |
31582 | int arg5 = (int) 0 ; | |
31583 | void *argp1 = 0 ; | |
31584 | int res1 = 0 ; | |
31585 | void *argp2 = 0 ; | |
31586 | int res2 = 0 ; | |
31587 | void *argp3 = 0 ; | |
31588 | int res3 = 0 ; | |
31589 | wxRect temp4 ; | |
31590 | int val5 ; | |
31591 | int ecode5 = 0 ; | |
31592 | PyObject * obj0 = 0 ; | |
31593 | PyObject * obj1 = 0 ; | |
31594 | PyObject * obj2 = 0 ; | |
31595 | PyObject * obj3 = 0 ; | |
31596 | PyObject * obj4 = 0 ; | |
31597 | char * kwnames[] = { | |
31598 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
31599 | }; | |
31600 | ||
31601 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
31602 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
31603 | if (!SWIG_IsOK(res1)) { | |
31604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
31605 | } | |
31606 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
31607 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31608 | if (!SWIG_IsOK(res2)) { | |
31609 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
31610 | } | |
31611 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31612 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31613 | if (!SWIG_IsOK(res3)) { | |
31614 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31615 | } | |
31616 | if (!argp3) { | |
31617 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31618 | } | |
31619 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31620 | { | |
31621 | arg4 = &temp4; | |
31622 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31623 | } | |
31624 | if (obj4) { | |
31625 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31626 | if (!SWIG_IsOK(ecode5)) { | |
31627 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
31628 | } | |
31629 | arg5 = static_cast< int >(val5); | |
31630 | } | |
31631 | { | |
31632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31633 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
31634 | wxPyEndAllowThreads(__tstate); | |
31635 | if (PyErr_Occurred()) SWIG_fail; | |
31636 | } | |
31637 | resultobj = SWIG_Py_Void(); | |
31638 | return resultobj; | |
31639 | fail: | |
31640 | return NULL; | |
31641 | } | |
31642 | ||
31643 | ||
31644 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31645 | PyObject *resultobj = 0; | |
31646 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
31647 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31648 | wxDC *arg3 = 0 ; | |
31649 | wxRect *arg4 = 0 ; | |
31650 | int arg5 = (int) 0 ; | |
31651 | void *argp1 = 0 ; | |
31652 | int res1 = 0 ; | |
31653 | void *argp2 = 0 ; | |
31654 | int res2 = 0 ; | |
31655 | void *argp3 = 0 ; | |
31656 | int res3 = 0 ; | |
31657 | wxRect temp4 ; | |
31658 | int val5 ; | |
31659 | int ecode5 = 0 ; | |
31660 | PyObject * obj0 = 0 ; | |
31661 | PyObject * obj1 = 0 ; | |
31662 | PyObject * obj2 = 0 ; | |
31663 | PyObject * obj3 = 0 ; | |
31664 | PyObject * obj4 = 0 ; | |
31665 | char * kwnames[] = { | |
31666 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
31667 | }; | |
31668 | ||
31669 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
31670 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
31671 | if (!SWIG_IsOK(res1)) { | |
31672 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
31673 | } | |
31674 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
31675 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31676 | if (!SWIG_IsOK(res2)) { | |
31677 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
31678 | } | |
31679 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31680 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31681 | if (!SWIG_IsOK(res3)) { | |
31682 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31683 | } | |
31684 | if (!argp3) { | |
31685 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31686 | } | |
31687 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31688 | { | |
31689 | arg4 = &temp4; | |
31690 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31691 | } | |
31692 | if (obj4) { | |
31693 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31694 | if (!SWIG_IsOK(ecode5)) { | |
31695 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
31696 | } | |
31697 | arg5 = static_cast< int >(val5); | |
31698 | } | |
31699 | { | |
31700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31701 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
31702 | wxPyEndAllowThreads(__tstate); | |
31703 | if (PyErr_Occurred()) SWIG_fail; | |
31704 | } | |
31705 | resultobj = SWIG_Py_Void(); | |
31706 | return resultobj; | |
31707 | fail: | |
31708 | return NULL; | |
31709 | } | |
31710 | ||
31711 | ||
f460c29d RD |
31712 | SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31713 | PyObject *resultobj = 0; | |
31714 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
31715 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31716 | wxDC *arg3 = 0 ; | |
31717 | wxRect *arg4 = 0 ; | |
31718 | int arg5 = (int) 0 ; | |
31719 | void *argp1 = 0 ; | |
31720 | int res1 = 0 ; | |
31721 | void *argp2 = 0 ; | |
31722 | int res2 = 0 ; | |
31723 | void *argp3 = 0 ; | |
31724 | int res3 = 0 ; | |
31725 | wxRect temp4 ; | |
31726 | int val5 ; | |
31727 | int ecode5 = 0 ; | |
31728 | PyObject * obj0 = 0 ; | |
31729 | PyObject * obj1 = 0 ; | |
31730 | PyObject * obj2 = 0 ; | |
31731 | PyObject * obj3 = 0 ; | |
31732 | PyObject * obj4 = 0 ; | |
31733 | char * kwnames[] = { | |
31734 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
31735 | }; | |
31736 | ||
31737 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
31738 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
31739 | if (!SWIG_IsOK(res1)) { | |
31740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
31741 | } | |
31742 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
31743 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31744 | if (!SWIG_IsOK(res2)) { | |
31745 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
31746 | } | |
31747 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31748 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31749 | if (!SWIG_IsOK(res3)) { | |
31750 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31751 | } | |
31752 | if (!argp3) { | |
31753 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31754 | } | |
31755 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31756 | { | |
31757 | arg4 = &temp4; | |
31758 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31759 | } | |
31760 | if (obj4) { | |
31761 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31762 | if (!SWIG_IsOK(ecode5)) { | |
31763 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'"); | |
31764 | } | |
31765 | arg5 = static_cast< int >(val5); | |
31766 | } | |
31767 | { | |
31768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31769 | (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
31770 | wxPyEndAllowThreads(__tstate); | |
31771 | if (PyErr_Occurred()) SWIG_fail; | |
31772 | } | |
31773 | resultobj = SWIG_Py_Void(); | |
31774 | return resultobj; | |
31775 | fail: | |
31776 | return NULL; | |
31777 | } | |
31778 | ||
31779 | ||
31780 | SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31781 | PyObject *resultobj = 0; | |
31782 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
31783 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31784 | wxDC *arg3 = 0 ; | |
31785 | wxRect *arg4 = 0 ; | |
31786 | int arg5 = (int) 0 ; | |
31787 | void *argp1 = 0 ; | |
31788 | int res1 = 0 ; | |
31789 | void *argp2 = 0 ; | |
31790 | int res2 = 0 ; | |
31791 | void *argp3 = 0 ; | |
31792 | int res3 = 0 ; | |
31793 | wxRect temp4 ; | |
31794 | int val5 ; | |
31795 | int ecode5 = 0 ; | |
31796 | PyObject * obj0 = 0 ; | |
31797 | PyObject * obj1 = 0 ; | |
31798 | PyObject * obj2 = 0 ; | |
31799 | PyObject * obj3 = 0 ; | |
31800 | PyObject * obj4 = 0 ; | |
31801 | char * kwnames[] = { | |
31802 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
31803 | }; | |
31804 | ||
31805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
31806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
31807 | if (!SWIG_IsOK(res1)) { | |
31808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
31809 | } | |
31810 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
31811 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31812 | if (!SWIG_IsOK(res2)) { | |
31813 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
31814 | } | |
31815 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31816 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31817 | if (!SWIG_IsOK(res3)) { | |
31818 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31819 | } | |
31820 | if (!argp3) { | |
31821 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
31822 | } | |
31823 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31824 | { | |
31825 | arg4 = &temp4; | |
31826 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31827 | } | |
31828 | if (obj4) { | |
31829 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31830 | if (!SWIG_IsOK(ecode5)) { | |
31831 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'"); | |
31832 | } | |
31833 | arg5 = static_cast< int >(val5); | |
31834 | } | |
31835 | { | |
31836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31837 | (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
31838 | wxPyEndAllowThreads(__tstate); | |
31839 | if (PyErr_Occurred()) SWIG_fail; | |
31840 | } | |
31841 | resultobj = SWIG_Py_Void(); | |
31842 | return resultobj; | |
31843 | fail: | |
31844 | return NULL; | |
31845 | } | |
31846 | ||
31847 | ||
31848 | SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
50efceee RD |
31849 | PyObject *resultobj = 0; |
31850 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
31851 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31852 | wxDC *arg3 = 0 ; | |
31853 | wxRect *arg4 = 0 ; | |
31854 | int arg5 = (int) 0 ; | |
31855 | void *argp1 = 0 ; | |
31856 | int res1 = 0 ; | |
31857 | void *argp2 = 0 ; | |
31858 | int res2 = 0 ; | |
31859 | void *argp3 = 0 ; | |
31860 | int res3 = 0 ; | |
31861 | wxRect temp4 ; | |
31862 | int val5 ; | |
31863 | int ecode5 = 0 ; | |
31864 | PyObject * obj0 = 0 ; | |
31865 | PyObject * obj1 = 0 ; | |
31866 | PyObject * obj2 = 0 ; | |
31867 | PyObject * obj3 = 0 ; | |
31868 | PyObject * obj4 = 0 ; | |
31869 | char * kwnames[] = { | |
31870 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
31871 | }; | |
31872 | ||
f460c29d | 31873 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
50efceee RD |
31874 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
31875 | if (!SWIG_IsOK(res1)) { | |
f460c29d | 31876 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'"); |
50efceee RD |
31877 | } |
31878 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
31879 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31880 | if (!SWIG_IsOK(res2)) { | |
f460c29d | 31881 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'"); |
50efceee RD |
31882 | } |
31883 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31884 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
31885 | if (!SWIG_IsOK(res3)) { | |
f460c29d | 31886 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
31887 | } |
31888 | if (!argp3) { | |
f460c29d | 31889 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
31890 | } |
31891 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
31892 | { | |
31893 | arg4 = &temp4; | |
31894 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31895 | } | |
31896 | if (obj4) { | |
31897 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
31898 | if (!SWIG_IsOK(ecode5)) { | |
f460c29d | 31899 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'"); |
50efceee RD |
31900 | } |
31901 | arg5 = static_cast< int >(val5); | |
31902 | } | |
31903 | { | |
31904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f460c29d | 31905 | (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5); |
50efceee RD |
31906 | wxPyEndAllowThreads(__tstate); |
31907 | if (PyErr_Occurred()) SWIG_fail; | |
31908 | } | |
31909 | resultobj = SWIG_Py_Void(); | |
31910 | return resultobj; | |
31911 | fail: | |
31912 | return NULL; | |
31913 | } | |
31914 | ||
31915 | ||
554f62e9 RD |
31916 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31917 | PyObject *resultobj = 0; | |
31918 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
31919 | wxWindow *arg2 = (wxWindow *) 0 ; | |
31920 | SwigValueWrapper<wxSplitterRenderParams > result; | |
31921 | void *argp1 = 0 ; | |
31922 | int res1 = 0 ; | |
31923 | void *argp2 = 0 ; | |
31924 | int res2 = 0 ; | |
31925 | PyObject * obj0 = 0 ; | |
31926 | PyObject * obj1 = 0 ; | |
31927 | char * kwnames[] = { | |
31928 | (char *) "self",(char *) "win", NULL | |
31929 | }; | |
31930 | ||
31931 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
31932 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
31933 | if (!SWIG_IsOK(res1)) { | |
31934 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
31935 | } | |
31936 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
31937 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31938 | if (!SWIG_IsOK(res2)) { | |
31939 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
31940 | } | |
31941 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
31942 | { | |
31943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31944 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
31945 | wxPyEndAllowThreads(__tstate); | |
31946 | if (PyErr_Occurred()) SWIG_fail; | |
31947 | } | |
31948 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
31949 | return resultobj; | |
31950 | fail: | |
31951 | return NULL; | |
31952 | } | |
31953 | ||
31954 | ||
31955 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31956 | PyObject *resultobj = 0; | |
31957 | wxRendererNative *result = 0 ; | |
31958 | ||
31959 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
31960 | { | |
704eda0c | 31961 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 31962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 31963 | { |
554f62e9 RD |
31964 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
31965 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 31966 | } |
554f62e9 RD |
31967 | wxPyEndAllowThreads(__tstate); |
31968 | if (PyErr_Occurred()) SWIG_fail; | |
31969 | } | |
31970 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
31971 | return resultobj; | |
31972 | fail: | |
31973 | return NULL; | |
31974 | } | |
31975 | ||
31976 | ||
31977 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31978 | PyObject *resultobj = 0; | |
31979 | wxRendererNative *result = 0 ; | |
31980 | ||
31981 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
31982 | { | |
704eda0c | 31983 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 31984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be9b1dca | 31985 | { |
554f62e9 RD |
31986 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
31987 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 31988 | } |
554f62e9 RD |
31989 | wxPyEndAllowThreads(__tstate); |
31990 | if (PyErr_Occurred()) SWIG_fail; | |
31991 | } | |
31992 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
31993 | return resultobj; | |
31994 | fail: | |
31995 | return NULL; | |
31996 | } | |
31997 | ||
31998 | ||
31999 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32000 | PyObject *resultobj = 0; | |
32001 | wxRendererNative *result = 0 ; | |
32002 | ||
32003 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
32004 | { | |
704eda0c | 32005 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 32006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be9b1dca | 32007 | { |
554f62e9 RD |
32008 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
32009 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 32010 | } |
554f62e9 RD |
32011 | wxPyEndAllowThreads(__tstate); |
32012 | if (PyErr_Occurred()) SWIG_fail; | |
32013 | } | |
32014 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
32015 | return resultobj; | |
32016 | fail: | |
32017 | return NULL; | |
32018 | } | |
32019 | ||
32020 | ||
32021 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32022 | PyObject *resultobj = 0; | |
32023 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
32024 | wxRendererNative *result = 0 ; | |
32025 | void *argp1 = 0 ; | |
32026 | int res1 = 0 ; | |
32027 | PyObject * obj0 = 0 ; | |
32028 | char * kwnames[] = { | |
32029 | (char *) "renderer", NULL | |
32030 | }; | |
32031 | ||
32032 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
32033 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
32034 | if (!SWIG_IsOK(res1)) { | |
32035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
32036 | } | |
32037 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
32038 | { | |
704eda0c | 32039 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 RD |
32040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
32041 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
32042 | wxPyEndAllowThreads(__tstate); | |
32043 | if (PyErr_Occurred()) SWIG_fail; | |
32044 | } | |
32045 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
32046 | return resultobj; | |
32047 | fail: | |
32048 | return NULL; | |
32049 | } | |
32050 | ||
32051 | ||
32052 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32053 | PyObject *resultobj = 0; | |
32054 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
32055 | SwigValueWrapper<wxRendererVersion > result; | |
32056 | void *argp1 = 0 ; | |
32057 | int res1 = 0 ; | |
32058 | PyObject *swig_obj[1] ; | |
32059 | ||
32060 | if (!args) SWIG_fail; | |
32061 | swig_obj[0] = args; | |
32062 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
32063 | if (!SWIG_IsOK(res1)) { | |
32064 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
32065 | } | |
32066 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
32067 | { | |
32068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32069 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
32070 | wxPyEndAllowThreads(__tstate); | |
32071 | if (PyErr_Occurred()) SWIG_fail; | |
32072 | } | |
32073 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
32074 | return resultobj; | |
32075 | fail: | |
32076 | return NULL; | |
32077 | } | |
32078 | ||
32079 | ||
32080 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32081 | PyObject *obj; | |
32082 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32083 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
32084 | return SWIG_Py_Void(); | |
32085 | } | |
32086 | ||
27e45892 RD |
32087 | SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32088 | PyObject *resultobj = 0; | |
32089 | wxPseudoDC *result = 0 ; | |
32090 | ||
32091 | if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail; | |
32092 | { | |
32093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32094 | result = (wxPseudoDC *)new wxPseudoDC(); | |
32095 | wxPyEndAllowThreads(__tstate); | |
32096 | if (PyErr_Occurred()) SWIG_fail; | |
32097 | } | |
32098 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 ); | |
32099 | return resultobj; | |
32100 | fail: | |
32101 | return NULL; | |
32102 | } | |
32103 | ||
32104 | ||
32105 | SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32106 | PyObject *resultobj = 0; | |
32107 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32108 | void *argp1 = 0 ; | |
32109 | int res1 = 0 ; | |
32110 | PyObject *swig_obj[1] ; | |
32111 | ||
32112 | if (!args) SWIG_fail; | |
32113 | swig_obj[0] = args; | |
32114 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32115 | if (!SWIG_IsOK(res1)) { | |
32116 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32117 | } | |
32118 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32119 | { | |
32120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32121 | (arg1)->BeginDrawing(); | |
32122 | wxPyEndAllowThreads(__tstate); | |
32123 | if (PyErr_Occurred()) SWIG_fail; | |
32124 | } | |
32125 | resultobj = SWIG_Py_Void(); | |
32126 | return resultobj; | |
32127 | fail: | |
32128 | return NULL; | |
32129 | } | |
32130 | ||
32131 | ||
32132 | SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32133 | PyObject *resultobj = 0; | |
32134 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32135 | void *argp1 = 0 ; | |
32136 | int res1 = 0 ; | |
32137 | PyObject *swig_obj[1] ; | |
32138 | ||
32139 | if (!args) SWIG_fail; | |
32140 | swig_obj[0] = args; | |
32141 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32142 | if (!SWIG_IsOK(res1)) { | |
32143 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32144 | } | |
32145 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32146 | { | |
32147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32148 | (arg1)->EndDrawing(); | |
32149 | wxPyEndAllowThreads(__tstate); | |
32150 | if (PyErr_Occurred()) SWIG_fail; | |
32151 | } | |
32152 | resultobj = SWIG_Py_Void(); | |
32153 | return resultobj; | |
32154 | fail: | |
32155 | return NULL; | |
32156 | } | |
32157 | ||
32158 | ||
32159 | SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32160 | PyObject *resultobj = 0; | |
32161 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32162 | void *argp1 = 0 ; | |
32163 | int res1 = 0 ; | |
32164 | PyObject *swig_obj[1] ; | |
32165 | ||
32166 | if (!args) SWIG_fail; | |
32167 | swig_obj[0] = args; | |
32168 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 ); | |
32169 | if (!SWIG_IsOK(res1)) { | |
32170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32171 | } | |
32172 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32173 | { | |
32174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32175 | delete arg1; | |
32176 | ||
32177 | wxPyEndAllowThreads(__tstate); | |
32178 | if (PyErr_Occurred()) SWIG_fail; | |
32179 | } | |
32180 | resultobj = SWIG_Py_Void(); | |
32181 | return resultobj; | |
32182 | fail: | |
32183 | return NULL; | |
32184 | } | |
32185 | ||
32186 | ||
32187 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32188 | PyObject *resultobj = 0; | |
32189 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32190 | void *argp1 = 0 ; | |
32191 | int res1 = 0 ; | |
32192 | PyObject *swig_obj[1] ; | |
32193 | ||
32194 | if (!args) SWIG_fail; | |
32195 | swig_obj[0] = args; | |
32196 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32197 | if (!SWIG_IsOK(res1)) { | |
32198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32199 | } | |
32200 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32201 | { | |
32202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32203 | (arg1)->RemoveAll(); | |
32204 | wxPyEndAllowThreads(__tstate); | |
32205 | if (PyErr_Occurred()) SWIG_fail; | |
32206 | } | |
32207 | resultobj = SWIG_Py_Void(); | |
32208 | return resultobj; | |
32209 | fail: | |
32210 | return NULL; | |
32211 | } | |
32212 | ||
32213 | ||
32214 | SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32215 | PyObject *resultobj = 0; | |
32216 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32217 | int result; | |
32218 | void *argp1 = 0 ; | |
32219 | int res1 = 0 ; | |
32220 | PyObject *swig_obj[1] ; | |
32221 | ||
32222 | if (!args) SWIG_fail; | |
32223 | swig_obj[0] = args; | |
32224 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32225 | if (!SWIG_IsOK(res1)) { | |
32226 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32227 | } | |
32228 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32229 | { | |
32230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32231 | result = (int)(arg1)->GetLen(); | |
32232 | wxPyEndAllowThreads(__tstate); | |
32233 | if (PyErr_Occurred()) SWIG_fail; | |
32234 | } | |
32235 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32236 | return resultobj; | |
32237 | fail: | |
32238 | return NULL; | |
32239 | } | |
32240 | ||
32241 | ||
32242 | SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32243 | PyObject *resultobj = 0; | |
32244 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32245 | int arg2 ; | |
32246 | void *argp1 = 0 ; | |
32247 | int res1 = 0 ; | |
32248 | int val2 ; | |
32249 | int ecode2 = 0 ; | |
32250 | PyObject * obj0 = 0 ; | |
32251 | PyObject * obj1 = 0 ; | |
32252 | char * kwnames[] = { | |
32253 | (char *) "self",(char *) "id", NULL | |
32254 | }; | |
32255 | ||
32256 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
32257 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32258 | if (!SWIG_IsOK(res1)) { | |
32259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32260 | } | |
32261 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32262 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32263 | if (!SWIG_IsOK(ecode2)) { | |
32264 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'"); | |
32265 | } | |
32266 | arg2 = static_cast< int >(val2); | |
32267 | { | |
32268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32269 | (arg1)->SetId(arg2); | |
32270 | wxPyEndAllowThreads(__tstate); | |
32271 | if (PyErr_Occurred()) SWIG_fail; | |
32272 | } | |
32273 | resultobj = SWIG_Py_Void(); | |
32274 | return resultobj; | |
32275 | fail: | |
32276 | return NULL; | |
32277 | } | |
32278 | ||
32279 | ||
32280 | SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32281 | PyObject *resultobj = 0; | |
32282 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32283 | int arg2 ; | |
32284 | void *argp1 = 0 ; | |
32285 | int res1 = 0 ; | |
32286 | int val2 ; | |
32287 | int ecode2 = 0 ; | |
32288 | PyObject * obj0 = 0 ; | |
32289 | PyObject * obj1 = 0 ; | |
32290 | char * kwnames[] = { | |
32291 | (char *) "self",(char *) "id", NULL | |
32292 | }; | |
32293 | ||
32294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail; | |
32295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32296 | if (!SWIG_IsOK(res1)) { | |
32297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32298 | } | |
32299 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32300 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32301 | if (!SWIG_IsOK(ecode2)) { | |
32302 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'"); | |
32303 | } | |
32304 | arg2 = static_cast< int >(val2); | |
32305 | { | |
32306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32307 | (arg1)->ClearId(arg2); | |
32308 | wxPyEndAllowThreads(__tstate); | |
32309 | if (PyErr_Occurred()) SWIG_fail; | |
32310 | } | |
32311 | resultobj = SWIG_Py_Void(); | |
32312 | return resultobj; | |
32313 | fail: | |
32314 | return NULL; | |
32315 | } | |
32316 | ||
32317 | ||
32318 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32319 | PyObject *resultobj = 0; | |
32320 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32321 | int arg2 ; | |
32322 | void *argp1 = 0 ; | |
32323 | int res1 = 0 ; | |
32324 | int val2 ; | |
32325 | int ecode2 = 0 ; | |
32326 | PyObject * obj0 = 0 ; | |
32327 | PyObject * obj1 = 0 ; | |
32328 | char * kwnames[] = { | |
32329 | (char *) "self",(char *) "id", NULL | |
32330 | }; | |
32331 | ||
32332 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail; | |
32333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32334 | if (!SWIG_IsOK(res1)) { | |
32335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32336 | } | |
32337 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32338 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32339 | if (!SWIG_IsOK(ecode2)) { | |
32340 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'"); | |
32341 | } | |
32342 | arg2 = static_cast< int >(val2); | |
32343 | { | |
32344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32345 | (arg1)->RemoveId(arg2); | |
32346 | wxPyEndAllowThreads(__tstate); | |
32347 | if (PyErr_Occurred()) SWIG_fail; | |
32348 | } | |
32349 | resultobj = SWIG_Py_Void(); | |
32350 | return resultobj; | |
32351 | fail: | |
32352 | return NULL; | |
32353 | } | |
32354 | ||
32355 | ||
32356 | SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32357 | PyObject *resultobj = 0; | |
32358 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32359 | int arg2 ; | |
32360 | int arg3 ; | |
32361 | int arg4 ; | |
32362 | void *argp1 = 0 ; | |
32363 | int res1 = 0 ; | |
32364 | int val2 ; | |
32365 | int ecode2 = 0 ; | |
32366 | int val3 ; | |
32367 | int ecode3 = 0 ; | |
32368 | int val4 ; | |
32369 | int ecode4 = 0 ; | |
32370 | PyObject * obj0 = 0 ; | |
32371 | PyObject * obj1 = 0 ; | |
32372 | PyObject * obj2 = 0 ; | |
32373 | PyObject * obj3 = 0 ; | |
32374 | char * kwnames[] = { | |
32375 | (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL | |
32376 | }; | |
32377 | ||
32378 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32379 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32380 | if (!SWIG_IsOK(res1)) { | |
32381 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32382 | } | |
32383 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32384 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32385 | if (!SWIG_IsOK(ecode2)) { | |
32386 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'"); | |
32387 | } | |
32388 | arg2 = static_cast< int >(val2); | |
32389 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32390 | if (!SWIG_IsOK(ecode3)) { | |
32391 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'"); | |
32392 | } | |
32393 | arg3 = static_cast< int >(val3); | |
32394 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32395 | if (!SWIG_IsOK(ecode4)) { | |
32396 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'"); | |
32397 | } | |
32398 | arg4 = static_cast< int >(val4); | |
32399 | { | |
32400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32401 | (arg1)->TranslateId(arg2,arg3,arg4); | |
32402 | wxPyEndAllowThreads(__tstate); | |
32403 | if (PyErr_Occurred()) SWIG_fail; | |
32404 | } | |
32405 | resultobj = SWIG_Py_Void(); | |
32406 | return resultobj; | |
32407 | fail: | |
32408 | return NULL; | |
32409 | } | |
32410 | ||
32411 | ||
72ef6efb RD |
32412 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32413 | PyObject *resultobj = 0; | |
32414 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32415 | int arg2 ; | |
32416 | bool arg3 = (bool) true ; | |
32417 | void *argp1 = 0 ; | |
32418 | int res1 = 0 ; | |
32419 | int val2 ; | |
32420 | int ecode2 = 0 ; | |
32421 | bool val3 ; | |
32422 | int ecode3 = 0 ; | |
32423 | PyObject * obj0 = 0 ; | |
32424 | PyObject * obj1 = 0 ; | |
32425 | PyObject * obj2 = 0 ; | |
32426 | char * kwnames[] = { | |
32427 | (char *) "self",(char *) "id",(char *) "greyout", NULL | |
32428 | }; | |
32429 | ||
32430 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32431 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32432 | if (!SWIG_IsOK(res1)) { | |
32433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32434 | } | |
32435 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32436 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32437 | if (!SWIG_IsOK(ecode2)) { | |
32438 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
32439 | } | |
32440 | arg2 = static_cast< int >(val2); | |
32441 | if (obj2) { | |
32442 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
32443 | if (!SWIG_IsOK(ecode3)) { | |
32444 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'"); | |
32445 | } | |
32446 | arg3 = static_cast< bool >(val3); | |
32447 | } | |
32448 | { | |
32449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32450 | (arg1)->SetIdGreyedOut(arg2,arg3); | |
32451 | wxPyEndAllowThreads(__tstate); | |
32452 | if (PyErr_Occurred()) SWIG_fail; | |
32453 | } | |
32454 | resultobj = SWIG_Py_Void(); | |
32455 | return resultobj; | |
32456 | fail: | |
32457 | return NULL; | |
32458 | } | |
32459 | ||
32460 | ||
32461 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32462 | PyObject *resultobj = 0; | |
32463 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32464 | int arg2 ; | |
32465 | bool result; | |
32466 | void *argp1 = 0 ; | |
32467 | int res1 = 0 ; | |
32468 | int val2 ; | |
32469 | int ecode2 = 0 ; | |
32470 | PyObject * obj0 = 0 ; | |
32471 | PyObject * obj1 = 0 ; | |
32472 | char * kwnames[] = { | |
32473 | (char *) "self",(char *) "id", NULL | |
32474 | }; | |
32475 | ||
32476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail; | |
32477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32478 | if (!SWIG_IsOK(res1)) { | |
32479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32480 | } | |
32481 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32482 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32483 | if (!SWIG_IsOK(ecode2)) { | |
32484 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
32485 | } | |
32486 | arg2 = static_cast< int >(val2); | |
32487 | { | |
32488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32489 | result = (bool)(arg1)->GetIdGreyedOut(arg2); | |
32490 | wxPyEndAllowThreads(__tstate); | |
32491 | if (PyErr_Occurred()) SWIG_fail; | |
32492 | } | |
32493 | { | |
32494 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32495 | } | |
32496 | return resultobj; | |
32497 | fail: | |
32498 | return NULL; | |
32499 | } | |
32500 | ||
32501 | ||
32502 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32503 | PyObject *resultobj = 0; | |
32504 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32505 | int arg2 ; | |
32506 | int arg3 ; | |
32507 | int arg4 = (int) 1 ; | |
32508 | wxColor const &arg5_defvalue = *wxWHITE ; | |
32509 | wxColor *arg5 = (wxColor *) &arg5_defvalue ; | |
32510 | PyObject *result = 0 ; | |
32511 | void *argp1 = 0 ; | |
32512 | int res1 = 0 ; | |
32513 | int val2 ; | |
32514 | int ecode2 = 0 ; | |
32515 | int val3 ; | |
32516 | int ecode3 = 0 ; | |
32517 | int val4 ; | |
32518 | int ecode4 = 0 ; | |
32519 | void *argp5 = 0 ; | |
32520 | int res5 = 0 ; | |
32521 | PyObject * obj0 = 0 ; | |
32522 | PyObject * obj1 = 0 ; | |
32523 | PyObject * obj2 = 0 ; | |
32524 | PyObject * obj3 = 0 ; | |
32525 | PyObject * obj4 = 0 ; | |
32526 | char * kwnames[] = { | |
32527 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL | |
32528 | }; | |
32529 | ||
32530 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
32531 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32532 | if (!SWIG_IsOK(res1)) { | |
32533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32534 | } | |
32535 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32536 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32537 | if (!SWIG_IsOK(ecode2)) { | |
32538 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'"); | |
32539 | } | |
32540 | arg2 = static_cast< int >(val2); | |
32541 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32542 | if (!SWIG_IsOK(ecode3)) { | |
32543 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'"); | |
32544 | } | |
32545 | arg3 = static_cast< int >(val3); | |
32546 | if (obj3) { | |
32547 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32548 | if (!SWIG_IsOK(ecode4)) { | |
32549 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'"); | |
32550 | } | |
32551 | arg4 = static_cast< int >(val4); | |
32552 | } | |
32553 | if (obj4) { | |
32554 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0); | |
32555 | if (!SWIG_IsOK(res5)) { | |
32556 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
32557 | } | |
32558 | if (!argp5) { | |
32559 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
32560 | } | |
32561 | arg5 = reinterpret_cast< wxColor * >(argp5); | |
32562 | } | |
32563 | { | |
32564 | result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5); | |
32565 | if (PyErr_Occurred()) SWIG_fail; | |
32566 | } | |
32567 | resultobj = result; | |
32568 | return resultobj; | |
32569 | fail: | |
32570 | return NULL; | |
32571 | } | |
32572 | ||
32573 | ||
32574 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32575 | PyObject *resultobj = 0; | |
32576 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32577 | int arg2 ; | |
32578 | int arg3 ; | |
32579 | PyObject *result = 0 ; | |
32580 | void *argp1 = 0 ; | |
32581 | int res1 = 0 ; | |
32582 | int val2 ; | |
32583 | int ecode2 = 0 ; | |
32584 | int val3 ; | |
32585 | int ecode3 = 0 ; | |
32586 | PyObject * obj0 = 0 ; | |
32587 | PyObject * obj1 = 0 ; | |
32588 | PyObject * obj2 = 0 ; | |
32589 | char * kwnames[] = { | |
32590 | (char *) "self",(char *) "x",(char *) "y", NULL | |
32591 | }; | |
32592 | ||
32593 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32594 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32595 | if (!SWIG_IsOK(res1)) { | |
32596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32597 | } | |
32598 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32599 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32600 | if (!SWIG_IsOK(ecode2)) { | |
32601 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'"); | |
32602 | } | |
32603 | arg2 = static_cast< int >(val2); | |
32604 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32605 | if (!SWIG_IsOK(ecode3)) { | |
32606 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'"); | |
32607 | } | |
32608 | arg3 = static_cast< int >(val3); | |
32609 | { | |
32610 | result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3); | |
32611 | if (PyErr_Occurred()) SWIG_fail; | |
32612 | } | |
32613 | resultobj = result; | |
32614 | return resultobj; | |
32615 | fail: | |
32616 | return NULL; | |
32617 | } | |
32618 | ||
32619 | ||
27e45892 RD |
32620 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32621 | PyObject *resultobj = 0; | |
32622 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32623 | int arg2 ; | |
32624 | wxDC *arg3 = (wxDC *) 0 ; | |
32625 | void *argp1 = 0 ; | |
32626 | int res1 = 0 ; | |
32627 | int val2 ; | |
32628 | int ecode2 = 0 ; | |
32629 | void *argp3 = 0 ; | |
32630 | int res3 = 0 ; | |
32631 | PyObject * obj0 = 0 ; | |
32632 | PyObject * obj1 = 0 ; | |
32633 | PyObject * obj2 = 0 ; | |
32634 | char * kwnames[] = { | |
32635 | (char *) "self",(char *) "id",(char *) "dc", NULL | |
32636 | }; | |
32637 | ||
32638 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32639 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32640 | if (!SWIG_IsOK(res1)) { | |
32641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32642 | } | |
32643 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32644 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32645 | if (!SWIG_IsOK(ecode2)) { | |
32646 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'"); | |
32647 | } | |
32648 | arg2 = static_cast< int >(val2); | |
32649 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 ); | |
32650 | if (!SWIG_IsOK(res3)) { | |
32651 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'"); | |
32652 | } | |
32653 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
32654 | { | |
32655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32656 | (arg1)->DrawIdToDC(arg2,arg3); | |
32657 | wxPyEndAllowThreads(__tstate); | |
32658 | if (PyErr_Occurred()) SWIG_fail; | |
32659 | } | |
32660 | resultobj = SWIG_Py_Void(); | |
32661 | return resultobj; | |
32662 | fail: | |
32663 | return NULL; | |
32664 | } | |
32665 | ||
32666 | ||
32667 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32668 | PyObject *resultobj = 0; | |
32669 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32670 | int arg2 ; | |
32671 | wxRect *arg3 = 0 ; | |
32672 | void *argp1 = 0 ; | |
32673 | int res1 = 0 ; | |
32674 | int val2 ; | |
32675 | int ecode2 = 0 ; | |
32676 | wxRect temp3 ; | |
32677 | PyObject * obj0 = 0 ; | |
32678 | PyObject * obj1 = 0 ; | |
32679 | PyObject * obj2 = 0 ; | |
32680 | char * kwnames[] = { | |
32681 | (char *) "self",(char *) "id",(char *) "rect", NULL | |
32682 | }; | |
32683 | ||
32684 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32685 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32686 | if (!SWIG_IsOK(res1)) { | |
32687 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32688 | } | |
32689 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32690 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32691 | if (!SWIG_IsOK(ecode2)) { | |
32692 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
32693 | } | |
32694 | arg2 = static_cast< int >(val2); | |
32695 | { | |
32696 | arg3 = &temp3; | |
32697 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
32698 | } | |
32699 | { | |
32700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32701 | (arg1)->SetIdBounds(arg2,*arg3); | |
32702 | wxPyEndAllowThreads(__tstate); | |
32703 | if (PyErr_Occurred()) SWIG_fail; | |
32704 | } | |
32705 | resultobj = SWIG_Py_Void(); | |
32706 | return resultobj; | |
32707 | fail: | |
32708 | return NULL; | |
32709 | } | |
32710 | ||
32711 | ||
32712 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32713 | PyObject *resultobj = 0; | |
32714 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32715 | int arg2 ; | |
32716 | wxRect result; | |
32717 | void *argp1 = 0 ; | |
32718 | int res1 = 0 ; | |
32719 | int val2 ; | |
32720 | int ecode2 = 0 ; | |
32721 | PyObject * obj0 = 0 ; | |
32722 | PyObject * obj1 = 0 ; | |
32723 | char * kwnames[] = { | |
32724 | (char *) "self",(char *) "id", NULL | |
32725 | }; | |
32726 | ||
32727 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail; | |
32728 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32729 | if (!SWIG_IsOK(res1)) { | |
32730 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32731 | } | |
32732 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32733 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32734 | if (!SWIG_IsOK(ecode2)) { | |
32735 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
32736 | } | |
32737 | arg2 = static_cast< int >(val2); | |
32738 | { | |
32739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32740 | result = wxPseudoDC_GetIdBounds(arg1,arg2); | |
32741 | wxPyEndAllowThreads(__tstate); | |
32742 | if (PyErr_Occurred()) SWIG_fail; | |
32743 | } | |
32744 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
32745 | return resultobj; | |
32746 | fail: | |
32747 | return NULL; | |
32748 | } | |
32749 | ||
32750 | ||
32751 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32752 | PyObject *resultobj = 0; | |
32753 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32754 | wxDC *arg2 = (wxDC *) 0 ; | |
32755 | wxRect *arg3 = 0 ; | |
32756 | void *argp1 = 0 ; | |
32757 | int res1 = 0 ; | |
32758 | void *argp2 = 0 ; | |
32759 | int res2 = 0 ; | |
32760 | wxRect temp3 ; | |
32761 | PyObject * obj0 = 0 ; | |
32762 | PyObject * obj1 = 0 ; | |
32763 | PyObject * obj2 = 0 ; | |
32764 | char * kwnames[] = { | |
32765 | (char *) "self",(char *) "dc",(char *) "rect", NULL | |
32766 | }; | |
32767 | ||
32768 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32770 | if (!SWIG_IsOK(res1)) { | |
32771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32772 | } | |
32773 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32774 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
32775 | if (!SWIG_IsOK(res2)) { | |
32776 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'"); | |
32777 | } | |
32778 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
32779 | { | |
32780 | arg3 = &temp3; | |
32781 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
32782 | } | |
32783 | { | |
32784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32785 | (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3); | |
32786 | wxPyEndAllowThreads(__tstate); | |
32787 | if (PyErr_Occurred()) SWIG_fail; | |
32788 | } | |
32789 | resultobj = SWIG_Py_Void(); | |
32790 | return resultobj; | |
32791 | fail: | |
32792 | return NULL; | |
32793 | } | |
32794 | ||
32795 | ||
32796 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32797 | PyObject *resultobj = 0; | |
32798 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32799 | wxDC *arg2 = (wxDC *) 0 ; | |
32800 | wxRegion *arg3 = 0 ; | |
32801 | void *argp1 = 0 ; | |
32802 | int res1 = 0 ; | |
32803 | void *argp2 = 0 ; | |
32804 | int res2 = 0 ; | |
32805 | void *argp3 = 0 ; | |
32806 | int res3 = 0 ; | |
32807 | PyObject * obj0 = 0 ; | |
32808 | PyObject * obj1 = 0 ; | |
32809 | PyObject * obj2 = 0 ; | |
32810 | char * kwnames[] = { | |
32811 | (char *) "self",(char *) "dc",(char *) "region", NULL | |
32812 | }; | |
32813 | ||
32814 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32815 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32816 | if (!SWIG_IsOK(res1)) { | |
32817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32818 | } | |
32819 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32820 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
32821 | if (!SWIG_IsOK(res2)) { | |
32822 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'"); | |
32823 | } | |
32824 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
32825 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0); | |
32826 | if (!SWIG_IsOK(res3)) { | |
32827 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
32828 | } | |
32829 | if (!argp3) { | |
32830 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
32831 | } | |
32832 | arg3 = reinterpret_cast< wxRegion * >(argp3); | |
32833 | { | |
32834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32835 | (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3); | |
32836 | wxPyEndAllowThreads(__tstate); | |
32837 | if (PyErr_Occurred()) SWIG_fail; | |
32838 | } | |
32839 | resultobj = SWIG_Py_Void(); | |
32840 | return resultobj; | |
32841 | fail: | |
32842 | return NULL; | |
32843 | } | |
32844 | ||
32845 | ||
32846 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32847 | PyObject *resultobj = 0; | |
32848 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32849 | wxDC *arg2 = (wxDC *) 0 ; | |
32850 | void *argp1 = 0 ; | |
32851 | int res1 = 0 ; | |
32852 | void *argp2 = 0 ; | |
32853 | int res2 = 0 ; | |
32854 | PyObject * obj0 = 0 ; | |
32855 | PyObject * obj1 = 0 ; | |
32856 | char * kwnames[] = { | |
32857 | (char *) "self",(char *) "dc", NULL | |
32858 | }; | |
32859 | ||
32860 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
32861 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32862 | if (!SWIG_IsOK(res1)) { | |
32863 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32864 | } | |
32865 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32866 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
32867 | if (!SWIG_IsOK(res2)) { | |
32868 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
32869 | } | |
32870 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
32871 | { | |
32872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32873 | (arg1)->DrawToDC(arg2); | |
32874 | wxPyEndAllowThreads(__tstate); | |
32875 | if (PyErr_Occurred()) SWIG_fail; | |
32876 | } | |
32877 | resultobj = SWIG_Py_Void(); | |
32878 | return resultobj; | |
32879 | fail: | |
32880 | return NULL; | |
32881 | } | |
32882 | ||
32883 | ||
32884 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32885 | PyObject *resultobj = 0; | |
32886 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32887 | int arg2 ; | |
32888 | int arg3 ; | |
32889 | wxColour *arg4 = 0 ; | |
32890 | int arg5 = (int) wxFLOOD_SURFACE ; | |
32891 | void *argp1 = 0 ; | |
32892 | int res1 = 0 ; | |
32893 | int val2 ; | |
32894 | int ecode2 = 0 ; | |
32895 | int val3 ; | |
32896 | int ecode3 = 0 ; | |
32897 | wxColour temp4 ; | |
32898 | int val5 ; | |
32899 | int ecode5 = 0 ; | |
32900 | PyObject * obj0 = 0 ; | |
32901 | PyObject * obj1 = 0 ; | |
32902 | PyObject * obj2 = 0 ; | |
32903 | PyObject * obj3 = 0 ; | |
32904 | PyObject * obj4 = 0 ; | |
32905 | char * kwnames[] = { | |
32906 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
32907 | }; | |
32908 | ||
32909 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
32910 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32911 | if (!SWIG_IsOK(res1)) { | |
32912 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32913 | } | |
32914 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32915 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32916 | if (!SWIG_IsOK(ecode2)) { | |
32917 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
32918 | } | |
32919 | arg2 = static_cast< int >(val2); | |
32920 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
32921 | if (!SWIG_IsOK(ecode3)) { | |
32922 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
32923 | } | |
32924 | arg3 = static_cast< int >(val3); | |
32925 | { | |
32926 | arg4 = &temp4; | |
32927 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
32928 | } | |
32929 | if (obj4) { | |
32930 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32931 | if (!SWIG_IsOK(ecode5)) { | |
32932 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
32933 | } | |
32934 | arg5 = static_cast< int >(val5); | |
32935 | } | |
32936 | { | |
32937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32938 | (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
32939 | wxPyEndAllowThreads(__tstate); | |
32940 | if (PyErr_Occurred()) SWIG_fail; | |
32941 | } | |
32942 | resultobj = SWIG_Py_Void(); | |
32943 | return resultobj; | |
32944 | fail: | |
32945 | return NULL; | |
32946 | } | |
32947 | ||
32948 | ||
32949 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32950 | PyObject *resultobj = 0; | |
32951 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
32952 | wxPoint *arg2 = 0 ; | |
32953 | wxColour *arg3 = 0 ; | |
32954 | int arg4 = (int) wxFLOOD_SURFACE ; | |
32955 | void *argp1 = 0 ; | |
32956 | int res1 = 0 ; | |
32957 | wxPoint temp2 ; | |
32958 | wxColour temp3 ; | |
32959 | int val4 ; | |
32960 | int ecode4 = 0 ; | |
32961 | PyObject * obj0 = 0 ; | |
32962 | PyObject * obj1 = 0 ; | |
32963 | PyObject * obj2 = 0 ; | |
32964 | PyObject * obj3 = 0 ; | |
32965 | char * kwnames[] = { | |
32966 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
32967 | }; | |
32968 | ||
32969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32970 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
32971 | if (!SWIG_IsOK(res1)) { | |
32972 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
32973 | } | |
32974 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
32975 | { | |
32976 | arg2 = &temp2; | |
32977 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
32978 | } | |
32979 | { | |
32980 | arg3 = &temp3; | |
32981 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
32982 | } | |
32983 | if (obj3) { | |
32984 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32985 | if (!SWIG_IsOK(ecode4)) { | |
32986 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
32987 | } | |
32988 | arg4 = static_cast< int >(val4); | |
32989 | } | |
32990 | { | |
32991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32992 | (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
32993 | wxPyEndAllowThreads(__tstate); | |
32994 | if (PyErr_Occurred()) SWIG_fail; | |
32995 | } | |
32996 | resultobj = SWIG_Py_Void(); | |
32997 | return resultobj; | |
32998 | fail: | |
32999 | return NULL; | |
33000 | } | |
33001 | ||
33002 | ||
33003 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33004 | PyObject *resultobj = 0; | |
33005 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33006 | int arg2 ; | |
33007 | int arg3 ; | |
33008 | int arg4 ; | |
33009 | int arg5 ; | |
33010 | void *argp1 = 0 ; | |
33011 | int res1 = 0 ; | |
33012 | int val2 ; | |
33013 | int ecode2 = 0 ; | |
33014 | int val3 ; | |
33015 | int ecode3 = 0 ; | |
33016 | int val4 ; | |
33017 | int ecode4 = 0 ; | |
33018 | int val5 ; | |
33019 | int ecode5 = 0 ; | |
33020 | PyObject * obj0 = 0 ; | |
33021 | PyObject * obj1 = 0 ; | |
33022 | PyObject * obj2 = 0 ; | |
33023 | PyObject * obj3 = 0 ; | |
33024 | PyObject * obj4 = 0 ; | |
33025 | char * kwnames[] = { | |
33026 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
33027 | }; | |
33028 | ||
33029 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
33030 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33031 | if (!SWIG_IsOK(res1)) { | |
33032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33033 | } | |
33034 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33035 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33036 | if (!SWIG_IsOK(ecode2)) { | |
33037 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
33038 | } | |
33039 | arg2 = static_cast< int >(val2); | |
33040 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33041 | if (!SWIG_IsOK(ecode3)) { | |
33042 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
33043 | } | |
33044 | arg3 = static_cast< int >(val3); | |
33045 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33046 | if (!SWIG_IsOK(ecode4)) { | |
33047 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
33048 | } | |
33049 | arg4 = static_cast< int >(val4); | |
33050 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33051 | if (!SWIG_IsOK(ecode5)) { | |
33052 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
33053 | } | |
33054 | arg5 = static_cast< int >(val5); | |
33055 | { | |
33056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33057 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
33058 | wxPyEndAllowThreads(__tstate); | |
33059 | if (PyErr_Occurred()) SWIG_fail; | |
33060 | } | |
33061 | resultobj = SWIG_Py_Void(); | |
33062 | return resultobj; | |
33063 | fail: | |
33064 | return NULL; | |
33065 | } | |
33066 | ||
33067 | ||
33068 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33069 | PyObject *resultobj = 0; | |
33070 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33071 | wxPoint *arg2 = 0 ; | |
33072 | wxPoint *arg3 = 0 ; | |
33073 | void *argp1 = 0 ; | |
33074 | int res1 = 0 ; | |
33075 | wxPoint temp2 ; | |
33076 | wxPoint temp3 ; | |
33077 | PyObject * obj0 = 0 ; | |
33078 | PyObject * obj1 = 0 ; | |
33079 | PyObject * obj2 = 0 ; | |
33080 | char * kwnames[] = { | |
33081 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
33082 | }; | |
33083 | ||
33084 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33085 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33086 | if (!SWIG_IsOK(res1)) { | |
33087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33088 | } | |
33089 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33090 | { | |
33091 | arg2 = &temp2; | |
33092 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33093 | } | |
33094 | { | |
33095 | arg3 = &temp3; | |
33096 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33097 | } | |
33098 | { | |
33099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33100 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
33101 | wxPyEndAllowThreads(__tstate); | |
33102 | if (PyErr_Occurred()) SWIG_fail; | |
33103 | } | |
33104 | resultobj = SWIG_Py_Void(); | |
33105 | return resultobj; | |
33106 | fail: | |
33107 | return NULL; | |
33108 | } | |
33109 | ||
33110 | ||
33111 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33112 | PyObject *resultobj = 0; | |
33113 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33114 | int arg2 ; | |
33115 | int arg3 ; | |
33116 | void *argp1 = 0 ; | |
33117 | int res1 = 0 ; | |
33118 | int val2 ; | |
33119 | int ecode2 = 0 ; | |
33120 | int val3 ; | |
33121 | int ecode3 = 0 ; | |
33122 | PyObject * obj0 = 0 ; | |
33123 | PyObject * obj1 = 0 ; | |
33124 | PyObject * obj2 = 0 ; | |
33125 | char * kwnames[] = { | |
33126 | (char *) "self",(char *) "x",(char *) "y", NULL | |
33127 | }; | |
33128 | ||
33129 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33130 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33131 | if (!SWIG_IsOK(res1)) { | |
33132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33133 | } | |
33134 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33135 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33136 | if (!SWIG_IsOK(ecode2)) { | |
33137 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
33138 | } | |
33139 | arg2 = static_cast< int >(val2); | |
33140 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33141 | if (!SWIG_IsOK(ecode3)) { | |
33142 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
33143 | } | |
33144 | arg3 = static_cast< int >(val3); | |
33145 | { | |
33146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33147 | (arg1)->CrossHair(arg2,arg3); | |
33148 | wxPyEndAllowThreads(__tstate); | |
33149 | if (PyErr_Occurred()) SWIG_fail; | |
33150 | } | |
33151 | resultobj = SWIG_Py_Void(); | |
33152 | return resultobj; | |
33153 | fail: | |
33154 | return NULL; | |
33155 | } | |
33156 | ||
33157 | ||
33158 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33159 | PyObject *resultobj = 0; | |
33160 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33161 | wxPoint *arg2 = 0 ; | |
33162 | void *argp1 = 0 ; | |
33163 | int res1 = 0 ; | |
33164 | wxPoint temp2 ; | |
33165 | PyObject * obj0 = 0 ; | |
33166 | PyObject * obj1 = 0 ; | |
33167 | char * kwnames[] = { | |
33168 | (char *) "self",(char *) "pt", NULL | |
33169 | }; | |
33170 | ||
33171 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
33172 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33173 | if (!SWIG_IsOK(res1)) { | |
33174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33175 | } | |
33176 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33177 | { | |
33178 | arg2 = &temp2; | |
33179 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33180 | } | |
33181 | { | |
33182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33183 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
33184 | wxPyEndAllowThreads(__tstate); | |
33185 | if (PyErr_Occurred()) SWIG_fail; | |
33186 | } | |
33187 | resultobj = SWIG_Py_Void(); | |
33188 | return resultobj; | |
33189 | fail: | |
33190 | return NULL; | |
33191 | } | |
33192 | ||
33193 | ||
33194 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33195 | PyObject *resultobj = 0; | |
33196 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33197 | int arg2 ; | |
33198 | int arg3 ; | |
33199 | int arg4 ; | |
33200 | int arg5 ; | |
33201 | int arg6 ; | |
33202 | int arg7 ; | |
33203 | void *argp1 = 0 ; | |
33204 | int res1 = 0 ; | |
33205 | int val2 ; | |
33206 | int ecode2 = 0 ; | |
33207 | int val3 ; | |
33208 | int ecode3 = 0 ; | |
33209 | int val4 ; | |
33210 | int ecode4 = 0 ; | |
33211 | int val5 ; | |
33212 | int ecode5 = 0 ; | |
33213 | int val6 ; | |
33214 | int ecode6 = 0 ; | |
33215 | int val7 ; | |
33216 | int ecode7 = 0 ; | |
33217 | PyObject * obj0 = 0 ; | |
33218 | PyObject * obj1 = 0 ; | |
33219 | PyObject * obj2 = 0 ; | |
33220 | PyObject * obj3 = 0 ; | |
33221 | PyObject * obj4 = 0 ; | |
33222 | PyObject * obj5 = 0 ; | |
33223 | PyObject * obj6 = 0 ; | |
33224 | char * kwnames[] = { | |
33225 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
33226 | }; | |
33227 | ||
33228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
33229 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33230 | if (!SWIG_IsOK(res1)) { | |
33231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33232 | } | |
33233 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33234 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33235 | if (!SWIG_IsOK(ecode2)) { | |
33236 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
33237 | } | |
33238 | arg2 = static_cast< int >(val2); | |
33239 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33240 | if (!SWIG_IsOK(ecode3)) { | |
33241 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
33242 | } | |
33243 | arg3 = static_cast< int >(val3); | |
33244 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33245 | if (!SWIG_IsOK(ecode4)) { | |
33246 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
33247 | } | |
33248 | arg4 = static_cast< int >(val4); | |
33249 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33250 | if (!SWIG_IsOK(ecode5)) { | |
33251 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
33252 | } | |
33253 | arg5 = static_cast< int >(val5); | |
33254 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
33255 | if (!SWIG_IsOK(ecode6)) { | |
33256 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
33257 | } | |
33258 | arg6 = static_cast< int >(val6); | |
33259 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
33260 | if (!SWIG_IsOK(ecode7)) { | |
33261 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
33262 | } | |
33263 | arg7 = static_cast< int >(val7); | |
33264 | { | |
33265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33266 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
33267 | wxPyEndAllowThreads(__tstate); | |
33268 | if (PyErr_Occurred()) SWIG_fail; | |
33269 | } | |
33270 | resultobj = SWIG_Py_Void(); | |
33271 | return resultobj; | |
33272 | fail: | |
33273 | return NULL; | |
33274 | } | |
33275 | ||
33276 | ||
33277 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33278 | PyObject *resultobj = 0; | |
33279 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33280 | wxPoint *arg2 = 0 ; | |
33281 | wxPoint *arg3 = 0 ; | |
33282 | wxPoint *arg4 = 0 ; | |
33283 | void *argp1 = 0 ; | |
33284 | int res1 = 0 ; | |
33285 | wxPoint temp2 ; | |
33286 | wxPoint temp3 ; | |
33287 | wxPoint temp4 ; | |
33288 | PyObject * obj0 = 0 ; | |
33289 | PyObject * obj1 = 0 ; | |
33290 | PyObject * obj2 = 0 ; | |
33291 | PyObject * obj3 = 0 ; | |
33292 | char * kwnames[] = { | |
33293 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
33294 | }; | |
33295 | ||
33296 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33297 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33298 | if (!SWIG_IsOK(res1)) { | |
33299 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33300 | } | |
33301 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33302 | { | |
33303 | arg2 = &temp2; | |
33304 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33305 | } | |
33306 | { | |
33307 | arg3 = &temp3; | |
33308 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
33309 | } | |
33310 | { | |
33311 | arg4 = &temp4; | |
33312 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
33313 | } | |
33314 | { | |
33315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33316 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
33317 | wxPyEndAllowThreads(__tstate); | |
33318 | if (PyErr_Occurred()) SWIG_fail; | |
33319 | } | |
33320 | resultobj = SWIG_Py_Void(); | |
33321 | return resultobj; | |
33322 | fail: | |
33323 | return NULL; | |
33324 | } | |
33325 | ||
33326 | ||
33327 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33328 | PyObject *resultobj = 0; | |
33329 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33330 | int arg2 ; | |
33331 | int arg3 ; | |
33332 | int arg4 ; | |
33333 | int arg5 ; | |
33334 | void *argp1 = 0 ; | |
33335 | int res1 = 0 ; | |
33336 | int val2 ; | |
33337 | int ecode2 = 0 ; | |
33338 | int val3 ; | |
33339 | int ecode3 = 0 ; | |
33340 | int val4 ; | |
33341 | int ecode4 = 0 ; | |
33342 | int val5 ; | |
33343 | int ecode5 = 0 ; | |
33344 | PyObject * obj0 = 0 ; | |
33345 | PyObject * obj1 = 0 ; | |
33346 | PyObject * obj2 = 0 ; | |
33347 | PyObject * obj3 = 0 ; | |
33348 | PyObject * obj4 = 0 ; | |
33349 | char * kwnames[] = { | |
33350 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
33351 | }; | |
33352 | ||
33353 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
33354 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33355 | if (!SWIG_IsOK(res1)) { | |
33356 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33357 | } | |
33358 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33359 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33360 | if (!SWIG_IsOK(ecode2)) { | |
33361 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
33362 | } | |
33363 | arg2 = static_cast< int >(val2); | |
33364 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33365 | if (!SWIG_IsOK(ecode3)) { | |
33366 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
33367 | } | |
33368 | arg3 = static_cast< int >(val3); | |
33369 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33370 | if (!SWIG_IsOK(ecode4)) { | |
33371 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
33372 | } | |
33373 | arg4 = static_cast< int >(val4); | |
33374 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33375 | if (!SWIG_IsOK(ecode5)) { | |
33376 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
33377 | } | |
33378 | arg5 = static_cast< int >(val5); | |
33379 | { | |
33380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33381 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
33382 | wxPyEndAllowThreads(__tstate); | |
33383 | if (PyErr_Occurred()) SWIG_fail; | |
33384 | } | |
33385 | resultobj = SWIG_Py_Void(); | |
33386 | return resultobj; | |
33387 | fail: | |
33388 | return NULL; | |
33389 | } | |
33390 | ||
33391 | ||
33392 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33393 | PyObject *resultobj = 0; | |
33394 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33395 | wxRect *arg2 = 0 ; | |
33396 | void *argp1 = 0 ; | |
33397 | int res1 = 0 ; | |
33398 | wxRect temp2 ; | |
33399 | PyObject * obj0 = 0 ; | |
33400 | PyObject * obj1 = 0 ; | |
33401 | char * kwnames[] = { | |
33402 | (char *) "self",(char *) "rect", NULL | |
33403 | }; | |
33404 | ||
33405 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
33406 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33407 | if (!SWIG_IsOK(res1)) { | |
33408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33409 | } | |
33410 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33411 | { | |
33412 | arg2 = &temp2; | |
33413 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
33414 | } | |
33415 | { | |
33416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33417 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
33418 | wxPyEndAllowThreads(__tstate); | |
33419 | if (PyErr_Occurred()) SWIG_fail; | |
33420 | } | |
33421 | resultobj = SWIG_Py_Void(); | |
33422 | return resultobj; | |
33423 | fail: | |
33424 | return NULL; | |
33425 | } | |
33426 | ||
33427 | ||
33428 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33429 | PyObject *resultobj = 0; | |
33430 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33431 | int arg2 ; | |
33432 | int arg3 ; | |
33433 | int arg4 ; | |
33434 | int arg5 ; | |
33435 | double arg6 ; | |
33436 | double arg7 ; | |
33437 | void *argp1 = 0 ; | |
33438 | int res1 = 0 ; | |
33439 | int val2 ; | |
33440 | int ecode2 = 0 ; | |
33441 | int val3 ; | |
33442 | int ecode3 = 0 ; | |
33443 | int val4 ; | |
33444 | int ecode4 = 0 ; | |
33445 | int val5 ; | |
33446 | int ecode5 = 0 ; | |
33447 | double val6 ; | |
33448 | int ecode6 = 0 ; | |
33449 | double val7 ; | |
33450 | int ecode7 = 0 ; | |
33451 | PyObject * obj0 = 0 ; | |
33452 | PyObject * obj1 = 0 ; | |
33453 | PyObject * obj2 = 0 ; | |
33454 | PyObject * obj3 = 0 ; | |
33455 | PyObject * obj4 = 0 ; | |
33456 | PyObject * obj5 = 0 ; | |
33457 | PyObject * obj6 = 0 ; | |
33458 | char * kwnames[] = { | |
33459 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
33460 | }; | |
33461 | ||
33462 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
33463 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33464 | if (!SWIG_IsOK(res1)) { | |
33465 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33466 | } | |
33467 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33468 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33469 | if (!SWIG_IsOK(ecode2)) { | |
33470 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
33471 | } | |
33472 | arg2 = static_cast< int >(val2); | |
33473 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33474 | if (!SWIG_IsOK(ecode3)) { | |
33475 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
33476 | } | |
33477 | arg3 = static_cast< int >(val3); | |
33478 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33479 | if (!SWIG_IsOK(ecode4)) { | |
33480 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
33481 | } | |
33482 | arg4 = static_cast< int >(val4); | |
33483 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33484 | if (!SWIG_IsOK(ecode5)) { | |
33485 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
33486 | } | |
33487 | arg5 = static_cast< int >(val5); | |
33488 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
33489 | if (!SWIG_IsOK(ecode6)) { | |
33490 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
33491 | } | |
33492 | arg6 = static_cast< double >(val6); | |
33493 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
33494 | if (!SWIG_IsOK(ecode7)) { | |
33495 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
33496 | } | |
33497 | arg7 = static_cast< double >(val7); | |
33498 | { | |
33499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33500 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
33501 | wxPyEndAllowThreads(__tstate); | |
33502 | if (PyErr_Occurred()) SWIG_fail; | |
33503 | } | |
33504 | resultobj = SWIG_Py_Void(); | |
33505 | return resultobj; | |
33506 | fail: | |
33507 | return NULL; | |
33508 | } | |
33509 | ||
33510 | ||
33511 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33512 | PyObject *resultobj = 0; | |
33513 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33514 | wxPoint *arg2 = 0 ; | |
33515 | wxSize *arg3 = 0 ; | |
33516 | double arg4 ; | |
33517 | double arg5 ; | |
33518 | void *argp1 = 0 ; | |
33519 | int res1 = 0 ; | |
33520 | wxPoint temp2 ; | |
33521 | wxSize temp3 ; | |
33522 | double val4 ; | |
33523 | int ecode4 = 0 ; | |
33524 | double val5 ; | |
33525 | int ecode5 = 0 ; | |
33526 | PyObject * obj0 = 0 ; | |
33527 | PyObject * obj1 = 0 ; | |
33528 | PyObject * obj2 = 0 ; | |
33529 | PyObject * obj3 = 0 ; | |
33530 | PyObject * obj4 = 0 ; | |
33531 | char * kwnames[] = { | |
33532 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
33533 | }; | |
33534 | ||
33535 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
33536 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33537 | if (!SWIG_IsOK(res1)) { | |
33538 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33539 | } | |
33540 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33541 | { | |
33542 | arg2 = &temp2; | |
33543 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33544 | } | |
33545 | { | |
33546 | arg3 = &temp3; | |
33547 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
33548 | } | |
33549 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
33550 | if (!SWIG_IsOK(ecode4)) { | |
33551 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
33552 | } | |
33553 | arg4 = static_cast< double >(val4); | |
33554 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
33555 | if (!SWIG_IsOK(ecode5)) { | |
33556 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
33557 | } | |
33558 | arg5 = static_cast< double >(val5); | |
33559 | { | |
33560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33561 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
33562 | wxPyEndAllowThreads(__tstate); | |
33563 | if (PyErr_Occurred()) SWIG_fail; | |
33564 | } | |
33565 | resultobj = SWIG_Py_Void(); | |
33566 | return resultobj; | |
33567 | fail: | |
33568 | return NULL; | |
33569 | } | |
33570 | ||
33571 | ||
33572 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33573 | PyObject *resultobj = 0; | |
33574 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33575 | int arg2 ; | |
33576 | int arg3 ; | |
33577 | void *argp1 = 0 ; | |
33578 | int res1 = 0 ; | |
33579 | int val2 ; | |
33580 | int ecode2 = 0 ; | |
33581 | int val3 ; | |
33582 | int ecode3 = 0 ; | |
33583 | PyObject * obj0 = 0 ; | |
33584 | PyObject * obj1 = 0 ; | |
33585 | PyObject * obj2 = 0 ; | |
33586 | char * kwnames[] = { | |
33587 | (char *) "self",(char *) "x",(char *) "y", NULL | |
33588 | }; | |
33589 | ||
33590 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33591 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33592 | if (!SWIG_IsOK(res1)) { | |
33593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33594 | } | |
33595 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33596 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33597 | if (!SWIG_IsOK(ecode2)) { | |
33598 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
33599 | } | |
33600 | arg2 = static_cast< int >(val2); | |
33601 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33602 | if (!SWIG_IsOK(ecode3)) { | |
33603 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
33604 | } | |
33605 | arg3 = static_cast< int >(val3); | |
33606 | { | |
33607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33608 | (arg1)->DrawPoint(arg2,arg3); | |
33609 | wxPyEndAllowThreads(__tstate); | |
33610 | if (PyErr_Occurred()) SWIG_fail; | |
33611 | } | |
33612 | resultobj = SWIG_Py_Void(); | |
33613 | return resultobj; | |
33614 | fail: | |
33615 | return NULL; | |
33616 | } | |
33617 | ||
33618 | ||
33619 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33620 | PyObject *resultobj = 0; | |
33621 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33622 | wxPoint *arg2 = 0 ; | |
33623 | void *argp1 = 0 ; | |
33624 | int res1 = 0 ; | |
33625 | wxPoint temp2 ; | |
33626 | PyObject * obj0 = 0 ; | |
33627 | PyObject * obj1 = 0 ; | |
33628 | char * kwnames[] = { | |
33629 | (char *) "self",(char *) "pt", NULL | |
33630 | }; | |
33631 | ||
33632 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
33633 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33634 | if (!SWIG_IsOK(res1)) { | |
33635 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33636 | } | |
33637 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33638 | { | |
33639 | arg2 = &temp2; | |
33640 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33641 | } | |
33642 | { | |
33643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33644 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
33645 | wxPyEndAllowThreads(__tstate); | |
33646 | if (PyErr_Occurred()) SWIG_fail; | |
33647 | } | |
33648 | resultobj = SWIG_Py_Void(); | |
33649 | return resultobj; | |
33650 | fail: | |
33651 | return NULL; | |
33652 | } | |
33653 | ||
33654 | ||
33655 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33656 | PyObject *resultobj = 0; | |
33657 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33658 | int arg2 ; | |
33659 | int arg3 ; | |
33660 | int arg4 ; | |
33661 | int arg5 ; | |
33662 | void *argp1 = 0 ; | |
33663 | int res1 = 0 ; | |
33664 | int val2 ; | |
33665 | int ecode2 = 0 ; | |
33666 | int val3 ; | |
33667 | int ecode3 = 0 ; | |
33668 | int val4 ; | |
33669 | int ecode4 = 0 ; | |
33670 | int val5 ; | |
33671 | int ecode5 = 0 ; | |
33672 | PyObject * obj0 = 0 ; | |
33673 | PyObject * obj1 = 0 ; | |
33674 | PyObject * obj2 = 0 ; | |
33675 | PyObject * obj3 = 0 ; | |
33676 | PyObject * obj4 = 0 ; | |
33677 | char * kwnames[] = { | |
33678 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
33679 | }; | |
33680 | ||
33681 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
33682 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33683 | if (!SWIG_IsOK(res1)) { | |
33684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33685 | } | |
33686 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33687 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33688 | if (!SWIG_IsOK(ecode2)) { | |
33689 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
33690 | } | |
33691 | arg2 = static_cast< int >(val2); | |
33692 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33693 | if (!SWIG_IsOK(ecode3)) { | |
33694 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
33695 | } | |
33696 | arg3 = static_cast< int >(val3); | |
33697 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33698 | if (!SWIG_IsOK(ecode4)) { | |
33699 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
33700 | } | |
33701 | arg4 = static_cast< int >(val4); | |
33702 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33703 | if (!SWIG_IsOK(ecode5)) { | |
33704 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
33705 | } | |
33706 | arg5 = static_cast< int >(val5); | |
33707 | { | |
33708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33709 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
33710 | wxPyEndAllowThreads(__tstate); | |
33711 | if (PyErr_Occurred()) SWIG_fail; | |
33712 | } | |
33713 | resultobj = SWIG_Py_Void(); | |
33714 | return resultobj; | |
33715 | fail: | |
33716 | return NULL; | |
33717 | } | |
33718 | ||
33719 | ||
33720 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33721 | PyObject *resultobj = 0; | |
33722 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33723 | wxRect *arg2 = 0 ; | |
33724 | void *argp1 = 0 ; | |
33725 | int res1 = 0 ; | |
33726 | wxRect temp2 ; | |
33727 | PyObject * obj0 = 0 ; | |
33728 | PyObject * obj1 = 0 ; | |
33729 | char * kwnames[] = { | |
33730 | (char *) "self",(char *) "rect", NULL | |
33731 | }; | |
33732 | ||
33733 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
33734 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33735 | if (!SWIG_IsOK(res1)) { | |
33736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33737 | } | |
33738 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33739 | { | |
33740 | arg2 = &temp2; | |
33741 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
33742 | } | |
33743 | { | |
33744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33745 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
33746 | wxPyEndAllowThreads(__tstate); | |
33747 | if (PyErr_Occurred()) SWIG_fail; | |
33748 | } | |
33749 | resultobj = SWIG_Py_Void(); | |
33750 | return resultobj; | |
33751 | fail: | |
33752 | return NULL; | |
33753 | } | |
33754 | ||
33755 | ||
33756 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33757 | PyObject *resultobj = 0; | |
33758 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33759 | wxPoint *arg2 = 0 ; | |
33760 | wxSize *arg3 = 0 ; | |
33761 | void *argp1 = 0 ; | |
33762 | int res1 = 0 ; | |
33763 | wxPoint temp2 ; | |
33764 | wxSize temp3 ; | |
33765 | PyObject * obj0 = 0 ; | |
33766 | PyObject * obj1 = 0 ; | |
33767 | PyObject * obj2 = 0 ; | |
33768 | char * kwnames[] = { | |
33769 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
33770 | }; | |
33771 | ||
33772 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33773 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33774 | if (!SWIG_IsOK(res1)) { | |
33775 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33776 | } | |
33777 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33778 | { | |
33779 | arg2 = &temp2; | |
33780 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33781 | } | |
33782 | { | |
33783 | arg3 = &temp3; | |
33784 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
33785 | } | |
33786 | { | |
33787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33788 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
33789 | wxPyEndAllowThreads(__tstate); | |
33790 | if (PyErr_Occurred()) SWIG_fail; | |
33791 | } | |
33792 | resultobj = SWIG_Py_Void(); | |
33793 | return resultobj; | |
33794 | fail: | |
33795 | return NULL; | |
33796 | } | |
33797 | ||
33798 | ||
33799 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33800 | PyObject *resultobj = 0; | |
33801 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33802 | int arg2 ; | |
33803 | int arg3 ; | |
33804 | int arg4 ; | |
33805 | int arg5 ; | |
33806 | double arg6 ; | |
33807 | void *argp1 = 0 ; | |
33808 | int res1 = 0 ; | |
33809 | int val2 ; | |
33810 | int ecode2 = 0 ; | |
33811 | int val3 ; | |
33812 | int ecode3 = 0 ; | |
33813 | int val4 ; | |
33814 | int ecode4 = 0 ; | |
33815 | int val5 ; | |
33816 | int ecode5 = 0 ; | |
33817 | double val6 ; | |
33818 | int ecode6 = 0 ; | |
33819 | PyObject * obj0 = 0 ; | |
33820 | PyObject * obj1 = 0 ; | |
33821 | PyObject * obj2 = 0 ; | |
33822 | PyObject * obj3 = 0 ; | |
33823 | PyObject * obj4 = 0 ; | |
33824 | PyObject * obj5 = 0 ; | |
33825 | char * kwnames[] = { | |
33826 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
33827 | }; | |
33828 | ||
33829 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
33830 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33831 | if (!SWIG_IsOK(res1)) { | |
33832 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33833 | } | |
33834 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33835 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33836 | if (!SWIG_IsOK(ecode2)) { | |
33837 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
33838 | } | |
33839 | arg2 = static_cast< int >(val2); | |
33840 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33841 | if (!SWIG_IsOK(ecode3)) { | |
33842 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
33843 | } | |
33844 | arg3 = static_cast< int >(val3); | |
33845 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33846 | if (!SWIG_IsOK(ecode4)) { | |
33847 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
33848 | } | |
33849 | arg4 = static_cast< int >(val4); | |
33850 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33851 | if (!SWIG_IsOK(ecode5)) { | |
33852 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
33853 | } | |
33854 | arg5 = static_cast< int >(val5); | |
33855 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
33856 | if (!SWIG_IsOK(ecode6)) { | |
33857 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
33858 | } | |
33859 | arg6 = static_cast< double >(val6); | |
33860 | { | |
33861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33862 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
33863 | wxPyEndAllowThreads(__tstate); | |
33864 | if (PyErr_Occurred()) SWIG_fail; | |
33865 | } | |
33866 | resultobj = SWIG_Py_Void(); | |
33867 | return resultobj; | |
33868 | fail: | |
33869 | return NULL; | |
33870 | } | |
33871 | ||
33872 | ||
33873 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33874 | PyObject *resultobj = 0; | |
33875 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33876 | wxRect *arg2 = 0 ; | |
33877 | double arg3 ; | |
33878 | void *argp1 = 0 ; | |
33879 | int res1 = 0 ; | |
33880 | wxRect temp2 ; | |
33881 | double val3 ; | |
33882 | int ecode3 = 0 ; | |
33883 | PyObject * obj0 = 0 ; | |
33884 | PyObject * obj1 = 0 ; | |
33885 | PyObject * obj2 = 0 ; | |
33886 | char * kwnames[] = { | |
33887 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
33888 | }; | |
33889 | ||
33890 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33891 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33892 | if (!SWIG_IsOK(res1)) { | |
33893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33894 | } | |
33895 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33896 | { | |
33897 | arg2 = &temp2; | |
33898 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
33899 | } | |
33900 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
33901 | if (!SWIG_IsOK(ecode3)) { | |
33902 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
33903 | } | |
33904 | arg3 = static_cast< double >(val3); | |
33905 | { | |
33906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33907 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
33908 | wxPyEndAllowThreads(__tstate); | |
33909 | if (PyErr_Occurred()) SWIG_fail; | |
33910 | } | |
33911 | resultobj = SWIG_Py_Void(); | |
33912 | return resultobj; | |
33913 | fail: | |
33914 | return NULL; | |
33915 | } | |
33916 | ||
33917 | ||
33918 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33919 | PyObject *resultobj = 0; | |
33920 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33921 | wxPoint *arg2 = 0 ; | |
33922 | wxSize *arg3 = 0 ; | |
33923 | double arg4 ; | |
33924 | void *argp1 = 0 ; | |
33925 | int res1 = 0 ; | |
33926 | wxPoint temp2 ; | |
33927 | wxSize temp3 ; | |
33928 | double val4 ; | |
33929 | int ecode4 = 0 ; | |
33930 | PyObject * obj0 = 0 ; | |
33931 | PyObject * obj1 = 0 ; | |
33932 | PyObject * obj2 = 0 ; | |
33933 | PyObject * obj3 = 0 ; | |
33934 | char * kwnames[] = { | |
33935 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
33936 | }; | |
33937 | ||
33938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33940 | if (!SWIG_IsOK(res1)) { | |
33941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33942 | } | |
33943 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33944 | { | |
33945 | arg2 = &temp2; | |
33946 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
33947 | } | |
33948 | { | |
33949 | arg3 = &temp3; | |
33950 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
33951 | } | |
33952 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
33953 | if (!SWIG_IsOK(ecode4)) { | |
33954 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
33955 | } | |
33956 | arg4 = static_cast< double >(val4); | |
33957 | { | |
33958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33959 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
33960 | wxPyEndAllowThreads(__tstate); | |
33961 | if (PyErr_Occurred()) SWIG_fail; | |
33962 | } | |
33963 | resultobj = SWIG_Py_Void(); | |
33964 | return resultobj; | |
33965 | fail: | |
33966 | return NULL; | |
33967 | } | |
33968 | ||
33969 | ||
33970 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33971 | PyObject *resultobj = 0; | |
33972 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
33973 | int arg2 ; | |
33974 | int arg3 ; | |
33975 | int arg4 ; | |
33976 | void *argp1 = 0 ; | |
33977 | int res1 = 0 ; | |
33978 | int val2 ; | |
33979 | int ecode2 = 0 ; | |
33980 | int val3 ; | |
33981 | int ecode3 = 0 ; | |
33982 | int val4 ; | |
33983 | int ecode4 = 0 ; | |
33984 | PyObject * obj0 = 0 ; | |
33985 | PyObject * obj1 = 0 ; | |
33986 | PyObject * obj2 = 0 ; | |
33987 | PyObject * obj3 = 0 ; | |
33988 | char * kwnames[] = { | |
33989 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
33990 | }; | |
33991 | ||
33992 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33993 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
33994 | if (!SWIG_IsOK(res1)) { | |
33995 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
33996 | } | |
33997 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
33998 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33999 | if (!SWIG_IsOK(ecode2)) { | |
34000 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
34001 | } | |
34002 | arg2 = static_cast< int >(val2); | |
34003 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34004 | if (!SWIG_IsOK(ecode3)) { | |
34005 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
34006 | } | |
34007 | arg3 = static_cast< int >(val3); | |
34008 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34009 | if (!SWIG_IsOK(ecode4)) { | |
34010 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
34011 | } | |
34012 | arg4 = static_cast< int >(val4); | |
34013 | { | |
34014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34015 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
34016 | wxPyEndAllowThreads(__tstate); | |
34017 | if (PyErr_Occurred()) SWIG_fail; | |
34018 | } | |
34019 | resultobj = SWIG_Py_Void(); | |
34020 | return resultobj; | |
34021 | fail: | |
34022 | return NULL; | |
34023 | } | |
34024 | ||
34025 | ||
34026 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34027 | PyObject *resultobj = 0; | |
34028 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34029 | wxPoint *arg2 = 0 ; | |
34030 | int arg3 ; | |
34031 | void *argp1 = 0 ; | |
34032 | int res1 = 0 ; | |
34033 | wxPoint temp2 ; | |
34034 | int val3 ; | |
34035 | int ecode3 = 0 ; | |
34036 | PyObject * obj0 = 0 ; | |
34037 | PyObject * obj1 = 0 ; | |
34038 | PyObject * obj2 = 0 ; | |
34039 | char * kwnames[] = { | |
34040 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
34041 | }; | |
34042 | ||
34043 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34044 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34045 | if (!SWIG_IsOK(res1)) { | |
34046 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34047 | } | |
34048 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34049 | { | |
34050 | arg2 = &temp2; | |
34051 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34052 | } | |
34053 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34054 | if (!SWIG_IsOK(ecode3)) { | |
34055 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
34056 | } | |
34057 | arg3 = static_cast< int >(val3); | |
34058 | { | |
34059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34060 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
34061 | wxPyEndAllowThreads(__tstate); | |
34062 | if (PyErr_Occurred()) SWIG_fail; | |
34063 | } | |
34064 | resultobj = SWIG_Py_Void(); | |
34065 | return resultobj; | |
34066 | fail: | |
34067 | return NULL; | |
34068 | } | |
34069 | ||
34070 | ||
34071 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34072 | PyObject *resultobj = 0; | |
34073 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34074 | int arg2 ; | |
34075 | int arg3 ; | |
34076 | int arg4 ; | |
34077 | int arg5 ; | |
34078 | void *argp1 = 0 ; | |
34079 | int res1 = 0 ; | |
34080 | int val2 ; | |
34081 | int ecode2 = 0 ; | |
34082 | int val3 ; | |
34083 | int ecode3 = 0 ; | |
34084 | int val4 ; | |
34085 | int ecode4 = 0 ; | |
34086 | int val5 ; | |
34087 | int ecode5 = 0 ; | |
34088 | PyObject * obj0 = 0 ; | |
34089 | PyObject * obj1 = 0 ; | |
34090 | PyObject * obj2 = 0 ; | |
34091 | PyObject * obj3 = 0 ; | |
34092 | PyObject * obj4 = 0 ; | |
34093 | char * kwnames[] = { | |
34094 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
34095 | }; | |
34096 | ||
34097 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34098 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34099 | if (!SWIG_IsOK(res1)) { | |
34100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34101 | } | |
34102 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34103 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34104 | if (!SWIG_IsOK(ecode2)) { | |
34105 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
34106 | } | |
34107 | arg2 = static_cast< int >(val2); | |
34108 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34109 | if (!SWIG_IsOK(ecode3)) { | |
34110 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
34111 | } | |
34112 | arg3 = static_cast< int >(val3); | |
34113 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34114 | if (!SWIG_IsOK(ecode4)) { | |
34115 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
34116 | } | |
34117 | arg4 = static_cast< int >(val4); | |
34118 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34119 | if (!SWIG_IsOK(ecode5)) { | |
34120 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
34121 | } | |
34122 | arg5 = static_cast< int >(val5); | |
34123 | { | |
34124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34125 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
34126 | wxPyEndAllowThreads(__tstate); | |
34127 | if (PyErr_Occurred()) SWIG_fail; | |
34128 | } | |
34129 | resultobj = SWIG_Py_Void(); | |
34130 | return resultobj; | |
34131 | fail: | |
34132 | return NULL; | |
34133 | } | |
34134 | ||
34135 | ||
34136 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34137 | PyObject *resultobj = 0; | |
34138 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34139 | wxRect *arg2 = 0 ; | |
34140 | void *argp1 = 0 ; | |
34141 | int res1 = 0 ; | |
34142 | wxRect temp2 ; | |
34143 | PyObject * obj0 = 0 ; | |
34144 | PyObject * obj1 = 0 ; | |
34145 | char * kwnames[] = { | |
34146 | (char *) "self",(char *) "rect", NULL | |
34147 | }; | |
34148 | ||
34149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
34150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34151 | if (!SWIG_IsOK(res1)) { | |
34152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34153 | } | |
34154 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34155 | { | |
34156 | arg2 = &temp2; | |
34157 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
34158 | } | |
34159 | { | |
34160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34161 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
34162 | wxPyEndAllowThreads(__tstate); | |
34163 | if (PyErr_Occurred()) SWIG_fail; | |
34164 | } | |
34165 | resultobj = SWIG_Py_Void(); | |
34166 | return resultobj; | |
34167 | fail: | |
34168 | return NULL; | |
34169 | } | |
34170 | ||
34171 | ||
34172 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34173 | PyObject *resultobj = 0; | |
34174 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34175 | wxPoint *arg2 = 0 ; | |
34176 | wxSize *arg3 = 0 ; | |
34177 | void *argp1 = 0 ; | |
34178 | int res1 = 0 ; | |
34179 | wxPoint temp2 ; | |
34180 | wxSize temp3 ; | |
34181 | PyObject * obj0 = 0 ; | |
34182 | PyObject * obj1 = 0 ; | |
34183 | PyObject * obj2 = 0 ; | |
34184 | char * kwnames[] = { | |
34185 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
34186 | }; | |
34187 | ||
34188 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34189 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34190 | if (!SWIG_IsOK(res1)) { | |
34191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34192 | } | |
34193 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34194 | { | |
34195 | arg2 = &temp2; | |
34196 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
34197 | } | |
34198 | { | |
34199 | arg3 = &temp3; | |
34200 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
34201 | } | |
34202 | { | |
34203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34204 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
34205 | wxPyEndAllowThreads(__tstate); | |
34206 | if (PyErr_Occurred()) SWIG_fail; | |
34207 | } | |
34208 | resultobj = SWIG_Py_Void(); | |
34209 | return resultobj; | |
34210 | fail: | |
34211 | return NULL; | |
34212 | } | |
34213 | ||
34214 | ||
34215 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34216 | PyObject *resultobj = 0; | |
34217 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34218 | wxIcon *arg2 = 0 ; | |
34219 | int arg3 ; | |
34220 | int arg4 ; | |
34221 | void *argp1 = 0 ; | |
34222 | int res1 = 0 ; | |
34223 | void *argp2 = 0 ; | |
34224 | int res2 = 0 ; | |
34225 | int val3 ; | |
34226 | int ecode3 = 0 ; | |
34227 | int val4 ; | |
34228 | int ecode4 = 0 ; | |
34229 | PyObject * obj0 = 0 ; | |
34230 | PyObject * obj1 = 0 ; | |
34231 | PyObject * obj2 = 0 ; | |
34232 | PyObject * obj3 = 0 ; | |
34233 | char * kwnames[] = { | |
34234 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
34235 | }; | |
34236 | ||
34237 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34239 | if (!SWIG_IsOK(res1)) { | |
34240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34241 | } | |
34242 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34243 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
34244 | if (!SWIG_IsOK(res2)) { | |
34245 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
34246 | } | |
34247 | if (!argp2) { | |
34248 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
34249 | } | |
34250 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
34251 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34252 | if (!SWIG_IsOK(ecode3)) { | |
34253 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
34254 | } | |
34255 | arg3 = static_cast< int >(val3); | |
34256 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34257 | if (!SWIG_IsOK(ecode4)) { | |
34258 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
34259 | } | |
34260 | arg4 = static_cast< int >(val4); | |
34261 | { | |
34262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34263 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
34264 | wxPyEndAllowThreads(__tstate); | |
34265 | if (PyErr_Occurred()) SWIG_fail; | |
34266 | } | |
34267 | resultobj = SWIG_Py_Void(); | |
34268 | return resultobj; | |
34269 | fail: | |
34270 | return NULL; | |
34271 | } | |
34272 | ||
34273 | ||
34274 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34275 | PyObject *resultobj = 0; | |
34276 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34277 | wxIcon *arg2 = 0 ; | |
34278 | wxPoint *arg3 = 0 ; | |
34279 | void *argp1 = 0 ; | |
34280 | int res1 = 0 ; | |
34281 | void *argp2 = 0 ; | |
34282 | int res2 = 0 ; | |
34283 | wxPoint temp3 ; | |
34284 | PyObject * obj0 = 0 ; | |
34285 | PyObject * obj1 = 0 ; | |
34286 | PyObject * obj2 = 0 ; | |
34287 | char * kwnames[] = { | |
34288 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
34289 | }; | |
34290 | ||
34291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34293 | if (!SWIG_IsOK(res1)) { | |
34294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34295 | } | |
34296 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34297 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
34298 | if (!SWIG_IsOK(res2)) { | |
34299 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
34300 | } | |
34301 | if (!argp2) { | |
34302 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
34303 | } | |
34304 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
34305 | { | |
34306 | arg3 = &temp3; | |
34307 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34308 | } | |
34309 | { | |
34310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34311 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
34312 | wxPyEndAllowThreads(__tstate); | |
34313 | if (PyErr_Occurred()) SWIG_fail; | |
34314 | } | |
34315 | resultobj = SWIG_Py_Void(); | |
34316 | return resultobj; | |
34317 | fail: | |
34318 | return NULL; | |
34319 | } | |
34320 | ||
34321 | ||
34322 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34323 | PyObject *resultobj = 0; | |
34324 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34325 | wxBitmap *arg2 = 0 ; | |
34326 | int arg3 ; | |
34327 | int arg4 ; | |
34328 | bool arg5 = (bool) false ; | |
34329 | void *argp1 = 0 ; | |
34330 | int res1 = 0 ; | |
34331 | void *argp2 = 0 ; | |
34332 | int res2 = 0 ; | |
34333 | int val3 ; | |
34334 | int ecode3 = 0 ; | |
34335 | int val4 ; | |
34336 | int ecode4 = 0 ; | |
34337 | bool val5 ; | |
34338 | int ecode5 = 0 ; | |
34339 | PyObject * obj0 = 0 ; | |
34340 | PyObject * obj1 = 0 ; | |
34341 | PyObject * obj2 = 0 ; | |
34342 | PyObject * obj3 = 0 ; | |
34343 | PyObject * obj4 = 0 ; | |
34344 | char * kwnames[] = { | |
34345 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
34346 | }; | |
34347 | ||
34348 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34349 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34350 | if (!SWIG_IsOK(res1)) { | |
34351 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34352 | } | |
34353 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34354 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
34355 | if (!SWIG_IsOK(res2)) { | |
34356 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
34357 | } | |
34358 | if (!argp2) { | |
34359 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
34360 | } | |
34361 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
34362 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34363 | if (!SWIG_IsOK(ecode3)) { | |
34364 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
34365 | } | |
34366 | arg3 = static_cast< int >(val3); | |
34367 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34368 | if (!SWIG_IsOK(ecode4)) { | |
34369 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
34370 | } | |
34371 | arg4 = static_cast< int >(val4); | |
34372 | if (obj4) { | |
34373 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
34374 | if (!SWIG_IsOK(ecode5)) { | |
34375 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
34376 | } | |
34377 | arg5 = static_cast< bool >(val5); | |
34378 | } | |
34379 | { | |
34380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34381 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
34382 | wxPyEndAllowThreads(__tstate); | |
34383 | if (PyErr_Occurred()) SWIG_fail; | |
34384 | } | |
34385 | resultobj = SWIG_Py_Void(); | |
34386 | return resultobj; | |
34387 | fail: | |
34388 | return NULL; | |
34389 | } | |
34390 | ||
34391 | ||
34392 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34393 | PyObject *resultobj = 0; | |
34394 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34395 | wxBitmap *arg2 = 0 ; | |
34396 | wxPoint *arg3 = 0 ; | |
34397 | bool arg4 = (bool) false ; | |
34398 | void *argp1 = 0 ; | |
34399 | int res1 = 0 ; | |
34400 | void *argp2 = 0 ; | |
34401 | int res2 = 0 ; | |
34402 | wxPoint temp3 ; | |
34403 | bool val4 ; | |
34404 | int ecode4 = 0 ; | |
34405 | PyObject * obj0 = 0 ; | |
34406 | PyObject * obj1 = 0 ; | |
34407 | PyObject * obj2 = 0 ; | |
34408 | PyObject * obj3 = 0 ; | |
34409 | char * kwnames[] = { | |
34410 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
34411 | }; | |
34412 | ||
34413 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34414 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34415 | if (!SWIG_IsOK(res1)) { | |
34416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34417 | } | |
34418 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34419 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
34420 | if (!SWIG_IsOK(res2)) { | |
34421 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
34422 | } | |
34423 | if (!argp2) { | |
34424 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
34425 | } | |
34426 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
34427 | { | |
34428 | arg3 = &temp3; | |
34429 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34430 | } | |
34431 | if (obj3) { | |
34432 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
34433 | if (!SWIG_IsOK(ecode4)) { | |
34434 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
34435 | } | |
34436 | arg4 = static_cast< bool >(val4); | |
34437 | } | |
34438 | { | |
34439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34440 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
34441 | wxPyEndAllowThreads(__tstate); | |
34442 | if (PyErr_Occurred()) SWIG_fail; | |
34443 | } | |
34444 | resultobj = SWIG_Py_Void(); | |
34445 | return resultobj; | |
34446 | fail: | |
34447 | return NULL; | |
34448 | } | |
34449 | ||
34450 | ||
34451 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34452 | PyObject *resultobj = 0; | |
34453 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34454 | wxString *arg2 = 0 ; | |
34455 | int arg3 ; | |
34456 | int arg4 ; | |
34457 | void *argp1 = 0 ; | |
34458 | int res1 = 0 ; | |
34459 | bool temp2 = false ; | |
34460 | int val3 ; | |
34461 | int ecode3 = 0 ; | |
34462 | int val4 ; | |
34463 | int ecode4 = 0 ; | |
34464 | PyObject * obj0 = 0 ; | |
34465 | PyObject * obj1 = 0 ; | |
34466 | PyObject * obj2 = 0 ; | |
34467 | PyObject * obj3 = 0 ; | |
34468 | char * kwnames[] = { | |
34469 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
34470 | }; | |
34471 | ||
34472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34473 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34474 | if (!SWIG_IsOK(res1)) { | |
34475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34476 | } | |
34477 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34478 | { | |
34479 | arg2 = wxString_in_helper(obj1); | |
34480 | if (arg2 == NULL) SWIG_fail; | |
34481 | temp2 = true; | |
34482 | } | |
34483 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34484 | if (!SWIG_IsOK(ecode3)) { | |
34485 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
34486 | } | |
34487 | arg3 = static_cast< int >(val3); | |
34488 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34489 | if (!SWIG_IsOK(ecode4)) { | |
34490 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
34491 | } | |
34492 | arg4 = static_cast< int >(val4); | |
34493 | { | |
34494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34495 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
34496 | wxPyEndAllowThreads(__tstate); | |
34497 | if (PyErr_Occurred()) SWIG_fail; | |
34498 | } | |
34499 | resultobj = SWIG_Py_Void(); | |
34500 | { | |
34501 | if (temp2) | |
34502 | delete arg2; | |
34503 | } | |
34504 | return resultobj; | |
34505 | fail: | |
34506 | { | |
34507 | if (temp2) | |
34508 | delete arg2; | |
34509 | } | |
34510 | return NULL; | |
34511 | } | |
34512 | ||
34513 | ||
34514 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34515 | PyObject *resultobj = 0; | |
34516 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34517 | wxString *arg2 = 0 ; | |
34518 | wxPoint *arg3 = 0 ; | |
34519 | void *argp1 = 0 ; | |
34520 | int res1 = 0 ; | |
34521 | bool temp2 = false ; | |
34522 | wxPoint temp3 ; | |
34523 | PyObject * obj0 = 0 ; | |
34524 | PyObject * obj1 = 0 ; | |
34525 | PyObject * obj2 = 0 ; | |
34526 | char * kwnames[] = { | |
34527 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
34528 | }; | |
34529 | ||
34530 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34531 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34532 | if (!SWIG_IsOK(res1)) { | |
34533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34534 | } | |
34535 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34536 | { | |
34537 | arg2 = wxString_in_helper(obj1); | |
34538 | if (arg2 == NULL) SWIG_fail; | |
34539 | temp2 = true; | |
34540 | } | |
34541 | { | |
34542 | arg3 = &temp3; | |
34543 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34544 | } | |
34545 | { | |
34546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34547 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
34548 | wxPyEndAllowThreads(__tstate); | |
34549 | if (PyErr_Occurred()) SWIG_fail; | |
34550 | } | |
34551 | resultobj = SWIG_Py_Void(); | |
34552 | { | |
34553 | if (temp2) | |
34554 | delete arg2; | |
34555 | } | |
34556 | return resultobj; | |
34557 | fail: | |
34558 | { | |
34559 | if (temp2) | |
34560 | delete arg2; | |
34561 | } | |
34562 | return NULL; | |
34563 | } | |
34564 | ||
34565 | ||
34566 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34567 | PyObject *resultobj = 0; | |
34568 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34569 | wxString *arg2 = 0 ; | |
34570 | int arg3 ; | |
34571 | int arg4 ; | |
34572 | double arg5 ; | |
34573 | void *argp1 = 0 ; | |
34574 | int res1 = 0 ; | |
34575 | bool temp2 = false ; | |
34576 | int val3 ; | |
34577 | int ecode3 = 0 ; | |
34578 | int val4 ; | |
34579 | int ecode4 = 0 ; | |
34580 | double val5 ; | |
34581 | int ecode5 = 0 ; | |
34582 | PyObject * obj0 = 0 ; | |
34583 | PyObject * obj1 = 0 ; | |
34584 | PyObject * obj2 = 0 ; | |
34585 | PyObject * obj3 = 0 ; | |
34586 | PyObject * obj4 = 0 ; | |
34587 | char * kwnames[] = { | |
34588 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
34589 | }; | |
34590 | ||
34591 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34592 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34593 | if (!SWIG_IsOK(res1)) { | |
34594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34595 | } | |
34596 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34597 | { | |
34598 | arg2 = wxString_in_helper(obj1); | |
34599 | if (arg2 == NULL) SWIG_fail; | |
34600 | temp2 = true; | |
34601 | } | |
34602 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
34603 | if (!SWIG_IsOK(ecode3)) { | |
34604 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
34605 | } | |
34606 | arg3 = static_cast< int >(val3); | |
34607 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34608 | if (!SWIG_IsOK(ecode4)) { | |
34609 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
34610 | } | |
34611 | arg4 = static_cast< int >(val4); | |
34612 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
34613 | if (!SWIG_IsOK(ecode5)) { | |
34614 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
34615 | } | |
34616 | arg5 = static_cast< double >(val5); | |
34617 | { | |
34618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34619 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
34620 | wxPyEndAllowThreads(__tstate); | |
34621 | if (PyErr_Occurred()) SWIG_fail; | |
34622 | } | |
34623 | resultobj = SWIG_Py_Void(); | |
34624 | { | |
34625 | if (temp2) | |
34626 | delete arg2; | |
34627 | } | |
34628 | return resultobj; | |
34629 | fail: | |
34630 | { | |
34631 | if (temp2) | |
34632 | delete arg2; | |
34633 | } | |
34634 | return NULL; | |
34635 | } | |
34636 | ||
34637 | ||
34638 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34639 | PyObject *resultobj = 0; | |
34640 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34641 | wxString *arg2 = 0 ; | |
34642 | wxPoint *arg3 = 0 ; | |
34643 | double arg4 ; | |
34644 | void *argp1 = 0 ; | |
34645 | int res1 = 0 ; | |
34646 | bool temp2 = false ; | |
34647 | wxPoint temp3 ; | |
34648 | double val4 ; | |
34649 | int ecode4 = 0 ; | |
34650 | PyObject * obj0 = 0 ; | |
34651 | PyObject * obj1 = 0 ; | |
34652 | PyObject * obj2 = 0 ; | |
34653 | PyObject * obj3 = 0 ; | |
34654 | char * kwnames[] = { | |
34655 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
34656 | }; | |
34657 | ||
34658 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34659 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34660 | if (!SWIG_IsOK(res1)) { | |
34661 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34662 | } | |
34663 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34664 | { | |
34665 | arg2 = wxString_in_helper(obj1); | |
34666 | if (arg2 == NULL) SWIG_fail; | |
34667 | temp2 = true; | |
34668 | } | |
34669 | { | |
34670 | arg3 = &temp3; | |
34671 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
34672 | } | |
34673 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
34674 | if (!SWIG_IsOK(ecode4)) { | |
34675 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
34676 | } | |
34677 | arg4 = static_cast< double >(val4); | |
34678 | { | |
34679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34680 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
34681 | wxPyEndAllowThreads(__tstate); | |
34682 | if (PyErr_Occurred()) SWIG_fail; | |
34683 | } | |
34684 | resultobj = SWIG_Py_Void(); | |
34685 | { | |
34686 | if (temp2) | |
34687 | delete arg2; | |
34688 | } | |
34689 | return resultobj; | |
34690 | fail: | |
34691 | { | |
34692 | if (temp2) | |
34693 | delete arg2; | |
34694 | } | |
34695 | return NULL; | |
34696 | } | |
34697 | ||
34698 | ||
34699 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34700 | PyObject *resultobj = 0; | |
34701 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34702 | int arg2 ; | |
34703 | wxPoint *arg3 = (wxPoint *) 0 ; | |
34704 | int arg4 = (int) 0 ; | |
34705 | int arg5 = (int) 0 ; | |
34706 | void *argp1 = 0 ; | |
34707 | int res1 = 0 ; | |
34708 | int val4 ; | |
34709 | int ecode4 = 0 ; | |
34710 | int val5 ; | |
34711 | int ecode5 = 0 ; | |
34712 | PyObject * obj0 = 0 ; | |
34713 | PyObject * obj1 = 0 ; | |
34714 | PyObject * obj2 = 0 ; | |
34715 | PyObject * obj3 = 0 ; | |
34716 | char * kwnames[] = { | |
34717 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
34718 | }; | |
34719 | ||
34720 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34721 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34722 | if (!SWIG_IsOK(res1)) { | |
34723 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34724 | } | |
34725 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34726 | { | |
34727 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
34728 | if (arg3 == NULL) SWIG_fail; | |
34729 | } | |
34730 | if (obj2) { | |
34731 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
34732 | if (!SWIG_IsOK(ecode4)) { | |
34733 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
34734 | } | |
34735 | arg4 = static_cast< int >(val4); | |
34736 | } | |
34737 | if (obj3) { | |
34738 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
34739 | if (!SWIG_IsOK(ecode5)) { | |
34740 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
34741 | } | |
34742 | arg5 = static_cast< int >(val5); | |
34743 | } | |
34744 | { | |
34745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34746 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
34747 | wxPyEndAllowThreads(__tstate); | |
34748 | if (PyErr_Occurred()) SWIG_fail; | |
34749 | } | |
34750 | resultobj = SWIG_Py_Void(); | |
34751 | { | |
34752 | if (arg3) delete [] arg3; | |
34753 | } | |
34754 | return resultobj; | |
34755 | fail: | |
34756 | { | |
34757 | if (arg3) delete [] arg3; | |
34758 | } | |
34759 | return NULL; | |
34760 | } | |
34761 | ||
34762 | ||
34763 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34764 | PyObject *resultobj = 0; | |
34765 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34766 | int arg2 ; | |
34767 | wxPoint *arg3 = (wxPoint *) 0 ; | |
34768 | int arg4 = (int) 0 ; | |
34769 | int arg5 = (int) 0 ; | |
34770 | int arg6 = (int) wxODDEVEN_RULE ; | |
34771 | void *argp1 = 0 ; | |
34772 | int res1 = 0 ; | |
34773 | int val4 ; | |
34774 | int ecode4 = 0 ; | |
34775 | int val5 ; | |
34776 | int ecode5 = 0 ; | |
34777 | int val6 ; | |
34778 | int ecode6 = 0 ; | |
34779 | PyObject * obj0 = 0 ; | |
34780 | PyObject * obj1 = 0 ; | |
34781 | PyObject * obj2 = 0 ; | |
34782 | PyObject * obj3 = 0 ; | |
34783 | PyObject * obj4 = 0 ; | |
34784 | char * kwnames[] = { | |
34785 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
34786 | }; | |
34787 | ||
34788 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34789 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34790 | if (!SWIG_IsOK(res1)) { | |
34791 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34792 | } | |
34793 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34794 | { | |
34795 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
34796 | if (arg3 == NULL) SWIG_fail; | |
34797 | } | |
34798 | if (obj2) { | |
34799 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
34800 | if (!SWIG_IsOK(ecode4)) { | |
34801 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
34802 | } | |
34803 | arg4 = static_cast< int >(val4); | |
34804 | } | |
34805 | if (obj3) { | |
34806 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
34807 | if (!SWIG_IsOK(ecode5)) { | |
34808 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
34809 | } | |
34810 | arg5 = static_cast< int >(val5); | |
34811 | } | |
34812 | if (obj4) { | |
34813 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
34814 | if (!SWIG_IsOK(ecode6)) { | |
34815 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
34816 | } | |
34817 | arg6 = static_cast< int >(val6); | |
34818 | } | |
34819 | { | |
34820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34821 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
34822 | wxPyEndAllowThreads(__tstate); | |
34823 | if (PyErr_Occurred()) SWIG_fail; | |
34824 | } | |
34825 | resultobj = SWIG_Py_Void(); | |
34826 | { | |
34827 | if (arg3) delete [] arg3; | |
34828 | } | |
34829 | return resultobj; | |
34830 | fail: | |
34831 | { | |
34832 | if (arg3) delete [] arg3; | |
34833 | } | |
34834 | return NULL; | |
34835 | } | |
34836 | ||
34837 | ||
34838 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34839 | PyObject *resultobj = 0; | |
34840 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34841 | wxString *arg2 = 0 ; | |
34842 | wxRect *arg3 = 0 ; | |
34843 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
34844 | int arg5 = (int) -1 ; | |
34845 | void *argp1 = 0 ; | |
34846 | int res1 = 0 ; | |
34847 | bool temp2 = false ; | |
34848 | wxRect temp3 ; | |
34849 | int val4 ; | |
34850 | int ecode4 = 0 ; | |
34851 | int val5 ; | |
34852 | int ecode5 = 0 ; | |
34853 | PyObject * obj0 = 0 ; | |
34854 | PyObject * obj1 = 0 ; | |
34855 | PyObject * obj2 = 0 ; | |
34856 | PyObject * obj3 = 0 ; | |
34857 | PyObject * obj4 = 0 ; | |
34858 | char * kwnames[] = { | |
34859 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
34860 | }; | |
34861 | ||
34862 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
34863 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34864 | if (!SWIG_IsOK(res1)) { | |
34865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34866 | } | |
34867 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34868 | { | |
34869 | arg2 = wxString_in_helper(obj1); | |
34870 | if (arg2 == NULL) SWIG_fail; | |
34871 | temp2 = true; | |
34872 | } | |
34873 | { | |
34874 | arg3 = &temp3; | |
34875 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
34876 | } | |
34877 | if (obj3) { | |
34878 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34879 | if (!SWIG_IsOK(ecode4)) { | |
34880 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
34881 | } | |
34882 | arg4 = static_cast< int >(val4); | |
34883 | } | |
34884 | if (obj4) { | |
34885 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34886 | if (!SWIG_IsOK(ecode5)) { | |
34887 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
34888 | } | |
34889 | arg5 = static_cast< int >(val5); | |
34890 | } | |
34891 | { | |
34892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34893 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
34894 | wxPyEndAllowThreads(__tstate); | |
34895 | if (PyErr_Occurred()) SWIG_fail; | |
34896 | } | |
34897 | resultobj = SWIG_Py_Void(); | |
34898 | { | |
34899 | if (temp2) | |
34900 | delete arg2; | |
34901 | } | |
34902 | return resultobj; | |
34903 | fail: | |
34904 | { | |
34905 | if (temp2) | |
34906 | delete arg2; | |
34907 | } | |
34908 | return NULL; | |
34909 | } | |
34910 | ||
34911 | ||
34912 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34913 | PyObject *resultobj = 0; | |
34914 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
34915 | wxString *arg2 = 0 ; | |
34916 | wxBitmap *arg3 = 0 ; | |
34917 | wxRect *arg4 = 0 ; | |
34918 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
34919 | int arg6 = (int) -1 ; | |
34920 | void *argp1 = 0 ; | |
34921 | int res1 = 0 ; | |
34922 | bool temp2 = false ; | |
34923 | void *argp3 = 0 ; | |
34924 | int res3 = 0 ; | |
34925 | wxRect temp4 ; | |
34926 | int val5 ; | |
34927 | int ecode5 = 0 ; | |
34928 | int val6 ; | |
34929 | int ecode6 = 0 ; | |
34930 | PyObject * obj0 = 0 ; | |
34931 | PyObject * obj1 = 0 ; | |
34932 | PyObject * obj2 = 0 ; | |
34933 | PyObject * obj3 = 0 ; | |
34934 | PyObject * obj4 = 0 ; | |
34935 | PyObject * obj5 = 0 ; | |
34936 | char * kwnames[] = { | |
34937 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
34938 | }; | |
34939 | ||
34940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
34941 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
34942 | if (!SWIG_IsOK(res1)) { | |
34943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
34944 | } | |
34945 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
34946 | { | |
34947 | arg2 = wxString_in_helper(obj1); | |
34948 | if (arg2 == NULL) SWIG_fail; | |
34949 | temp2 = true; | |
34950 | } | |
34951 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
34952 | if (!SWIG_IsOK(res3)) { | |
34953 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
34954 | } | |
34955 | if (!argp3) { | |
34956 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
34957 | } | |
34958 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
34959 | { | |
34960 | arg4 = &temp4; | |
34961 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
34962 | } | |
34963 | if (obj4) { | |
34964 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
34965 | if (!SWIG_IsOK(ecode5)) { | |
34966 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
34967 | } | |
34968 | arg5 = static_cast< int >(val5); | |
34969 | } | |
34970 | if (obj5) { | |
34971 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
34972 | if (!SWIG_IsOK(ecode6)) { | |
34973 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
34974 | } | |
34975 | arg6 = static_cast< int >(val6); | |
34976 | } | |
34977 | { | |
34978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34979 | (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
34980 | wxPyEndAllowThreads(__tstate); | |
34981 | if (PyErr_Occurred()) SWIG_fail; | |
34982 | } | |
34983 | resultobj = SWIG_Py_Void(); | |
34984 | { | |
34985 | if (temp2) | |
34986 | delete arg2; | |
34987 | } | |
34988 | return resultobj; | |
34989 | fail: | |
34990 | { | |
34991 | if (temp2) | |
34992 | delete arg2; | |
34993 | } | |
34994 | return NULL; | |
34995 | } | |
34996 | ||
34997 | ||
34998 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34999 | PyObject *resultobj = 0; | |
35000 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35001 | int arg2 ; | |
35002 | wxPoint *arg3 = (wxPoint *) 0 ; | |
35003 | void *argp1 = 0 ; | |
35004 | int res1 = 0 ; | |
35005 | PyObject * obj0 = 0 ; | |
35006 | PyObject * obj1 = 0 ; | |
35007 | char * kwnames[] = { | |
35008 | (char *) "self",(char *) "points", NULL | |
35009 | }; | |
35010 | ||
35011 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
35012 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35013 | if (!SWIG_IsOK(res1)) { | |
35014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35015 | } | |
35016 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35017 | { | |
35018 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
35019 | if (arg3 == NULL) SWIG_fail; | |
35020 | } | |
35021 | { | |
35022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35023 | (arg1)->DrawSpline(arg2,arg3); | |
35024 | wxPyEndAllowThreads(__tstate); | |
35025 | if (PyErr_Occurred()) SWIG_fail; | |
35026 | } | |
35027 | resultobj = SWIG_Py_Void(); | |
35028 | { | |
35029 | if (arg3) delete [] arg3; | |
35030 | } | |
35031 | return resultobj; | |
35032 | fail: | |
35033 | { | |
35034 | if (arg3) delete [] arg3; | |
35035 | } | |
35036 | return NULL; | |
35037 | } | |
35038 | ||
35039 | ||
35040 | SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35041 | PyObject *resultobj = 0; | |
35042 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35043 | void *argp1 = 0 ; | |
35044 | int res1 = 0 ; | |
35045 | PyObject *swig_obj[1] ; | |
35046 | ||
35047 | if (!args) SWIG_fail; | |
35048 | swig_obj[0] = args; | |
35049 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35050 | if (!SWIG_IsOK(res1)) { | |
35051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35052 | } | |
35053 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35054 | { | |
35055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35056 | (arg1)->Clear(); | |
35057 | wxPyEndAllowThreads(__tstate); | |
35058 | if (PyErr_Occurred()) SWIG_fail; | |
35059 | } | |
35060 | resultobj = SWIG_Py_Void(); | |
35061 | return resultobj; | |
35062 | fail: | |
35063 | return NULL; | |
35064 | } | |
35065 | ||
35066 | ||
35067 | SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35068 | PyObject *resultobj = 0; | |
35069 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35070 | wxFont *arg2 = 0 ; | |
35071 | void *argp1 = 0 ; | |
35072 | int res1 = 0 ; | |
35073 | void *argp2 = 0 ; | |
35074 | int res2 = 0 ; | |
35075 | PyObject * obj0 = 0 ; | |
35076 | PyObject * obj1 = 0 ; | |
35077 | char * kwnames[] = { | |
35078 | (char *) "self",(char *) "font", NULL | |
35079 | }; | |
35080 | ||
35081 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
35082 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35083 | if (!SWIG_IsOK(res1)) { | |
35084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35085 | } | |
35086 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35087 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
35088 | if (!SWIG_IsOK(res2)) { | |
35089 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
35090 | } | |
35091 | if (!argp2) { | |
35092 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
35093 | } | |
35094 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
35095 | { | |
35096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35097 | (arg1)->SetFont((wxFont const &)*arg2); | |
35098 | wxPyEndAllowThreads(__tstate); | |
35099 | if (PyErr_Occurred()) SWIG_fail; | |
35100 | } | |
35101 | resultobj = SWIG_Py_Void(); | |
35102 | return resultobj; | |
35103 | fail: | |
35104 | return NULL; | |
35105 | } | |
35106 | ||
35107 | ||
35108 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35109 | PyObject *resultobj = 0; | |
35110 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35111 | wxPen *arg2 = 0 ; | |
35112 | void *argp1 = 0 ; | |
35113 | int res1 = 0 ; | |
35114 | void *argp2 = 0 ; | |
35115 | int res2 = 0 ; | |
35116 | PyObject * obj0 = 0 ; | |
35117 | PyObject * obj1 = 0 ; | |
35118 | char * kwnames[] = { | |
35119 | (char *) "self",(char *) "pen", NULL | |
35120 | }; | |
35121 | ||
35122 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
35123 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35124 | if (!SWIG_IsOK(res1)) { | |
35125 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35126 | } | |
35127 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35128 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
35129 | if (!SWIG_IsOK(res2)) { | |
35130 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
35131 | } | |
35132 | if (!argp2) { | |
35133 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
35134 | } | |
35135 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
35136 | { | |
35137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35138 | (arg1)->SetPen((wxPen const &)*arg2); | |
35139 | wxPyEndAllowThreads(__tstate); | |
35140 | if (PyErr_Occurred()) SWIG_fail; | |
35141 | } | |
35142 | resultobj = SWIG_Py_Void(); | |
35143 | return resultobj; | |
35144 | fail: | |
35145 | return NULL; | |
35146 | } | |
35147 | ||
35148 | ||
35149 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35150 | PyObject *resultobj = 0; | |
35151 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35152 | wxBrush *arg2 = 0 ; | |
35153 | void *argp1 = 0 ; | |
35154 | int res1 = 0 ; | |
35155 | void *argp2 = 0 ; | |
35156 | int res2 = 0 ; | |
35157 | PyObject * obj0 = 0 ; | |
35158 | PyObject * obj1 = 0 ; | |
35159 | char * kwnames[] = { | |
35160 | (char *) "self",(char *) "brush", NULL | |
35161 | }; | |
35162 | ||
35163 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
35164 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35165 | if (!SWIG_IsOK(res1)) { | |
35166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35167 | } | |
35168 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35169 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
35170 | if (!SWIG_IsOK(res2)) { | |
35171 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
35172 | } | |
35173 | if (!argp2) { | |
35174 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
35175 | } | |
35176 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
35177 | { | |
35178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35179 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
35180 | wxPyEndAllowThreads(__tstate); | |
35181 | if (PyErr_Occurred()) SWIG_fail; | |
35182 | } | |
35183 | resultobj = SWIG_Py_Void(); | |
35184 | return resultobj; | |
35185 | fail: | |
35186 | return NULL; | |
35187 | } | |
35188 | ||
35189 | ||
35190 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35191 | PyObject *resultobj = 0; | |
35192 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35193 | wxBrush *arg2 = 0 ; | |
35194 | void *argp1 = 0 ; | |
35195 | int res1 = 0 ; | |
35196 | void *argp2 = 0 ; | |
35197 | int res2 = 0 ; | |
35198 | PyObject * obj0 = 0 ; | |
35199 | PyObject * obj1 = 0 ; | |
35200 | char * kwnames[] = { | |
35201 | (char *) "self",(char *) "brush", NULL | |
35202 | }; | |
35203 | ||
35204 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
35205 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35206 | if (!SWIG_IsOK(res1)) { | |
35207 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35208 | } | |
35209 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35210 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
35211 | if (!SWIG_IsOK(res2)) { | |
35212 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
35213 | } | |
35214 | if (!argp2) { | |
35215 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
35216 | } | |
35217 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
35218 | { | |
35219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35220 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
35221 | wxPyEndAllowThreads(__tstate); | |
35222 | if (PyErr_Occurred()) SWIG_fail; | |
35223 | } | |
35224 | resultobj = SWIG_Py_Void(); | |
35225 | return resultobj; | |
35226 | fail: | |
35227 | return NULL; | |
35228 | } | |
35229 | ||
35230 | ||
35231 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35232 | PyObject *resultobj = 0; | |
35233 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35234 | int arg2 ; | |
35235 | void *argp1 = 0 ; | |
35236 | int res1 = 0 ; | |
35237 | int val2 ; | |
35238 | int ecode2 = 0 ; | |
35239 | PyObject * obj0 = 0 ; | |
35240 | PyObject * obj1 = 0 ; | |
35241 | char * kwnames[] = { | |
35242 | (char *) "self",(char *) "mode", NULL | |
35243 | }; | |
35244 | ||
35245 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
35246 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35247 | if (!SWIG_IsOK(res1)) { | |
35248 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35249 | } | |
35250 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35251 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35252 | if (!SWIG_IsOK(ecode2)) { | |
35253 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
35254 | } | |
35255 | arg2 = static_cast< int >(val2); | |
35256 | { | |
35257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35258 | (arg1)->SetBackgroundMode(arg2); | |
35259 | wxPyEndAllowThreads(__tstate); | |
35260 | if (PyErr_Occurred()) SWIG_fail; | |
35261 | } | |
35262 | resultobj = SWIG_Py_Void(); | |
35263 | return resultobj; | |
35264 | fail: | |
35265 | return NULL; | |
35266 | } | |
35267 | ||
35268 | ||
35269 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35270 | PyObject *resultobj = 0; | |
35271 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35272 | wxPalette *arg2 = 0 ; | |
35273 | void *argp1 = 0 ; | |
35274 | int res1 = 0 ; | |
35275 | void *argp2 = 0 ; | |
35276 | int res2 = 0 ; | |
35277 | PyObject * obj0 = 0 ; | |
35278 | PyObject * obj1 = 0 ; | |
35279 | char * kwnames[] = { | |
35280 | (char *) "self",(char *) "palette", NULL | |
35281 | }; | |
35282 | ||
35283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
35284 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35285 | if (!SWIG_IsOK(res1)) { | |
35286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35287 | } | |
35288 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35289 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
35290 | if (!SWIG_IsOK(res2)) { | |
35291 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
35292 | } | |
35293 | if (!argp2) { | |
35294 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
35295 | } | |
35296 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
35297 | { | |
35298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35299 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
35300 | wxPyEndAllowThreads(__tstate); | |
35301 | if (PyErr_Occurred()) SWIG_fail; | |
35302 | } | |
35303 | resultobj = SWIG_Py_Void(); | |
35304 | return resultobj; | |
35305 | fail: | |
35306 | return NULL; | |
35307 | } | |
35308 | ||
35309 | ||
35310 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35311 | PyObject *resultobj = 0; | |
35312 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35313 | wxColour *arg2 = 0 ; | |
35314 | void *argp1 = 0 ; | |
35315 | int res1 = 0 ; | |
35316 | wxColour temp2 ; | |
35317 | PyObject * obj0 = 0 ; | |
35318 | PyObject * obj1 = 0 ; | |
35319 | char * kwnames[] = { | |
35320 | (char *) "self",(char *) "colour", NULL | |
35321 | }; | |
35322 | ||
35323 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
35324 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35325 | if (!SWIG_IsOK(res1)) { | |
35326 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35327 | } | |
35328 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35329 | { | |
35330 | arg2 = &temp2; | |
35331 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
35332 | } | |
35333 | { | |
35334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35335 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
35336 | wxPyEndAllowThreads(__tstate); | |
35337 | if (PyErr_Occurred()) SWIG_fail; | |
35338 | } | |
35339 | resultobj = SWIG_Py_Void(); | |
35340 | return resultobj; | |
35341 | fail: | |
35342 | return NULL; | |
35343 | } | |
35344 | ||
35345 | ||
35346 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35347 | PyObject *resultobj = 0; | |
35348 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35349 | wxColour *arg2 = 0 ; | |
35350 | void *argp1 = 0 ; | |
35351 | int res1 = 0 ; | |
35352 | wxColour temp2 ; | |
35353 | PyObject * obj0 = 0 ; | |
35354 | PyObject * obj1 = 0 ; | |
35355 | char * kwnames[] = { | |
35356 | (char *) "self",(char *) "colour", NULL | |
35357 | }; | |
35358 | ||
35359 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
35360 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35361 | if (!SWIG_IsOK(res1)) { | |
35362 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35363 | } | |
35364 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35365 | { | |
35366 | arg2 = &temp2; | |
35367 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
35368 | } | |
35369 | { | |
35370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35371 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
35372 | wxPyEndAllowThreads(__tstate); | |
35373 | if (PyErr_Occurred()) SWIG_fail; | |
35374 | } | |
35375 | resultobj = SWIG_Py_Void(); | |
35376 | return resultobj; | |
35377 | fail: | |
35378 | return NULL; | |
35379 | } | |
35380 | ||
35381 | ||
35382 | SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35383 | PyObject *resultobj = 0; | |
35384 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
35385 | int arg2 ; | |
35386 | void *argp1 = 0 ; | |
35387 | int res1 = 0 ; | |
35388 | int val2 ; | |
35389 | int ecode2 = 0 ; | |
35390 | PyObject * obj0 = 0 ; | |
35391 | PyObject * obj1 = 0 ; | |
35392 | char * kwnames[] = { | |
35393 | (char *) "self",(char *) "function", NULL | |
35394 | }; | |
35395 | ||
35396 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
35397 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
35398 | if (!SWIG_IsOK(res1)) { | |
35399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
35400 | } | |
35401 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
35402 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
35403 | if (!SWIG_IsOK(ecode2)) { | |
35404 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
35405 | } | |
35406 | arg2 = static_cast< int >(val2); | |
35407 | { | |
35408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35409 | (arg1)->SetLogicalFunction(arg2); | |
35410 | wxPyEndAllowThreads(__tstate); | |
35411 | if (PyErr_Occurred()) SWIG_fail; | |
35412 | } | |
35413 | resultobj = SWIG_Py_Void(); | |
35414 | return resultobj; | |
35415 | fail: | |
35416 | return NULL; | |
35417 | } | |
35418 | ||
35419 | ||
35420 | SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35421 | PyObject *obj; | |
35422 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
35423 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj)); | |
35424 | return SWIG_Py_Void(); | |
35425 | } | |
35426 | ||
35427 | SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35428 | return SWIG_Python_InitShadowInstance(args); | |
35429 | } | |
35430 | ||
35431 | static PyMethodDef SwigMethods[] = { | |
35432 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
35433 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
35434 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
35435 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
35436 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
35437 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35438 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35439 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35440 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
35441 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
35442 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
35443 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
fc46b7f3 | 35444 | { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL}, |
b39fe951 | 35445 | { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL}, |
27e45892 RD |
35446 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
35447 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35448 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35449 | { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35450 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
35451 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35452 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fc46b7f3 | 35453 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
35454 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, |
35455 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
35456 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
35457 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35458 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
35459 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35460 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35461 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
b39fe951 | 35462 | { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL}, |
27e45892 RD |
35463 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, |
35464 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
35465 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35466 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
35467 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
35468 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
35469 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
35470 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
35471 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
b39fe951 | 35472 | { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL}, |
27e45892 RD |
35473 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, |
35474 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35475 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35476 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35477 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35478 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35479 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
35480 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35481 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
35482 | { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL}, | |
35483 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35484 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35485 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35486 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
35487 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
35488 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35489 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35490 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
35491 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35492 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35493 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35494 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
35495 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
35496 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
35497 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
b39fe951 | 35498 | { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL}, |
27e45892 RD |
35499 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, |
35500 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
35501 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35502 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
35503 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35504 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35505 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35506 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35507 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35508 | { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL}, | |
35509 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 35510 | { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL}, |
27e45892 RD |
35511 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, |
35512 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
35513 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
35514 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
35515 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
35516 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
35517 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35518 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35519 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35520 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35521 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35522 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
35523 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35524 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35525 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35526 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35527 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35528 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35529 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35530 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35531 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35532 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
35533 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
35534 | { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
35535 | { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35536 | { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35537 | { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL}, | |
35538 | { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL}, | |
35539 | { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL}, | |
35540 | { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL}, | |
35541 | { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL}, | |
35542 | { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL}, | |
35543 | { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL}, | |
35544 | { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL}, | |
35545 | { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL}, | |
35546 | { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL}, | |
35547 | { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL}, | |
35548 | { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL}, | |
35549 | { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL}, | |
35550 | { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL}, | |
35551 | { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL}, | |
35552 | { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35553 | { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL}, | |
35554 | { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL}, | |
35555 | { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35556 | { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35557 | { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35558 | { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35559 | { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35560 | { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL}, | |
35561 | { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
35562 | { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
35563 | { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL}, | |
35564 | { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL}, | |
35565 | { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL}, | |
35566 | { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL}, | |
35567 | { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL}, | |
35568 | { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL}, | |
35569 | { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL}, | |
35570 | { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL}, | |
35571 | { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL}, | |
35572 | { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35573 | { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL}, | |
35574 | { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL}, | |
35575 | { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35576 | { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35577 | { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35578 | { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35579 | { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35580 | { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL}, | |
35581 | { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
35582 | { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
27e45892 RD |
35583 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, |
35584 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
35585 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
35586 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
35587 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35588 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
35589 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
35590 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35591 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35592 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35593 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35594 | { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL}, | |
35595 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 35596 | { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL}, |
27e45892 RD |
35597 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, |
35598 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
35599 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
35600 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35601 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35602 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35603 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35604 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35605 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
35606 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
35607 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35608 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
35609 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
35610 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35611 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
35612 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35613 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
35614 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
35615 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
35616 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
35617 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35618 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35619 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
35620 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35621 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35622 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35623 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
35624 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
35625 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35626 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
35627 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35628 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35629 | { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL}, | |
35630 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 35631 | { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL}, |
27e45892 RD |
35632 | { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL}, |
35633 | { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL}, | |
35634 | { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL}, | |
35635 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35636 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35637 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35638 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35639 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, | |
35640 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
35641 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35642 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35643 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35644 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35645 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
35646 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
35647 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35648 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35649 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35650 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35651 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35652 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
35653 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35654 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35655 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35656 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
f5263701 | 35657 | { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
35658 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, |
35659 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35660 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35661 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35662 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35663 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35664 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35665 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35666 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35667 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
35668 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35669 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35670 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
35671 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
35672 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35673 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
35674 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
35675 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
35676 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
35677 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
35678 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
35679 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
35680 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
35681 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
35682 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
35683 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
35684 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
35685 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
35686 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
35687 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
35688 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
35689 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
35690 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35691 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
35692 | { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL}, | |
35693 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
35694 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
35695 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
35696 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
35697 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
35698 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
35699 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35700 | { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35701 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35702 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35703 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35704 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35705 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35706 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35707 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35708 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
35709 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
35710 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35711 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
35712 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
35713 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
35714 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
35715 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
35716 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
35717 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
35718 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
35719 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
35720 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35721 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
35722 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
35723 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
35724 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35725 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35726 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
35727 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
35728 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
35729 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35730 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35731 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
35732 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
35733 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, |
35734 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35735 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35736 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35737 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
35738 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35739 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35740 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35741 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35742 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
35743 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
35744 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35745 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
35746 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35747 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35748 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35749 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35750 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 35751 | { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL}, |
554f62e9 RD |
35752 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
35753 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35754 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
35755 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
35756 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
35757 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
35758 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
35759 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
35760 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
35761 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
35762 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
35763 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
35764 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
35765 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
35766 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
35767 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35768 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35769 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35770 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35771 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35772 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35773 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35774 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35775 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35776 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35777 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35778 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
35779 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
35780 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
35781 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35782 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
35783 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
35784 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35785 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
35786 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
35787 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
35788 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
35789 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35790 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35791 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
35792 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL}, |
35793 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL}, | |
35794 | { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
35795 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, |
35796 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
35797 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
35798 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
35799 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
35800 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
35801 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
35802 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
35803 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
35804 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35805 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
35806 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35807 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35808 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
35809 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
35810 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
35811 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
35812 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
35813 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
35814 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
35815 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
35816 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35817 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b | 35818 | { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
35819 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, |
35820 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35821 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35822 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35823 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35824 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35825 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
35826 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
35827 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
35828 | { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL}, |
35829 | { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL}, | |
35830 | { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35831 | { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35832 | { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35833 | { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL}, | |
35834 | { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
35835 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, |
35836 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
35837 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
35838 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
35839 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35840 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35841 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35842 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35843 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35844 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
35845 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
35846 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
35847 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35848 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35849 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35850 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35851 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35852 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35853 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35854 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35855 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35856 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35857 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35858 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35859 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35860 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35861 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35862 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35863 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35864 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35865 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35866 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35867 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35868 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35869 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35870 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35871 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35872 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35873 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35874 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35875 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35876 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35877 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35878 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35879 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35880 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35881 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35882 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35883 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35884 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35885 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35886 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35887 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35888 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35889 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35890 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35891 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35892 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35893 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35894 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35895 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
35896 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35897 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
35898 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
35899 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
35900 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35901 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35902 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35903 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35904 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35905 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35906 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
35907 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
35908 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
35909 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
35910 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
35911 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35912 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35913 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35914 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35915 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
35916 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
35917 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
35918 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
35919 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35920 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35921 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35922 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35923 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35924 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35925 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35926 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35927 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
35928 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
35929 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
35930 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
b39fe951 | 35931 | { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL}, |
554f62e9 RD |
35932 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, |
35933 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
35934 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
35935 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
35936 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
35937 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
35938 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
35939 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35940 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35941 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
35942 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35943 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
35944 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35945 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
35946 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35947 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
35948 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
35949 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35950 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35951 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
35952 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
35953 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35954 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35955 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35956 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
35957 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35958 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
35959 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35960 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35961 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
35962 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
35963 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
35964 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
35965 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
35966 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
b39fe951 RD |
35967 | { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL}, |
35968 | { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
35969 | { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL}, |
35970 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35971 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35972 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35973 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35974 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35975 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35976 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
8e99bda9 | 35977 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
35978 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
35979 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35980 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
35981 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
35982 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, |
35983 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35984 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35985 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
35986 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
35987 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
72ef6efb RD |
35988 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
35989 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
35990 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
35991 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
35992 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
35993 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
35994 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
35995 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
35996 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
24f6c4e8 RD |
35997 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, |
35998 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
35999 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
36000 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, | |
36001 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
36002 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36003 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
36004 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
36005 | { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36006 | { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
36007 | { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
8e99bda9 | 36008 | { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
36009 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
36010 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
36011 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
36012 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36013 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
36014 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36015 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36016 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
36017 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
36018 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
36019 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36020 | { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL}, | |
b39fe951 | 36021 | { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL}, |
554f62e9 RD |
36022 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL}, |
36023 | { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL}, | |
36024 | { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL}, | |
36025 | { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL}, | |
36026 | { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL}, | |
36027 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
36028 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
36029 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36030 | { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL}, | |
36031 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
36032 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
36033 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36034 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
36035 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
72ef6efb RD |
36036 | { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL}, |
36037 | { (char *)"GraphicsPath_MoveToPoint", (PyCFunction) _wrap_GraphicsPath_MoveToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36038 | { (char *)"GraphicsPath_AddLineToPoint", (PyCFunction) _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36039 | { (char *)"GraphicsPath_AddCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36040 | { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL}, | |
36041 | { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL}, | |
36042 | { (char *)"GraphicsPath_AddArc", (PyCFunction) _wrap_GraphicsPath_AddArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36043 | { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36044 | { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36045 | { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36046 | { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36047 | { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL}, | |
36048 | { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL}, | |
0a27f394 RD |
36049 | { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL}, |
36050 | { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
36051 | { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL}, |
36052 | { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL}, | |
36053 | { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL}, | |
0a27f394 | 36054 | { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 36055 | { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL}, |
0a27f394 RD |
36056 | { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL}, |
36057 | { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL}, | |
72ef6efb RD |
36058 | { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, |
36059 | { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36060 | { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36061 | { (char *)"GraphicsContext_SetPen", (PyCFunction) _wrap_GraphicsContext_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36062 | { (char *)"GraphicsContext_SetBrush", (PyCFunction) _wrap_GraphicsContext_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36063 | { (char *)"GraphicsContext_SetLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36064 | { (char *)"GraphicsContext_SetRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_SetRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36065 | { (char *)"GraphicsContext_SetFont", (PyCFunction) _wrap_GraphicsContext_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
be68621e | 36066 | { (char *)"GraphicsContext_SetTextColour", (PyCFunction) _wrap_GraphicsContext_SetTextColour, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
36067 | { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
36068 | { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36069 | { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
36070 | { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, |
36071 | { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
be68621e | 36072 | { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
36073 | { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
36074 | { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36075 | { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36076 | { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36077 | { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 36078 | { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
f8eb59b9 | 36079 | { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
36080 | { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
36081 | { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36082 | { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36083 | { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36084 | { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL}, | |
36085 | { (char *)"new_GCDC", (PyCFunction) _wrap_new_GCDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36086 | { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL}, | |
0a27f394 RD |
36087 | { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL}, |
36088 | { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
36089 | { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL}, |
36090 | { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL}, | |
b39fe951 RD |
36091 | { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL}, |
36092 | { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL}, | |
36093 | { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL}, | |
36094 | { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL}, | |
36095 | { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL}, | |
36096 | { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL}, | |
36097 | { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL}, | |
36098 | { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL}, | |
36099 | { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL}, | |
36100 | { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
36101 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, |
36102 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
36103 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36104 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36105 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36106 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36107 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36108 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36109 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36110 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
36111 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36112 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
36113 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36114 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
36115 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
36116 | { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL}, |
36117 | { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL}, | |
36118 | { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL}, | |
36119 | { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL}, | |
36120 | { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36121 | { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36122 | { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36123 | { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36124 | { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36125 | { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL}, | |
36126 | { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL}, | |
36127 | { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL}, | |
36128 | { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL}, | |
36129 | { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL}, | |
36130 | { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL}, | |
554f62e9 | 36131 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 36132 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 36133 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 36134 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 36135 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 36136 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 36137 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 36138 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, |
50efceee RD |
36139 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
36140 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36141 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36142 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
554f62e9 RD |
36143 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, |
36144 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
36145 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36146 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36147 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36148 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36149 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
36150 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
36151 | { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL}, |
36152 | { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL}, | |
36153 | { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL}, | |
36154 | { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL}, | |
554f62e9 RD |
36155 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, |
36156 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
36157 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
36158 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
36159 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
36160 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
36161 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36162 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36163 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36164 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36165 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36166 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36167 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36168 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36169 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
36170 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
36171 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36172 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
36173 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
36174 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
36175 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
36176 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
36177 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
33d6fd3b RD |
36178 | { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL}, |
36179 | { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL}, | |
36180 | { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL}, | |
36181 | { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL}, | |
36182 | { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL}, | |
36183 | { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL}, | |
36184 | { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL}, | |
36185 | { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL}, | |
36186 | { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL}, | |
36187 | { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL}, | |
36188 | { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL}, | |
36189 | { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL}, | |
36190 | { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL}, | |
36191 | { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL}, | |
36192 | { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL}, | |
36193 | { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL}, | |
36194 | { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL}, | |
36195 | { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
36196 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
36197 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
36198 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36199 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
36200 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
36201 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
36202 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
36203 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b RD |
36204 | { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL}, |
36205 | { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
36206 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
36207 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36208 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36209 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36210 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
f460c29d RD |
36211 | { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
36212 | { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36213 | { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
36214 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
36215 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
36216 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
36217 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
36218 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36219 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
36220 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
27e45892 RD |
36221 | { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL}, |
36222 | { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL}, | |
36223 | { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL}, | |
36224 | { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL}, | |
36225 | { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL}, | |
36226 | { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL}, | |
36227 | { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36228 | { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36229 | { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36230 | { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
36231 | { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, |
36232 | { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36233 | { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36234 | { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
36235 | { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
36236 | { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36237 | { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36238 | { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36239 | { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36240 | { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36241 | { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36242 | { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36243 | { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36244 | { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36245 | { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36246 | { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36247 | { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36248 | { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36249 | { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36250 | { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36251 | { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36252 | { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36253 | { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36254 | { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36255 | { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36256 | { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36257 | { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36258 | { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36259 | { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36260 | { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36261 | { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36262 | { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36263 | { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36264 | { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36265 | { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36266 | { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36267 | { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36268 | { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36269 | { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36270 | { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36271 | { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36272 | { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36273 | { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36274 | { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36275 | { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36276 | { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36277 | { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36278 | { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36279 | { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL}, | |
36280 | { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36281 | { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36282 | { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36283 | { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36284 | { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36285 | { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36286 | { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36287 | { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36288 | { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
36289 | { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL}, | |
36290 | { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
36291 | { NULL, NULL, 0, NULL } |
36292 | }; | |
36293 | ||
36294 | ||
36295 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
36296 | ||
72ef6efb RD |
36297 | static void *_p_wxPaintDCTo_p_wxClientDC(void *x) { |
36298 | return (void *)((wxClientDC *) ((wxPaintDC *) x)); | |
36299 | } | |
8e99bda9 RD |
36300 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
36301 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
36302 | } | |
36303 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
36304 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
36305 | } | |
72ef6efb RD |
36306 | static void *_p_wxClientDCTo_p_wxWindowDC(void *x) { |
36307 | return (void *)((wxWindowDC *) ((wxClientDC *) x)); | |
36308 | } | |
36309 | static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) { | |
36310 | return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x)); | |
36311 | } | |
fc46b7f3 RD |
36312 | static void *_p_wxPyLocaleTo_p_wxLocale(void *x) { |
36313 | return (void *)((wxLocale *) ((wxPyLocale *) x)); | |
36314 | } | |
554f62e9 RD |
36315 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
36316 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
36317 | } | |
36318 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
36319 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
36320 | } | |
36321 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
36322 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
36323 | } | |
36324 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
36325 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
36326 | } | |
36327 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
36328 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
36329 | } | |
36330 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
36331 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
36332 | } | |
36333 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
36334 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
36335 | } | |
36336 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
36337 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
36338 | } | |
72ef6efb RD |
36339 | static void *_p_wxGCDCTo_p_wxDC(void *x) { |
36340 | return (void *)((wxDC *) ((wxGCDC *) x)); | |
36341 | } | |
554f62e9 RD |
36342 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
36343 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
36344 | } | |
24f6c4e8 RD |
36345 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
36346 | return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
36347 | } | |
554f62e9 RD |
36348 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { |
36349 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
36350 | } | |
36351 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { | |
36352 | return (void *)((wxDC *) ((wxMemoryDC *) x)); | |
36353 | } | |
36354 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { | |
36355 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
36356 | } | |
36357 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { | |
36358 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
36359 | } | |
554f62e9 | 36360 | static void *_p_wxClientDCTo_p_wxDC(void *x) { |
72ef6efb | 36361 | return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x)); |
554f62e9 RD |
36362 | } |
36363 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
72ef6efb | 36364 | return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); |
554f62e9 | 36365 | } |
24f6c4e8 RD |
36366 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { |
36367 | return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
36368 | } | |
36369 | static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) { | |
36370 | return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
36371 | } | |
554f62e9 RD |
36372 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { |
36373 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
36374 | } | |
36375 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
36376 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
36377 | } | |
50efceee RD |
36378 | static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) { |
36379 | return (void *)((wxGDIObjListBase *) ((wxBrushList *) x)); | |
36380 | } | |
36381 | static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) { | |
36382 | return (void *)((wxGDIObjListBase *) ((wxFontList *) x)); | |
36383 | } | |
36384 | static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) { | |
36385 | return (void *)((wxGDIObjListBase *) ((wxPenList *) x)); | |
36386 | } | |
554f62e9 RD |
36387 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
36388 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
36389 | } | |
36390 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
36391 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
36392 | } | |
36393 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
36394 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
36395 | } | |
36396 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
36397 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
36398 | } | |
554f62e9 RD |
36399 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
36400 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
36401 | } | |
0f83f5da RD |
36402 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
36403 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
36404 | } | |
554f62e9 RD |
36405 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
36406 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
36407 | } | |
36408 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
36409 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
36410 | } | |
36411 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
36412 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
36413 | } | |
36414 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
36415 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
36416 | } | |
36417 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
36418 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
36419 | } | |
36420 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
36421 | return (void *)((wxObject *) ((wxSizer *) x)); | |
36422 | } | |
36423 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
36424 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
36425 | } | |
36426 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
36427 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
36428 | } | |
554f62e9 RD |
36429 | static void *_p_wxEventTo_p_wxObject(void *x) { |
36430 | return (void *)((wxObject *) ((wxEvent *) x)); | |
36431 | } | |
36432 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
36433 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
36434 | } | |
36435 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
36436 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
36437 | } | |
36438 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
36439 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
36440 | } | |
27e45892 RD |
36441 | static void *_p_wxPseudoDCTo_p_wxObject(void *x) { |
36442 | return (void *)((wxObject *) ((wxPseudoDC *) x)); | |
36443 | } | |
2131d850 RD |
36444 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
36445 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
36446 | } | |
554f62e9 RD |
36447 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
36448 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
36449 | } | |
36450 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
36451 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
36452 | } | |
36453 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
36454 | return (void *)((wxObject *) ((wxDC *) x)); | |
36455 | } | |
36456 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
36457 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
36458 | } | |
36459 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
36460 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
36461 | } | |
36462 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
36463 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
36464 | } | |
36465 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
36466 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
36467 | } | |
36468 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
36469 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
36470 | } | |
36471 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
36472 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
36473 | } | |
36474 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
72ef6efb | 36475 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x)); |
554f62e9 RD |
36476 | } |
36477 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
36478 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
36479 | } | |
36480 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
36481 | return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x)); | |
36482 | } | |
36483 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
36484 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
36485 | } | |
36486 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
36487 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
36488 | } | |
36489 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
36490 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
36491 | } | |
36492 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
36493 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
36494 | } | |
36495 | static void *_p_wxEffectsTo_p_wxObject(void *x) { | |
36496 | return (void *)((wxObject *) ((wxEffects *) x)); | |
36497 | } | |
36498 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
36499 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
36500 | } | |
36501 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
36502 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
36503 | } | |
36504 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
36505 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
36506 | } | |
36507 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
36508 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
36509 | } | |
36510 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
36511 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
36512 | } | |
36513 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
36514 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
36515 | } | |
36516 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
36517 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
36518 | } | |
36519 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
36520 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
36521 | } | |
36522 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
36523 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
36524 | } | |
36525 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
36526 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
36527 | } | |
36528 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
36529 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
36530 | } | |
36531 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
36532 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
36533 | } | |
36534 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
36535 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
36536 | } | |
36537 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
36538 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
36539 | } | |
36540 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
36541 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
36542 | } | |
36543 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
36544 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
36545 | } | |
36546 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
36547 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
36548 | } | |
36549 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
36550 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
36551 | } | |
36552 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
36553 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
36554 | } | |
36555 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
36556 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
36557 | } | |
36558 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
36559 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
36560 | } | |
36561 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
36562 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
36563 | } | |
36564 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
36565 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
36566 | } | |
36567 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
36568 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
36569 | } | |
36570 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
36571 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
36572 | } | |
36573 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
36574 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
36575 | } | |
36576 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
36577 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
36578 | } | |
36579 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
36580 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
36581 | } | |
0f83f5da RD |
36582 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
36583 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
36584 | } | |
24f6c4e8 RD |
36585 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { |
36586 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); | |
36587 | } | |
554f62e9 | 36588 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { |
8e99bda9 | 36589 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
554f62e9 | 36590 | } |
24f6c4e8 RD |
36591 | static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) { |
36592 | return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
554f62e9 RD |
36593 | } |
36594 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
36595 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
36596 | } | |
36597 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
36598 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
36599 | } | |
36600 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { | |
36601 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
36602 | } | |
36603 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
36604 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
36605 | } | |
36606 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
36607 | return (void *)((wxObject *) ((wxImage *) x)); | |
36608 | } | |
36609 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
36610 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
36611 | } | |
36612 | static void *_p_wxPaletteTo_p_wxObject(void *x) { | |
36613 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
36614 | } | |
36615 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
8e99bda9 | 36616 | return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
554f62e9 RD |
36617 | } |
36618 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
36619 | return (void *)((wxObject *) ((wxImageList *) x)); | |
36620 | } | |
72ef6efb RD |
36621 | static void *_p_wxGCDCTo_p_wxObject(void *x) { |
36622 | return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x)); | |
36623 | } | |
554f62e9 RD |
36624 | static void *_p_wxCursorTo_p_wxObject(void *x) { |
36625 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
36626 | } | |
36627 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
36628 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
36629 | } | |
36630 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
36631 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
36632 | } | |
36633 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
36634 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
36635 | } | |
36636 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
36637 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
36638 | } | |
36639 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
36640 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
36641 | } | |
36642 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
36643 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
36644 | } | |
36645 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
36646 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
36647 | } | |
36648 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
36649 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
36650 | } | |
36651 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
36652 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
36653 | } | |
554f62e9 RD |
36654 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
36655 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
36656 | } | |
36657 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
36658 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
36659 | } | |
36660 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
36661 | return (void *)((wxObject *) ((wxMask *) x)); | |
36662 | } | |
36663 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
36664 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
36665 | } | |
36666 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
36667 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
36668 | } | |
36669 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
36670 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
36671 | } | |
36672 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
36673 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
36674 | } | |
36675 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
36676 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
36677 | } | |
36678 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
36679 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
36680 | } | |
36681 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
36682 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
36683 | } | |
36684 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
36685 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
36686 | } | |
36687 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
36688 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
36689 | } | |
36690 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
36691 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
36692 | } | |
36693 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
36694 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
36695 | } | |
36696 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
36697 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
36698 | } | |
36699 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
36700 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
36701 | } | |
36702 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
36703 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
36704 | } | |
36705 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
36706 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
36707 | } | |
36708 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
36709 | return (void *)((wxObject *) ((wxColour *) x)); | |
36710 | } | |
554f62e9 RD |
36711 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
36712 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
36713 | } | |
36714 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
36715 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
36716 | } | |
36717 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
36718 | return (void *)((wxWindow *) ((wxControl *) x)); | |
36719 | } | |
36720 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
36721 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
36722 | } | |
36723 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
36724 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
36725 | } | |
fc46b7f3 RD |
36726 | static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) { |
36727 | return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x)); | |
36728 | } | |
36729 | static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) { | |
36730 | return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x)); | |
36731 | } | |
36732 | static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0}; | |
554f62e9 | 36733 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
72ef6efb | 36734 | static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
36735 | 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}; |
36736 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
36737 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
36738 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
36739 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
0a27f394 | 36740 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; |
fc46b7f3 RD |
36741 | static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0}; |
36742 | static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0}; | |
24f6c4e8 | 36743 | static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
36744 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; |
36745 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
36746 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
36747 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
36748 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 36749 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; |
554f62e9 | 36750 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; |
72ef6efb | 36751 | static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
36752 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; |
36753 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
36754 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
36755 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
b39fe951 | 36756 | static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
36757 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; |
36758 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
36759 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
36760 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
36761 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
36762 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
36763 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
72ef6efb | 36764 | static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0}; |
50efceee | 36765 | static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0}; |
554f62e9 | 36766 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; |
72ef6efb RD |
36767 | static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0}; |
36768 | static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0}; | |
33d6fd3b | 36769 | static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
36770 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
36771 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
36772 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
36773 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
36774 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
36775 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
36776 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
36777 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
36778 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
36779 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
36780 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
36781 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
36782 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
36783 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
fc46b7f3 RD |
36784 | static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0}; |
36785 | static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0}; | |
554f62e9 RD |
36786 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
36787 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
554f62e9 | 36788 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
0f83f5da | 36789 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
554f62e9 RD |
36790 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
36791 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
36792 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
36793 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
36794 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
36795 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
36796 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
36797 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
36798 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
36799 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
36800 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
36801 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 36802 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
554f62e9 RD |
36803 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
36804 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
36805 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
36806 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
36807 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
36808 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
36809 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
36810 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
36811 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
36812 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
36813 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
36814 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
36815 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
36816 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
36817 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
36818 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
36819 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
36820 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
36821 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
36822 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
36823 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
36824 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
36825 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
554f62e9 RD |
36826 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; |
36827 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
36828 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
36829 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
36830 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
36831 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; | |
36832 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; | |
24f6c4e8 | 36833 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; |
72ef6efb | 36834 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
27e45892 | 36835 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
2131d850 | 36836 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
554f62e9 RD |
36837 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
36838 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
36839 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
0f83f5da | 36840 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
554f62e9 RD |
36841 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
36842 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; | |
36843 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; | |
36844 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
36845 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
36846 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
36847 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
36848 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
36849 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
36850 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
36851 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
36852 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
36853 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
36854 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
36855 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
36856 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
36857 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
36858 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
36859 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
36860 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
36861 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
36862 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
b39fe951 | 36863 | static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
36864 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; |
36865 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
36866 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
36867 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
36868 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 36869 | static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0}; |
554f62e9 | 36870 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
72ef6efb | 36871 | static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
36872 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; |
36873 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
36874 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
27e45892 | 36875 | static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0}; |
554f62e9 | 36876 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; |
fc46b7f3 | 36877 | static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
36878 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; |
36879 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; | |
36880 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
36881 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
36882 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
36883 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
36884 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
36885 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
50efceee | 36886 | static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
36887 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; |
36888 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
36889 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
36890 | ||
36891 | static swig_type_info *swig_type_initial[] = { | |
fc46b7f3 | 36892 | &_swigt__p_buffer, |
554f62e9 RD |
36893 | &_swigt__p_char, |
36894 | &_swigt__p_double, | |
36895 | &_swigt__p_form_ops_t, | |
36896 | &_swigt__p_int, | |
36897 | &_swigt__p_unsigned_char, | |
36898 | &_swigt__p_unsigned_int, | |
36899 | &_swigt__p_unsigned_long, | |
0a27f394 | 36900 | &_swigt__p_void, |
554f62e9 RD |
36901 | &_swigt__p_wxANIHandler, |
36902 | &_swigt__p_wxAcceleratorTable, | |
36903 | &_swigt__p_wxActivateEvent, | |
fc46b7f3 RD |
36904 | &_swigt__p_wxAlphaPixelData, |
36905 | &_swigt__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 36906 | &_swigt__p_wxAutoBufferedPaintDC, |
554f62e9 RD |
36907 | &_swigt__p_wxBMPHandler, |
36908 | &_swigt__p_wxBitmap, | |
36909 | &_swigt__p_wxBoxSizer, | |
36910 | &_swigt__p_wxBrush, | |
36911 | &_swigt__p_wxBrushList, | |
36912 | &_swigt__p_wxBufferedDC, | |
36913 | &_swigt__p_wxBufferedPaintDC, | |
36914 | &_swigt__p_wxCURHandler, | |
fc46b7f3 | 36915 | &_swigt__p_wxChar, |
554f62e9 RD |
36916 | &_swigt__p_wxChildFocusEvent, |
36917 | &_swigt__p_wxClientDC, | |
2131d850 | 36918 | &_swigt__p_wxClipboardTextEvent, |
554f62e9 | 36919 | &_swigt__p_wxCloseEvent, |
72ef6efb | 36920 | &_swigt__p_wxColor, |
554f62e9 RD |
36921 | &_swigt__p_wxColour, |
36922 | &_swigt__p_wxColourDatabase, | |
36923 | &_swigt__p_wxCommandEvent, | |
36924 | &_swigt__p_wxContextMenuEvent, | |
36925 | &_swigt__p_wxControl, | |
36926 | &_swigt__p_wxControlWithItems, | |
36927 | &_swigt__p_wxCursor, | |
36928 | &_swigt__p_wxDC, | |
b39fe951 | 36929 | &_swigt__p_wxDCOverlay, |
554f62e9 RD |
36930 | &_swigt__p_wxDash, |
36931 | &_swigt__p_wxDateEvent, | |
36932 | &_swigt__p_wxDisplayChangedEvent, | |
36933 | &_swigt__p_wxDropFilesEvent, | |
36934 | &_swigt__p_wxDuplexMode, | |
36935 | &_swigt__p_wxEffects, | |
36936 | &_swigt__p_wxEncodingConverter, | |
36937 | &_swigt__p_wxEraseEvent, | |
36938 | &_swigt__p_wxEvent, | |
36939 | &_swigt__p_wxEvtHandler, | |
36940 | &_swigt__p_wxFSFile, | |
36941 | &_swigt__p_wxFileSystem, | |
36942 | &_swigt__p_wxFlexGridSizer, | |
36943 | &_swigt__p_wxFocusEvent, | |
36944 | &_swigt__p_wxFont, | |
36945 | &_swigt__p_wxFontList, | |
36946 | &_swigt__p_wxFontMapper, | |
36947 | &_swigt__p_wxGBSizerItem, | |
72ef6efb | 36948 | &_swigt__p_wxGCDC, |
50efceee | 36949 | &_swigt__p_wxGDIObjListBase, |
554f62e9 RD |
36950 | &_swigt__p_wxGDIObject, |
36951 | &_swigt__p_wxGIFHandler, | |
72ef6efb RD |
36952 | &_swigt__p_wxGraphicsContext, |
36953 | &_swigt__p_wxGraphicsPath, | |
554f62e9 RD |
36954 | &_swigt__p_wxGridBagSizer, |
36955 | &_swigt__p_wxGridSizer, | |
33d6fd3b | 36956 | &_swigt__p_wxHeaderButtonParams, |
554f62e9 RD |
36957 | &_swigt__p_wxICOHandler, |
36958 | &_swigt__p_wxIcon, | |
36959 | &_swigt__p_wxIconBundle, | |
36960 | &_swigt__p_wxIconLocation, | |
36961 | &_swigt__p_wxIconizeEvent, | |
36962 | &_swigt__p_wxIdleEvent, | |
36963 | &_swigt__p_wxImage, | |
36964 | &_swigt__p_wxImageHandler, | |
36965 | &_swigt__p_wxImageList, | |
36966 | &_swigt__p_wxIndividualLayoutConstraint, | |
36967 | &_swigt__p_wxInitDialogEvent, | |
36968 | &_swigt__p_wxJPEGHandler, | |
36969 | &_swigt__p_wxKeyEvent, | |
36970 | &_swigt__p_wxLanguageInfo, | |
36971 | &_swigt__p_wxLayoutConstraints, | |
36972 | &_swigt__p_wxLocale, | |
36973 | &_swigt__p_wxMask, | |
36974 | &_swigt__p_wxMaximizeEvent, | |
36975 | &_swigt__p_wxMemoryDC, | |
36976 | &_swigt__p_wxMenu, | |
36977 | &_swigt__p_wxMenuBar, | |
36978 | &_swigt__p_wxMenuEvent, | |
36979 | &_swigt__p_wxMenuItem, | |
36980 | &_swigt__p_wxMetaFile, | |
36981 | &_swigt__p_wxMetaFileDC, | |
36982 | &_swigt__p_wxMirrorDC, | |
36983 | &_swigt__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 36984 | &_swigt__p_wxMouseCaptureLostEvent, |
554f62e9 RD |
36985 | &_swigt__p_wxMouseEvent, |
36986 | &_swigt__p_wxMoveEvent, | |
36987 | &_swigt__p_wxNativeEncodingInfo, | |
36988 | &_swigt__p_wxNativeFontInfo, | |
fc46b7f3 RD |
36989 | &_swigt__p_wxNativePixelData, |
36990 | &_swigt__p_wxNativePixelData_Accessor, | |
554f62e9 RD |
36991 | &_swigt__p_wxNavigationKeyEvent, |
36992 | &_swigt__p_wxNcPaintEvent, | |
36993 | &_swigt__p_wxNotifyEvent, | |
36994 | &_swigt__p_wxObject, | |
b39fe951 | 36995 | &_swigt__p_wxOverlay, |
554f62e9 RD |
36996 | &_swigt__p_wxPCXHandler, |
36997 | &_swigt__p_wxPNGHandler, | |
36998 | &_swigt__p_wxPNMHandler, | |
36999 | &_swigt__p_wxPaintDC, | |
37000 | &_swigt__p_wxPaintEvent, | |
37001 | &_swigt__p_wxPalette, | |
37002 | &_swigt__p_wxPaletteChangedEvent, | |
37003 | &_swigt__p_wxPaperSize, | |
37004 | &_swigt__p_wxPen, | |
37005 | &_swigt__p_wxPenList, | |
fc46b7f3 | 37006 | &_swigt__p_wxPixelDataBase, |
554f62e9 | 37007 | &_swigt__p_wxPoint, |
72ef6efb | 37008 | &_swigt__p_wxPoint2D, |
554f62e9 RD |
37009 | &_swigt__p_wxPostScriptDC, |
37010 | &_swigt__p_wxPrintData, | |
37011 | &_swigt__p_wxPrinterDC, | |
27e45892 | 37012 | &_swigt__p_wxPseudoDC, |
554f62e9 RD |
37013 | &_swigt__p_wxPyApp, |
37014 | &_swigt__p_wxPyCommandEvent, | |
37015 | &_swigt__p_wxPyEvent, | |
37016 | &_swigt__p_wxPyFontEnumerator, | |
37017 | &_swigt__p_wxPyImageHandler, | |
fc46b7f3 | 37018 | &_swigt__p_wxPyLocale, |
554f62e9 RD |
37019 | &_swigt__p_wxPySizer, |
37020 | &_swigt__p_wxPyValidator, | |
37021 | &_swigt__p_wxQueryNewPaletteEvent, | |
37022 | &_swigt__p_wxRect, | |
37023 | &_swigt__p_wxRegion, | |
37024 | &_swigt__p_wxRegionIterator, | |
37025 | &_swigt__p_wxRendererNative, | |
37026 | &_swigt__p_wxRendererVersion, | |
37027 | &_swigt__p_wxScreenDC, | |
37028 | &_swigt__p_wxScrollEvent, | |
37029 | &_swigt__p_wxScrollWinEvent, | |
37030 | &_swigt__p_wxSetCursorEvent, | |
37031 | &_swigt__p_wxShowEvent, | |
37032 | &_swigt__p_wxSize, | |
37033 | &_swigt__p_wxSizeEvent, | |
37034 | &_swigt__p_wxSizer, | |
37035 | &_swigt__p_wxSizerItem, | |
37036 | &_swigt__p_wxSplitterRenderParams, | |
37037 | &_swigt__p_wxStaticBoxSizer, | |
37038 | &_swigt__p_wxStdDialogButtonSizer, | |
50efceee | 37039 | &_swigt__p_wxStockGDI, |
554f62e9 RD |
37040 | &_swigt__p_wxString, |
37041 | &_swigt__p_wxSysColourChangedEvent, | |
37042 | &_swigt__p_wxTIFFHandler, | |
37043 | &_swigt__p_wxUpdateUIEvent, | |
37044 | &_swigt__p_wxValidator, | |
37045 | &_swigt__p_wxWindow, | |
37046 | &_swigt__p_wxWindowCreateEvent, | |
37047 | &_swigt__p_wxWindowDC, | |
37048 | &_swigt__p_wxWindowDestroyEvent, | |
37049 | &_swigt__p_wxXPMHandler, | |
37050 | }; | |
37051 | ||
fc46b7f3 | 37052 | static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
37053 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
37054 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
37055 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
37056 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
37057 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
37058 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
37059 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
0a27f394 | 37060 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 RD |
37061 | static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}}; |
37062 | static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 37063 | static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
37064 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; |
37065 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
37066 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
37067 | 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}}; | |
37068 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 37069 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb RD |
37070 | static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxClientDC, 0, 0},{0, 0, 0, 0}}; |
37071 | static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 RD |
37072 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
37073 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
37074 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 37075 | static swig_cast_info _swigc__p_wxDC[] = { {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxDC, 0, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxGCDC, _p_wxGCDCTo_p_wxDC, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxDC, 0, 0},{0, 0, 0, 0}}; |
b39fe951 | 37076 | static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
37077 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; |
37078 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
37079 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
37080 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
37081 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
37082 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
37083 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 37084 | static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}}; |
50efceee | 37085 | 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}}; |
554f62e9 | 37086 | 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}}; |
72ef6efb RD |
37087 | static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}}; |
37088 | static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}}; | |
33d6fd3b | 37089 | static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
37090 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
37091 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
37092 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
37093 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
37094 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
37095 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 37096 | 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}}; |
554f62e9 | 37097 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; |
8e99bda9 | 37098 | 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}}; |
554f62e9 RD |
37099 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; |
37100 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
37101 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
37102 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
37103 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 RD |
37104 | static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}}; |
37105 | static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 | 37106 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 37107 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0f83f5da | 37108 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
37109 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
37110 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
37111 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37112 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37113 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37114 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37115 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37116 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
37117 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37118 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37119 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37120 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 37121 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
37122 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
37123 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37124 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37125 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37126 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37127 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37128 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
37129 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37130 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
37131 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
37132 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37133 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37134 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37135 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
37136 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37137 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37138 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37139 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37140 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37141 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37142 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37143 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37144 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 RD |
37145 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; |
37146 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37147 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37148 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37149 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37150 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37151 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 37152 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 37153 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 37154 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 37155 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
37156 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
37157 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
37158 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
0f83f5da | 37159 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
37160 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
37161 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; | |
37162 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37163 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37164 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37165 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37166 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
37167 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
37168 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37169 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37170 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
37171 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37172 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37173 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37174 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37175 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37176 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37177 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37178 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
37179 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
37180 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
37181 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 37182 | 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_wxGCDC, _p_wxGCDCTo_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_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_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_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_wxAutoBufferedPaintDC, _p_wxAutoBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_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}}; |
b39fe951 | 37183 | static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
37184 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
37185 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
37186 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
37187 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
37188 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 37189 | 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}}; |
554f62e9 | 37190 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 37191 | static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
37192 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; |
37193 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
37194 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 37195 | static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 37196 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 | 37197 | static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
37198 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; |
37199 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; | |
37200 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
37201 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
37202 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
37203 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
37204 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
37205 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
50efceee | 37206 | static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
37207 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; |
37208 | 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}}; | |
72ef6efb | 37209 | static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxWindowDC, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
37210 | |
37211 | static swig_cast_info *swig_cast_initial[] = { | |
fc46b7f3 | 37212 | _swigc__p_buffer, |
554f62e9 RD |
37213 | _swigc__p_char, |
37214 | _swigc__p_double, | |
37215 | _swigc__p_form_ops_t, | |
37216 | _swigc__p_int, | |
37217 | _swigc__p_unsigned_char, | |
37218 | _swigc__p_unsigned_int, | |
37219 | _swigc__p_unsigned_long, | |
0a27f394 | 37220 | _swigc__p_void, |
554f62e9 RD |
37221 | _swigc__p_wxANIHandler, |
37222 | _swigc__p_wxAcceleratorTable, | |
37223 | _swigc__p_wxActivateEvent, | |
fc46b7f3 RD |
37224 | _swigc__p_wxAlphaPixelData, |
37225 | _swigc__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 37226 | _swigc__p_wxAutoBufferedPaintDC, |
554f62e9 RD |
37227 | _swigc__p_wxBMPHandler, |
37228 | _swigc__p_wxBitmap, | |
37229 | _swigc__p_wxBoxSizer, | |
37230 | _swigc__p_wxBrush, | |
37231 | _swigc__p_wxBrushList, | |
37232 | _swigc__p_wxBufferedDC, | |
37233 | _swigc__p_wxBufferedPaintDC, | |
37234 | _swigc__p_wxCURHandler, | |
fc46b7f3 | 37235 | _swigc__p_wxChar, |
554f62e9 RD |
37236 | _swigc__p_wxChildFocusEvent, |
37237 | _swigc__p_wxClientDC, | |
2131d850 | 37238 | _swigc__p_wxClipboardTextEvent, |
554f62e9 | 37239 | _swigc__p_wxCloseEvent, |
72ef6efb | 37240 | _swigc__p_wxColor, |
554f62e9 RD |
37241 | _swigc__p_wxColour, |
37242 | _swigc__p_wxColourDatabase, | |
37243 | _swigc__p_wxCommandEvent, | |
37244 | _swigc__p_wxContextMenuEvent, | |
37245 | _swigc__p_wxControl, | |
37246 | _swigc__p_wxControlWithItems, | |
37247 | _swigc__p_wxCursor, | |
37248 | _swigc__p_wxDC, | |
b39fe951 | 37249 | _swigc__p_wxDCOverlay, |
554f62e9 RD |
37250 | _swigc__p_wxDash, |
37251 | _swigc__p_wxDateEvent, | |
37252 | _swigc__p_wxDisplayChangedEvent, | |
37253 | _swigc__p_wxDropFilesEvent, | |
37254 | _swigc__p_wxDuplexMode, | |
37255 | _swigc__p_wxEffects, | |
37256 | _swigc__p_wxEncodingConverter, | |
37257 | _swigc__p_wxEraseEvent, | |
37258 | _swigc__p_wxEvent, | |
37259 | _swigc__p_wxEvtHandler, | |
37260 | _swigc__p_wxFSFile, | |
37261 | _swigc__p_wxFileSystem, | |
37262 | _swigc__p_wxFlexGridSizer, | |
37263 | _swigc__p_wxFocusEvent, | |
37264 | _swigc__p_wxFont, | |
37265 | _swigc__p_wxFontList, | |
37266 | _swigc__p_wxFontMapper, | |
37267 | _swigc__p_wxGBSizerItem, | |
72ef6efb | 37268 | _swigc__p_wxGCDC, |
50efceee | 37269 | _swigc__p_wxGDIObjListBase, |
554f62e9 RD |
37270 | _swigc__p_wxGDIObject, |
37271 | _swigc__p_wxGIFHandler, | |
72ef6efb RD |
37272 | _swigc__p_wxGraphicsContext, |
37273 | _swigc__p_wxGraphicsPath, | |
554f62e9 RD |
37274 | _swigc__p_wxGridBagSizer, |
37275 | _swigc__p_wxGridSizer, | |
33d6fd3b | 37276 | _swigc__p_wxHeaderButtonParams, |
554f62e9 RD |
37277 | _swigc__p_wxICOHandler, |
37278 | _swigc__p_wxIcon, | |
37279 | _swigc__p_wxIconBundle, | |
37280 | _swigc__p_wxIconLocation, | |
37281 | _swigc__p_wxIconizeEvent, | |
37282 | _swigc__p_wxIdleEvent, | |
37283 | _swigc__p_wxImage, | |
37284 | _swigc__p_wxImageHandler, | |
37285 | _swigc__p_wxImageList, | |
37286 | _swigc__p_wxIndividualLayoutConstraint, | |
37287 | _swigc__p_wxInitDialogEvent, | |
37288 | _swigc__p_wxJPEGHandler, | |
37289 | _swigc__p_wxKeyEvent, | |
37290 | _swigc__p_wxLanguageInfo, | |
37291 | _swigc__p_wxLayoutConstraints, | |
37292 | _swigc__p_wxLocale, | |
37293 | _swigc__p_wxMask, | |
37294 | _swigc__p_wxMaximizeEvent, | |
37295 | _swigc__p_wxMemoryDC, | |
37296 | _swigc__p_wxMenu, | |
37297 | _swigc__p_wxMenuBar, | |
37298 | _swigc__p_wxMenuEvent, | |
37299 | _swigc__p_wxMenuItem, | |
37300 | _swigc__p_wxMetaFile, | |
37301 | _swigc__p_wxMetaFileDC, | |
37302 | _swigc__p_wxMirrorDC, | |
37303 | _swigc__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 37304 | _swigc__p_wxMouseCaptureLostEvent, |
554f62e9 RD |
37305 | _swigc__p_wxMouseEvent, |
37306 | _swigc__p_wxMoveEvent, | |
37307 | _swigc__p_wxNativeEncodingInfo, | |
37308 | _swigc__p_wxNativeFontInfo, | |
fc46b7f3 RD |
37309 | _swigc__p_wxNativePixelData, |
37310 | _swigc__p_wxNativePixelData_Accessor, | |
554f62e9 RD |
37311 | _swigc__p_wxNavigationKeyEvent, |
37312 | _swigc__p_wxNcPaintEvent, | |
37313 | _swigc__p_wxNotifyEvent, | |
37314 | _swigc__p_wxObject, | |
b39fe951 | 37315 | _swigc__p_wxOverlay, |
554f62e9 RD |
37316 | _swigc__p_wxPCXHandler, |
37317 | _swigc__p_wxPNGHandler, | |
37318 | _swigc__p_wxPNMHandler, | |
37319 | _swigc__p_wxPaintDC, | |
37320 | _swigc__p_wxPaintEvent, | |
37321 | _swigc__p_wxPalette, | |
37322 | _swigc__p_wxPaletteChangedEvent, | |
37323 | _swigc__p_wxPaperSize, | |
37324 | _swigc__p_wxPen, | |
37325 | _swigc__p_wxPenList, | |
fc46b7f3 | 37326 | _swigc__p_wxPixelDataBase, |
554f62e9 | 37327 | _swigc__p_wxPoint, |
72ef6efb | 37328 | _swigc__p_wxPoint2D, |
554f62e9 RD |
37329 | _swigc__p_wxPostScriptDC, |
37330 | _swigc__p_wxPrintData, | |
37331 | _swigc__p_wxPrinterDC, | |
27e45892 | 37332 | _swigc__p_wxPseudoDC, |
554f62e9 RD |
37333 | _swigc__p_wxPyApp, |
37334 | _swigc__p_wxPyCommandEvent, | |
37335 | _swigc__p_wxPyEvent, | |
37336 | _swigc__p_wxPyFontEnumerator, | |
37337 | _swigc__p_wxPyImageHandler, | |
fc46b7f3 | 37338 | _swigc__p_wxPyLocale, |
554f62e9 RD |
37339 | _swigc__p_wxPySizer, |
37340 | _swigc__p_wxPyValidator, | |
37341 | _swigc__p_wxQueryNewPaletteEvent, | |
37342 | _swigc__p_wxRect, | |
37343 | _swigc__p_wxRegion, | |
37344 | _swigc__p_wxRegionIterator, | |
37345 | _swigc__p_wxRendererNative, | |
37346 | _swigc__p_wxRendererVersion, | |
37347 | _swigc__p_wxScreenDC, | |
37348 | _swigc__p_wxScrollEvent, | |
37349 | _swigc__p_wxScrollWinEvent, | |
37350 | _swigc__p_wxSetCursorEvent, | |
37351 | _swigc__p_wxShowEvent, | |
37352 | _swigc__p_wxSize, | |
37353 | _swigc__p_wxSizeEvent, | |
37354 | _swigc__p_wxSizer, | |
37355 | _swigc__p_wxSizerItem, | |
37356 | _swigc__p_wxSplitterRenderParams, | |
37357 | _swigc__p_wxStaticBoxSizer, | |
37358 | _swigc__p_wxStdDialogButtonSizer, | |
50efceee | 37359 | _swigc__p_wxStockGDI, |
554f62e9 RD |
37360 | _swigc__p_wxString, |
37361 | _swigc__p_wxSysColourChangedEvent, | |
37362 | _swigc__p_wxTIFFHandler, | |
37363 | _swigc__p_wxUpdateUIEvent, | |
37364 | _swigc__p_wxValidator, | |
37365 | _swigc__p_wxWindow, | |
37366 | _swigc__p_wxWindowCreateEvent, | |
37367 | _swigc__p_wxWindowDC, | |
37368 | _swigc__p_wxWindowDestroyEvent, | |
37369 | _swigc__p_wxXPMHandler, | |
37370 | }; | |
37371 | ||
37372 | ||
37373 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
37374 | ||
37375 | static swig_const_info swig_const_table[] = { | |
37376 | {0, 0, 0, 0.0, 0, 0}}; | |
37377 | ||
37378 | #ifdef __cplusplus | |
37379 | } | |
37380 | #endif | |
37381 | /* ----------------------------------------------------------------------------- | |
37382 | * Type initialization: | |
37383 | * This problem is tough by the requirement that no dynamic | |
37384 | * memory is used. Also, since swig_type_info structures store pointers to | |
37385 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
37386 | * to swig_type_info structures, we need some lookup code at initialization. | |
37387 | * The idea is that swig generates all the structures that are needed. | |
37388 | * The runtime then collects these partially filled structures. | |
37389 | * The SWIG_InitializeModule function takes these initial arrays out of | |
37390 | * swig_module, and does all the lookup, filling in the swig_module.types | |
37391 | * array with the correct data and linking the correct swig_cast_info | |
37392 | * structures together. | |
37393 | * | |
37394 | * The generated swig_type_info structures are assigned staticly to an initial | |
37395 | * array. We just loop though that array, and handle each type individually. | |
37396 | * First we lookup if this type has been already loaded, and if so, use the | |
37397 | * loaded structure instead of the generated one. Then we have to fill in the | |
37398 | * cast linked list. The cast data is initially stored in something like a | |
37399 | * two-dimensional array. Each row corresponds to a type (there are the same | |
37400 | * number of rows as there are in the swig_type_initial array). Each entry in | |
37401 | * a column is one of the swig_cast_info structures for that type. | |
37402 | * The cast_initial array is actually an array of arrays, because each row has | |
37403 | * a variable number of columns. So to actually build the cast linked list, | |
37404 | * we find the array of casts associated with the type, and loop through it | |
37405 | * adding the casts to the list. The one last trick we need to do is making | |
37406 | * sure the type pointer in the swig_cast_info struct is correct. | |
37407 | * | |
37408 | * First off, we lookup the cast->type name to see if it is already loaded. | |
37409 | * There are three cases to handle: | |
37410 | * 1) If the cast->type has already been loaded AND the type we are adding | |
37411 | * casting info to has not been loaded (it is in this module), THEN we | |
37412 | * replace the cast->type pointer with the type pointer that has already | |
37413 | * been loaded. | |
37414 | * 2) If BOTH types (the one we are adding casting info to, and the | |
37415 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
37416 | * the previous module so we just ignore it. | |
37417 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
37418 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
37419 | * be correct. | |
37420 | * ----------------------------------------------------------------------------- */ | |
37421 | ||
37422 | #ifdef __cplusplus | |
37423 | extern "C" { | |
37424 | #if 0 | |
37425 | } /* c-mode */ | |
37426 | #endif | |
37427 | #endif | |
37428 | ||
37429 | #if 0 | |
37430 | #define SWIGRUNTIME_DEBUG | |
37431 | #endif | |
37432 | ||
37433 | SWIGRUNTIME void | |
37434 | SWIG_InitializeModule(void *clientdata) { | |
37435 | size_t i; | |
37436 | swig_module_info *module_head; | |
37437 | static int init_run = 0; | |
37438 | ||
37439 | clientdata = clientdata; | |
37440 | ||
37441 | if (init_run) return; | |
37442 | init_run = 1; | |
37443 | ||
37444 | /* Initialize the swig_module */ | |
37445 | swig_module.type_initial = swig_type_initial; | |
37446 | swig_module.cast_initial = swig_cast_initial; | |
37447 | ||
37448 | /* Try and load any already created modules */ | |
37449 | module_head = SWIG_GetModule(clientdata); | |
37450 | if (module_head) { | |
37451 | swig_module.next = module_head->next; | |
37452 | module_head->next = &swig_module; | |
37453 | } else { | |
37454 | /* This is the first module loaded */ | |
37455 | swig_module.next = &swig_module; | |
37456 | SWIG_SetModule(clientdata, &swig_module); | |
37457 | } | |
37458 | ||
37459 | /* Now work on filling in swig_module.types */ | |
37460 | #ifdef SWIGRUNTIME_DEBUG | |
37461 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
37462 | #endif | |
37463 | for (i = 0; i < swig_module.size; ++i) { | |
37464 | swig_type_info *type = 0; | |
37465 | swig_type_info *ret; | |
37466 | swig_cast_info *cast; | |
37467 | ||
37468 | #ifdef SWIGRUNTIME_DEBUG | |
37469 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
37470 | #endif | |
37471 | ||
37472 | /* if there is another module already loaded */ | |
37473 | if (swig_module.next != &swig_module) { | |
37474 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
be9b1dca | 37475 | } |
554f62e9 RD |
37476 | if (type) { |
37477 | /* Overwrite clientdata field */ | |
37478 | #ifdef SWIGRUNTIME_DEBUG | |
37479 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
37480 | #endif | |
37481 | if (swig_module.type_initial[i]->clientdata) { | |
37482 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
37483 | #ifdef SWIGRUNTIME_DEBUG | |
37484 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
37485 | #endif | |
37486 | } | |
37487 | } else { | |
37488 | type = swig_module.type_initial[i]; | |
be9b1dca | 37489 | } |
554f62e9 RD |
37490 | |
37491 | /* Insert casting types */ | |
37492 | cast = swig_module.cast_initial[i]; | |
37493 | while (cast->type) { | |
37494 | /* Don't need to add information already in the list */ | |
37495 | ret = 0; | |
37496 | #ifdef SWIGRUNTIME_DEBUG | |
37497 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
37498 | #endif | |
37499 | if (swig_module.next != &swig_module) { | |
37500 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
37501 | #ifdef SWIGRUNTIME_DEBUG | |
37502 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
37503 | #endif | |
37504 | } | |
37505 | if (ret) { | |
37506 | if (type == swig_module.type_initial[i]) { | |
37507 | #ifdef SWIGRUNTIME_DEBUG | |
37508 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
37509 | #endif | |
37510 | cast->type = ret; | |
37511 | ret = 0; | |
37512 | } else { | |
37513 | /* Check for casting already in the list */ | |
37514 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
37515 | #ifdef SWIGRUNTIME_DEBUG | |
37516 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
37517 | #endif | |
37518 | if (!ocast) ret = 0; | |
37519 | } | |
37520 | } | |
37521 | ||
37522 | if (!ret) { | |
37523 | #ifdef SWIGRUNTIME_DEBUG | |
37524 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
37525 | #endif | |
37526 | if (type->cast) { | |
37527 | type->cast->prev = cast; | |
37528 | cast->next = type->cast; | |
37529 | } | |
37530 | type->cast = cast; | |
37531 | } | |
37532 | cast++; | |
be9b1dca | 37533 | } |
554f62e9 RD |
37534 | /* Set entry in modules->types array equal to the type */ |
37535 | swig_module.types[i] = type; | |
37536 | } | |
37537 | swig_module.types[i] = 0; | |
37538 | ||
37539 | #ifdef SWIGRUNTIME_DEBUG | |
37540 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
37541 | for (i = 0; i < swig_module.size; ++i) { | |
37542 | int j = 0; | |
37543 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
37544 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
37545 | while (cast->type) { | |
37546 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
37547 | cast++; | |
37548 | ++j; | |
37549 | } | |
37550 | printf("---- Total casts: %d\n",j); | |
37551 | } | |
37552 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
37553 | #endif | |
37554 | } | |
37555 | ||
37556 | /* This function will propagate the clientdata field of type to | |
37557 | * any new swig_type_info structures that have been added into the list | |
37558 | * of equivalent types. It is like calling | |
37559 | * SWIG_TypeClientData(type, clientdata) a second time. | |
37560 | */ | |
37561 | SWIGRUNTIME void | |
37562 | SWIG_PropagateClientData(void) { | |
37563 | size_t i; | |
37564 | swig_cast_info *equiv; | |
37565 | static int init_run = 0; | |
37566 | ||
37567 | if (init_run) return; | |
37568 | init_run = 1; | |
37569 | ||
37570 | for (i = 0; i < swig_module.size; i++) { | |
37571 | if (swig_module.types[i]->clientdata) { | |
37572 | equiv = swig_module.types[i]->cast; | |
37573 | while (equiv) { | |
37574 | if (!equiv->converter) { | |
37575 | if (equiv->type && !equiv->type->clientdata) | |
37576 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
37577 | } | |
37578 | equiv = equiv->next; | |
37579 | } | |
be9b1dca | 37580 | } |
554f62e9 RD |
37581 | } |
37582 | } | |
37583 | ||
37584 | #ifdef __cplusplus | |
37585 | #if 0 | |
37586 | { | |
37587 | /* c-mode */ | |
37588 | #endif | |
37589 | } | |
37590 | #endif | |
37591 | ||
37592 | ||
37593 | ||
37594 | #ifdef __cplusplus | |
37595 | extern "C" { | |
37596 | #endif | |
37597 | ||
37598 | /* Python-specific SWIG API */ | |
37599 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
37600 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
37601 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
37602 | ||
37603 | /* ----------------------------------------------------------------------------- | |
37604 | * global variable support code. | |
37605 | * ----------------------------------------------------------------------------- */ | |
37606 | ||
37607 | typedef struct swig_globalvar { | |
37608 | char *name; /* Name of global variable */ | |
37609 | PyObject *(*get_attr)(void); /* Return the current value */ | |
37610 | int (*set_attr)(PyObject *); /* Set the value */ | |
37611 | struct swig_globalvar *next; | |
37612 | } swig_globalvar; | |
37613 | ||
37614 | typedef struct swig_varlinkobject { | |
37615 | PyObject_HEAD | |
37616 | swig_globalvar *vars; | |
37617 | } swig_varlinkobject; | |
37618 | ||
37619 | SWIGINTERN PyObject * | |
37620 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
37621 | return PyString_FromString("<Swig global variables>"); | |
37622 | } | |
37623 | ||
37624 | SWIGINTERN PyObject * | |
37625 | swig_varlink_str(swig_varlinkobject *v) { | |
37626 | PyObject *str = PyString_FromString("("); | |
37627 | swig_globalvar *var; | |
37628 | for (var = v->vars; var; var=var->next) { | |
37629 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
37630 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
37631 | } | |
37632 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
37633 | return str; | |
37634 | } | |
37635 | ||
37636 | SWIGINTERN int | |
37637 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
37638 | PyObject *str = swig_varlink_str(v); | |
37639 | fprintf(fp,"Swig global variables "); | |
37640 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
37641 | Py_DECREF(str); | |
37642 | return 0; | |
37643 | } | |
37644 | ||
37645 | SWIGINTERN void | |
37646 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
37647 | swig_globalvar *var = v->vars; | |
37648 | while (var) { | |
37649 | swig_globalvar *n = var->next; | |
37650 | free(var->name); | |
37651 | free(var); | |
37652 | var = n; | |
be9b1dca | 37653 | } |
554f62e9 RD |
37654 | } |
37655 | ||
37656 | SWIGINTERN PyObject * | |
37657 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
37658 | PyObject *res = NULL; | |
37659 | swig_globalvar *var = v->vars; | |
37660 | while (var) { | |
37661 | if (strcmp(var->name,n) == 0) { | |
37662 | res = (*var->get_attr)(); | |
37663 | break; | |
37664 | } | |
37665 | var = var->next; | |
be9b1dca | 37666 | } |
554f62e9 RD |
37667 | if (res == NULL && !PyErr_Occurred()) { |
37668 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 37669 | } |
554f62e9 RD |
37670 | return res; |
37671 | } | |
37672 | ||
37673 | SWIGINTERN int | |
37674 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
37675 | int res = 1; | |
37676 | swig_globalvar *var = v->vars; | |
37677 | while (var) { | |
37678 | if (strcmp(var->name,n) == 0) { | |
37679 | res = (*var->set_attr)(p); | |
37680 | break; | |
37681 | } | |
37682 | var = var->next; | |
be9b1dca | 37683 | } |
554f62e9 RD |
37684 | if (res == 1 && !PyErr_Occurred()) { |
37685 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 37686 | } |
554f62e9 RD |
37687 | return res; |
37688 | } | |
37689 | ||
37690 | SWIGINTERN PyTypeObject* | |
37691 | swig_varlink_type(void) { | |
37692 | static char varlink__doc__[] = "Swig var link object"; | |
37693 | static PyTypeObject varlink_type; | |
37694 | static int type_init = 0; | |
37695 | if (!type_init) { | |
37696 | const PyTypeObject tmp | |
37697 | = { | |
37698 | PyObject_HEAD_INIT(NULL) | |
37699 | 0, /* Number of items in variable part (ob_size) */ | |
37700 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
37701 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
37702 | 0, /* Itemsize (tp_itemsize) */ | |
37703 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
37704 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
37705 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
37706 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
37707 | 0, /* tp_compare */ | |
37708 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
37709 | 0, /* tp_as_number */ | |
37710 | 0, /* tp_as_sequence */ | |
37711 | 0, /* tp_as_mapping */ | |
37712 | 0, /* tp_hash */ | |
37713 | 0, /* tp_call */ | |
37714 | (reprfunc)swig_varlink_str, /* tp_str */ | |
37715 | 0, /* tp_getattro */ | |
37716 | 0, /* tp_setattro */ | |
37717 | 0, /* tp_as_buffer */ | |
37718 | 0, /* tp_flags */ | |
37719 | varlink__doc__, /* tp_doc */ | |
37720 | 0, /* tp_traverse */ | |
37721 | 0, /* tp_clear */ | |
37722 | 0, /* tp_richcompare */ | |
37723 | 0, /* tp_weaklistoffset */ | |
37724 | #if PY_VERSION_HEX >= 0x02020000 | |
37725 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
37726 | #endif | |
37727 | #if PY_VERSION_HEX >= 0x02030000 | |
37728 | 0, /* tp_del */ | |
37729 | #endif | |
37730 | #ifdef COUNT_ALLOCS | |
37731 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
37732 | #endif | |
37733 | }; | |
37734 | varlink_type = tmp; | |
37735 | varlink_type.ob_type = &PyType_Type; | |
37736 | type_init = 1; | |
be9b1dca | 37737 | } |
554f62e9 RD |
37738 | return &varlink_type; |
37739 | } | |
37740 | ||
37741 | /* Create a variable linking object for use later */ | |
37742 | SWIGINTERN PyObject * | |
37743 | SWIG_Python_newvarlink(void) { | |
37744 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
37745 | if (result) { | |
37746 | result->vars = 0; | |
37747 | } | |
37748 | return ((PyObject*) result); | |
37749 | } | |
37750 | ||
37751 | SWIGINTERN void | |
37752 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
37753 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
37754 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
37755 | if (gv) { | |
37756 | size_t size = strlen(name)+1; | |
37757 | gv->name = (char *)malloc(size); | |
37758 | if (gv->name) { | |
37759 | strncpy(gv->name,name,size); | |
37760 | gv->get_attr = get_attr; | |
37761 | gv->set_attr = set_attr; | |
37762 | gv->next = v->vars; | |
37763 | } | |
be9b1dca | 37764 | } |
554f62e9 RD |
37765 | v->vars = gv; |
37766 | } | |
37767 | ||
37768 | SWIGINTERN PyObject * | |
37769 | SWIG_globals() { | |
37770 | static PyObject *_SWIG_globals = 0; | |
37771 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
37772 | return _SWIG_globals; | |
37773 | } | |
37774 | ||
37775 | /* ----------------------------------------------------------------------------- | |
37776 | * constants/methods manipulation | |
37777 | * ----------------------------------------------------------------------------- */ | |
37778 | ||
37779 | /* Install Constants */ | |
37780 | SWIGINTERN void | |
37781 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
37782 | PyObject *obj = 0; | |
37783 | size_t i; | |
37784 | for (i = 0; constants[i].type; ++i) { | |
37785 | switch(constants[i].type) { | |
37786 | case SWIG_PY_POINTER: | |
37787 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
37788 | break; | |
37789 | case SWIG_PY_BINARY: | |
37790 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
37791 | break; | |
37792 | default: | |
37793 | obj = 0; | |
37794 | break; | |
37795 | } | |
37796 | if (obj) { | |
37797 | PyDict_SetItemString(d, constants[i].name, obj); | |
37798 | Py_DECREF(obj); | |
37799 | } | |
be9b1dca | 37800 | } |
554f62e9 RD |
37801 | } |
37802 | ||
37803 | /* -----------------------------------------------------------------------------*/ | |
37804 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
37805 | /* -----------------------------------------------------------------------------*/ | |
37806 | ||
37807 | SWIGINTERN void | |
37808 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
37809 | swig_const_info *const_table, | |
37810 | swig_type_info **types, | |
37811 | swig_type_info **types_initial) { | |
37812 | size_t i; | |
37813 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 37814 | const char *c = methods[i].ml_doc; |
554f62e9 RD |
37815 | if (c && (c = strstr(c, "swig_ptr: "))) { |
37816 | int j; | |
37817 | swig_const_info *ci = 0; | |
453fb36b | 37818 | const char *name = c + 10; |
554f62e9 RD |
37819 | for (j = 0; const_table[j].type; ++j) { |
37820 | if (strncmp(const_table[j].name, name, | |
37821 | strlen(const_table[j].name)) == 0) { | |
37822 | ci = &(const_table[j]); | |
37823 | break; | |
37824 | } | |
37825 | } | |
37826 | if (ci) { | |
37827 | size_t shift = (ci->ptype) - types; | |
37828 | swig_type_info *ty = types_initial[shift]; | |
37829 | size_t ldoc = (c - methods[i].ml_doc); | |
37830 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
37831 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
37832 | if (ndoc) { | |
37833 | char *buff = ndoc; | |
37834 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
37835 | if (ptr) { | |
37836 | strncpy(buff, methods[i].ml_doc, ldoc); | |
37837 | buff += ldoc; | |
37838 | strncpy(buff, "swig_ptr: ", 10); | |
37839 | buff += 10; | |
37840 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
37841 | methods[i].ml_doc = ndoc; | |
37842 | } | |
37843 | } | |
37844 | } | |
37845 | } | |
be9b1dca | 37846 | } |
554f62e9 RD |
37847 | } |
37848 | ||
37849 | #ifdef __cplusplus | |
37850 | } | |
37851 | #endif | |
37852 | ||
37853 | /* -----------------------------------------------------------------------------* | |
37854 | * Partial Init method | |
37855 | * -----------------------------------------------------------------------------*/ | |
37856 | ||
37857 | #ifdef __cplusplus | |
37858 | extern "C" | |
37859 | #endif | |
37860 | SWIGEXPORT void SWIG_init(void) { | |
37861 | PyObject *m, *d; | |
37862 | ||
37863 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
37864 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
37865 | ||
37866 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
37867 | d = PyModule_GetDict(m); | |
37868 | ||
37869 | SWIG_InitializeModule(0); | |
37870 | SWIG_InstallConstants(d,swig_const_table); | |
37871 | ||
37872 | ||
f460c29d RD |
37873 | SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME))); |
37874 | SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX))); | |
37875 | SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX))); | |
fc46b7f3 RD |
37876 | SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT))); |
37877 | SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE))); | |
554f62e9 RD |
37878 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); |
37879 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
37880 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
37881 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
37882 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
37883 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
37884 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
37885 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
37886 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
37887 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
37888 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
37889 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
37890 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
37891 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
37892 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
37893 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
37894 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
37895 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
37896 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
37897 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
37898 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
37899 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
37900 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
37901 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
37902 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
37903 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
37904 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
37905 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
37906 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
37907 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
37908 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
37909 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
37910 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
37911 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
37912 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
37913 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
37914 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
37915 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
37916 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
37917 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
37918 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
37919 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
37920 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
37921 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
37922 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
37923 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
37924 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
37925 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
37926 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
37927 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
37928 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
37929 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
37930 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
37931 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
37932 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
37933 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
37934 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
37935 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
37936 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
37937 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
37938 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
37939 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
37940 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
37941 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
37942 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
37943 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
37944 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
37945 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
37946 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
37947 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
37948 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
37949 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
37950 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
37951 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
37952 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
37953 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
37954 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
37955 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
37956 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
37957 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
37958 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
37959 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
37960 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
37961 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
37962 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
37963 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
37964 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
37965 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
37966 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
37967 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
37968 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
37969 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
37970 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
37971 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
37972 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
37973 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
37974 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
37975 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
37976 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
37977 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
37978 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
37979 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
37980 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
37981 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
37982 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
37983 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
37984 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
37985 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
37986 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
37987 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
37988 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
37989 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
37990 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
37991 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
37992 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
37993 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
37994 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
37995 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
37996 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
37997 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
37998 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
37999 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
38000 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
38001 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
38002 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
38003 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
38004 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
38005 | ||
38006 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
38007 | ||
38008 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
38009 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
38010 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
38011 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
38012 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
38013 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
38014 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
38015 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
38016 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
38017 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
38018 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
38019 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
38020 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
38021 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
38022 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
38023 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
38024 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
38025 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
38026 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
38027 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
38028 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
38029 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
38030 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
38031 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
38032 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
38033 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
38034 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
38035 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
38036 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
38037 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
38038 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
38039 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
38040 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
38041 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
38042 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
38043 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
38044 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
38045 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
38046 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
38047 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
38048 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
38049 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
38050 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
38051 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
38052 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
38053 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
38054 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
38055 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
38056 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
38057 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
38058 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
38059 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
38060 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
38061 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
38062 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
38063 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
38064 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
38065 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
38066 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
38067 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
38068 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
38069 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
38070 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
38071 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
38072 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
38073 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
38074 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
38075 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
38076 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
38077 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
38078 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
38079 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
38080 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
38081 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
38082 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
38083 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
38084 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
38085 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
38086 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
38087 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
38088 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
38089 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
38090 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
38091 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
38092 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
38093 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
38094 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
38095 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
38096 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
38097 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
38098 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
38099 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
38100 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
38101 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
38102 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
38103 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
38104 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
38105 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
38106 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
38107 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
38108 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
38109 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
38110 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
38111 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
38112 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
38113 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
38114 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
38115 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
38116 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
38117 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
38118 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
38119 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
38120 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
38121 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
38122 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
38123 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
38124 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
38125 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
38126 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
38127 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
38128 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
38129 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
38130 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
38131 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
38132 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
38133 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
38134 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
38135 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
38136 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
38137 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
38138 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
38139 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
38140 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
38141 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
38142 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
38143 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
38144 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
38145 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
38146 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
38147 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
38148 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
38149 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
38150 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
38151 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
38152 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
38153 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
38154 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
38155 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
38156 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
38157 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
38158 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
38159 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
38160 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
38161 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
38162 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
38163 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
38164 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
38165 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
38166 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
38167 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
38168 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
38169 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
38170 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
38171 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
38172 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
38173 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
38174 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
38175 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
38176 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
38177 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
38178 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
38179 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
38180 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
38181 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
38182 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
38183 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
38184 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
38185 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
38186 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
38187 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
38188 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
38189 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
38190 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
38191 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
38192 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
38193 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
38194 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
38195 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
38196 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
38197 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
38198 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
38199 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
38200 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
38201 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
38202 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
38203 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
38204 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
38205 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
38206 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
38207 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
38208 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
38209 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
38210 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
38211 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
38212 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
38213 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
38214 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
38215 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
38216 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
38217 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
38218 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
38219 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
38220 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
38221 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
38222 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
38223 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
38224 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
38225 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
38226 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
38227 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
38228 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
38229 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
38230 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
38231 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
38232 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
38233 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
38234 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
38235 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
38236 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
38237 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
38238 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
38239 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
38240 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
38241 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
38242 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
38243 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
38244 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
38245 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
38246 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
38247 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
38248 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
38249 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
38250 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
38251 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
38252 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
38253 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
38254 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
38255 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
38256 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); | |
38257 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
38258 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
38259 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
38260 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
38261 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
38262 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
50efceee RD |
38263 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK))); |
38264 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE))); | |
38265 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN))); | |
38266 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN))); | |
38267 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY))); | |
38268 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY))); | |
38269 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY))); | |
38270 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED))); | |
38271 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT))); | |
38272 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE))); | |
38273 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK))); | |
38274 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE))); | |
38275 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN))); | |
38276 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN))); | |
38277 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY))); | |
38278 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED))); | |
38279 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE))); | |
38280 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS))); | |
38281 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS))); | |
38282 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD))); | |
38283 | SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC))); | |
38284 | SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL))); | |
38285 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL))); | |
38286 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS))); | |
38287 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK))); | |
38288 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED))); | |
38289 | SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN))); | |
38290 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN))); | |
38291 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY))); | |
38292 | SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY))); | |
38293 | SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY))); | |
38294 | SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED))); | |
38295 | SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT))); | |
38296 | SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE))); | |
38297 | SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT))); | |
554f62e9 | 38298 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); |
554f62e9 RD |
38299 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); |
38300 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
38301 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
38302 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
38303 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
38304 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
38305 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
38306 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
554f62e9 RD |
38307 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); |
38308 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
38309 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
79df624a | 38310 | SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL))); |
554f62e9 RD |
38311 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); |
38312 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
38313 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
79df624a | 38314 | SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP))); |
554f62e9 RD |
38315 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); |
38316 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
38317 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
38318 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
38319 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
38320 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
38321 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
33d6fd3b RD |
38322 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE))); |
38323 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP))); | |
38324 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN))); | |
554f62e9 RD |
38325 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); |
38326 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
38327 | ||
38328 | // Work around a chicken/egg problem in drawlist.cpp | |
38329 | wxPyDrawList_SetAPIPtr(); | |
38330 | ||
d55e5bfc RD |
38331 | } |
38332 |