]>
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] | |
70d7cb34 RD |
2503 | #define SWIGTYPE_p_wxDCBrushChanger swig_types[37] |
2504 | #define SWIGTYPE_p_wxDCClipper swig_types[38] | |
2505 | #define SWIGTYPE_p_wxDCOverlay swig_types[39] | |
2506 | #define SWIGTYPE_p_wxDCPenChanger swig_types[40] | |
2507 | #define SWIGTYPE_p_wxDCTextColourChanger swig_types[41] | |
2508 | #define SWIGTYPE_p_wxDash swig_types[42] | |
2509 | #define SWIGTYPE_p_wxDateEvent swig_types[43] | |
2510 | #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[44] | |
2511 | #define SWIGTYPE_p_wxDropFilesEvent swig_types[45] | |
2512 | #define SWIGTYPE_p_wxDuplexMode swig_types[46] | |
2513 | #define SWIGTYPE_p_wxEffects swig_types[47] | |
2514 | #define SWIGTYPE_p_wxEncodingConverter swig_types[48] | |
2515 | #define SWIGTYPE_p_wxEraseEvent swig_types[49] | |
2516 | #define SWIGTYPE_p_wxEvent swig_types[50] | |
2517 | #define SWIGTYPE_p_wxEvtHandler swig_types[51] | |
2518 | #define SWIGTYPE_p_wxFSFile swig_types[52] | |
2519 | #define SWIGTYPE_p_wxFileSystem swig_types[53] | |
2520 | #define SWIGTYPE_p_wxFlexGridSizer swig_types[54] | |
2521 | #define SWIGTYPE_p_wxFocusEvent swig_types[55] | |
2522 | #define SWIGTYPE_p_wxFont swig_types[56] | |
2523 | #define SWIGTYPE_p_wxFontList swig_types[57] | |
2524 | #define SWIGTYPE_p_wxFontMapper swig_types[58] | |
2525 | #define SWIGTYPE_p_wxGBSizerItem swig_types[59] | |
2526 | #define SWIGTYPE_p_wxGCDC swig_types[60] | |
2527 | #define SWIGTYPE_p_wxGDIObjListBase swig_types[61] | |
2528 | #define SWIGTYPE_p_wxGDIObject swig_types[62] | |
2529 | #define SWIGTYPE_p_wxGIFHandler swig_types[63] | |
2530 | #define SWIGTYPE_p_wxGraphicsBrush swig_types[64] | |
2531 | #define SWIGTYPE_p_wxGraphicsContext swig_types[65] | |
2532 | #define SWIGTYPE_p_wxGraphicsFont swig_types[66] | |
2533 | #define SWIGTYPE_p_wxGraphicsMatrix swig_types[67] | |
2534 | #define SWIGTYPE_p_wxGraphicsObject swig_types[68] | |
2535 | #define SWIGTYPE_p_wxGraphicsPath swig_types[69] | |
2536 | #define SWIGTYPE_p_wxGraphicsPen swig_types[70] | |
2537 | #define SWIGTYPE_p_wxGraphicsRenderer swig_types[71] | |
2538 | #define SWIGTYPE_p_wxGridBagSizer swig_types[72] | |
2539 | #define SWIGTYPE_p_wxGridSizer swig_types[73] | |
2540 | #define SWIGTYPE_p_wxHeaderButtonParams swig_types[74] | |
2541 | #define SWIGTYPE_p_wxICOHandler swig_types[75] | |
2542 | #define SWIGTYPE_p_wxIcon swig_types[76] | |
2543 | #define SWIGTYPE_p_wxIconBundle swig_types[77] | |
2544 | #define SWIGTYPE_p_wxIconLocation swig_types[78] | |
2545 | #define SWIGTYPE_p_wxIconizeEvent swig_types[79] | |
2546 | #define SWIGTYPE_p_wxIdleEvent swig_types[80] | |
2547 | #define SWIGTYPE_p_wxImage swig_types[81] | |
2548 | #define SWIGTYPE_p_wxImageHandler swig_types[82] | |
2549 | #define SWIGTYPE_p_wxImageList swig_types[83] | |
2550 | #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[84] | |
2551 | #define SWIGTYPE_p_wxInitDialogEvent swig_types[85] | |
2552 | #define SWIGTYPE_p_wxJPEGHandler swig_types[86] | |
2553 | #define SWIGTYPE_p_wxKeyEvent swig_types[87] | |
2554 | #define SWIGTYPE_p_wxLanguageInfo swig_types[88] | |
2555 | #define SWIGTYPE_p_wxLayoutConstraints swig_types[89] | |
2556 | #define SWIGTYPE_p_wxLocale swig_types[90] | |
2557 | #define SWIGTYPE_p_wxMask swig_types[91] | |
2558 | #define SWIGTYPE_p_wxMaximizeEvent swig_types[92] | |
2559 | #define SWIGTYPE_p_wxMemoryDC swig_types[93] | |
2560 | #define SWIGTYPE_p_wxMenu swig_types[94] | |
2561 | #define SWIGTYPE_p_wxMenuBar swig_types[95] | |
2562 | #define SWIGTYPE_p_wxMenuEvent swig_types[96] | |
2563 | #define SWIGTYPE_p_wxMenuItem swig_types[97] | |
2564 | #define SWIGTYPE_p_wxMetaFile swig_types[98] | |
2565 | #define SWIGTYPE_p_wxMetaFileDC swig_types[99] | |
2566 | #define SWIGTYPE_p_wxMirrorDC swig_types[100] | |
2567 | #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[101] | |
2568 | #define SWIGTYPE_p_wxMouseCaptureLostEvent swig_types[102] | |
2569 | #define SWIGTYPE_p_wxMouseEvent swig_types[103] | |
2570 | #define SWIGTYPE_p_wxMoveEvent swig_types[104] | |
2571 | #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[105] | |
2572 | #define SWIGTYPE_p_wxNativeFontInfo swig_types[106] | |
2573 | #define SWIGTYPE_p_wxNativePixelData swig_types[107] | |
2574 | #define SWIGTYPE_p_wxNativePixelData_Accessor swig_types[108] | |
2575 | #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[109] | |
2576 | #define SWIGTYPE_p_wxNcPaintEvent swig_types[110] | |
2577 | #define SWIGTYPE_p_wxNotifyEvent swig_types[111] | |
2578 | #define SWIGTYPE_p_wxObject swig_types[112] | |
2579 | #define SWIGTYPE_p_wxOverlay swig_types[113] | |
2580 | #define SWIGTYPE_p_wxPCXHandler swig_types[114] | |
2581 | #define SWIGTYPE_p_wxPNGHandler swig_types[115] | |
2582 | #define SWIGTYPE_p_wxPNMHandler swig_types[116] | |
2583 | #define SWIGTYPE_p_wxPaintDC swig_types[117] | |
2584 | #define SWIGTYPE_p_wxPaintEvent swig_types[118] | |
2585 | #define SWIGTYPE_p_wxPalette swig_types[119] | |
2586 | #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[120] | |
2587 | #define SWIGTYPE_p_wxPaperSize swig_types[121] | |
2588 | #define SWIGTYPE_p_wxPen swig_types[122] | |
2589 | #define SWIGTYPE_p_wxPenList swig_types[123] | |
2590 | #define SWIGTYPE_p_wxPixelDataBase swig_types[124] | |
2591 | #define SWIGTYPE_p_wxPoint swig_types[125] | |
2592 | #define SWIGTYPE_p_wxPoint2D swig_types[126] | |
4fe9ce47 RD |
2593 | #define SWIGTYPE_p_wxPostScriptDC swig_types[127] |
2594 | #define SWIGTYPE_p_wxPrintData swig_types[128] | |
2595 | #define SWIGTYPE_p_wxPrinterDC swig_types[129] | |
2596 | #define SWIGTYPE_p_wxPseudoDC swig_types[130] | |
2597 | #define SWIGTYPE_p_wxPyApp swig_types[131] | |
2598 | #define SWIGTYPE_p_wxPyCommandEvent swig_types[132] | |
2599 | #define SWIGTYPE_p_wxPyEvent swig_types[133] | |
2600 | #define SWIGTYPE_p_wxPyFontEnumerator swig_types[134] | |
2601 | #define SWIGTYPE_p_wxPyImageHandler swig_types[135] | |
2602 | #define SWIGTYPE_p_wxPyLocale swig_types[136] | |
2603 | #define SWIGTYPE_p_wxPySizer swig_types[137] | |
2604 | #define SWIGTYPE_p_wxPyValidator swig_types[138] | |
2605 | #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[139] | |
2606 | #define SWIGTYPE_p_wxRect swig_types[140] | |
2607 | #define SWIGTYPE_p_wxRect2D swig_types[141] | |
2608 | #define SWIGTYPE_p_wxRegion swig_types[142] | |
2609 | #define SWIGTYPE_p_wxRegionIterator swig_types[143] | |
2610 | #define SWIGTYPE_p_wxRendererNative swig_types[144] | |
2611 | #define SWIGTYPE_p_wxRendererVersion swig_types[145] | |
2612 | #define SWIGTYPE_p_wxScreenDC swig_types[146] | |
2613 | #define SWIGTYPE_p_wxScrollEvent swig_types[147] | |
2614 | #define SWIGTYPE_p_wxScrollWinEvent swig_types[148] | |
2615 | #define SWIGTYPE_p_wxSetCursorEvent swig_types[149] | |
2616 | #define SWIGTYPE_p_wxShowEvent swig_types[150] | |
2617 | #define SWIGTYPE_p_wxSize swig_types[151] | |
2618 | #define SWIGTYPE_p_wxSizeEvent swig_types[152] | |
2619 | #define SWIGTYPE_p_wxSizer swig_types[153] | |
2620 | #define SWIGTYPE_p_wxSizerItem swig_types[154] | |
2621 | #define SWIGTYPE_p_wxSplitterRenderParams swig_types[155] | |
2622 | #define SWIGTYPE_p_wxStaticBoxSizer swig_types[156] | |
2623 | #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[157] | |
2624 | #define SWIGTYPE_p_wxStockGDI swig_types[158] | |
2625 | #define SWIGTYPE_p_wxString swig_types[159] | |
2626 | #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[160] | |
2627 | #define SWIGTYPE_p_wxTGAHandler swig_types[161] | |
2628 | #define SWIGTYPE_p_wxTIFFHandler swig_types[162] | |
2629 | #define SWIGTYPE_p_wxUpdateUIEvent swig_types[163] | |
2630 | #define SWIGTYPE_p_wxValidator swig_types[164] | |
2631 | #define SWIGTYPE_p_wxWindow swig_types[165] | |
2632 | #define SWIGTYPE_p_wxWindowCreateEvent swig_types[166] | |
2633 | #define SWIGTYPE_p_wxWindowDC swig_types[167] | |
2634 | #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[168] | |
2635 | #define SWIGTYPE_p_wxXPMHandler swig_types[169] | |
2636 | static swig_type_info *swig_types[171]; | |
2637 | static swig_module_info swig_module = {swig_types, 170, 0, 0, 0, 0}; | |
7449af73 RD |
2638 | #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name) |
2639 | #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name) | |
d55e5bfc | 2640 | |
093d3ff1 | 2641 | /* -------- TYPES TABLE (END) -------- */ |
d55e5bfc | 2642 | |
554f62e9 RD |
2643 | #if (PY_VERSION_HEX <= 0x02000000) |
2644 | # if !defined(SWIG_PYTHON_CLASSIC) | |
2645 | # error "This python version requires to use swig with the '-classic' option" | |
2646 | # endif | |
2647 | #endif | |
2648 | #if (PY_VERSION_HEX <= 0x02020000) | |
2649 | # error "This python version requires to use swig with the '-nomodern' option" | |
2650 | #endif | |
2651 | #if (PY_VERSION_HEX <= 0x02020000) | |
2652 | # error "This python version requires to use swig with the '-nomodernargs' option" | |
2653 | #endif | |
2654 | #ifndef METH_O | |
2655 | # error "This python version requires to use swig with the '-nofastunpack' option" | |
2656 | #endif | |
d55e5bfc | 2657 | |
093d3ff1 RD |
2658 | /*----------------------------------------------- |
2659 | @(target):= _gdi_.so | |
2660 | ------------------------------------------------*/ | |
2661 | #define SWIG_init init_gdi_ | |
d55e5bfc | 2662 | |
093d3ff1 | 2663 | #define SWIG_name "_gdi_" |
d55e5bfc | 2664 | |
554f62e9 | 2665 | #define SWIGVERSION 0x010329 |
d55e5bfc | 2666 | |
d55e5bfc | 2667 | |
554f62e9 RD |
2668 | #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) |
2669 | #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) | |
d55e5bfc RD |
2670 | |
2671 | ||
554f62e9 RD |
2672 | #include <stdexcept> |
2673 | ||
2674 | ||
2675 | namespace swig { | |
2676 | class PyObject_ptr { | |
2677 | protected: | |
2678 | PyObject *_obj; | |
2679 | ||
2680 | public: | |
2681 | PyObject_ptr() :_obj(0) | |
2682 | { | |
093d3ff1 | 2683 | } |
554f62e9 RD |
2684 | |
2685 | PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj) | |
2686 | { | |
2687 | Py_XINCREF(_obj); | |
093d3ff1 | 2688 | } |
554f62e9 RD |
2689 | |
2690 | PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj) | |
2691 | { | |
2692 | if (initial_ref) Py_XINCREF(_obj); | |
2693 | } | |
2694 | ||
2695 | PyObject_ptr & operator=(const PyObject_ptr& item) | |
2696 | { | |
2697 | Py_XINCREF(item._obj); | |
2698 | Py_XDECREF(_obj); | |
2699 | _obj = item._obj; | |
2700 | return *this; | |
2701 | } | |
2702 | ||
2703 | ~PyObject_ptr() | |
2704 | { | |
2705 | Py_XDECREF(_obj); | |
2706 | } | |
2707 | ||
2708 | operator PyObject *() const | |
2709 | { | |
2710 | return _obj; | |
2711 | } | |
2712 | ||
2713 | PyObject *operator->() const | |
2714 | { | |
2715 | return _obj; | |
2716 | } | |
2717 | }; | |
093d3ff1 | 2718 | } |
d55e5bfc | 2719 | |
d55e5bfc | 2720 | |
554f62e9 RD |
2721 | namespace swig { |
2722 | struct PyObject_var : PyObject_ptr { | |
2723 | PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { } | |
2724 | ||
2725 | PyObject_var & operator = (PyObject* obj) | |
2726 | { | |
2727 | Py_XDECREF(_obj); | |
2728 | _obj = obj; | |
2729 | return *this; | |
d55e5bfc | 2730 | } |
554f62e9 | 2731 | }; |
d55e5bfc RD |
2732 | } |
2733 | ||
2734 | ||
554f62e9 RD |
2735 | #include "wx/wxPython/wxPython.h" |
2736 | #include "wx/wxPython/pyclasses.h" | |
2737 | ||
2738 | ||
2739 | static const wxString wxPyEmptyString(wxEmptyString); | |
2740 | ||
f460c29d RD |
2741 | #define SWIG_From_long PyInt_FromLong |
2742 | ||
2743 | ||
2744 | SWIGINTERNINLINE PyObject * | |
2745 | SWIG_From_int (int value) | |
2746 | { | |
2747 | return SWIG_From_long (value); | |
2748 | } | |
2749 | ||
2750 | ||
554f62e9 RD |
2751 | #include <limits.h> |
2752 | #ifndef LLONG_MIN | |
2753 | # define LLONG_MIN LONG_LONG_MIN | |
2754 | #endif | |
2755 | #ifndef LLONG_MAX | |
2756 | # define LLONG_MAX LONG_LONG_MAX | |
2757 | #endif | |
2758 | #ifndef ULLONG_MAX | |
2759 | # define ULLONG_MAX ULONG_LONG_MAX | |
2760 | #endif | |
d55e5bfc | 2761 | |
c32bde28 | 2762 | |
50efceee RD |
2763 | SWIGINTERN int |
2764 | SWIG_AsVal_long (PyObject* obj, long* val) | |
2765 | { | |
2766 | if (PyNumber_Check(obj)) { | |
2767 | if (val) *val = PyInt_AsLong(obj); | |
2768 | return SWIG_OK; | |
2769 | } | |
2770 | return SWIG_TypeError; | |
2771 | } | |
2772 | ||
2773 | ||
093d3ff1 | 2774 | SWIGINTERN int |
554f62e9 | 2775 | SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val) |
093d3ff1 RD |
2776 | { |
2777 | long v = 0; | |
2778 | if (SWIG_AsVal_long(obj, &v) && v < 0) { | |
554f62e9 | 2779 | return SWIG_TypeError; |
093d3ff1 RD |
2780 | } |
2781 | else if (val) | |
2782 | *val = (unsigned long)v; | |
554f62e9 | 2783 | return SWIG_OK; |
093d3ff1 | 2784 | } |
c32bde28 | 2785 | |
d55e5bfc | 2786 | |
093d3ff1 | 2787 | SWIGINTERN int |
554f62e9 RD |
2788 | SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val) |
2789 | { | |
093d3ff1 | 2790 | unsigned long v; |
554f62e9 RD |
2791 | int res = SWIG_AsVal_unsigned_SS_long (obj, &v); |
2792 | if (SWIG_IsOK(res)) { | |
2793 | if ((v > UCHAR_MAX)) { | |
2794 | return SWIG_OverflowError; | |
093d3ff1 | 2795 | } else { |
554f62e9 | 2796 | if (val) *val = static_cast< unsigned char >(v); |
093d3ff1 | 2797 | } |
554f62e9 RD |
2798 | } |
2799 | return res; | |
093d3ff1 | 2800 | } |
d55e5bfc RD |
2801 | |
2802 | ||
554f62e9 RD |
2803 | SWIGINTERNINLINE PyObject* |
2804 | SWIG_From_unsigned_SS_long (unsigned long value) | |
093d3ff1 | 2805 | { |
554f62e9 RD |
2806 | return (value > LONG_MAX) ? |
2807 | PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value)); | |
093d3ff1 | 2808 | } |
d55e5bfc RD |
2809 | |
2810 | ||
554f62e9 RD |
2811 | SWIGINTERNINLINE PyObject * |
2812 | SWIG_From_unsigned_SS_char (unsigned char value) | |
2813 | { | |
2814 | return SWIG_From_unsigned_SS_long (value); | |
2815 | } | |
d55e5bfc | 2816 | |
e9d6f3a4 RD |
2817 | SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){ |
2818 | wxColour temp, *obj = &temp; | |
2819 | if ( other == Py_None ) return false; | |
2820 | if ( ! wxColour_helper(other, &obj) ) { | |
2821 | PyErr_Clear(); | |
2822 | return false; | |
2823 | } | |
2824 | return self->operator==(*obj); | |
2825 | } | |
2826 | SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){ | |
2827 | wxColour temp, *obj = &temp; | |
2828 | if ( other == Py_None ) return true; | |
2829 | if ( ! wxColour_helper(other, &obj)) { | |
2830 | PyErr_Clear(); | |
2831 | return true; | |
2832 | } | |
2833 | return self->operator!=(*obj); | |
2834 | } | |
fc46b7f3 RD |
2835 | |
2836 | SWIGINTERN int | |
2837 | SWIG_AsVal_bool (PyObject *obj, bool *val) | |
2838 | { | |
2839 | if (obj == Py_True) { | |
2840 | if (val) *val = true; | |
2841 | return SWIG_OK; | |
2842 | } else if (obj == Py_False) { | |
2843 | if (val) *val = false; | |
2844 | return SWIG_OK; | |
2845 | } else { | |
2846 | long v = 0; | |
2847 | int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0)); | |
2848 | if (SWIG_IsOK(res) && val) *val = v ? true : false; | |
2849 | return res; | |
2850 | } | |
2851 | } | |
2852 | ||
2853 | SWIGINTERN PyObject *wxColour_Get(wxColour *self,bool includeAlpha=false){ | |
2854 | PyObject* rv = PyTuple_New(includeAlpha ? 4 : 3); | |
093d3ff1 RD |
2855 | int red = -1; |
2856 | int green = -1; | |
2857 | int blue = -1; | |
fc46b7f3 | 2858 | int alpha = wxALPHA_OPAQUE; |
b39fe951 | 2859 | if (self->IsOk()) { |
093d3ff1 RD |
2860 | red = self->Red(); |
2861 | green = self->Green(); | |
2862 | blue = self->Blue(); | |
fc46b7f3 | 2863 | alpha = self->Alpha(); |
093d3ff1 RD |
2864 | } |
2865 | PyTuple_SetItem(rv, 0, PyInt_FromLong(red)); | |
2866 | PyTuple_SetItem(rv, 1, PyInt_FromLong(green)); | |
2867 | PyTuple_SetItem(rv, 2, PyInt_FromLong(blue)); | |
fc46b7f3 RD |
2868 | if (includeAlpha) |
2869 | PyTuple_SetItem(rv, 3, PyInt_FromLong(alpha)); | |
093d3ff1 RD |
2870 | return rv; |
2871 | } | |
554f62e9 | 2872 | SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){ |
093d3ff1 RD |
2873 | return self->Red() | (self->Green() << 8) | (self->Blue() << 16); |
2874 | } | |
2875 | ||
554f62e9 RD |
2876 | SWIGINTERN int |
2877 | SWIG_AsVal_int (PyObject * obj, int *val) | |
093d3ff1 | 2878 | { |
554f62e9 RD |
2879 | long v; |
2880 | int res = SWIG_AsVal_long (obj, &v); | |
2881 | if (SWIG_IsOK(res)) { | |
2882 | if ((v < INT_MIN || v > INT_MAX)) { | |
2883 | return SWIG_OverflowError; | |
2884 | } else { | |
2885 | if (val) *val = static_cast< int >(v); | |
2886 | } | |
2887 | } | |
2888 | return res; | |
d55e5bfc RD |
2889 | } |
2890 | ||
554f62e9 | 2891 | SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){ |
093d3ff1 RD |
2892 | wxDash* dashes; |
2893 | int count = self->GetDashes(&dashes); | |
5a446332 | 2894 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2895 | PyObject* retval = PyList_New(0); |
2896 | for (int x=0; x<count; x++) { | |
2897 | PyObject* pyint = PyInt_FromLong(dashes[x]); | |
2898 | PyList_Append(retval, pyint); | |
2899 | Py_DECREF(pyint); | |
2900 | } | |
2901 | wxPyEndBlockThreads(blocked); | |
2902 | return retval; | |
2903 | } | |
554f62e9 | 2904 | SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){ |
5a446332 | 2905 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
093d3ff1 RD |
2906 | int size = PyList_Size(pyDashes); |
2907 | wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes); | |
d55e5bfc | 2908 | |
093d3ff1 RD |
2909 | // black magic warning! The array of wxDashes needs to exist as |
2910 | // long as the pen does because wxPen does not copy the array. So | |
2911 | // stick a copy in a Python string object and attach it to _self, | |
2912 | // and then call SetDashes with a pointer to that array. Then | |
2913 | // when the Python pen object is destroyed the array will be | |
2914 | // cleaned up too. | |
2915 | PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash)); | |
2916 | PyObject_SetAttrString(_self, "_dashes", strDashes); | |
2917 | ||
2918 | self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes)); | |
2919 | delete [] dashes; | |
2920 | Py_DECREF(strDashes); | |
2921 | wxPyEndBlockThreads(blocked); | |
2922 | } | |
554f62e9 RD |
2923 | SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; } |
2924 | SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; } | |
d55e5bfc | 2925 | |
fc46b7f3 RD |
2926 | #include <wx/rawbmp.h> |
2927 | ||
2928 | ||
8f514ab4 RD |
2929 | // See http://tinyurl.com/e5adr for what premultiplying alpha means. It |
2930 | // appears to me that the other platforms are already doing it, so I'll just | |
2931 | // automatically do it for wxMSW here. | |
2932 | #ifdef __WXMSW__ | |
2933 | #define wxPy_premultiply(p, a) ((p) * (a) / 0xff) | |
2934 | #define wxPy_unpremultiply(p, a) ((a) ? ((p) * 0xff / (a)) : (p)) | |
2935 | #else | |
2936 | #define wxPy_premultiply(p, a) (p) | |
2937 | #define wxPy_unpremultiply(p, a) (p) | |
2938 | #endif | |
2939 | ||
2940 | ||
093d3ff1 | 2941 | #include <wx/image.h> |
d55e5bfc | 2942 | |
093d3ff1 RD |
2943 | static char** ConvertListOfStrings(PyObject* listOfStrings) { |
2944 | char** cArray = NULL; | |
2945 | int count; | |
d55e5bfc | 2946 | |
093d3ff1 RD |
2947 | if (!PyList_Check(listOfStrings)) { |
2948 | PyErr_SetString(PyExc_TypeError, "Expected a list of strings."); | |
2949 | return NULL; | |
2950 | } | |
2951 | count = PyList_Size(listOfStrings); | |
2952 | cArray = new char*[count]; | |
d55e5bfc | 2953 | |
093d3ff1 RD |
2954 | for(int x=0; x<count; x++) { |
2955 | // TODO: Need some validation and error checking here | |
2956 | cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x)); | |
2957 | } | |
2958 | return cArray; | |
d55e5bfc | 2959 | } |
d55e5bfc RD |
2960 | |
2961 | ||
554f62e9 | 2962 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){ |
fc46b7f3 RD |
2963 | char** cArray = NULL; |
2964 | wxBitmap* bmp; | |
2965 | ||
2966 | cArray = ConvertListOfStrings(listOfStrings); | |
2967 | if (! cArray) | |
2968 | return NULL; | |
2969 | bmp = new wxBitmap(cArray); | |
2970 | delete [] cArray; | |
2971 | return bmp; | |
2972 | } | |
554f62e9 | 2973 | SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){ |
fc46b7f3 RD |
2974 | char* buf; |
2975 | Py_ssize_t length; | |
2976 | PyString_AsStringAndSize(bits, &buf, &length); | |
2977 | return new wxBitmap(buf, width, height, depth); | |
2978 | } | |
554f62e9 RD |
2979 | SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
2980 | SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){ | |
093d3ff1 RD |
2981 | wxSize size(self->GetWidth(), self->GetHeight()); |
2982 | return size; | |
2983 | } | |
554f62e9 | 2984 | SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){ |
093d3ff1 RD |
2985 | wxMask *mask = new wxMask(*self, colour); |
2986 | self->SetMask(mask); | |
2987 | } | |
554f62e9 | 2988 | SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){ |
093d3ff1 RD |
2989 | self->SetWidth(size.x); |
2990 | self->SetHeight(size.y); | |
2991 | } | |
8f514ab4 RD |
2992 | SWIGINTERN void wxBitmap_CopyFromBuffer(wxBitmap *self,buffer data,int DATASIZE){ |
2993 | int height=self->GetHeight(); | |
2994 | int width=self->GetWidth(); | |
fc46b7f3 | 2995 | |
8f514ab4 RD |
2996 | if (DATASIZE != width * height * 3) { |
2997 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
2998 | } | |
2999 | wxNativePixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
3000 | if (! pixData) { | |
3001 | // raise an exception... | |
3002 | wxPyErr_SetString(PyExc_RuntimeError, | |
3003 | "Failed to gain raw access to bitmap data."); | |
3004 | return; | |
3005 | } | |
fc46b7f3 | 3006 | |
8f514ab4 RD |
3007 | wxNativePixelData::Iterator p(pixData); |
3008 | for (int y=0; y<height; y++) { | |
3009 | wxNativePixelData::Iterator rowStart = p; | |
3010 | for (int x=0; x<width; x++) { | |
3011 | p.Red() = *(data++); | |
3012 | p.Green() = *(data++); | |
3013 | p.Blue() = *(data++); | |
3014 | ++p; | |
3015 | } | |
3016 | p = rowStart; | |
3017 | p.OffsetY(pixData, 1); | |
3018 | } | |
3019 | } | |
3020 | SWIGINTERN void wxBitmap_CopyFromBufferRGBA(wxBitmap *self,buffer data,int DATASIZE){ | |
3021 | int height=self->GetHeight(); | |
3022 | int width=self->GetWidth(); | |
3023 | ||
3024 | if (DATASIZE != width * height * 4) { | |
3025 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3026 | } | |
3027 | wxAlphaPixelData pixData(*self, wxPoint(0,0), wxSize(width, height)); | |
3028 | if (! pixData) { | |
3029 | // raise an exception... | |
3030 | wxPyErr_SetString(PyExc_RuntimeError, | |
3031 | "Failed to gain raw access to bitmap data."); | |
3032 | return; | |
3033 | } | |
3034 | ||
3035 | pixData.UseAlpha(); | |
3036 | wxAlphaPixelData::Iterator p(pixData); | |
3037 | for (int y=0; y<height; y++) { | |
3038 | wxAlphaPixelData::Iterator rowStart = p; | |
3039 | for (int x=0; x<width; x++) { | |
3040 | byte a = data[3]; | |
3041 | p.Red() = wxPy_premultiply(*(data++), a); | |
3042 | p.Green() = wxPy_premultiply(*(data++), a); | |
3043 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3044 | p.Alpha() = a; data++; | |
3045 | ++p; | |
3046 | } | |
3047 | p = rowStart; | |
3048 | p.OffsetY(pixData, 1); | |
3049 | } | |
3050 | } | |
3051 | SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? self->IsSameAs(*other) : false; } | |
3052 | SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? !self->IsSameAs(*other) : true; } | |
fc46b7f3 RD |
3053 | |
3054 | wxBitmap* _BitmapFromBufferAlpha(int width, int height, | |
3055 | buffer data, int DATASIZE, | |
3056 | buffer alpha, int ALPHASIZE) | |
3057 | { | |
3058 | if (DATASIZE != width*height*3) { | |
3059 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3060 | return NULL; | |
3061 | } | |
3062 | ||
3063 | if (ALPHASIZE != width*height) { | |
3064 | wxPyErr_SetString(PyExc_ValueError, "Invalid alpha buffer size."); | |
3065 | return NULL; | |
3066 | } | |
3067 | ||
3068 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3069 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3070 | if (! pixData) { | |
3071 | // raise an exception... | |
3072 | wxPyErr_SetString(PyExc_RuntimeError, | |
3073 | "Failed to gain raw access to bitmap data."); | |
3074 | return NULL; | |
3075 | } | |
3076 | ||
3077 | pixData.UseAlpha(); | |
3078 | wxAlphaPixelData::Iterator p(pixData); | |
3079 | for (int y=0; y<height; y++) { | |
3080 | wxAlphaPixelData::Iterator rowStart = p; | |
3081 | for (int x=0; x<width; x++) { | |
3082 | byte a = *(alpha++); | |
3083 | p.Red() = wxPy_premultiply(*(data++), a); | |
3084 | p.Green() = wxPy_premultiply(*(data++), a); | |
3085 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3086 | p.Alpha() = a; | |
3087 | ++p; | |
3088 | } | |
3089 | p = rowStart; | |
3090 | p.OffsetY(pixData, 1); | |
3091 | } | |
3092 | return bmp; | |
3093 | } | |
3094 | ||
3095 | wxBitmap* _BitmapFromBuffer(int width, int height, buffer data, int DATASIZE) | |
3096 | { | |
3097 | if (DATASIZE != width*height*3) { | |
3098 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3099 | return NULL; | |
3100 | } | |
3101 | ||
3102 | wxBitmap* bmp = new wxBitmap(width, height, 24); | |
3103 | wxNativePixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3104 | if (! pixData) { | |
3105 | // raise an exception... | |
3106 | wxPyErr_SetString(PyExc_RuntimeError, | |
3107 | "Failed to gain raw access to bitmap data."); | |
3108 | return NULL; | |
3109 | } | |
3110 | ||
3111 | wxNativePixelData::Iterator p(pixData); | |
3112 | for (int y=0; y<height; y++) { | |
3113 | wxNativePixelData::Iterator rowStart = p; | |
3114 | for (int x=0; x<width; x++) { | |
3115 | p.Red() = *(data++); | |
3116 | p.Green() = *(data++); | |
3117 | p.Blue() = *(data++); | |
3118 | ++p; | |
3119 | } | |
3120 | p = rowStart; | |
3121 | p.OffsetY(pixData, 1); | |
3122 | } | |
3123 | return bmp; | |
3124 | } | |
3125 | ||
3126 | ||
3127 | wxBitmap* _BitmapFromBufferRGBA(int width, int height, buffer data, int DATASIZE) | |
3128 | { | |
3129 | if (DATASIZE != width*height*4) { | |
3130 | wxPyErr_SetString(PyExc_ValueError, "Invalid data buffer size."); | |
3131 | return NULL; | |
3132 | } | |
3133 | ||
3134 | wxBitmap* bmp = new wxBitmap(width, height, 32); | |
3135 | wxAlphaPixelData pixData(*bmp, wxPoint(0,0), wxSize(width,height)); | |
3136 | if (! pixData) { | |
3137 | // raise an exception... | |
3138 | wxPyErr_SetString(PyExc_RuntimeError, | |
3139 | "Failed to gain raw access to bitmap data."); | |
3140 | return NULL; | |
3141 | } | |
3142 | ||
3143 | pixData.UseAlpha(); | |
3144 | wxAlphaPixelData::Iterator p(pixData); | |
3145 | for (int y=0; y<height; y++) { | |
3146 | wxAlphaPixelData::Iterator rowStart = p; | |
3147 | for (int x=0; x<width; x++) { | |
3148 | byte a = data[3]; | |
3149 | p.Red() = wxPy_premultiply(*(data++), a); | |
3150 | p.Green() = wxPy_premultiply(*(data++), a); | |
3151 | p.Blue() = wxPy_premultiply(*(data++), a); | |
3152 | p.Alpha() = a; data++; | |
3153 | ++p; | |
3154 | } | |
3155 | p = rowStart; | |
3156 | p.OffsetY(pixData, 1); | |
3157 | } | |
3158 | return bmp; | |
3159 | } | |
3160 | ||
3161 | ||
3162 | typedef wxNativePixelData::Iterator wxNativePixelData_Accessor; | |
3163 | ||
3164 | SWIGINTERN bool wxNativePixelData___nonzero__(wxNativePixelData *self){ return self->operator bool(); } | |
3165 | SWIGINTERN void wxNativePixelData_Accessor_nextPixel(wxNativePixelData_Accessor *self){ ++(*self); } | |
3166 | SWIGINTERN void wxNativePixelData_Accessor_Set(wxNativePixelData_Accessor *self,byte red,byte green,byte blue){ | |
3167 | self->Red() = red; | |
3168 | self->Green() = green; | |
3169 | self->Blue() = blue; | |
3170 | } | |
3171 | SWIGINTERN PyObject *wxNativePixelData_Accessor_Get(wxNativePixelData_Accessor *self){ | |
3172 | PyObject* rv = PyTuple_New(3); | |
3173 | PyTuple_SetItem(rv, 0, PyInt_FromLong(self->Red())); | |
3174 | PyTuple_SetItem(rv, 1, PyInt_FromLong(self->Green())); | |
3175 | PyTuple_SetItem(rv, 2, PyInt_FromLong(self->Blue())); | |
3176 | return rv; | |
3177 | } | |
3178 | ||
3179 | typedef wxAlphaPixelData::Iterator wxAlphaPixelData_Accessor; | |
3180 | ||
3181 | SWIGINTERN bool wxAlphaPixelData___nonzero__(wxAlphaPixelData *self){ return self->operator bool(); } | |
3182 | SWIGINTERN void wxAlphaPixelData_Accessor_nextPixel(wxAlphaPixelData_Accessor *self){ ++(*self); } | |
3183 | SWIGINTERN void wxAlphaPixelData_Accessor_Set(wxAlphaPixelData_Accessor *self,byte red,byte green,byte blue,byte alpha){ | |
3184 | self->Red() = wxPy_premultiply(red, alpha); | |
3185 | self->Green() = wxPy_premultiply(green, alpha); | |
3186 | self->Blue() = wxPy_premultiply(blue, alpha); | |
3187 | self->Alpha() = alpha; | |
3188 | } | |
3189 | SWIGINTERN PyObject *wxAlphaPixelData_Accessor_Get(wxAlphaPixelData_Accessor *self){ | |
3190 | PyObject* rv = PyTuple_New(4); | |
3191 | int red = self->Red(); | |
3192 | int green = self->Green(); | |
3193 | int blue = self->Blue(); | |
3194 | int alpha = self->Alpha(); | |
3195 | ||
3196 | PyTuple_SetItem(rv, 0, PyInt_FromLong( wxPy_unpremultiply(red, alpha) )); | |
3197 | PyTuple_SetItem(rv, 1, PyInt_FromLong( wxPy_unpremultiply(green, alpha) )); | |
3198 | PyTuple_SetItem(rv, 2, PyInt_FromLong( wxPy_unpremultiply(blue, alpha) )); | |
3199 | PyTuple_SetItem(rv, 3, PyInt_FromLong( alpha )); | |
3200 | return rv; | |
3201 | } | |
554f62e9 | 3202 | SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){ |
b39fe951 | 3203 | if ( !colour.IsOk() ) |
093d3ff1 RD |
3204 | return new wxMask(bitmap, *wxBLACK); |
3205 | else | |
3206 | return new wxMask(bitmap, colour); | |
3207 | } | |
d55e5bfc | 3208 | |
093d3ff1 | 3209 | #include <wx/iconbndl.h> |
d55e5bfc | 3210 | |
554f62e9 | 3211 | SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){ |
093d3ff1 RD |
3212 | wxIcon* icon = new wxIcon(); |
3213 | icon->CopyFromBitmap(bmp); | |
3214 | return icon; | |
3215 | } | |
554f62e9 | 3216 | SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){ |
093d3ff1 RD |
3217 | char** cArray = NULL; |
3218 | wxIcon* icon; | |
d55e5bfc | 3219 | |
093d3ff1 RD |
3220 | cArray = ConvertListOfStrings(listOfStrings); |
3221 | if (! cArray) | |
3222 | return NULL; | |
3223 | icon = new wxIcon(cArray); | |
3224 | delete [] cArray; | |
3225 | return icon; | |
3226 | } | |
554f62e9 RD |
3227 | SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
3228 | SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){ | |
d55e5bfc | 3229 | |
093d3ff1 | 3230 | return new wxIconLocation(*filename, num); |
d55e5bfc RD |
3231 | |
3232 | ||
d55e5bfc | 3233 | |
093d3ff1 | 3234 | } |
554f62e9 | 3235 | SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){ |
d55e5bfc | 3236 | |
093d3ff1 | 3237 | self->SetIndex(num); |
d55e5bfc RD |
3238 | |
3239 | ||
d55e5bfc | 3240 | |
093d3ff1 | 3241 | } |
554f62e9 | 3242 | SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){ |
d55e5bfc | 3243 | |
093d3ff1 | 3244 | return self->GetIndex(); |
d55e5bfc RD |
3245 | |
3246 | ||
d55e5bfc | 3247 | |
093d3ff1 | 3248 | } |
554f62e9 | 3249 | SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){ |
093d3ff1 | 3250 | #ifdef __WXGTK__ |
fef4c27a RD |
3251 | wxImage img(cursorName, type); |
3252 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX); | |
3253 | img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY); | |
3254 | return new wxCursor(img); | |
093d3ff1 | 3255 | #else |
fef4c27a | 3256 | return new wxCursor(cursorName, type, hotSpotX, hotSpotY); |
093d3ff1 RD |
3257 | #endif |
3258 | } | |
554f62e9 | 3259 | SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); } |
d55e5bfc | 3260 | |
093d3ff1 | 3261 | |
554f62e9 | 3262 | SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){ |
093d3ff1 RD |
3263 | (*self) ++; |
3264 | } | |
554f62e9 | 3265 | SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){ |
093d3ff1 RD |
3266 | return self->operator bool(); |
3267 | } | |
3268 | ||
3269 | #include <wx/fontutil.h> | |
3270 | #include <wx/fontmap.h> | |
3271 | #include <wx/fontenum.h> | |
3272 | ||
554f62e9 | 3273 | SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){ |
093d3ff1 RD |
3274 | return self->ToString(); |
3275 | } | |
3276 | ||
3277 | wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) | |
3278 | { wxPyRaiseNotImplemented(); return NULL; } | |
3279 | ||
3280 | bool wxTestFontEncoding(const wxNativeEncodingInfo& info) | |
3281 | { wxPyRaiseNotImplemented(); return false; } | |
3282 | ||
554f62e9 RD |
3283 | |
3284 | SWIGINTERNINLINE PyObject * | |
3285 | SWIG_From_size_t (size_t value) | |
3286 | { | |
3287 | return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value)); | |
3288 | } | |
3289 | ||
3290 | ||
3291 | SWIGINTERNINLINE int | |
3292 | SWIG_AsVal_size_t (PyObject * obj, size_t *val) | |
3293 | { | |
3294 | unsigned long v; | |
3295 | int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0); | |
3296 | if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v); | |
3297 | return res; | |
3298 | } | |
3299 | ||
3300 | SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){ | |
093d3ff1 RD |
3301 | wxFontEncoding alt_enc; |
3302 | if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive)) | |
3303 | return PyInt_FromLong(alt_enc); | |
3304 | else { | |
3305 | Py_INCREF(Py_None); | |
3306 | return Py_None; | |
3307 | } | |
3308 | } | |
554f62e9 | 3309 | SWIGINTERN wxFont *new_wxFont(wxString const &info){ |
a97cefba RD |
3310 | wxNativeFontInfo nfi; |
3311 | nfi.FromString(info); | |
3312 | return new wxFont(nfi); | |
3313 | } | |
554f62e9 | 3314 | SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3315 | return wxFont::New(pointSize, family, flags, face, encoding); |
3316 | } | |
554f62e9 | 3317 | 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 |
3318 | return wxFontBase::New(pixelSize, family, |
3319 | style, weight, underlined, | |
3320 | face, encoding); | |
3321 | } | |
554f62e9 | 3322 | SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){ |
a97cefba RD |
3323 | return wxFontBase::New(pixelSize, family, flags, face, encoding); |
3324 | } | |
554f62e9 RD |
3325 | SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; } |
3326 | SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; } | |
093d3ff1 RD |
3327 | |
3328 | class wxPyFontEnumerator : public wxFontEnumerator { | |
3329 | public: | |
3330 | wxPyFontEnumerator() {} | |
3331 | ~wxPyFontEnumerator() {} | |
3332 | ||
3333 | DEC_PYCALLBACK_BOOL_STRING(OnFacename); | |
3334 | DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding); | |
3335 | ||
3336 | PYPRIVATE; | |
3337 | }; | |
3338 | ||
3339 | IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename); | |
3340 | IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding); | |
3341 | ||
3342 | ||
704eda0c | 3343 | SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){ |
e9d6f3a4 | 3344 | PyObject* ret; |
704eda0c | 3345 | wxArrayString arr = wxFontEnumerator::GetEncodings(); |
e9d6f3a4 | 3346 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3347 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3348 | wxPyEndBlockThreads(blocked); |
3349 | return ret; | |
093d3ff1 | 3350 | } |
704eda0c | 3351 | SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){ |
e9d6f3a4 | 3352 | PyObject* ret; |
704eda0c | 3353 | wxArrayString arr = wxFontEnumerator::GetFacenames(); |
e9d6f3a4 | 3354 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); |
704eda0c | 3355 | ret = wxArrayString2PyList_helper(arr); |
e9d6f3a4 RD |
3356 | wxPyEndBlockThreads(blocked); |
3357 | return ret; | |
093d3ff1 RD |
3358 | } |
3359 | ||
3360 | #include <locale.h> | |
3361 | ||
554f62e9 | 3362 | SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3363 | wxLocale* loc; |
3364 | if (language == -1) | |
3365 | loc = new wxLocale(); | |
3366 | else | |
3367 | loc = new wxLocale(language, flags); | |
3368 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3369 | // for the floating point conversions and such to work right. | |
3370 | #if PY_VERSION_HEX < 0x02040000 | |
3371 | setlocale(LC_NUMERIC, "C"); | |
3372 | #endif | |
3373 | return loc; | |
3374 | } | |
554f62e9 | 3375 | 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 |
3376 | bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding); |
3377 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3378 | // for the floating point conversions and such to work right. | |
3379 | #if PY_VERSION_HEX < 0x02040000 | |
3380 | setlocale(LC_NUMERIC, "C"); | |
3381 | #endif | |
3382 | return rc; | |
3383 | } | |
554f62e9 | 3384 | SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ |
093d3ff1 RD |
3385 | bool rc = self->Init(language, flags); |
3386 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3387 | // for the floating point conversions and such to work right. | |
3388 | #if PY_VERSION_HEX < 0x02040000 | |
3389 | setlocale(LC_NUMERIC, "C"); | |
3390 | #endif | |
3391 | return rc; | |
3392 | } | |
3393 | ||
fc46b7f3 RD |
3394 | class wxPyLocale : public wxLocale |
3395 | { | |
3396 | public: | |
3397 | wxPyLocale(); | |
3398 | ||
3399 | wxPyLocale(const wxChar *szName, // name (for messages) | |
3400 | const wxChar *szShort = (const wxChar *) NULL, // dir prefix (for msg files) | |
3401 | const wxChar *szLocale = (const wxChar *) NULL, // locale (for setlocale) | |
3402 | bool bLoadDefault = true, // preload wxstd.mo? | |
3403 | bool bConvertEncoding = false); // convert Win<->Unix if necessary? | |
3404 | ||
3405 | wxPyLocale(int language, // wxLanguage id or custom language | |
3406 | int flags = wxLOCALE_LOAD_DEFAULT | wxLOCALE_CONV_ENCODING); | |
3407 | ||
3408 | ~wxPyLocale(); | |
3409 | ||
3410 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3411 | const wxChar *szDomain = NULL) const; | |
3412 | virtual const wxChar *GetString(const wxChar *szOrigString, | |
3413 | const wxChar *szOrigString2, size_t n, | |
3414 | const wxChar *szDomain = NULL) const; | |
3415 | ||
3416 | virtual wxChar *GetSingularString(const wxChar *szOrigString, | |
3417 | const wxChar *szDomain = NULL) const; | |
3418 | virtual wxChar *GetPluralString(const wxChar *szOrigString, | |
3419 | const wxChar *szOrigString2, size_t n, | |
3420 | const wxChar *szDomain = NULL) const; | |
3421 | ||
3422 | PYPRIVATE; | |
3423 | private: | |
3424 | DECLARE_NO_COPY_CLASS(wxPyLocale) | |
3425 | }; | |
3426 | ||
3427 | wxPyLocale::wxPyLocale() : wxLocale() | |
3428 | { | |
3429 | } | |
3430 | ||
3431 | wxPyLocale::wxPyLocale(const wxChar *szName, // name (for messages) | |
3432 | const wxChar *szShort, // dir prefix (for msg files) | |
3433 | const wxChar *szLocale, // locale (for setlocale) | |
3434 | bool bLoadDefault, // preload wxstd.mo? | |
3435 | bool bConvertEncoding) // convert Win<->Unix if necessary? | |
3436 | : wxLocale(szName, szShort, szLocale, bLoadDefault, bConvertEncoding) | |
3437 | { | |
3438 | } | |
3439 | ||
3440 | wxPyLocale::wxPyLocale(int language, // wxLanguage id or custom language | |
3441 | int flags) : wxLocale(language, flags) | |
3442 | { | |
3443 | } | |
3444 | ||
3445 | wxPyLocale::~wxPyLocale() | |
3446 | { | |
3447 | } | |
3448 | ||
3449 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3450 | const wxChar *szDomain) const | |
3451 | { | |
3452 | wxChar *str = GetSingularString(szOrigString, szDomain); | |
3453 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szDomain); | |
3454 | } | |
3455 | ||
3456 | const wxChar *wxPyLocale::GetString(const wxChar *szOrigString, | |
3457 | const wxChar *szOrigString2, size_t n, | |
3458 | const wxChar *szDomain) const | |
3459 | { | |
3460 | wxChar *str = GetPluralString(szOrigString, szOrigString2, n, szDomain); | |
3461 | return (str != NULL) ? str : wxLocale::GetString(szOrigString, szOrigString2, n, szDomain); | |
3462 | } | |
3463 | ||
3464 | wxChar *wxPyLocale::GetSingularString(const wxChar *szOrigString, | |
3465 | const wxChar *szDomain) const | |
3466 | { | |
3467 | bool found; | |
3468 | static wxString str; | |
3469 | 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. | |
3470 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3471 | if((found=wxPyCBH_findCallback(m_myInst, "GetSingularString"))) { | |
3472 | PyObject* param1 = wx2PyString(szOrigString); | |
3473 | PyObject* param2 = wx2PyString(szDomain); | |
3474 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OO)", param1, param2)); | |
3475 | Py_DECREF(param1); | |
3476 | Py_DECREF(param2); | |
3477 | if (ret) { | |
3478 | str = Py2wxString(ret); | |
3479 | Py_DECREF(ret); | |
3480 | } | |
3481 | } | |
3482 | wxPyEndBlockThreads(blocked); | |
3483 | return (found ? (wxChar*)str.c_str() : NULL); | |
3484 | } | |
3485 | ||
3486 | wxChar *wxPyLocale::GetPluralString(const wxChar *szOrigString, | |
3487 | const wxChar *szOrigString2, size_t n, | |
3488 | const wxChar *szDomain) const | |
3489 | { | |
3490 | bool found; | |
3491 | static wxString str; | |
3492 | 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. | |
3493 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3494 | if((found=wxPyCBH_findCallback(m_myInst, "GetPluralString"))) { | |
3495 | PyObject* param1 = wx2PyString(szOrigString); | |
3496 | PyObject* param2 = wx2PyString(szOrigString2); | |
3497 | PyObject* param4 = wx2PyString(szDomain); | |
3498 | PyObject* ret = wxPyCBH_callCallbackObj(m_myInst, Py_BuildValue("(OOiO)", param1, param2, (int)n, param4)); | |
3499 | Py_DECREF(param1); | |
3500 | Py_DECREF(param2); | |
3501 | Py_DECREF(param4); | |
3502 | if( ret) { | |
3503 | str = Py2wxString(ret); | |
3504 | Py_DECREF(ret); | |
3505 | } | |
3506 | } | |
3507 | wxPyEndBlockThreads(blocked); | |
3508 | return (found ? (wxChar*)str.c_str() : NULL); | |
3509 | } | |
3510 | ||
3511 | SWIGINTERN wxPyLocale *new_wxPyLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){ | |
3512 | wxPyLocale* loc; | |
3513 | if (language == -1) | |
3514 | loc = new wxPyLocale(); | |
3515 | else | |
3516 | loc = new wxPyLocale(language, flags); | |
3517 | // Python before 2.4 needs to have LC_NUMERIC set to "C" in order | |
3518 | // for the floating point conversions and such to work right. | |
3519 | #if PY_VERSION_HEX < 0x02040000 | |
3520 | setlocale(LC_NUMERIC, "C"); | |
3521 | #endif | |
3522 | return loc; | |
3523 | } | |
3524 | ||
093d3ff1 RD |
3525 | #include "wx/wxPython/pydrawxxx.h" |
3526 | ||
554f62e9 | 3527 | SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){ |
093d3ff1 RD |
3528 | wxColour col; |
3529 | self->GetPixel(x, y, &col); | |
3530 | return col; | |
3531 | } | |
554f62e9 | 3532 | SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){ |
093d3ff1 RD |
3533 | wxColour col; |
3534 | self->GetPixel(pt, &col); | |
3535 | return col; | |
3536 | } | |
3537 | ||
3538 | SWIGINTERN int | |
554f62e9 | 3539 | SWIG_AsVal_double (PyObject *obj, double* val) |
093d3ff1 RD |
3540 | { |
3541 | if (PyNumber_Check(obj)) { | |
3542 | if (val) *val = PyFloat_AsDouble(obj); | |
554f62e9 | 3543 | return SWIG_OK; |
093d3ff1 | 3544 | } |
554f62e9 | 3545 | return SWIG_TypeError; |
093d3ff1 RD |
3546 | } |
3547 | ||
554f62e9 | 3548 | 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 |
3549 | wxRect rv; |
3550 | self->DrawLabel(text, image, rect, alignment, indexAccel, &rv); | |
3551 | return rv; | |
3552 | } | |
554f62e9 | 3553 | SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){ |
093d3ff1 RD |
3554 | wxRect rect; |
3555 | self->GetClippingBox(rect); | |
3556 | return rect; | |
3557 | } | |
554f62e9 | 3558 | SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){ |
093d3ff1 RD |
3559 | wxArrayInt widths; |
3560 | self->GetPartialTextExtents(text, widths); | |
3561 | return widths; | |
3562 | } | |
3563 | ||
554f62e9 | 3564 | #define SWIG_From_double PyFloat_FromDouble |
093d3ff1 | 3565 | |
554f62e9 | 3566 | SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3567 | self->SetLogicalOrigin(point.x, point.y); |
3568 | } | |
554f62e9 | 3569 | SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3570 | self->SetDeviceOrigin(point.x, point.y); |
3571 | } | |
554f62e9 | 3572 | SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){ |
093d3ff1 RD |
3573 | self->CalcBoundingBox(point.x, point.y); |
3574 | } | |
554f62e9 | 3575 | SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3576 | return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes); |
3577 | } | |
554f62e9 | 3578 | SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3579 | return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes); |
3580 | } | |
554f62e9 | 3581 | SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3582 | return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes); |
3583 | } | |
554f62e9 | 3584 | SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3585 | return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes); |
3586 | } | |
554f62e9 | 3587 | SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){ |
093d3ff1 RD |
3588 | return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes); |
3589 | } | |
554f62e9 | 3590 | SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){ |
093d3ff1 RD |
3591 | return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList); |
3592 | } | |
3593 | ||
3594 | static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) { | |
3595 | *x1 = dc->MinX(); | |
3596 | *y1 = dc->MinY(); | |
3597 | *x2 = dc->MaxX(); | |
3598 | *y2 = dc->MaxY(); | |
3599 | } | |
3600 | ||
3601 | ||
3602 | #include <wx/dcbuffer.h> | |
3603 | ||
3604 | ||
3605 | #include <wx/dcps.h> | |
3606 | ||
3607 | ||
3608 | #include <wx/metafile.h> | |
3609 | ||
3610 | ||
72ef6efb RD |
3611 | #include <wx/graphics.h> |
3612 | ||
3613 | ||
3614 | #if !wxUSE_GRAPHICS_CONTEXT | |
70d7cb34 RD |
3615 | // C++ stub classes for platforms or build configurations that don't have |
3616 | // wxGraphicsContext yet. | |
72ef6efb | 3617 | |
8bd35413 RD |
3618 | class wxGraphicsRenderer; |
3619 | class wxGraphicsMatrix; | |
3620 | ||
70d7cb34 RD |
3621 | |
3622 | class wxGraphicsObject : public wxObject | |
72ef6efb RD |
3623 | { |
3624 | public : | |
8bd35413 | 3625 | wxGraphicsObject() {} |
70d7cb34 | 3626 | wxGraphicsObject( wxGraphicsRenderer* ) { |
72ef6efb | 3627 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 RD |
3628 | "wx.GraphicsObject is not available on this platform."); |
3629 | } | |
3630 | wxGraphicsObject( const wxGraphicsObject& ) {} | |
3631 | virtual ~wxGraphicsObject() {} | |
3632 | bool IsNull() const { return false; } | |
3633 | wxGraphicsRenderer* GetRenderer() const { return NULL; } | |
3634 | } ; | |
3635 | ||
3636 | ||
3637 | ||
3638 | class wxGraphicsPen : public wxGraphicsObject | |
3639 | { | |
8bd35413 | 3640 | public: |
70d7cb34 RD |
3641 | wxGraphicsPen() {} |
3642 | virtual ~wxGraphicsPen() {} | |
3643 | } ; | |
3644 | wxGraphicsPen wxNullGraphicsPen; | |
3645 | ||
3646 | ||
3647 | ||
3648 | class wxGraphicsBrush : public wxGraphicsObject | |
3649 | { | |
3650 | public : | |
3651 | wxGraphicsBrush() {} | |
3652 | virtual ~wxGraphicsBrush() {} | |
3653 | } ; | |
3654 | wxGraphicsBrush wxNullGraphicsBrush; | |
3655 | ||
3656 | ||
3657 | ||
3658 | class wxGraphicsFont : public wxGraphicsObject | |
3659 | { | |
3660 | public : | |
3661 | wxGraphicsFont() {} | |
3662 | virtual ~wxGraphicsFont() {} | |
3663 | } ; | |
3664 | wxGraphicsFont wxNullGraphicsFont; | |
3665 | ||
3666 | ||
3667 | ||
3668 | class wxGraphicsPath : public wxGraphicsObject | |
3669 | { | |
3670 | public : | |
8bd35413 | 3671 | wxGraphicsPath() { } |
70d7cb34 RD |
3672 | wxGraphicsPath(wxGraphicsRenderer* ) { |
3673 | PyErr_SetString(PyExc_NotImplementedError, | |
3674 | "wx.GraphicsPath is not available on this platform."); | |
72ef6efb RD |
3675 | } |
3676 | virtual ~wxGraphicsPath() {} | |
70d7cb34 | 3677 | |
72ef6efb | 3678 | void MoveToPoint( wxDouble, wxDouble ) {} |
70d7cb34 RD |
3679 | void MoveToPoint( const wxPoint2DDouble& ) {} |
3680 | void AddLineToPoint( wxDouble, wxDouble ) {} | |
3681 | void AddLineToPoint( const wxPoint2DDouble& ) {} | |
72ef6efb | 3682 | void AddCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, wxDouble ) {} |
70d7cb34 | 3683 | void AddCurveToPoint( const wxPoint2DDouble&, const wxPoint2DDouble&, const wxPoint2DDouble&) {} |
8bd35413 | 3684 | void AddPath( const wxGraphicsPath& ) {} |
72ef6efb | 3685 | void CloseSubpath() {} |
8bd35413 RD |
3686 | void GetCurrentPoint( wxDouble&, wxDouble&) const {} |
3687 | wxPoint2DDouble GetCurrentPoint() const { return wxPoint2D(0,0); } | |
72ef6efb | 3688 | void AddArc( wxDouble, wxDouble, wxDouble, wxDouble, wxDouble, bool ) {} |
70d7cb34 | 3689 | void AddArc( const wxPoint2DDouble& , wxDouble, wxDouble , wxDouble , bool ) {} |
72ef6efb RD |
3690 | |
3691 | void AddQuadCurveToPoint( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3692 | void AddRectangle( wxDouble, wxDouble, wxDouble, wxDouble ) {} | |
3693 | void AddCircle( wxDouble, wxDouble, wxDouble ) {} | |
3694 | void AddArcToPoint( wxDouble, wxDouble , wxDouble, wxDouble, wxDouble ) {} | |
3695 | ||
70d7cb34 RD |
3696 | void AddEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} |
3697 | void AddRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3698 | void * GetNativePath() const { return NULL; } | |
8bd35413 RD |
3699 | void UnGetNativePath(void *) const {} |
3700 | void Transform( const wxGraphicsMatrix& ) {} | |
3701 | void GetBox(wxDouble *, wxDouble *, wxDouble *, wxDouble *) const {} | |
3702 | wxRect2D GetBox() const { return wxRect2D(0,0,0,0); } | |
70d7cb34 | 3703 | |
8bd35413 RD |
3704 | bool Contains( wxDouble , wxDouble , int ) const { return false; } |
3705 | bool Contains( const wxPoint2DDouble& , int ) const { return false; } | |
70d7cb34 | 3706 | }; |
5c8c7dd3 | 3707 | wxGraphicsPath wxNullGraphicsPath; |
70d7cb34 RD |
3708 | |
3709 | ||
3710 | class wxGraphicsMatrix : public wxGraphicsObject | |
3711 | { | |
3712 | public : | |
8bd35413 | 3713 | wxGraphicsMatrix() { } |
70d7cb34 RD |
3714 | wxGraphicsMatrix(wxGraphicsRenderer* ) { |
3715 | PyErr_SetString(PyExc_NotImplementedError, | |
3716 | "wx.GraphicsMatrix is not available on this platform."); | |
3717 | } | |
3718 | virtual ~wxGraphicsMatrix() {} | |
8bd35413 RD |
3719 | virtual void Concat( const wxGraphicsMatrix & ) {} |
3720 | virtual void Copy( const wxGraphicsMatrix & ) {} | |
70d7cb34 RD |
3721 | virtual void Set(wxDouble , wxDouble , wxDouble , wxDouble , |
3722 | wxDouble , wxDouble ) {} | |
248802d0 RD |
3723 | virtual void Get(wxDouble*, wxDouble*, wxDouble*, |
3724 | wxDouble*, wxDouble*, wxDouble*) {} | |
70d7cb34 | 3725 | virtual void Invert() {} |
8bd35413 RD |
3726 | virtual bool IsEqual( const wxGraphicsMatrix& t) const { return false; } |
3727 | virtual bool IsIdentity() const { return false; } | |
70d7cb34 RD |
3728 | virtual void Translate( wxDouble , wxDouble ) {} |
3729 | virtual void Scale( wxDouble , wxDouble ) {} | |
3730 | virtual void Rotate( wxDouble ) {} | |
8bd35413 RD |
3731 | virtual void TransformPoint( wxDouble *, wxDouble * ) const {} |
3732 | virtual void TransformDistance( wxDouble *, wxDouble * ) const {} | |
70d7cb34 | 3733 | virtual void * GetNativeMatrix() const { return NULL; } |
72ef6efb | 3734 | }; |
5c8c7dd3 | 3735 | wxGraphicsMatrix wxNullGraphicsMatrix; |
72ef6efb | 3736 | |
70d7cb34 RD |
3737 | |
3738 | class wxGraphicsContext : public wxGraphicsObject | |
72ef6efb RD |
3739 | { |
3740 | public: | |
70d7cb34 RD |
3741 | |
3742 | wxGraphicsContext(wxGraphicsRenderer* ) { | |
72ef6efb | 3743 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3744 | "wx.GraphicsContext is not available on this platform."); |
72ef6efb | 3745 | } |
70d7cb34 | 3746 | |
72ef6efb | 3747 | virtual ~wxGraphicsContext() {} |
70d7cb34 | 3748 | |
8bd35413 RD |
3749 | static wxGraphicsContext* Create() { |
3750 | PyErr_SetString(PyExc_NotImplementedError, | |
3751 | "wx.GraphicsContext is not available on this platform."); | |
3752 | return NULL; | |
3753 | } | |
70d7cb34 | 3754 | static wxGraphicsContext* Create( const wxWindowDC& ) { |
72ef6efb | 3755 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3756 | "wx.GraphicsContext is not available on this platform."); |
8bd35413 | 3757 | return NULL; |
72ef6efb | 3758 | } |
b876c1e4 | 3759 | |
70d7cb34 | 3760 | static wxGraphicsContext* CreateFromNative( void * ) { |
b876c1e4 | 3761 | PyErr_SetString(PyExc_NotImplementedError, |
70d7cb34 | 3762 | "wx.GraphicsContext is not available on this platform."); |
8bd35413 | 3763 | return NULL; |
70d7cb34 | 3764 | } |
b876c1e4 | 3765 | |
70d7cb34 RD |
3766 | static wxGraphicsContext* CreateFromNativeWindow( void * ) { |
3767 | PyErr_SetString(PyExc_NotImplementedError, | |
3768 | "wx.GraphicsContext is not available on this platform."); | |
8bd35413 | 3769 | return NULL; |
70d7cb34 RD |
3770 | } |
3771 | ||
3772 | static wxGraphicsContext* Create( wxWindow* ) { | |
3773 | PyErr_SetString(PyExc_NotImplementedError, | |
3774 | "wx.GraphicsContext is not available on this platform."); | |
8bd35413 | 3775 | return NULL; |
70d7cb34 RD |
3776 | } |
3777 | ||
8bd35413 | 3778 | wxGraphicsPath CreatePath() { return wxNullGraphicsPath; } |
70d7cb34 | 3779 | |
8bd35413 | 3780 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; } |
70d7cb34 | 3781 | |
8bd35413 | 3782 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; } |
70d7cb34 RD |
3783 | |
3784 | virtual wxGraphicsBrush CreateLinearGradientBrush( wxDouble , wxDouble , wxDouble , wxDouble , | |
8bd35413 | 3785 | const wxColour&, const wxColour&) { return wxNullGraphicsBrush; } |
70d7cb34 RD |
3786 | |
3787 | virtual wxGraphicsBrush CreateRadialGradientBrush( wxDouble xo, wxDouble yo, | |
3788 | wxDouble xc, wxDouble yc, wxDouble radius, | |
8bd35413 | 3789 | const wxColour &oColor, const wxColour &cColor) { return wxNullGraphicsBrush; } |
70d7cb34 | 3790 | |
8bd35413 | 3791 | virtual wxGraphicsFont CreateFont( const wxFont &, const wxColour & ) { return wxNullGraphicsFont; } |
70d7cb34 | 3792 | |
8bd35413 RD |
3793 | virtual wxGraphicsMatrix CreateMatrix( wxDouble, wxDouble, wxDouble, wxDouble, |
3794 | wxDouble, wxDouble) { return wxNullGraphicsMatrix; } | |
70d7cb34 RD |
3795 | |
3796 | virtual void PushState() {} | |
3797 | virtual void PopState() {} | |
3798 | virtual void Clip( const wxRegion & ) {} | |
3799 | virtual void Clip( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3800 | virtual void ResetClip() {} | |
3801 | virtual void * GetNativeContext() { return NULL; } | |
c8aaaf9e RD |
3802 | virtual int GetLogicalFunction() const { return 0; } |
3803 | virtual bool SetLogicalFunction(int ) {} | |
70d7cb34 RD |
3804 | virtual void Translate( wxDouble , wxDouble ) {} |
3805 | virtual void Scale( wxDouble , wxDouble ) {} | |
3806 | virtual void Rotate( wxDouble ) {} | |
8bd35413 RD |
3807 | virtual void ConcatTransform( const wxGraphicsMatrix& ) {} |
3808 | virtual void SetTransform( const wxGraphicsMatrix& ) {} | |
3809 | virtual wxGraphicsMatrix GetTransform() const { return wxNullGraphicsMatrix; } | |
70d7cb34 RD |
3810 | |
3811 | virtual void SetPen( const wxGraphicsPen& ) {} | |
3812 | void SetPen( const wxPen& ) {} | |
3813 | ||
3814 | virtual void SetBrush( const wxGraphicsBrush& ) {} | |
3815 | void SetBrush( const wxBrush& ) {} | |
3816 | ||
3817 | virtual void SetFont( const wxGraphicsFont& ) {} | |
3818 | void SetFont( const wxFont&, const wxColour& ) {} | |
3819 | ||
8bd35413 RD |
3820 | virtual void StrokePath( const wxGraphicsPath & ) {} |
3821 | virtual void FillPath( const wxGraphicsPath &, int ) {} | |
3822 | virtual void DrawPath( const wxGraphicsPath &, int ) {} | |
70d7cb34 RD |
3823 | |
3824 | virtual void DrawText( const wxString &, wxDouble , wxDouble ) {} | |
3825 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble ) {} | |
8bd35413 RD |
3826 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxGraphicsBrush ) {} |
3827 | virtual void DrawText( const wxString &, wxDouble , wxDouble , wxDouble , wxGraphicsBrush ) {} | |
70d7cb34 RD |
3828 | virtual void GetTextExtent( const wxString &, wxDouble *, wxDouble *, |
3829 | wxDouble *, wxDouble * ) const {} | |
3830 | virtual void GetPartialTextExtents(const wxString& , wxArrayDouble& ) const {} | |
3831 | ||
3832 | virtual void DrawBitmap( const wxBitmap &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3833 | virtual void DrawIcon( const wxIcon &, wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3834 | ||
3835 | virtual void StrokeLine( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3836 | virtual void StrokeLines( size_t , const wxPoint2DDouble *) {} | |
3837 | virtual void StrokeLines( size_t , const wxPoint2DDouble *, const wxPoint2DDouble *) {} | |
3838 | virtual void DrawLines( size_t , const wxPoint2DDouble *, int ) {} | |
3839 | virtual void DrawRectangle( wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
8bd35413 | 3840 | virtual void DrawRoundedRectangle( wxDouble , wxDouble , wxDouble , wxDouble , wxDouble ) {} |
70d7cb34 RD |
3841 | virtual void DrawEllipse( wxDouble , wxDouble , wxDouble , wxDouble ) {} |
3842 | virtual void DrawRoundedRectangle( wxDouble wxDouble , wxDouble , wxDouble , wxDouble ) {} | |
3843 | virtual bool ShouldOffset() const { return false; } | |
3844 | }; | |
3845 | ||
3846 | ||
3847 | class wxGraphicsRenderer : public wxObject | |
3848 | { | |
3849 | public : | |
3850 | wxGraphicsRenderer() { | |
3851 | PyErr_SetString(PyExc_NotImplementedError, | |
3852 | "wx.GraphicsRenderer is not available on this platform."); | |
3853 | } | |
3854 | ||
3855 | virtual ~wxGraphicsRenderer() {} | |
3856 | ||
8bd35413 | 3857 | static wxGraphicsRenderer* GetDefaultRenderer() { |
70d7cb34 RD |
3858 | PyErr_SetString(PyExc_NotImplementedError, |
3859 | "wx.GraphicsRenderer is not available on this platform."); | |
8bd35413 RD |
3860 | return NULL; |
3861 | } | |
70d7cb34 RD |
3862 | |
3863 | virtual wxGraphicsContext * CreateContext( const wxWindowDC& ) { return NULL; } | |
3864 | virtual wxGraphicsContext * CreateContextFromNativeContext( void * ) { return NULL; } | |
3865 | virtual wxGraphicsContext * CreateContextFromNativeWindow( void * ) { return NULL; } | |
3866 | virtual wxGraphicsContext * CreateContext( wxWindow* ) { return NULL; } | |
8bd35413 | 3867 | virtual wxGraphicsContext * CreateMeasuringContext() { return NULL; } |
70d7cb34 | 3868 | |
8bd35413 | 3869 | virtual wxGraphicsPath CreatePath() { return wxNullGraphicsPath; } |
70d7cb34 | 3870 | |
8bd35413 RD |
3871 | virtual wxGraphicsMatrix CreateMatrix( wxDouble , wxDouble , wxDouble , wxDouble , |
3872 | wxDouble , wxDouble ) { return wxNullGraphicsMatrix; } | |
70d7cb34 | 3873 | |
8bd35413 RD |
3874 | virtual wxGraphicsPen CreatePen(const wxPen& ) { return wxNullGraphicsPen; } |
3875 | virtual wxGraphicsBrush CreateBrush(const wxBrush& ) { return wxNullGraphicsBrush; } | |
3876 | virtual wxGraphicsBrush CreateLinearGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , | |
3877 | const wxColour&, const wxColour&) { return wxNullGraphicsBrush; } | |
70d7cb34 | 3878 | virtual wxGraphicsBrush CreateRadialGradientBrush(wxDouble , wxDouble , wxDouble , wxDouble , wxDouble , |
8bd35413 RD |
3879 | const wxColour &, const wxColour &) { return wxNullGraphicsBrush; } |
3880 | virtual wxGraphicsFont CreateFont( const wxFont & , const wxColour & ) { return wxNullGraphicsFont; } | |
72ef6efb RD |
3881 | }; |
3882 | ||
3883 | ||
70d7cb34 | 3884 | |
72ef6efb RD |
3885 | class wxGCDC: public wxWindowDC |
3886 | { | |
3887 | public: | |
3888 | wxGCDC(const wxWindowDC&) { | |
3889 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3890 | PyErr_SetString(PyExc_NotImplementedError, | |
3891 | "wxGCDC is not available on this platform."); | |
3892 | wxPyEndBlockThreads(blocked); | |
3893 | } | |
70d7cb34 | 3894 | |
48a0c021 RD |
3895 | wxGCDC(const wxWindow*) { |
3896 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3897 | PyErr_SetString(PyExc_NotImplementedError, | |
3898 | "wxGCDC is not available on this platform."); | |
3899 | wxPyEndBlockThreads(blocked); | |
3900 | } | |
3901 | ||
72ef6efb RD |
3902 | wxGCDC() { |
3903 | wxPyBlock_t blocked = wxPyBeginBlockThreads(); | |
3904 | PyErr_SetString(PyExc_NotImplementedError, | |
3905 | "wxGCDC is not available on this platform."); | |
3906 | wxPyEndBlockThreads(blocked); | |
3907 | } | |
70d7cb34 | 3908 | |
72ef6efb RD |
3909 | virtual ~wxGCDC() {} |
3910 | ||
b876c1e4 RD |
3911 | wxGraphicsContext* GetGraphicsContext() { return NULL; } |
3912 | void SetGraphicsContext( wxGraphicsContext* ) {} | |
72ef6efb RD |
3913 | }; |
3914 | ||
3915 | #endif | |
3916 | ||
f89238b9 RD |
3917 | SWIGINTERN void wxGraphicsContext_DrawText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ |
3918 | if ( !backgroundBrush.IsNull() ) | |
3919 | self->DrawText(str, x, y, backgroundBrush); | |
3920 | else | |
3921 | self->DrawText(str, x, y); | |
3922 | } | |
3923 | SWIGINTERN void wxGraphicsContext_DrawRotatedText(wxGraphicsContext *self,wxString const &str,wxDouble x,wxDouble y,wxDouble angle,wxGraphicsBrush const &backgroundBrush=wxNullGraphicsBrush){ | |
3924 | if ( !backgroundBrush.IsNull() ) | |
3925 | self->DrawText(str, x, y, angle, backgroundBrush); | |
3926 | else | |
3927 | self->DrawText(str, x, y, angle); | |
3928 | } | |
be68621e RD |
3929 | SWIGINTERN PyObject *wxGraphicsContext_GetTextExtent(wxGraphicsContext *self,wxString const &text){ |
3930 | wxDouble width = 0.0, | |
3931 | height = 0.0; | |
3932 | self->GetTextExtent(text, &width, &height, NULL, NULL); | |
3933 | // thread wrapers are turned off for this .i file, so no need to acquire GIL... | |
3934 | PyObject* rv = PyTuple_New(2); | |
3935 | PyTuple_SET_ITEM(rv, 0, PyFloat_FromDouble(width)); | |
3936 | PyTuple_SET_ITEM(rv, 1, PyFloat_FromDouble(height)); | |
3937 | return rv; | |
3938 | } | |
b39fe951 RD |
3939 | SWIGINTERN wxArrayDouble wxGraphicsContext_GetPartialTextExtents(wxGraphicsContext *self,wxString const &text){ |
3940 | wxArrayDouble widths; | |
3941 | self->GetPartialTextExtents(text, widths); | |
3942 | return widths; | |
3943 | } | |
f8eb59b9 | 3944 | SWIGINTERN void wxGraphicsContext_StrokeLineSegements(wxGraphicsContext *self,PyObject *beginPoints,PyObject *endPoints){ |
b39fe951 RD |
3945 | size_t c1, c2, count; |
3946 | wxPoint2D* beginP = wxPoint2D_LIST_helper(beginPoints, &c1); | |
3947 | wxPoint2D* endP = wxPoint2D_LIST_helper(endPoints, &c2); | |
3948 | ||
3949 | if ( beginP != NULL && endP != NULL ) | |
3950 | { | |
3951 | count = wxMin(c1, c2); | |
3952 | self->StrokeLines(count, beginP, endP); | |
3953 | } | |
3954 | delete [] beginP; | |
3955 | delete [] endP; | |
3956 | } | |
72ef6efb | 3957 | |
0a27f394 RD |
3958 | #include "wx/dcgraph.h" |
3959 | ||
3960 | ||
66493fc7 RD |
3961 | #include <wx/overlay.h> |
3962 | ||
3963 | ||
093d3ff1 | 3964 | |
554f62e9 | 3965 | SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){ |
093d3ff1 RD |
3966 | self->AddColour(name, wxColour(red, green, blue)); |
3967 | } | |
3968 | ||
50efceee RD |
3969 | wxFontList* _wxPyInitTheFontList() { return wxTheFontList; } |
3970 | wxPenList* _wxPyInitThePenList() { return wxThePenList; } | |
3971 | wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; } | |
3972 | wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; } | |
3973 | ||
3974 | ||
093d3ff1 RD |
3975 | #include <wx/effects.h> |
3976 | ||
be9b1dca RD |
3977 | |
3978 | #include "wx/renderer.h" | |
3979 | ||
3980 | ||
7449af73 | 3981 | SWIGINTERNINLINE PyObject* |
554f62e9 | 3982 | SWIG_From_bool (bool value) |
be9b1dca | 3983 | { |
554f62e9 | 3984 | return PyBool_FromLong(value ? 1 : 0); |
be9b1dca RD |
3985 | } |
3986 | ||
27e45892 RD |
3987 | |
3988 | #include "wx/wxPython/pseudodc.h" | |
3989 | ||
3990 | SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){ | |
3991 | wxRect rect; | |
3992 | self->GetIdBounds(id, rect); | |
3993 | return rect; | |
3994 | } | |
093d3ff1 RD |
3995 | #ifdef __cplusplus |
3996 | extern "C" { | |
3997 | #endif | |
554f62e9 RD |
3998 | SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
3999 | PyObject *resultobj = 0; | |
4000 | wxGDIObject *result = 0 ; | |
4001 | ||
4002 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail; | |
4003 | { | |
4004 | if (!wxPyCheckForApp()) SWIG_fail; | |
4005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4006 | result = (wxGDIObject *)new wxGDIObject(); | |
4007 | wxPyEndAllowThreads(__tstate); | |
4008 | if (PyErr_Occurred()) SWIG_fail; | |
4009 | } | |
4010 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 ); | |
4011 | return resultobj; | |
4012 | fail: | |
4013 | return NULL; | |
d55e5bfc RD |
4014 | } |
4015 | ||
4016 | ||
554f62e9 RD |
4017 | SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4018 | PyObject *resultobj = 0; | |
4019 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4020 | void *argp1 = 0 ; | |
4021 | int res1 = 0 ; | |
4022 | PyObject *swig_obj[1] ; | |
4023 | ||
4024 | if (!args) SWIG_fail; | |
4025 | swig_obj[0] = args; | |
4026 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 ); | |
4027 | if (!SWIG_IsOK(res1)) { | |
4028 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4029 | } | |
4030 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4031 | { | |
4032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4033 | delete arg1; | |
d55e5bfc | 4034 | |
554f62e9 RD |
4035 | wxPyEndAllowThreads(__tstate); |
4036 | if (PyErr_Occurred()) SWIG_fail; | |
4037 | } | |
4038 | resultobj = SWIG_Py_Void(); | |
4039 | return resultobj; | |
4040 | fail: | |
4041 | return NULL; | |
d55e5bfc RD |
4042 | } |
4043 | ||
4044 | ||
554f62e9 RD |
4045 | SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4046 | PyObject *resultobj = 0; | |
4047 | wxGDIObject *arg1 = (wxGDIObject *) 0 ; | |
4048 | bool result; | |
4049 | void *argp1 = 0 ; | |
4050 | int res1 = 0 ; | |
4051 | PyObject *swig_obj[1] ; | |
4052 | ||
4053 | if (!args) SWIG_fail; | |
4054 | swig_obj[0] = args; | |
4055 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 ); | |
4056 | if (!SWIG_IsOK(res1)) { | |
4057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'"); | |
4058 | } | |
4059 | arg1 = reinterpret_cast< wxGDIObject * >(argp1); | |
4060 | { | |
4061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4062 | result = (bool)(arg1)->IsNull(); | |
4063 | wxPyEndAllowThreads(__tstate); | |
4064 | if (PyErr_Occurred()) SWIG_fail; | |
4065 | } | |
4066 | { | |
4067 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4068 | } | |
4069 | return resultobj; | |
4070 | fail: | |
4071 | return NULL; | |
4072 | } | |
4073 | ||
4074 | ||
4075 | SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4076 | PyObject *obj; | |
4077 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4078 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj)); | |
4079 | return SWIG_Py_Void(); | |
4080 | } | |
4081 | ||
4082 | SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4083 | return SWIG_Python_InitShadowInstance(args); | |
4084 | } | |
4085 | ||
4086 | SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4087 | PyObject *resultobj = 0; | |
4088 | byte arg1 = (byte) 0 ; | |
4089 | byte arg2 = (byte) 0 ; | |
4090 | byte arg3 = (byte) 0 ; | |
fc46b7f3 | 4091 | byte arg4 = (byte) wxALPHA_OPAQUE ; |
554f62e9 RD |
4092 | wxColour *result = 0 ; |
4093 | unsigned char val1 ; | |
4094 | int ecode1 = 0 ; | |
4095 | unsigned char val2 ; | |
4096 | int ecode2 = 0 ; | |
4097 | unsigned char val3 ; | |
4098 | int ecode3 = 0 ; | |
fc46b7f3 RD |
4099 | unsigned char val4 ; |
4100 | int ecode4 = 0 ; | |
554f62e9 RD |
4101 | PyObject * obj0 = 0 ; |
4102 | PyObject * obj1 = 0 ; | |
4103 | PyObject * obj2 = 0 ; | |
fc46b7f3 | 4104 | PyObject * obj3 = 0 ; |
554f62e9 | 4105 | char * kwnames[] = { |
fc46b7f3 | 4106 | (char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
554f62e9 RD |
4107 | }; |
4108 | ||
fc46b7f3 | 4109 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Colour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
554f62e9 RD |
4110 | if (obj0) { |
4111 | ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1); | |
4112 | if (!SWIG_IsOK(ecode1)) { | |
4113 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'"); | |
4114 | } | |
4115 | arg1 = static_cast< byte >(val1); | |
4116 | } | |
4117 | if (obj1) { | |
4118 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4119 | if (!SWIG_IsOK(ecode2)) { | |
4120 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'"); | |
4121 | } | |
4122 | arg2 = static_cast< byte >(val2); | |
4123 | } | |
4124 | if (obj2) { | |
4125 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4126 | if (!SWIG_IsOK(ecode3)) { | |
4127 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'"); | |
4128 | } | |
4129 | arg3 = static_cast< byte >(val3); | |
4130 | } | |
fc46b7f3 RD |
4131 | if (obj3) { |
4132 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4133 | if (!SWIG_IsOK(ecode4)) { | |
4134 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Colour" "', expected argument " "4"" of type '" "byte""'"); | |
4135 | } | |
4136 | arg4 = static_cast< byte >(val4); | |
4137 | } | |
554f62e9 RD |
4138 | { |
4139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4140 | result = (wxColour *)new wxColour(arg1,arg2,arg3,arg4); |
554f62e9 RD |
4141 | wxPyEndAllowThreads(__tstate); |
4142 | if (PyErr_Occurred()) SWIG_fail; | |
4143 | } | |
4144 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 ); | |
4145 | return resultobj; | |
4146 | fail: | |
4147 | return NULL; | |
d55e5bfc RD |
4148 | } |
4149 | ||
4150 | ||
554f62e9 RD |
4151 | SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4152 | PyObject *resultobj = 0; | |
4153 | wxString *arg1 = 0 ; | |
4154 | wxColour *result = 0 ; | |
4155 | bool temp1 = false ; | |
4156 | PyObject * obj0 = 0 ; | |
4157 | char * kwnames[] = { | |
4158 | (char *) "colorName", NULL | |
4159 | }; | |
4160 | ||
4161 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail; | |
4162 | { | |
4163 | arg1 = wxString_in_helper(obj0); | |
4164 | if (arg1 == NULL) SWIG_fail; | |
4165 | temp1 = true; | |
4166 | } | |
4167 | { | |
4168 | if (!wxPyCheckForApp()) SWIG_fail; | |
4169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4170 | result = (wxColour *)new wxColour((wxString const &)*arg1); | |
4171 | wxPyEndAllowThreads(__tstate); | |
4172 | if (PyErr_Occurred()) SWIG_fail; | |
4173 | } | |
4174 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4175 | { | |
4176 | if (temp1) | |
4177 | delete arg1; | |
4178 | } | |
4179 | return resultobj; | |
4180 | fail: | |
4181 | { | |
4182 | if (temp1) | |
4183 | delete arg1; | |
4184 | } | |
4185 | return NULL; | |
b519803b RD |
4186 | } |
4187 | ||
4188 | ||
554f62e9 RD |
4189 | SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4190 | PyObject *resultobj = 0; | |
4191 | unsigned long arg1 ; | |
4192 | wxColour *result = 0 ; | |
4193 | unsigned long val1 ; | |
4194 | int ecode1 = 0 ; | |
4195 | PyObject * obj0 = 0 ; | |
4196 | char * kwnames[] = { | |
4197 | (char *) "colRGB", NULL | |
4198 | }; | |
4199 | ||
4200 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail; | |
4201 | ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1); | |
4202 | if (!SWIG_IsOK(ecode1)) { | |
4203 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'"); | |
4204 | } | |
4205 | arg1 = static_cast< unsigned long >(val1); | |
4206 | { | |
4207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4208 | result = (wxColour *)new wxColour(arg1); | |
4209 | wxPyEndAllowThreads(__tstate); | |
4210 | if (PyErr_Occurred()) SWIG_fail; | |
4211 | } | |
4212 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
4213 | return resultobj; | |
4214 | fail: | |
4215 | return NULL; | |
d55e5bfc RD |
4216 | } |
4217 | ||
4218 | ||
554f62e9 RD |
4219 | SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4220 | PyObject *resultobj = 0; | |
4221 | wxColour *arg1 = (wxColour *) 0 ; | |
4222 | void *argp1 = 0 ; | |
4223 | int res1 = 0 ; | |
4224 | PyObject *swig_obj[1] ; | |
4225 | ||
4226 | if (!args) SWIG_fail; | |
4227 | swig_obj[0] = args; | |
4228 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 ); | |
4229 | if (!SWIG_IsOK(res1)) { | |
4230 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4231 | } | |
4232 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4233 | { | |
4234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4235 | delete arg1; | |
d55e5bfc | 4236 | |
554f62e9 RD |
4237 | wxPyEndAllowThreads(__tstate); |
4238 | if (PyErr_Occurred()) SWIG_fail; | |
4239 | } | |
4240 | resultobj = SWIG_Py_Void(); | |
4241 | return resultobj; | |
4242 | fail: | |
4243 | return NULL; | |
d55e5bfc RD |
4244 | } |
4245 | ||
4246 | ||
554f62e9 RD |
4247 | SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4248 | PyObject *resultobj = 0; | |
4249 | wxColour *arg1 = (wxColour *) 0 ; | |
4250 | byte result; | |
4251 | void *argp1 = 0 ; | |
4252 | int res1 = 0 ; | |
4253 | PyObject *swig_obj[1] ; | |
4254 | ||
4255 | if (!args) SWIG_fail; | |
4256 | swig_obj[0] = args; | |
4257 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4258 | if (!SWIG_IsOK(res1)) { | |
4259 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4260 | } | |
4261 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4262 | { | |
4263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4264 | result = (byte)(arg1)->Red(); | |
4265 | wxPyEndAllowThreads(__tstate); | |
4266 | if (PyErr_Occurred()) SWIG_fail; | |
4267 | } | |
4268 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4269 | return resultobj; | |
4270 | fail: | |
4271 | return NULL; | |
d55e5bfc RD |
4272 | } |
4273 | ||
4274 | ||
554f62e9 RD |
4275 | SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4276 | PyObject *resultobj = 0; | |
4277 | wxColour *arg1 = (wxColour *) 0 ; | |
4278 | byte result; | |
4279 | void *argp1 = 0 ; | |
4280 | int res1 = 0 ; | |
4281 | PyObject *swig_obj[1] ; | |
4282 | ||
4283 | if (!args) SWIG_fail; | |
4284 | swig_obj[0] = args; | |
4285 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4286 | if (!SWIG_IsOK(res1)) { | |
4287 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4288 | } | |
4289 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4290 | { | |
4291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4292 | result = (byte)(arg1)->Green(); | |
4293 | wxPyEndAllowThreads(__tstate); | |
4294 | if (PyErr_Occurred()) SWIG_fail; | |
4295 | } | |
4296 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4297 | return resultobj; | |
4298 | fail: | |
4299 | return NULL; | |
d55e5bfc RD |
4300 | } |
4301 | ||
4302 | ||
554f62e9 RD |
4303 | SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4304 | PyObject *resultobj = 0; | |
4305 | wxColour *arg1 = (wxColour *) 0 ; | |
4306 | byte result; | |
4307 | void *argp1 = 0 ; | |
4308 | int res1 = 0 ; | |
4309 | PyObject *swig_obj[1] ; | |
4310 | ||
4311 | if (!args) SWIG_fail; | |
4312 | swig_obj[0] = args; | |
4313 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4314 | if (!SWIG_IsOK(res1)) { | |
4315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4316 | } | |
4317 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4318 | { | |
4319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4320 | result = (byte)(arg1)->Blue(); | |
4321 | wxPyEndAllowThreads(__tstate); | |
4322 | if (PyErr_Occurred()) SWIG_fail; | |
4323 | } | |
4324 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4325 | return resultobj; | |
4326 | fail: | |
4327 | return NULL; | |
d55e5bfc RD |
4328 | } |
4329 | ||
4330 | ||
fc46b7f3 RD |
4331 | SWIGINTERN PyObject *_wrap_Colour_Alpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4332 | PyObject *resultobj = 0; | |
4333 | wxColour *arg1 = (wxColour *) 0 ; | |
4334 | byte result; | |
4335 | void *argp1 = 0 ; | |
4336 | int res1 = 0 ; | |
4337 | PyObject *swig_obj[1] ; | |
4338 | ||
4339 | if (!args) SWIG_fail; | |
4340 | swig_obj[0] = args; | |
4341 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4342 | if (!SWIG_IsOK(res1)) { | |
4343 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Alpha" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4344 | } | |
4345 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4346 | { | |
4347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4348 | result = (byte)(arg1)->Alpha(); | |
4349 | wxPyEndAllowThreads(__tstate); | |
4350 | if (PyErr_Occurred()) SWIG_fail; | |
4351 | } | |
4352 | resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result)); | |
4353 | return resultobj; | |
4354 | fail: | |
4355 | return NULL; | |
4356 | } | |
4357 | ||
4358 | ||
b39fe951 | 4359 | SWIGINTERN PyObject *_wrap_Colour_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
4360 | PyObject *resultobj = 0; |
4361 | wxColour *arg1 = (wxColour *) 0 ; | |
4362 | bool result; | |
4363 | void *argp1 = 0 ; | |
4364 | int res1 = 0 ; | |
4365 | PyObject *swig_obj[1] ; | |
4366 | ||
4367 | if (!args) SWIG_fail; | |
4368 | swig_obj[0] = args; | |
4369 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4370 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 4371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_IsOk" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
4372 | } |
4373 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4374 | { | |
4375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 4376 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
4377 | wxPyEndAllowThreads(__tstate); |
4378 | if (PyErr_Occurred()) SWIG_fail; | |
4379 | } | |
4380 | { | |
4381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4382 | } | |
4383 | return resultobj; | |
4384 | fail: | |
4385 | return NULL; | |
4386 | } | |
4387 | ||
4388 | ||
4389 | SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4390 | PyObject *resultobj = 0; | |
4391 | wxColour *arg1 = (wxColour *) 0 ; | |
4392 | byte arg2 ; | |
4393 | byte arg3 ; | |
4394 | byte arg4 ; | |
fc46b7f3 | 4395 | byte arg5 = (byte) wxALPHA_OPAQUE ; |
554f62e9 RD |
4396 | void *argp1 = 0 ; |
4397 | int res1 = 0 ; | |
4398 | unsigned char val2 ; | |
4399 | int ecode2 = 0 ; | |
4400 | unsigned char val3 ; | |
4401 | int ecode3 = 0 ; | |
4402 | unsigned char val4 ; | |
4403 | int ecode4 = 0 ; | |
fc46b7f3 RD |
4404 | unsigned char val5 ; |
4405 | int ecode5 = 0 ; | |
554f62e9 RD |
4406 | PyObject * obj0 = 0 ; |
4407 | PyObject * obj1 = 0 ; | |
4408 | PyObject * obj2 = 0 ; | |
4409 | PyObject * obj3 = 0 ; | |
fc46b7f3 | 4410 | PyObject * obj4 = 0 ; |
554f62e9 | 4411 | char * kwnames[] = { |
fc46b7f3 | 4412 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL |
554f62e9 RD |
4413 | }; |
4414 | ||
fc46b7f3 | 4415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
554f62e9 RD |
4416 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); |
4417 | if (!SWIG_IsOK(res1)) { | |
4418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4419 | } | |
4420 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4421 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4422 | if (!SWIG_IsOK(ecode2)) { | |
4423 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'"); | |
4424 | } | |
4425 | arg2 = static_cast< byte >(val2); | |
4426 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4427 | if (!SWIG_IsOK(ecode3)) { | |
4428 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'"); | |
4429 | } | |
4430 | arg3 = static_cast< byte >(val3); | |
4431 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4432 | if (!SWIG_IsOK(ecode4)) { | |
4433 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'"); | |
4434 | } | |
4435 | arg4 = static_cast< byte >(val4); | |
fc46b7f3 RD |
4436 | if (obj4) { |
4437 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
4438 | if (!SWIG_IsOK(ecode5)) { | |
4439 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Colour_Set" "', expected argument " "5"" of type '" "byte""'"); | |
4440 | } | |
4441 | arg5 = static_cast< byte >(val5); | |
4442 | } | |
554f62e9 RD |
4443 | { |
4444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 4445 | (arg1)->Set(arg2,arg3,arg4,arg5); |
554f62e9 RD |
4446 | wxPyEndAllowThreads(__tstate); |
4447 | if (PyErr_Occurred()) SWIG_fail; | |
4448 | } | |
4449 | resultobj = SWIG_Py_Void(); | |
4450 | return resultobj; | |
4451 | fail: | |
4452 | return NULL; | |
4453 | } | |
4454 | ||
4455 | ||
4456 | SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4457 | PyObject *resultobj = 0; | |
4458 | wxColour *arg1 = (wxColour *) 0 ; | |
4459 | unsigned long arg2 ; | |
4460 | void *argp1 = 0 ; | |
4461 | int res1 = 0 ; | |
4462 | unsigned long val2 ; | |
4463 | int ecode2 = 0 ; | |
4464 | PyObject * obj0 = 0 ; | |
4465 | PyObject * obj1 = 0 ; | |
4466 | char * kwnames[] = { | |
4467 | (char *) "self",(char *) "colRGB", NULL | |
4468 | }; | |
4469 | ||
4470 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4471 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4472 | if (!SWIG_IsOK(res1)) { | |
4473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4474 | } | |
4475 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4476 | ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2); | |
4477 | if (!SWIG_IsOK(ecode2)) { | |
4478 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'"); | |
4479 | } | |
4480 | arg2 = static_cast< unsigned long >(val2); | |
4481 | { | |
4482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4483 | (arg1)->Set(arg2); | |
4484 | wxPyEndAllowThreads(__tstate); | |
4485 | if (PyErr_Occurred()) SWIG_fail; | |
4486 | } | |
4487 | resultobj = SWIG_Py_Void(); | |
4488 | return resultobj; | |
4489 | fail: | |
4490 | return NULL; | |
4491 | } | |
4492 | ||
4493 | ||
4494 | SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4495 | PyObject *resultobj = 0; | |
4496 | wxColour *arg1 = (wxColour *) 0 ; | |
4497 | wxString *arg2 = 0 ; | |
4498 | void *argp1 = 0 ; | |
4499 | int res1 = 0 ; | |
4500 | bool temp2 = false ; | |
4501 | PyObject * obj0 = 0 ; | |
4502 | PyObject * obj1 = 0 ; | |
4503 | char * kwnames[] = { | |
4504 | (char *) "self",(char *) "colourName", NULL | |
4505 | }; | |
4506 | ||
4507 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail; | |
4508 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4509 | if (!SWIG_IsOK(res1)) { | |
4510 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4511 | } | |
4512 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4513 | { | |
4514 | arg2 = wxString_in_helper(obj1); | |
4515 | if (arg2 == NULL) SWIG_fail; | |
4516 | temp2 = true; | |
4517 | } | |
4518 | { | |
4519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
72ef6efb | 4520 | (arg1)->Set((wxString const &)*arg2); |
554f62e9 RD |
4521 | wxPyEndAllowThreads(__tstate); |
4522 | if (PyErr_Occurred()) SWIG_fail; | |
4523 | } | |
4524 | resultobj = SWIG_Py_Void(); | |
4525 | { | |
4526 | if (temp2) | |
4527 | delete arg2; | |
4528 | } | |
4529 | return resultobj; | |
4530 | fail: | |
4531 | { | |
4532 | if (temp2) | |
4533 | delete arg2; | |
4534 | } | |
4535 | return NULL; | |
d55e5bfc RD |
4536 | } |
4537 | ||
4538 | ||
f460c29d RD |
4539 | SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
4540 | PyObject *resultobj = 0; | |
4541 | wxColour *arg1 = (wxColour *) 0 ; | |
4542 | long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ; | |
4543 | wxString result; | |
4544 | void *argp1 = 0 ; | |
4545 | int res1 = 0 ; | |
4546 | long val2 ; | |
4547 | int ecode2 = 0 ; | |
4548 | PyObject * obj0 = 0 ; | |
4549 | PyObject * obj1 = 0 ; | |
4550 | char * kwnames[] = { | |
4551 | (char *) "self",(char *) "flags", NULL | |
4552 | }; | |
4553 | ||
4554 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail; | |
4555 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4556 | if (!SWIG_IsOK(res1)) { | |
4557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4558 | } | |
4559 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4560 | if (obj1) { | |
4561 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
4562 | if (!SWIG_IsOK(ecode2)) { | |
4563 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'"); | |
4564 | } | |
4565 | arg2 = static_cast< long >(val2); | |
4566 | } | |
4567 | { | |
4568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4569 | result = ((wxColour const *)arg1)->GetAsString(arg2); | |
4570 | wxPyEndAllowThreads(__tstate); | |
4571 | if (PyErr_Occurred()) SWIG_fail; | |
4572 | } | |
4573 | { | |
4574 | #if wxUSE_UNICODE | |
4575 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
4576 | #else | |
4577 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
4578 | #endif | |
4579 | } | |
4580 | return resultobj; | |
4581 | fail: | |
4582 | return NULL; | |
4583 | } | |
4584 | ||
4585 | ||
554f62e9 RD |
4586 | SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4587 | PyObject *resultobj = 0; | |
4588 | wxColour *arg1 = (wxColour *) 0 ; | |
4589 | long result; | |
4590 | void *argp1 = 0 ; | |
4591 | int res1 = 0 ; | |
4592 | PyObject *swig_obj[1] ; | |
4593 | ||
4594 | if (!args) SWIG_fail; | |
4595 | swig_obj[0] = args; | |
4596 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4597 | if (!SWIG_IsOK(res1)) { | |
4598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'"); | |
4599 | } | |
4600 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4601 | { | |
4602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4603 | result = (long)((wxColour const *)arg1)->GetPixel(); | |
4604 | wxPyEndAllowThreads(__tstate); | |
4605 | if (PyErr_Occurred()) SWIG_fail; | |
4606 | } | |
4607 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
4608 | return resultobj; | |
4609 | fail: | |
4610 | return NULL; | |
4611 | } | |
4612 | ||
4613 | ||
4614 | SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4615 | PyObject *resultobj = 0; | |
4616 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4617 | PyObject *arg2 = (PyObject *) 0 ; |
554f62e9 RD |
4618 | bool result; |
4619 | void *argp1 = 0 ; | |
4620 | int res1 = 0 ; | |
554f62e9 RD |
4621 | PyObject * obj0 = 0 ; |
4622 | PyObject * obj1 = 0 ; | |
4623 | char * kwnames[] = { | |
e9d6f3a4 | 4624 | (char *) "self",(char *) "other", NULL |
554f62e9 RD |
4625 | }; |
4626 | ||
4627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4629 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
4631 | } |
4632 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4633 | arg2 = obj1; |
554f62e9 | 4634 | { |
e9d6f3a4 | 4635 | result = (bool)wxColour___eq__(arg1,arg2); |
554f62e9 RD |
4636 | if (PyErr_Occurred()) SWIG_fail; |
4637 | } | |
4638 | { | |
4639 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4640 | } | |
4641 | return resultobj; | |
4642 | fail: | |
4643 | return NULL; | |
4644 | } | |
4645 | ||
4646 | ||
4647 | SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4648 | PyObject *resultobj = 0; | |
4649 | wxColour *arg1 = (wxColour *) 0 ; | |
e9d6f3a4 | 4650 | PyObject *arg2 = (PyObject *) 0 ; |
554f62e9 RD |
4651 | bool result; |
4652 | void *argp1 = 0 ; | |
4653 | int res1 = 0 ; | |
554f62e9 RD |
4654 | PyObject * obj0 = 0 ; |
4655 | PyObject * obj1 = 0 ; | |
4656 | char * kwnames[] = { | |
e9d6f3a4 | 4657 | (char *) "self",(char *) "other", NULL |
554f62e9 RD |
4658 | }; |
4659 | ||
4660 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
4661 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4662 | if (!SWIG_IsOK(res1)) { | |
e9d6f3a4 | 4663 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'"); |
554f62e9 RD |
4664 | } |
4665 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
e9d6f3a4 | 4666 | arg2 = obj1; |
554f62e9 | 4667 | { |
e9d6f3a4 | 4668 | result = (bool)wxColour___ne__(arg1,arg2); |
554f62e9 RD |
4669 | if (PyErr_Occurred()) SWIG_fail; |
4670 | } | |
4671 | { | |
4672 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4673 | } | |
4674 | return resultobj; | |
4675 | fail: | |
4676 | return NULL; | |
d55e5bfc RD |
4677 | } |
4678 | ||
4679 | ||
fc46b7f3 | 4680 | SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
4681 | PyObject *resultobj = 0; |
4682 | wxColour *arg1 = (wxColour *) 0 ; | |
fc46b7f3 | 4683 | bool arg2 = (bool) false ; |
554f62e9 RD |
4684 | PyObject *result = 0 ; |
4685 | void *argp1 = 0 ; | |
4686 | int res1 = 0 ; | |
fc46b7f3 RD |
4687 | bool val2 ; |
4688 | int ecode2 = 0 ; | |
4689 | PyObject * obj0 = 0 ; | |
4690 | PyObject * obj1 = 0 ; | |
4691 | char * kwnames[] = { | |
4692 | (char *) "self",(char *) "includeAlpha", NULL | |
4693 | }; | |
554f62e9 | 4694 | |
fc46b7f3 RD |
4695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_Get",kwnames,&obj0,&obj1)) SWIG_fail; |
4696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
554f62e9 RD |
4697 | if (!SWIG_IsOK(res1)) { |
4698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4699 | } | |
4700 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
fc46b7f3 RD |
4701 | if (obj1) { |
4702 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
4703 | if (!SWIG_IsOK(ecode2)) { | |
4704 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Get" "', expected argument " "2"" of type '" "bool""'"); | |
4705 | } | |
4706 | arg2 = static_cast< bool >(val2); | |
4707 | } | |
554f62e9 | 4708 | { |
fc46b7f3 | 4709 | result = (PyObject *)wxColour_Get(arg1,arg2); |
554f62e9 RD |
4710 | if (PyErr_Occurred()) SWIG_fail; |
4711 | } | |
4712 | resultobj = result; | |
4713 | return resultobj; | |
4714 | fail: | |
4715 | return NULL; | |
d55e5bfc RD |
4716 | } |
4717 | ||
4718 | ||
554f62e9 RD |
4719 | SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4720 | PyObject *resultobj = 0; | |
4721 | wxColour *arg1 = (wxColour *) 0 ; | |
4722 | unsigned long result; | |
4723 | void *argp1 = 0 ; | |
4724 | int res1 = 0 ; | |
4725 | PyObject *swig_obj[1] ; | |
4726 | ||
4727 | if (!args) SWIG_fail; | |
4728 | swig_obj[0] = args; | |
4729 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 ); | |
4730 | if (!SWIG_IsOK(res1)) { | |
4731 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'"); | |
4732 | } | |
4733 | arg1 = reinterpret_cast< wxColour * >(argp1); | |
4734 | { | |
554f62e9 | 4735 | result = (unsigned long)wxColour_GetRGB(arg1); |
554f62e9 RD |
4736 | if (PyErr_Occurred()) SWIG_fail; |
4737 | } | |
4738 | resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result)); | |
4739 | return resultobj; | |
4740 | fail: | |
4741 | return NULL; | |
4742 | } | |
4743 | ||
4744 | ||
4745 | SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4746 | PyObject *obj; | |
4747 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
4748 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj)); | |
4749 | return SWIG_Py_Void(); | |
4750 | } | |
4751 | ||
4752 | SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
4753 | return SWIG_Python_InitShadowInstance(args); | |
4754 | } | |
4755 | ||
4756 | SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4757 | PyObject *resultobj = 0; | |
4758 | int arg1 ; | |
4759 | unsigned char *arg2 = (unsigned char *) 0 ; | |
4760 | unsigned char *arg3 = (unsigned char *) 0 ; | |
4761 | unsigned char *arg4 = (unsigned char *) 0 ; | |
4762 | wxPalette *result = 0 ; | |
4763 | int val1 ; | |
4764 | int ecode1 = 0 ; | |
4765 | void *argp2 = 0 ; | |
4766 | int res2 = 0 ; | |
4767 | void *argp3 = 0 ; | |
4768 | int res3 = 0 ; | |
4769 | void *argp4 = 0 ; | |
4770 | int res4 = 0 ; | |
4771 | PyObject * obj0 = 0 ; | |
4772 | PyObject * obj1 = 0 ; | |
4773 | PyObject * obj2 = 0 ; | |
4774 | PyObject * obj3 = 0 ; | |
4775 | char * kwnames[] = { | |
4776 | (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4777 | }; | |
4778 | ||
4779 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4780 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
4781 | if (!SWIG_IsOK(ecode1)) { | |
4782 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'"); | |
4783 | } | |
4784 | arg1 = static_cast< int >(val1); | |
4785 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4786 | if (!SWIG_IsOK(res2)) { | |
4787 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'"); | |
4788 | } | |
4789 | arg2 = reinterpret_cast< unsigned char * >(argp2); | |
4790 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4791 | if (!SWIG_IsOK(res3)) { | |
4792 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'"); | |
4793 | } | |
4794 | arg3 = reinterpret_cast< unsigned char * >(argp3); | |
4795 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 ); | |
4796 | if (!SWIG_IsOK(res4)) { | |
4797 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'"); | |
4798 | } | |
4799 | arg4 = reinterpret_cast< unsigned char * >(argp4); | |
4800 | { | |
4801 | if (!wxPyCheckForApp()) SWIG_fail; | |
4802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4803 | result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4); | |
4804 | wxPyEndAllowThreads(__tstate); | |
4805 | if (PyErr_Occurred()) SWIG_fail; | |
4806 | } | |
4807 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 ); | |
4808 | return resultobj; | |
4809 | fail: | |
4810 | return NULL; | |
093d3ff1 RD |
4811 | } |
4812 | ||
4813 | ||
554f62e9 RD |
4814 | SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4815 | PyObject *resultobj = 0; | |
4816 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4817 | void *argp1 = 0 ; | |
4818 | int res1 = 0 ; | |
4819 | PyObject *swig_obj[1] ; | |
4820 | ||
4821 | if (!args) SWIG_fail; | |
4822 | swig_obj[0] = args; | |
4823 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 ); | |
4824 | if (!SWIG_IsOK(res1)) { | |
4825 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4826 | } | |
4827 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4828 | { | |
4829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4830 | delete arg1; | |
093d3ff1 | 4831 | |
554f62e9 RD |
4832 | wxPyEndAllowThreads(__tstate); |
4833 | if (PyErr_Occurred()) SWIG_fail; | |
4834 | } | |
4835 | resultobj = SWIG_Py_Void(); | |
4836 | return resultobj; | |
4837 | fail: | |
4838 | return NULL; | |
4839 | } | |
4840 | ||
4841 | ||
4842 | SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4843 | PyObject *resultobj = 0; | |
4844 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4845 | byte arg2 ; | |
4846 | byte arg3 ; | |
4847 | byte arg4 ; | |
4848 | int result; | |
4849 | void *argp1 = 0 ; | |
4850 | int res1 = 0 ; | |
4851 | unsigned char val2 ; | |
4852 | int ecode2 = 0 ; | |
4853 | unsigned char val3 ; | |
4854 | int ecode3 = 0 ; | |
4855 | unsigned char val4 ; | |
4856 | int ecode4 = 0 ; | |
4857 | PyObject * obj0 = 0 ; | |
4858 | PyObject * obj1 = 0 ; | |
4859 | PyObject * obj2 = 0 ; | |
4860 | PyObject * obj3 = 0 ; | |
4861 | char * kwnames[] = { | |
4862 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
4863 | }; | |
4864 | ||
4865 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
4866 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4867 | if (!SWIG_IsOK(res1)) { | |
4868 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4869 | } | |
4870 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4871 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
4872 | if (!SWIG_IsOK(ecode2)) { | |
4873 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'"); | |
4874 | } | |
4875 | arg2 = static_cast< byte >(val2); | |
4876 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
4877 | if (!SWIG_IsOK(ecode3)) { | |
4878 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'"); | |
4879 | } | |
4880 | arg3 = static_cast< byte >(val3); | |
4881 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
4882 | if (!SWIG_IsOK(ecode4)) { | |
4883 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'"); | |
4884 | } | |
4885 | arg4 = static_cast< byte >(val4); | |
4886 | { | |
4887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4888 | result = (int)(arg1)->GetPixel(arg2,arg3,arg4); | |
4889 | wxPyEndAllowThreads(__tstate); | |
4890 | if (PyErr_Occurred()) SWIG_fail; | |
4891 | } | |
4892 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4893 | return resultobj; | |
4894 | fail: | |
4895 | return NULL; | |
4896 | } | |
4897 | ||
4898 | ||
4899 | SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
4900 | PyObject *resultobj = 0; | |
4901 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4902 | int arg2 ; | |
4903 | byte *arg3 = (byte *) 0 ; | |
4904 | byte *arg4 = (byte *) 0 ; | |
4905 | byte *arg5 = (byte *) 0 ; | |
4906 | bool result; | |
4907 | void *argp1 = 0 ; | |
4908 | int res1 = 0 ; | |
4909 | int val2 ; | |
4910 | int ecode2 = 0 ; | |
4911 | byte temp3 ; | |
4912 | int res3 = SWIG_TMPOBJ ; | |
4913 | byte temp4 ; | |
4914 | int res4 = SWIG_TMPOBJ ; | |
4915 | byte temp5 ; | |
4916 | int res5 = SWIG_TMPOBJ ; | |
4917 | PyObject * obj0 = 0 ; | |
4918 | PyObject * obj1 = 0 ; | |
4919 | char * kwnames[] = { | |
4920 | (char *) "self",(char *) "pixel", NULL | |
4921 | }; | |
4922 | ||
4923 | arg3 = &temp3; | |
4924 | arg4 = &temp4; | |
4925 | arg5 = &temp5; | |
4926 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail; | |
4927 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4928 | if (!SWIG_IsOK(res1)) { | |
4929 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'"); | |
4930 | } | |
4931 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4932 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
4933 | if (!SWIG_IsOK(ecode2)) { | |
4934 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'"); | |
4935 | } | |
4936 | arg2 = static_cast< int >(val2); | |
4937 | { | |
4938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4939 | result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5); | |
4940 | wxPyEndAllowThreads(__tstate); | |
4941 | if (PyErr_Occurred()) SWIG_fail; | |
4942 | } | |
4943 | { | |
4944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4945 | } | |
4946 | if (SWIG_IsTmpObj(res3)) { | |
4947 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3))); | |
4948 | } else { | |
4949 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4950 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags)); | |
4951 | } | |
4952 | if (SWIG_IsTmpObj(res4)) { | |
4953 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4))); | |
4954 | } else { | |
4955 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4956 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags)); | |
4957 | } | |
4958 | if (SWIG_IsTmpObj(res5)) { | |
4959 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5))); | |
4960 | } else { | |
4961 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
4962 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags)); | |
4963 | } | |
4964 | return resultobj; | |
4965 | fail: | |
4966 | return NULL; | |
d55e5bfc RD |
4967 | } |
4968 | ||
4969 | ||
554f62e9 RD |
4970 | SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
4971 | PyObject *resultobj = 0; | |
4972 | wxPalette *arg1 = (wxPalette *) 0 ; | |
4973 | int result; | |
4974 | void *argp1 = 0 ; | |
4975 | int res1 = 0 ; | |
4976 | PyObject *swig_obj[1] ; | |
4977 | ||
4978 | if (!args) SWIG_fail; | |
4979 | swig_obj[0] = args; | |
4980 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
4981 | if (!SWIG_IsOK(res1)) { | |
4982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'"); | |
4983 | } | |
4984 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
4985 | { | |
4986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4987 | result = (int)((wxPalette const *)arg1)->GetColoursCount(); | |
4988 | wxPyEndAllowThreads(__tstate); | |
4989 | if (PyErr_Occurred()) SWIG_fail; | |
4990 | } | |
4991 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
4992 | return resultobj; | |
4993 | fail: | |
4994 | return NULL; | |
d55e5bfc RD |
4995 | } |
4996 | ||
4997 | ||
b39fe951 | 4998 | SWIGINTERN PyObject *_wrap_Palette_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
4999 | PyObject *resultobj = 0; |
5000 | wxPalette *arg1 = (wxPalette *) 0 ; | |
5001 | bool result; | |
5002 | void *argp1 = 0 ; | |
5003 | int res1 = 0 ; | |
5004 | PyObject *swig_obj[1] ; | |
5005 | ||
5006 | if (!args) SWIG_fail; | |
5007 | swig_obj[0] = args; | |
5008 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
5009 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_IsOk" "', expected argument " "1"" of type '" "wxPalette *""'"); |
554f62e9 RD |
5011 | } |
5012 | arg1 = reinterpret_cast< wxPalette * >(argp1); | |
5013 | { | |
5014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5015 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
5016 | wxPyEndAllowThreads(__tstate); |
5017 | if (PyErr_Occurred()) SWIG_fail; | |
5018 | } | |
5019 | { | |
5020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5021 | } | |
5022 | return resultobj; | |
5023 | fail: | |
5024 | return NULL; | |
5025 | } | |
5026 | ||
5027 | ||
5028 | SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5029 | PyObject *obj; | |
5030 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5031 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj)); | |
5032 | return SWIG_Py_Void(); | |
5033 | } | |
5034 | ||
5035 | SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
5036 | return SWIG_Python_InitShadowInstance(args); | |
5037 | } | |
5038 | ||
5039 | SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5040 | PyObject *resultobj = 0; | |
5041 | wxColour *arg1 = 0 ; | |
5042 | int arg2 = (int) 1 ; | |
5043 | int arg3 = (int) wxSOLID ; | |
5044 | wxPen *result = 0 ; | |
5045 | wxColour temp1 ; | |
5046 | int val2 ; | |
5047 | int ecode2 = 0 ; | |
5048 | int val3 ; | |
5049 | int ecode3 = 0 ; | |
5050 | PyObject * obj0 = 0 ; | |
5051 | PyObject * obj1 = 0 ; | |
5052 | PyObject * obj2 = 0 ; | |
5053 | char * kwnames[] = { | |
5054 | (char *) "colour",(char *) "width",(char *) "style", NULL | |
5055 | }; | |
5056 | ||
5057 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5058 | { | |
5059 | arg1 = &temp1; | |
5060 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5061 | } | |
5062 | if (obj1) { | |
5063 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5064 | if (!SWIG_IsOK(ecode2)) { | |
5065 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'"); | |
5066 | } | |
5067 | arg2 = static_cast< int >(val2); | |
5068 | } | |
5069 | if (obj2) { | |
5070 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
5071 | if (!SWIG_IsOK(ecode3)) { | |
5072 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'"); | |
5073 | } | |
5074 | arg3 = static_cast< int >(val3); | |
5075 | } | |
5076 | { | |
5077 | if (!wxPyCheckForApp()) SWIG_fail; | |
5078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5079 | result = (wxPen *)new wxPen(*arg1,arg2,arg3); | |
5080 | wxPyEndAllowThreads(__tstate); | |
5081 | if (PyErr_Occurred()) SWIG_fail; | |
5082 | } | |
5083 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 ); | |
5084 | return resultobj; | |
5085 | fail: | |
5086 | return NULL; | |
d55e5bfc RD |
5087 | } |
5088 | ||
5089 | ||
554f62e9 RD |
5090 | SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5091 | PyObject *resultobj = 0; | |
5092 | wxPen *arg1 = (wxPen *) 0 ; | |
5093 | void *argp1 = 0 ; | |
5094 | int res1 = 0 ; | |
5095 | PyObject *swig_obj[1] ; | |
5096 | ||
5097 | if (!args) SWIG_fail; | |
5098 | swig_obj[0] = args; | |
5099 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 ); | |
5100 | if (!SWIG_IsOK(res1)) { | |
5101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5102 | } | |
5103 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5104 | { | |
5105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5106 | delete arg1; | |
d55e5bfc | 5107 | |
554f62e9 RD |
5108 | wxPyEndAllowThreads(__tstate); |
5109 | if (PyErr_Occurred()) SWIG_fail; | |
5110 | } | |
5111 | resultobj = SWIG_Py_Void(); | |
5112 | return resultobj; | |
5113 | fail: | |
5114 | return NULL; | |
d55e5bfc RD |
5115 | } |
5116 | ||
5117 | ||
554f62e9 RD |
5118 | SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5119 | PyObject *resultobj = 0; | |
5120 | wxPen *arg1 = (wxPen *) 0 ; | |
5121 | int result; | |
5122 | void *argp1 = 0 ; | |
5123 | int res1 = 0 ; | |
5124 | PyObject *swig_obj[1] ; | |
5125 | ||
5126 | if (!args) SWIG_fail; | |
5127 | swig_obj[0] = args; | |
5128 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5129 | if (!SWIG_IsOK(res1)) { | |
5130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5131 | } | |
5132 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5133 | { | |
5134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5135 | result = (int)(arg1)->GetCap(); | |
5136 | wxPyEndAllowThreads(__tstate); | |
5137 | if (PyErr_Occurred()) SWIG_fail; | |
5138 | } | |
5139 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5140 | return resultobj; | |
5141 | fail: | |
5142 | return NULL; | |
d55e5bfc RD |
5143 | } |
5144 | ||
5145 | ||
554f62e9 RD |
5146 | SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5147 | PyObject *resultobj = 0; | |
5148 | wxPen *arg1 = (wxPen *) 0 ; | |
5149 | wxColour result; | |
5150 | void *argp1 = 0 ; | |
5151 | int res1 = 0 ; | |
5152 | PyObject *swig_obj[1] ; | |
5153 | ||
5154 | if (!args) SWIG_fail; | |
5155 | swig_obj[0] = args; | |
5156 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5157 | if (!SWIG_IsOK(res1)) { | |
5158 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5159 | } | |
5160 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5161 | { | |
5162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5163 | result = (arg1)->GetColour(); | |
5164 | wxPyEndAllowThreads(__tstate); | |
5165 | if (PyErr_Occurred()) SWIG_fail; | |
5166 | } | |
5167 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
5168 | return resultobj; | |
5169 | fail: | |
5170 | return NULL; | |
d55e5bfc RD |
5171 | } |
5172 | ||
5173 | ||
554f62e9 RD |
5174 | SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5175 | PyObject *resultobj = 0; | |
5176 | wxPen *arg1 = (wxPen *) 0 ; | |
5177 | int result; | |
5178 | void *argp1 = 0 ; | |
5179 | int res1 = 0 ; | |
5180 | PyObject *swig_obj[1] ; | |
5181 | ||
5182 | if (!args) SWIG_fail; | |
5183 | swig_obj[0] = args; | |
5184 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5185 | if (!SWIG_IsOK(res1)) { | |
5186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5187 | } | |
5188 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5189 | { | |
5190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5191 | result = (int)(arg1)->GetJoin(); | |
5192 | wxPyEndAllowThreads(__tstate); | |
5193 | if (PyErr_Occurred()) SWIG_fail; | |
5194 | } | |
5195 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5196 | return resultobj; | |
5197 | fail: | |
5198 | return NULL; | |
d55e5bfc RD |
5199 | } |
5200 | ||
5201 | ||
554f62e9 RD |
5202 | SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5203 | PyObject *resultobj = 0; | |
5204 | wxPen *arg1 = (wxPen *) 0 ; | |
5205 | int result; | |
5206 | void *argp1 = 0 ; | |
5207 | int res1 = 0 ; | |
5208 | PyObject *swig_obj[1] ; | |
5209 | ||
5210 | if (!args) SWIG_fail; | |
5211 | swig_obj[0] = args; | |
5212 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5213 | if (!SWIG_IsOK(res1)) { | |
5214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5215 | } | |
5216 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5217 | { | |
5218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5219 | result = (int)(arg1)->GetStyle(); | |
5220 | wxPyEndAllowThreads(__tstate); | |
5221 | if (PyErr_Occurred()) SWIG_fail; | |
5222 | } | |
5223 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5224 | return resultobj; | |
5225 | fail: | |
5226 | return NULL; | |
d55e5bfc RD |
5227 | } |
5228 | ||
5229 | ||
554f62e9 RD |
5230 | SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5231 | PyObject *resultobj = 0; | |
5232 | wxPen *arg1 = (wxPen *) 0 ; | |
5233 | int result; | |
5234 | void *argp1 = 0 ; | |
5235 | int res1 = 0 ; | |
5236 | PyObject *swig_obj[1] ; | |
5237 | ||
5238 | if (!args) SWIG_fail; | |
5239 | swig_obj[0] = args; | |
5240 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5241 | if (!SWIG_IsOK(res1)) { | |
5242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5243 | } | |
5244 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5245 | { | |
5246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5247 | result = (int)(arg1)->GetWidth(); | |
5248 | wxPyEndAllowThreads(__tstate); | |
5249 | if (PyErr_Occurred()) SWIG_fail; | |
5250 | } | |
5251 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5252 | return resultobj; | |
5253 | fail: | |
5254 | return NULL; | |
d55e5bfc RD |
5255 | } |
5256 | ||
5257 | ||
b39fe951 | 5258 | SWIGINTERN PyObject *_wrap_Pen_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
5259 | PyObject *resultobj = 0; |
5260 | wxPen *arg1 = (wxPen *) 0 ; | |
5261 | bool result; | |
5262 | void *argp1 = 0 ; | |
5263 | int res1 = 0 ; | |
5264 | PyObject *swig_obj[1] ; | |
5265 | ||
5266 | if (!args) SWIG_fail; | |
5267 | swig_obj[0] = args; | |
5268 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5269 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 5270 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_IsOk" "', expected argument " "1"" of type '" "wxPen *""'"); |
554f62e9 RD |
5271 | } |
5272 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5273 | { | |
5274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 5275 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
5276 | wxPyEndAllowThreads(__tstate); |
5277 | if (PyErr_Occurred()) SWIG_fail; | |
5278 | } | |
5279 | { | |
5280 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5281 | } | |
5282 | return resultobj; | |
5283 | fail: | |
5284 | return NULL; | |
5285 | } | |
5286 | ||
5287 | ||
5288 | SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5289 | PyObject *resultobj = 0; | |
5290 | wxPen *arg1 = (wxPen *) 0 ; | |
5291 | int arg2 ; | |
5292 | void *argp1 = 0 ; | |
5293 | int res1 = 0 ; | |
5294 | int val2 ; | |
5295 | int ecode2 = 0 ; | |
5296 | PyObject * obj0 = 0 ; | |
5297 | PyObject * obj1 = 0 ; | |
5298 | char * kwnames[] = { | |
5299 | (char *) "self",(char *) "cap_style", NULL | |
5300 | }; | |
5301 | ||
5302 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail; | |
5303 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5304 | if (!SWIG_IsOK(res1)) { | |
5305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5306 | } | |
5307 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5308 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5309 | if (!SWIG_IsOK(ecode2)) { | |
5310 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'"); | |
5311 | } | |
5312 | arg2 = static_cast< int >(val2); | |
5313 | { | |
5314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5315 | (arg1)->SetCap(arg2); | |
5316 | wxPyEndAllowThreads(__tstate); | |
5317 | if (PyErr_Occurred()) SWIG_fail; | |
5318 | } | |
5319 | resultobj = SWIG_Py_Void(); | |
5320 | return resultobj; | |
5321 | fail: | |
5322 | return NULL; | |
5323 | } | |
5324 | ||
5325 | ||
5326 | SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5327 | PyObject *resultobj = 0; | |
5328 | wxPen *arg1 = (wxPen *) 0 ; | |
5329 | wxColour *arg2 = 0 ; | |
5330 | void *argp1 = 0 ; | |
5331 | int res1 = 0 ; | |
5332 | wxColour temp2 ; | |
5333 | PyObject * obj0 = 0 ; | |
5334 | PyObject * obj1 = 0 ; | |
5335 | char * kwnames[] = { | |
5336 | (char *) "self",(char *) "colour", NULL | |
5337 | }; | |
5338 | ||
5339 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5340 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5341 | if (!SWIG_IsOK(res1)) { | |
5342 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5343 | } | |
5344 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5345 | { | |
5346 | arg2 = &temp2; | |
5347 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5348 | } | |
5349 | { | |
5350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5351 | (arg1)->SetColour(*arg2); | |
5352 | wxPyEndAllowThreads(__tstate); | |
5353 | if (PyErr_Occurred()) SWIG_fail; | |
5354 | } | |
5355 | resultobj = SWIG_Py_Void(); | |
5356 | return resultobj; | |
5357 | fail: | |
5358 | return NULL; | |
5359 | } | |
5360 | ||
5361 | ||
5362 | SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5363 | PyObject *resultobj = 0; | |
5364 | wxPen *arg1 = (wxPen *) 0 ; | |
5365 | int arg2 ; | |
5366 | void *argp1 = 0 ; | |
5367 | int res1 = 0 ; | |
5368 | int val2 ; | |
5369 | int ecode2 = 0 ; | |
5370 | PyObject * obj0 = 0 ; | |
5371 | PyObject * obj1 = 0 ; | |
5372 | char * kwnames[] = { | |
5373 | (char *) "self",(char *) "join_style", NULL | |
5374 | }; | |
5375 | ||
5376 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail; | |
5377 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5378 | if (!SWIG_IsOK(res1)) { | |
5379 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5380 | } | |
5381 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5382 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5383 | if (!SWIG_IsOK(ecode2)) { | |
5384 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'"); | |
5385 | } | |
5386 | arg2 = static_cast< int >(val2); | |
5387 | { | |
5388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5389 | (arg1)->SetJoin(arg2); | |
5390 | wxPyEndAllowThreads(__tstate); | |
5391 | if (PyErr_Occurred()) SWIG_fail; | |
5392 | } | |
5393 | resultobj = SWIG_Py_Void(); | |
5394 | return resultobj; | |
5395 | fail: | |
5396 | return NULL; | |
5397 | } | |
5398 | ||
5399 | ||
5400 | SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5401 | PyObject *resultobj = 0; | |
5402 | wxPen *arg1 = (wxPen *) 0 ; | |
5403 | int arg2 ; | |
5404 | void *argp1 = 0 ; | |
5405 | int res1 = 0 ; | |
5406 | int val2 ; | |
5407 | int ecode2 = 0 ; | |
5408 | PyObject * obj0 = 0 ; | |
5409 | PyObject * obj1 = 0 ; | |
5410 | char * kwnames[] = { | |
5411 | (char *) "self",(char *) "style", NULL | |
5412 | }; | |
5413 | ||
5414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5416 | if (!SWIG_IsOK(res1)) { | |
5417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5418 | } | |
5419 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5420 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5421 | if (!SWIG_IsOK(ecode2)) { | |
5422 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5423 | } | |
5424 | arg2 = static_cast< int >(val2); | |
5425 | { | |
5426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5427 | (arg1)->SetStyle(arg2); | |
5428 | wxPyEndAllowThreads(__tstate); | |
5429 | if (PyErr_Occurred()) SWIG_fail; | |
5430 | } | |
5431 | resultobj = SWIG_Py_Void(); | |
5432 | return resultobj; | |
5433 | fail: | |
5434 | return NULL; | |
5435 | } | |
5436 | ||
5437 | ||
5438 | SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5439 | PyObject *resultobj = 0; | |
5440 | wxPen *arg1 = (wxPen *) 0 ; | |
5441 | int arg2 ; | |
5442 | void *argp1 = 0 ; | |
5443 | int res1 = 0 ; | |
5444 | int val2 ; | |
5445 | int ecode2 = 0 ; | |
5446 | PyObject * obj0 = 0 ; | |
5447 | PyObject * obj1 = 0 ; | |
5448 | char * kwnames[] = { | |
5449 | (char *) "self",(char *) "width", NULL | |
5450 | }; | |
5451 | ||
5452 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
5453 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5454 | if (!SWIG_IsOK(res1)) { | |
5455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5456 | } | |
5457 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5458 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5459 | if (!SWIG_IsOK(ecode2)) { | |
5460 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
5461 | } | |
5462 | arg2 = static_cast< int >(val2); | |
5463 | { | |
5464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5465 | (arg1)->SetWidth(arg2); | |
5466 | wxPyEndAllowThreads(__tstate); | |
5467 | if (PyErr_Occurred()) SWIG_fail; | |
5468 | } | |
5469 | resultobj = SWIG_Py_Void(); | |
5470 | return resultobj; | |
5471 | fail: | |
5472 | return NULL; | |
5473 | } | |
5474 | ||
5475 | ||
5476 | SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5477 | PyObject *resultobj = 0; | |
5478 | wxPen *arg1 = (wxPen *) 0 ; | |
5479 | int arg2 ; | |
5480 | wxDash *arg3 = (wxDash *) 0 ; | |
5481 | void *argp1 = 0 ; | |
5482 | int res1 = 0 ; | |
5483 | PyObject * obj0 = 0 ; | |
5484 | PyObject * obj1 = 0 ; | |
5485 | char * kwnames[] = { | |
5486 | (char *) "self",(char *) "dashes", NULL | |
5487 | }; | |
5488 | ||
5489 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail; | |
5490 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5491 | if (!SWIG_IsOK(res1)) { | |
5492 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5493 | } | |
5494 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5495 | { | |
5496 | arg2 = PyList_Size(obj1); | |
5497 | arg3 = (wxDash*)byte_LIST_helper(obj1); | |
5498 | if (arg3 == NULL) SWIG_fail; | |
5499 | } | |
5500 | { | |
5501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5502 | (arg1)->SetDashes(arg2,arg3); | |
5503 | wxPyEndAllowThreads(__tstate); | |
5504 | if (PyErr_Occurred()) SWIG_fail; | |
5505 | } | |
5506 | resultobj = SWIG_Py_Void(); | |
5507 | { | |
5508 | if (arg3) delete [] arg3; | |
5509 | } | |
5510 | return resultobj; | |
5511 | fail: | |
5512 | { | |
5513 | if (arg3) delete [] arg3; | |
5514 | } | |
5515 | return NULL; | |
d55e5bfc RD |
5516 | } |
5517 | ||
5518 | ||
554f62e9 RD |
5519 | SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5520 | PyObject *resultobj = 0; | |
5521 | wxPen *arg1 = (wxPen *) 0 ; | |
5522 | PyObject *result = 0 ; | |
5523 | void *argp1 = 0 ; | |
5524 | int res1 = 0 ; | |
5525 | PyObject *swig_obj[1] ; | |
5526 | ||
5527 | if (!args) SWIG_fail; | |
5528 | swig_obj[0] = args; | |
5529 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5530 | if (!SWIG_IsOK(res1)) { | |
5531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5532 | } | |
5533 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5534 | { | |
5535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5536 | result = (PyObject *)wxPen_GetDashes(arg1); | |
5537 | wxPyEndAllowThreads(__tstate); | |
5538 | if (PyErr_Occurred()) SWIG_fail; | |
5539 | } | |
5540 | resultobj = result; | |
5541 | return resultobj; | |
5542 | fail: | |
5543 | return NULL; | |
5544 | } | |
5545 | ||
5546 | ||
5547 | SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5548 | PyObject *resultobj = 0; | |
5549 | wxPen *arg1 = (wxPen *) 0 ; | |
5550 | PyObject *arg2 = (PyObject *) 0 ; | |
5551 | PyObject *arg3 = (PyObject *) 0 ; | |
5552 | void *argp1 = 0 ; | |
5553 | int res1 = 0 ; | |
5554 | PyObject * obj0 = 0 ; | |
5555 | PyObject * obj1 = 0 ; | |
5556 | PyObject * obj2 = 0 ; | |
5557 | char * kwnames[] = { | |
5558 | (char *) "self",(char *) "_self",(char *) "pyDashes", NULL | |
5559 | }; | |
5560 | ||
5561 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
5562 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5563 | if (!SWIG_IsOK(res1)) { | |
5564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5565 | } | |
5566 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5567 | arg2 = obj1; | |
5568 | arg3 = obj2; | |
5569 | { | |
5570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5571 | wxPen__SetDashes(arg1,arg2,arg3); | |
5572 | wxPyEndAllowThreads(__tstate); | |
5573 | if (PyErr_Occurred()) SWIG_fail; | |
5574 | } | |
5575 | resultobj = SWIG_Py_Void(); | |
5576 | return resultobj; | |
5577 | fail: | |
5578 | return NULL; | |
d55e5bfc RD |
5579 | } |
5580 | ||
5581 | ||
554f62e9 RD |
5582 | SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5583 | PyObject *resultobj = 0; | |
5584 | wxPen *arg1 = (wxPen *) 0 ; | |
5585 | int result; | |
5586 | void *argp1 = 0 ; | |
5587 | int res1 = 0 ; | |
5588 | PyObject *swig_obj[1] ; | |
5589 | ||
5590 | if (!args) SWIG_fail; | |
5591 | swig_obj[0] = args; | |
5592 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5593 | if (!SWIG_IsOK(res1)) { | |
5594 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'"); | |
5595 | } | |
5596 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5597 | { | |
5598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5599 | result = (int)((wxPen const *)arg1)->GetDashCount(); | |
5600 | wxPyEndAllowThreads(__tstate); | |
5601 | if (PyErr_Occurred()) SWIG_fail; | |
5602 | } | |
5603 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
5604 | return resultobj; | |
5605 | fail: | |
5606 | return NULL; | |
d55e5bfc RD |
5607 | } |
5608 | ||
5609 | ||
554f62e9 RD |
5610 | SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5611 | PyObject *resultobj = 0; | |
5612 | wxPen *arg1 = (wxPen *) 0 ; | |
5613 | wxBitmap *result = 0 ; | |
5614 | void *argp1 = 0 ; | |
5615 | int res1 = 0 ; | |
5616 | PyObject *swig_obj[1] ; | |
5617 | ||
5618 | if (!args) SWIG_fail; | |
5619 | swig_obj[0] = args; | |
5620 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5621 | if (!SWIG_IsOK(res1)) { | |
5622 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5623 | } | |
5624 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5625 | { | |
5626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5627 | result = (wxBitmap *)(arg1)->GetStipple(); | |
5628 | wxPyEndAllowThreads(__tstate); | |
5629 | if (PyErr_Occurred()) SWIG_fail; | |
5630 | } | |
5631 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
5632 | return resultobj; | |
5633 | fail: | |
5634 | return NULL; | |
5635 | } | |
5636 | ||
5637 | ||
5638 | SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5639 | PyObject *resultobj = 0; | |
5640 | wxPen *arg1 = (wxPen *) 0 ; | |
5641 | wxBitmap *arg2 = 0 ; | |
5642 | void *argp1 = 0 ; | |
5643 | int res1 = 0 ; | |
5644 | void *argp2 = 0 ; | |
5645 | int res2 = 0 ; | |
5646 | PyObject * obj0 = 0 ; | |
5647 | PyObject * obj1 = 0 ; | |
5648 | char * kwnames[] = { | |
5649 | (char *) "self",(char *) "stipple", NULL | |
5650 | }; | |
5651 | ||
5652 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5653 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5654 | if (!SWIG_IsOK(res1)) { | |
5655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5656 | } | |
5657 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5658 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); | |
5659 | if (!SWIG_IsOK(res2)) { | |
5660 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
5661 | } | |
5662 | if (!argp2) { | |
5663 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
5664 | } | |
5665 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5666 | { | |
5667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5668 | (arg1)->SetStipple(*arg2); | |
5669 | wxPyEndAllowThreads(__tstate); | |
5670 | if (PyErr_Occurred()) SWIG_fail; | |
5671 | } | |
5672 | resultobj = SWIG_Py_Void(); | |
5673 | return resultobj; | |
5674 | fail: | |
5675 | return NULL; | |
5676 | } | |
5677 | ||
5678 | ||
5679 | SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5680 | PyObject *resultobj = 0; | |
5681 | wxPen *arg1 = (wxPen *) 0 ; | |
5682 | wxPen *arg2 = (wxPen *) 0 ; | |
5683 | bool result; | |
5684 | void *argp1 = 0 ; | |
5685 | int res1 = 0 ; | |
5686 | void *argp2 = 0 ; | |
5687 | int res2 = 0 ; | |
5688 | PyObject * obj0 = 0 ; | |
5689 | PyObject * obj1 = 0 ; | |
5690 | char * kwnames[] = { | |
5691 | (char *) "self",(char *) "other", NULL | |
5692 | }; | |
5693 | ||
5694 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5695 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5696 | if (!SWIG_IsOK(res1)) { | |
5697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5698 | } | |
5699 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5700 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5701 | if (!SWIG_IsOK(res2)) { | |
5702 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5703 | } | |
5704 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5705 | { | |
5706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5707 | result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2); | |
5708 | wxPyEndAllowThreads(__tstate); | |
5709 | if (PyErr_Occurred()) SWIG_fail; | |
5710 | } | |
5711 | { | |
5712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5713 | } | |
5714 | return resultobj; | |
5715 | fail: | |
5716 | return NULL; | |
5717 | } | |
5718 | ||
5719 | ||
5720 | SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5721 | PyObject *resultobj = 0; | |
5722 | wxPen *arg1 = (wxPen *) 0 ; | |
5723 | wxPen *arg2 = (wxPen *) 0 ; | |
5724 | bool result; | |
5725 | void *argp1 = 0 ; | |
5726 | int res1 = 0 ; | |
5727 | void *argp2 = 0 ; | |
5728 | int res2 = 0 ; | |
5729 | PyObject * obj0 = 0 ; | |
5730 | PyObject * obj1 = 0 ; | |
5731 | char * kwnames[] = { | |
5732 | (char *) "self",(char *) "other", NULL | |
5733 | }; | |
5734 | ||
5735 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
5736 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5737 | if (!SWIG_IsOK(res1)) { | |
5738 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'"); | |
5739 | } | |
5740 | arg1 = reinterpret_cast< wxPen * >(argp1); | |
5741 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
5742 | if (!SWIG_IsOK(res2)) { | |
5743 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'"); | |
5744 | } | |
5745 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
5746 | { | |
5747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5748 | result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2); | |
5749 | wxPyEndAllowThreads(__tstate); | |
5750 | if (PyErr_Occurred()) SWIG_fail; | |
5751 | } | |
5752 | { | |
5753 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5754 | } | |
5755 | return resultobj; | |
5756 | fail: | |
5757 | return NULL; | |
d55e5bfc RD |
5758 | } |
5759 | ||
5760 | ||
554f62e9 RD |
5761 | SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5762 | PyObject *obj; | |
5763 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5764 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj)); | |
5765 | return SWIG_Py_Void(); | |
d55e5bfc RD |
5766 | } |
5767 | ||
554f62e9 RD |
5768 | SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5769 | return SWIG_Python_InitShadowInstance(args); | |
5770 | } | |
d55e5bfc | 5771 | |
554f62e9 RD |
5772 | SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
5773 | PyObject *resultobj = 0; | |
5774 | wxColour *arg1 = 0 ; | |
5775 | int arg2 = (int) wxSOLID ; | |
5776 | wxBrush *result = 0 ; | |
5777 | wxColour temp1 ; | |
5778 | int val2 ; | |
5779 | int ecode2 = 0 ; | |
5780 | PyObject * obj0 = 0 ; | |
5781 | PyObject * obj1 = 0 ; | |
5782 | char * kwnames[] = { | |
5783 | (char *) "colour",(char *) "style", NULL | |
5784 | }; | |
5785 | ||
5786 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail; | |
5787 | { | |
5788 | arg1 = &temp1; | |
5789 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
5790 | } | |
5791 | if (obj1) { | |
5792 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5793 | if (!SWIG_IsOK(ecode2)) { | |
5794 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'"); | |
5795 | } | |
5796 | arg2 = static_cast< int >(val2); | |
5797 | } | |
5798 | { | |
5799 | if (!wxPyCheckForApp()) SWIG_fail; | |
5800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5801 | result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2); | |
5802 | wxPyEndAllowThreads(__tstate); | |
5803 | if (PyErr_Occurred()) SWIG_fail; | |
5804 | } | |
5805 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 ); | |
5806 | return resultobj; | |
5807 | fail: | |
5808 | return NULL; | |
5809 | } | |
5810 | ||
5811 | ||
5812 | SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5813 | PyObject *resultobj = 0; | |
5814 | wxBitmap *arg1 = 0 ; | |
5815 | wxBrush *result = 0 ; | |
5816 | void *argp1 = 0 ; | |
5817 | int res1 = 0 ; | |
5818 | PyObject * obj0 = 0 ; | |
5819 | char * kwnames[] = { | |
5820 | (char *) "stippleBitmap", NULL | |
5821 | }; | |
5822 | ||
5823 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail; | |
5824 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5825 | if (!SWIG_IsOK(res1)) { | |
5826 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5827 | } | |
5828 | if (!argp1) { | |
5829 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
5830 | } | |
5831 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
5832 | { | |
5833 | if (!wxPyCheckForApp()) SWIG_fail; | |
5834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5835 | result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1); | |
5836 | wxPyEndAllowThreads(__tstate); | |
5837 | if (PyErr_Occurred()) SWIG_fail; | |
5838 | } | |
5839 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 ); | |
5840 | return resultobj; | |
5841 | fail: | |
5842 | return NULL; | |
d55e5bfc RD |
5843 | } |
5844 | ||
5845 | ||
554f62e9 RD |
5846 | SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5847 | PyObject *resultobj = 0; | |
5848 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5849 | void *argp1 = 0 ; | |
5850 | int res1 = 0 ; | |
5851 | PyObject *swig_obj[1] ; | |
5852 | ||
5853 | if (!args) SWIG_fail; | |
5854 | swig_obj[0] = args; | |
5855 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 ); | |
5856 | if (!SWIG_IsOK(res1)) { | |
5857 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5858 | } | |
5859 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5860 | { | |
5861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5862 | delete arg1; | |
d55e5bfc | 5863 | |
554f62e9 RD |
5864 | wxPyEndAllowThreads(__tstate); |
5865 | if (PyErr_Occurred()) SWIG_fail; | |
5866 | } | |
5867 | resultobj = SWIG_Py_Void(); | |
5868 | return resultobj; | |
5869 | fail: | |
5870 | return NULL; | |
5871 | } | |
5872 | ||
5873 | ||
5874 | SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5875 | PyObject *resultobj = 0; | |
5876 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5877 | wxColour *arg2 = 0 ; | |
5878 | void *argp1 = 0 ; | |
5879 | int res1 = 0 ; | |
5880 | wxColour temp2 ; | |
5881 | PyObject * obj0 = 0 ; | |
5882 | PyObject * obj1 = 0 ; | |
5883 | char * kwnames[] = { | |
5884 | (char *) "self",(char *) "col", NULL | |
5885 | }; | |
5886 | ||
5887 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
5888 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5889 | if (!SWIG_IsOK(res1)) { | |
5890 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5891 | } | |
5892 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5893 | { | |
5894 | arg2 = &temp2; | |
5895 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
5896 | } | |
5897 | { | |
5898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5899 | (arg1)->SetColour((wxColour const &)*arg2); | |
5900 | wxPyEndAllowThreads(__tstate); | |
5901 | if (PyErr_Occurred()) SWIG_fail; | |
5902 | } | |
5903 | resultobj = SWIG_Py_Void(); | |
5904 | return resultobj; | |
5905 | fail: | |
5906 | return NULL; | |
5907 | } | |
5908 | ||
5909 | ||
5910 | SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5911 | PyObject *resultobj = 0; | |
5912 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5913 | int arg2 ; | |
5914 | void *argp1 = 0 ; | |
5915 | int res1 = 0 ; | |
5916 | int val2 ; | |
5917 | int ecode2 = 0 ; | |
5918 | PyObject * obj0 = 0 ; | |
5919 | PyObject * obj1 = 0 ; | |
5920 | char * kwnames[] = { | |
5921 | (char *) "self",(char *) "style", NULL | |
5922 | }; | |
5923 | ||
5924 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
5925 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5926 | if (!SWIG_IsOK(res1)) { | |
5927 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5928 | } | |
5929 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5930 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
5931 | if (!SWIG_IsOK(ecode2)) { | |
5932 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
5933 | } | |
5934 | arg2 = static_cast< int >(val2); | |
5935 | { | |
5936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5937 | (arg1)->SetStyle(arg2); | |
5938 | wxPyEndAllowThreads(__tstate); | |
5939 | if (PyErr_Occurred()) SWIG_fail; | |
5940 | } | |
5941 | resultobj = SWIG_Py_Void(); | |
5942 | return resultobj; | |
5943 | fail: | |
5944 | return NULL; | |
5945 | } | |
5946 | ||
5947 | ||
5948 | SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
5949 | PyObject *resultobj = 0; | |
5950 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5951 | wxBitmap *arg2 = 0 ; | |
5952 | void *argp1 = 0 ; | |
5953 | int res1 = 0 ; | |
5954 | void *argp2 = 0 ; | |
5955 | int res2 = 0 ; | |
5956 | PyObject * obj0 = 0 ; | |
5957 | PyObject * obj1 = 0 ; | |
5958 | char * kwnames[] = { | |
5959 | (char *) "self",(char *) "stipple", NULL | |
5960 | }; | |
5961 | ||
5962 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail; | |
5963 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
5964 | if (!SWIG_IsOK(res1)) { | |
5965 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'"); | |
5966 | } | |
5967 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
5968 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
5969 | if (!SWIG_IsOK(res2)) { | |
5970 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5971 | } | |
5972 | if (!argp2) { | |
5973 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
5974 | } | |
5975 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
5976 | { | |
5977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5978 | (arg1)->SetStipple((wxBitmap const &)*arg2); | |
5979 | wxPyEndAllowThreads(__tstate); | |
5980 | if (PyErr_Occurred()) SWIG_fail; | |
5981 | } | |
5982 | resultobj = SWIG_Py_Void(); | |
5983 | return resultobj; | |
5984 | fail: | |
5985 | return NULL; | |
d55e5bfc RD |
5986 | } |
5987 | ||
5988 | ||
554f62e9 RD |
5989 | SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
5990 | PyObject *resultobj = 0; | |
5991 | wxBrush *arg1 = (wxBrush *) 0 ; | |
5992 | wxColour result; | |
5993 | void *argp1 = 0 ; | |
5994 | int res1 = 0 ; | |
5995 | PyObject *swig_obj[1] ; | |
5996 | ||
5997 | if (!args) SWIG_fail; | |
5998 | swig_obj[0] = args; | |
5999 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6000 | if (!SWIG_IsOK(res1)) { | |
6001 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6002 | } | |
6003 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6004 | { | |
6005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6006 | result = ((wxBrush const *)arg1)->GetColour(); | |
6007 | wxPyEndAllowThreads(__tstate); | |
6008 | if (PyErr_Occurred()) SWIG_fail; | |
6009 | } | |
6010 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
6011 | return resultobj; | |
6012 | fail: | |
6013 | return NULL; | |
d55e5bfc RD |
6014 | } |
6015 | ||
6016 | ||
554f62e9 RD |
6017 | SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6018 | PyObject *resultobj = 0; | |
6019 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6020 | int result; | |
6021 | void *argp1 = 0 ; | |
6022 | int res1 = 0 ; | |
6023 | PyObject *swig_obj[1] ; | |
6024 | ||
6025 | if (!args) SWIG_fail; | |
6026 | swig_obj[0] = args; | |
6027 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6028 | if (!SWIG_IsOK(res1)) { | |
6029 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6030 | } | |
6031 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6032 | { | |
6033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6034 | result = (int)((wxBrush const *)arg1)->GetStyle(); | |
6035 | wxPyEndAllowThreads(__tstate); | |
6036 | if (PyErr_Occurred()) SWIG_fail; | |
6037 | } | |
6038 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6039 | return resultobj; | |
6040 | fail: | |
6041 | return NULL; | |
d55e5bfc RD |
6042 | } |
6043 | ||
6044 | ||
554f62e9 RD |
6045 | SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6046 | PyObject *resultobj = 0; | |
6047 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6048 | wxBitmap *result = 0 ; | |
6049 | void *argp1 = 0 ; | |
6050 | int res1 = 0 ; | |
6051 | PyObject *swig_obj[1] ; | |
6052 | ||
6053 | if (!args) SWIG_fail; | |
6054 | swig_obj[0] = args; | |
6055 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6056 | if (!SWIG_IsOK(res1)) { | |
6057 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6058 | } | |
6059 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6060 | { | |
6061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6062 | result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple(); | |
6063 | wxPyEndAllowThreads(__tstate); | |
6064 | if (PyErr_Occurred()) SWIG_fail; | |
6065 | } | |
6066 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6067 | return resultobj; | |
6068 | fail: | |
6069 | return NULL; | |
d55e5bfc RD |
6070 | } |
6071 | ||
6072 | ||
554f62e9 RD |
6073 | SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6074 | PyObject *resultobj = 0; | |
6075 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6076 | bool result; | |
6077 | void *argp1 = 0 ; | |
6078 | int res1 = 0 ; | |
6079 | PyObject *swig_obj[1] ; | |
6080 | ||
6081 | if (!args) SWIG_fail; | |
6082 | swig_obj[0] = args; | |
6083 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6084 | if (!SWIG_IsOK(res1)) { | |
6085 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'"); | |
6086 | } | |
6087 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6088 | { | |
6089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6090 | result = (bool)((wxBrush const *)arg1)->IsHatch(); | |
6091 | wxPyEndAllowThreads(__tstate); | |
6092 | if (PyErr_Occurred()) SWIG_fail; | |
6093 | } | |
6094 | { | |
6095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6096 | } | |
6097 | return resultobj; | |
6098 | fail: | |
6099 | return NULL; | |
f78cc896 RD |
6100 | } |
6101 | ||
6102 | ||
b39fe951 | 6103 | SWIGINTERN PyObject *_wrap_Brush_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
6104 | PyObject *resultobj = 0; |
6105 | wxBrush *arg1 = (wxBrush *) 0 ; | |
6106 | bool result; | |
6107 | void *argp1 = 0 ; | |
6108 | int res1 = 0 ; | |
6109 | PyObject *swig_obj[1] ; | |
6110 | ||
6111 | if (!args) SWIG_fail; | |
6112 | swig_obj[0] = args; | |
6113 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
6114 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6115 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsOk" "', expected argument " "1"" of type '" "wxBrush *""'"); |
554f62e9 RD |
6116 | } |
6117 | arg1 = reinterpret_cast< wxBrush * >(argp1); | |
6118 | { | |
6119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 6120 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
6121 | wxPyEndAllowThreads(__tstate); |
6122 | if (PyErr_Occurred()) SWIG_fail; | |
6123 | } | |
6124 | { | |
6125 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6126 | } | |
6127 | return resultobj; | |
6128 | fail: | |
6129 | return NULL; | |
d55e5bfc RD |
6130 | } |
6131 | ||
6132 | ||
554f62e9 RD |
6133 | SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6134 | PyObject *obj; | |
6135 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
6136 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj)); | |
6137 | return SWIG_Py_Void(); | |
d55e5bfc RD |
6138 | } |
6139 | ||
554f62e9 RD |
6140 | SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6141 | return SWIG_Python_InitShadowInstance(args); | |
6142 | } | |
d55e5bfc | 6143 | |
554f62e9 RD |
6144 | SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6145 | PyObject *resultobj = 0; | |
6146 | wxString *arg1 = 0 ; | |
6147 | wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ; | |
6148 | wxBitmap *result = 0 ; | |
6149 | bool temp1 = false ; | |
6150 | int val2 ; | |
6151 | int ecode2 = 0 ; | |
6152 | PyObject * obj0 = 0 ; | |
6153 | PyObject * obj1 = 0 ; | |
6154 | char * kwnames[] = { | |
6155 | (char *) "name",(char *) "type", NULL | |
6156 | }; | |
6157 | ||
6158 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6159 | { | |
6160 | arg1 = wxString_in_helper(obj0); | |
6161 | if (arg1 == NULL) SWIG_fail; | |
6162 | temp1 = true; | |
6163 | } | |
6164 | if (obj1) { | |
6165 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6166 | if (!SWIG_IsOK(ecode2)) { | |
6167 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
6168 | } | |
6169 | arg2 = static_cast< wxBitmapType >(val2); | |
6170 | } | |
6171 | { | |
6172 | if (!wxPyCheckForApp()) SWIG_fail; | |
6173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6174 | result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2); | |
6175 | wxPyEndAllowThreads(__tstate); | |
6176 | if (PyErr_Occurred()) SWIG_fail; | |
6177 | } | |
6178 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 ); | |
6179 | { | |
6180 | if (temp1) | |
6181 | delete arg1; | |
6182 | } | |
6183 | return resultobj; | |
6184 | fail: | |
6185 | { | |
6186 | if (temp1) | |
6187 | delete arg1; | |
6188 | } | |
6189 | return NULL; | |
d55e5bfc RD |
6190 | } |
6191 | ||
6192 | ||
554f62e9 RD |
6193 | SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6194 | PyObject *resultobj = 0; | |
6195 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6196 | void *argp1 = 0 ; | |
6197 | int res1 = 0 ; | |
6198 | PyObject *swig_obj[1] ; | |
6199 | ||
6200 | if (!args) SWIG_fail; | |
6201 | swig_obj[0] = args; | |
6202 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 ); | |
6203 | if (!SWIG_IsOK(res1)) { | |
6204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6205 | } | |
6206 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6207 | { | |
554f62e9 | 6208 | delete arg1; |
c24da6d6 | 6209 | |
554f62e9 RD |
6210 | if (PyErr_Occurred()) SWIG_fail; |
6211 | } | |
6212 | resultobj = SWIG_Py_Void(); | |
6213 | return resultobj; | |
6214 | fail: | |
6215 | return NULL; | |
6216 | } | |
6217 | ||
6218 | ||
6219 | SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6220 | PyObject *resultobj = 0; | |
6221 | int arg1 ; | |
6222 | int arg2 ; | |
6223 | int arg3 = (int) -1 ; | |
6224 | wxBitmap *result = 0 ; | |
6225 | int val1 ; | |
6226 | int ecode1 = 0 ; | |
6227 | int val2 ; | |
6228 | int ecode2 = 0 ; | |
6229 | int val3 ; | |
6230 | int ecode3 = 0 ; | |
6231 | PyObject * obj0 = 0 ; | |
6232 | PyObject * obj1 = 0 ; | |
6233 | PyObject * obj2 = 0 ; | |
6234 | char * kwnames[] = { | |
6235 | (char *) "width",(char *) "height",(char *) "depth", NULL | |
6236 | }; | |
6237 | ||
6238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6239 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
6240 | if (!SWIG_IsOK(ecode1)) { | |
6241 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'"); | |
6242 | } | |
6243 | arg1 = static_cast< int >(val1); | |
6244 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6245 | if (!SWIG_IsOK(ecode2)) { | |
6246 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'"); | |
6247 | } | |
6248 | arg2 = static_cast< int >(val2); | |
6249 | if (obj2) { | |
6250 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6251 | if (!SWIG_IsOK(ecode3)) { | |
6252 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'"); | |
6253 | } | |
6254 | arg3 = static_cast< int >(val3); | |
6255 | } | |
6256 | { | |
6257 | if (!wxPyCheckForApp()) SWIG_fail; | |
6258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6259 | result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3); | |
6260 | wxPyEndAllowThreads(__tstate); | |
6261 | if (PyErr_Occurred()) SWIG_fail; | |
6262 | } | |
6263 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6264 | return resultobj; | |
6265 | fail: | |
6266 | return NULL; | |
6267 | } | |
6268 | ||
6269 | ||
6270 | SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6271 | PyObject *resultobj = 0; | |
6272 | wxIcon *arg1 = 0 ; | |
6273 | wxBitmap *result = 0 ; | |
6274 | void *argp1 = 0 ; | |
6275 | int res1 = 0 ; | |
6276 | PyObject * obj0 = 0 ; | |
6277 | char * kwnames[] = { | |
6278 | (char *) "icon", NULL | |
6279 | }; | |
6280 | ||
6281 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail; | |
6282 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
6283 | if (!SWIG_IsOK(res1)) { | |
6284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6285 | } | |
6286 | if (!argp1) { | |
6287 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
6288 | } | |
6289 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
6290 | { | |
6291 | if (!wxPyCheckForApp()) SWIG_fail; | |
6292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6293 | result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1); | |
6294 | wxPyEndAllowThreads(__tstate); | |
6295 | if (PyErr_Occurred()) SWIG_fail; | |
6296 | } | |
6297 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6298 | return resultobj; | |
6299 | fail: | |
6300 | return NULL; | |
6301 | } | |
6302 | ||
6303 | ||
6304 | SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6305 | PyObject *resultobj = 0; | |
6306 | wxImage *arg1 = 0 ; | |
6307 | int arg2 = (int) -1 ; | |
6308 | wxBitmap *result = 0 ; | |
6309 | void *argp1 = 0 ; | |
6310 | int res1 = 0 ; | |
6311 | int val2 ; | |
6312 | int ecode2 = 0 ; | |
6313 | PyObject * obj0 = 0 ; | |
6314 | PyObject * obj1 = 0 ; | |
6315 | char * kwnames[] = { | |
6316 | (char *) "image",(char *) "depth", NULL | |
6317 | }; | |
6318 | ||
6319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail; | |
6320 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
6321 | if (!SWIG_IsOK(res1)) { | |
6322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6323 | } | |
6324 | if (!argp1) { | |
6325 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
6326 | } | |
6327 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
6328 | if (obj1) { | |
6329 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6330 | if (!SWIG_IsOK(ecode2)) { | |
6331 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'"); | |
6332 | } | |
6333 | arg2 = static_cast< int >(val2); | |
6334 | } | |
6335 | { | |
6336 | if (!wxPyCheckForApp()) SWIG_fail; | |
6337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6338 | result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2); | |
6339 | wxPyEndAllowThreads(__tstate); | |
6340 | if (PyErr_Occurred()) SWIG_fail; | |
6341 | } | |
6342 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6343 | return resultobj; | |
6344 | fail: | |
6345 | return NULL; | |
c24da6d6 RD |
6346 | } |
6347 | ||
6348 | ||
554f62e9 RD |
6349 | SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
6350 | PyObject *resultobj = 0; | |
6351 | PyObject *arg1 = (PyObject *) 0 ; | |
6352 | wxBitmap *result = 0 ; | |
6353 | PyObject * obj0 = 0 ; | |
6354 | char * kwnames[] = { | |
6355 | (char *) "listOfStrings", NULL | |
6356 | }; | |
6357 | ||
6358 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail; | |
6359 | arg1 = obj0; | |
6360 | { | |
6361 | if (!wxPyCheckForApp()) SWIG_fail; | |
6362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6363 | result = (wxBitmap *)new_wxBitmap(arg1); | |
6364 | wxPyEndAllowThreads(__tstate); | |
6365 | if (PyErr_Occurred()) SWIG_fail; | |
6366 | } | |
6367 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6368 | return resultobj; | |
6369 | fail: | |
6370 | return NULL; | |
6371 | } | |
6372 | ||
6373 | ||
6374 | SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6375 | PyObject *resultobj = 0; | |
6376 | PyObject *arg1 = (PyObject *) 0 ; | |
6377 | int arg2 ; | |
6378 | int arg3 ; | |
6379 | int arg4 = (int) 1 ; | |
6380 | wxBitmap *result = 0 ; | |
6381 | int val2 ; | |
6382 | int ecode2 = 0 ; | |
6383 | int val3 ; | |
6384 | int ecode3 = 0 ; | |
6385 | int val4 ; | |
6386 | int ecode4 = 0 ; | |
6387 | PyObject * obj0 = 0 ; | |
6388 | PyObject * obj1 = 0 ; | |
6389 | PyObject * obj2 = 0 ; | |
6390 | PyObject * obj3 = 0 ; | |
6391 | char * kwnames[] = { | |
6392 | (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL | |
6393 | }; | |
6394 | ||
6395 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6396 | arg1 = obj0; | |
6397 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
6398 | if (!SWIG_IsOK(ecode2)) { | |
6399 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'"); | |
6400 | } | |
6401 | arg2 = static_cast< int >(val2); | |
6402 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6403 | if (!SWIG_IsOK(ecode3)) { | |
6404 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'"); | |
6405 | } | |
6406 | arg3 = static_cast< int >(val3); | |
6407 | if (obj3) { | |
6408 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
6409 | if (!SWIG_IsOK(ecode4)) { | |
6410 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'"); | |
6411 | } | |
6412 | arg4 = static_cast< int >(val4); | |
6413 | } | |
6414 | { | |
6415 | if (!wxPyCheckForApp()) SWIG_fail; | |
6416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6417 | result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4); | |
6418 | wxPyEndAllowThreads(__tstate); | |
6419 | if (PyErr_Occurred()) SWIG_fail; | |
6420 | } | |
6421 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6422 | return resultobj; | |
6423 | fail: | |
6424 | return NULL; | |
d55e5bfc RD |
6425 | } |
6426 | ||
6427 | ||
554f62e9 RD |
6428 | SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6429 | PyObject *resultobj = 0; | |
6430 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6431 | long result; | |
6432 | void *argp1 = 0 ; | |
6433 | int res1 = 0 ; | |
6434 | PyObject *swig_obj[1] ; | |
6435 | ||
6436 | if (!args) SWIG_fail; | |
6437 | swig_obj[0] = args; | |
6438 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6439 | if (!SWIG_IsOK(res1)) { | |
6440 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6441 | } | |
6442 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6443 | { | |
554f62e9 | 6444 | result = (long)(arg1)->GetHandle(); |
554f62e9 RD |
6445 | if (PyErr_Occurred()) SWIG_fail; |
6446 | } | |
6447 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
6448 | return resultobj; | |
6449 | fail: | |
6450 | return NULL; | |
6451 | } | |
6452 | ||
6453 | ||
6454 | SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6455 | PyObject *resultobj = 0; | |
6456 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6457 | long arg2 ; | |
6458 | void *argp1 = 0 ; | |
6459 | int res1 = 0 ; | |
6460 | long val2 ; | |
6461 | int ecode2 = 0 ; | |
6462 | PyObject * obj0 = 0 ; | |
6463 | PyObject * obj1 = 0 ; | |
6464 | char * kwnames[] = { | |
6465 | (char *) "self",(char *) "handle", NULL | |
6466 | }; | |
6467 | ||
6468 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
6469 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6470 | if (!SWIG_IsOK(res1)) { | |
6471 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6472 | } | |
6473 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6474 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
6475 | if (!SWIG_IsOK(ecode2)) { | |
6476 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
6477 | } | |
6478 | arg2 = static_cast< long >(val2); | |
6479 | { | |
554f62e9 | 6480 | wxBitmap_SetHandle(arg1,arg2); |
554f62e9 RD |
6481 | if (PyErr_Occurred()) SWIG_fail; |
6482 | } | |
6483 | resultobj = SWIG_Py_Void(); | |
6484 | return resultobj; | |
6485 | fail: | |
6486 | return NULL; | |
d55e5bfc RD |
6487 | } |
6488 | ||
6489 | ||
b39fe951 | 6490 | SWIGINTERN PyObject *_wrap_Bitmap_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
6491 | PyObject *resultobj = 0; |
6492 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6493 | bool result; | |
6494 | void *argp1 = 0 ; | |
6495 | int res1 = 0 ; | |
6496 | PyObject *swig_obj[1] ; | |
6497 | ||
6498 | if (!args) SWIG_fail; | |
6499 | swig_obj[0] = args; | |
6500 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6501 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 6502 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_IsOk" "', expected argument " "1"" of type '" "wxBitmap *""'"); |
554f62e9 RD |
6503 | } |
6504 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6505 | { | |
b39fe951 | 6506 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
6507 | if (PyErr_Occurred()) SWIG_fail; |
6508 | } | |
6509 | { | |
6510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6511 | } | |
6512 | return resultobj; | |
6513 | fail: | |
6514 | return NULL; | |
d55e5bfc RD |
6515 | } |
6516 | ||
6517 | ||
554f62e9 RD |
6518 | SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6519 | PyObject *resultobj = 0; | |
6520 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6521 | int result; | |
6522 | void *argp1 = 0 ; | |
6523 | int res1 = 0 ; | |
6524 | PyObject *swig_obj[1] ; | |
6525 | ||
6526 | if (!args) SWIG_fail; | |
6527 | swig_obj[0] = args; | |
6528 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6529 | if (!SWIG_IsOK(res1)) { | |
6530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6531 | } | |
6532 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6533 | { | |
554f62e9 | 6534 | result = (int)(arg1)->GetWidth(); |
554f62e9 RD |
6535 | if (PyErr_Occurred()) SWIG_fail; |
6536 | } | |
6537 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6538 | return resultobj; | |
6539 | fail: | |
6540 | return NULL; | |
d55e5bfc RD |
6541 | } |
6542 | ||
6543 | ||
554f62e9 RD |
6544 | SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6545 | PyObject *resultobj = 0; | |
6546 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6547 | int result; | |
6548 | void *argp1 = 0 ; | |
6549 | int res1 = 0 ; | |
6550 | PyObject *swig_obj[1] ; | |
6551 | ||
6552 | if (!args) SWIG_fail; | |
6553 | swig_obj[0] = args; | |
6554 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6555 | if (!SWIG_IsOK(res1)) { | |
6556 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6557 | } | |
6558 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6559 | { | |
554f62e9 | 6560 | result = (int)(arg1)->GetHeight(); |
554f62e9 RD |
6561 | if (PyErr_Occurred()) SWIG_fail; |
6562 | } | |
6563 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6564 | return resultobj; | |
6565 | fail: | |
6566 | return NULL; | |
c24da6d6 RD |
6567 | } |
6568 | ||
6569 | ||
554f62e9 RD |
6570 | SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6571 | PyObject *resultobj = 0; | |
6572 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6573 | int result; | |
6574 | void *argp1 = 0 ; | |
6575 | int res1 = 0 ; | |
6576 | PyObject *swig_obj[1] ; | |
6577 | ||
6578 | if (!args) SWIG_fail; | |
6579 | swig_obj[0] = args; | |
6580 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6581 | if (!SWIG_IsOK(res1)) { | |
6582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6583 | } | |
6584 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6585 | { | |
554f62e9 | 6586 | result = (int)(arg1)->GetDepth(); |
554f62e9 RD |
6587 | if (PyErr_Occurred()) SWIG_fail; |
6588 | } | |
6589 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
6590 | return resultobj; | |
6591 | fail: | |
6592 | return NULL; | |
d55e5bfc RD |
6593 | } |
6594 | ||
6595 | ||
554f62e9 RD |
6596 | SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6597 | PyObject *resultobj = 0; | |
6598 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6599 | wxSize result; | |
6600 | void *argp1 = 0 ; | |
6601 | int res1 = 0 ; | |
6602 | PyObject *swig_obj[1] ; | |
6603 | ||
6604 | if (!args) SWIG_fail; | |
6605 | swig_obj[0] = args; | |
6606 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6607 | if (!SWIG_IsOK(res1)) { | |
6608 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6609 | } | |
6610 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6611 | { | |
554f62e9 | 6612 | result = wxBitmap_GetSize(arg1); |
554f62e9 RD |
6613 | if (PyErr_Occurred()) SWIG_fail; |
6614 | } | |
6615 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
6616 | return resultobj; | |
6617 | fail: | |
6618 | return NULL; | |
d55e5bfc RD |
6619 | } |
6620 | ||
6621 | ||
554f62e9 RD |
6622 | SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6623 | PyObject *resultobj = 0; | |
6624 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6625 | SwigValueWrapper<wxImage > result; | |
6626 | void *argp1 = 0 ; | |
6627 | int res1 = 0 ; | |
6628 | PyObject *swig_obj[1] ; | |
6629 | ||
6630 | if (!args) SWIG_fail; | |
6631 | swig_obj[0] = args; | |
6632 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6633 | if (!SWIG_IsOK(res1)) { | |
6634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6635 | } | |
6636 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6637 | { | |
554f62e9 | 6638 | result = ((wxBitmap const *)arg1)->ConvertToImage(); |
554f62e9 RD |
6639 | if (PyErr_Occurred()) SWIG_fail; |
6640 | } | |
6641 | resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 ); | |
6642 | return resultobj; | |
6643 | fail: | |
6644 | return NULL; | |
d55e5bfc RD |
6645 | } |
6646 | ||
6647 | ||
554f62e9 RD |
6648 | SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6649 | PyObject *resultobj = 0; | |
6650 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6651 | wxMask *result = 0 ; | |
6652 | void *argp1 = 0 ; | |
6653 | int res1 = 0 ; | |
6654 | PyObject *swig_obj[1] ; | |
6655 | ||
6656 | if (!args) SWIG_fail; | |
6657 | swig_obj[0] = args; | |
6658 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6659 | if (!SWIG_IsOK(res1)) { | |
6660 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6661 | } | |
6662 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6663 | { | |
554f62e9 | 6664 | result = (wxMask *)((wxBitmap const *)arg1)->GetMask(); |
554f62e9 RD |
6665 | if (PyErr_Occurred()) SWIG_fail; |
6666 | } | |
6667 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 ); | |
6668 | return resultobj; | |
6669 | fail: | |
6670 | return NULL; | |
6671 | } | |
6672 | ||
6673 | ||
6674 | SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6675 | PyObject *resultobj = 0; | |
6676 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6677 | wxMask *arg2 = (wxMask *) 0 ; | |
6678 | void *argp1 = 0 ; | |
6679 | int res1 = 0 ; | |
6680 | int res2 = 0 ; | |
6681 | PyObject * obj0 = 0 ; | |
6682 | PyObject * obj1 = 0 ; | |
6683 | char * kwnames[] = { | |
6684 | (char *) "self",(char *) "mask", NULL | |
6685 | }; | |
6686 | ||
6687 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail; | |
6688 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6689 | if (!SWIG_IsOK(res1)) { | |
6690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6691 | } | |
6692 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6693 | res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
6694 | if (!SWIG_IsOK(res2)) { | |
6695 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'"); | |
6696 | } | |
6697 | { | |
554f62e9 | 6698 | (arg1)->SetMask(arg2); |
554f62e9 RD |
6699 | if (PyErr_Occurred()) SWIG_fail; |
6700 | } | |
6701 | resultobj = SWIG_Py_Void(); | |
6702 | return resultobj; | |
6703 | fail: | |
6704 | return NULL; | |
6705 | } | |
6706 | ||
6707 | ||
6708 | SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6709 | PyObject *resultobj = 0; | |
6710 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6711 | wxColour *arg2 = 0 ; | |
6712 | void *argp1 = 0 ; | |
6713 | int res1 = 0 ; | |
6714 | wxColour temp2 ; | |
6715 | PyObject * obj0 = 0 ; | |
6716 | PyObject * obj1 = 0 ; | |
6717 | char * kwnames[] = { | |
6718 | (char *) "self",(char *) "colour", NULL | |
6719 | }; | |
6720 | ||
6721 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
6722 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6723 | if (!SWIG_IsOK(res1)) { | |
6724 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6725 | } | |
6726 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6727 | { | |
6728 | arg2 = &temp2; | |
6729 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6730 | } | |
6731 | { | |
554f62e9 | 6732 | wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2); |
554f62e9 RD |
6733 | if (PyErr_Occurred()) SWIG_fail; |
6734 | } | |
6735 | resultobj = SWIG_Py_Void(); | |
6736 | return resultobj; | |
6737 | fail: | |
6738 | return NULL; | |
6739 | } | |
6740 | ||
6741 | ||
6742 | SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6743 | PyObject *resultobj = 0; | |
6744 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6745 | wxRect *arg2 = 0 ; | |
6746 | SwigValueWrapper<wxBitmap > result; | |
6747 | void *argp1 = 0 ; | |
6748 | int res1 = 0 ; | |
6749 | wxRect temp2 ; | |
6750 | PyObject * obj0 = 0 ; | |
6751 | PyObject * obj1 = 0 ; | |
6752 | char * kwnames[] = { | |
6753 | (char *) "self",(char *) "rect", NULL | |
6754 | }; | |
6755 | ||
6756 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
6757 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6758 | if (!SWIG_IsOK(res1)) { | |
6759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6760 | } | |
6761 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6762 | { | |
6763 | arg2 = &temp2; | |
6764 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
6765 | } | |
6766 | { | |
554f62e9 | 6767 | result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2); |
554f62e9 RD |
6768 | if (PyErr_Occurred()) SWIG_fail; |
6769 | } | |
6770 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
6771 | return resultobj; | |
6772 | fail: | |
6773 | return NULL; | |
6774 | } | |
6775 | ||
6776 | ||
6777 | SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6778 | PyObject *resultobj = 0; | |
6779 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6780 | wxString *arg2 = 0 ; | |
6781 | wxBitmapType arg3 ; | |
6782 | wxPalette *arg4 = (wxPalette *) NULL ; | |
6783 | bool result; | |
6784 | void *argp1 = 0 ; | |
6785 | int res1 = 0 ; | |
6786 | bool temp2 = false ; | |
6787 | int val3 ; | |
6788 | int ecode3 = 0 ; | |
6789 | void *argp4 = 0 ; | |
6790 | int res4 = 0 ; | |
6791 | PyObject * obj0 = 0 ; | |
6792 | PyObject * obj1 = 0 ; | |
6793 | PyObject * obj2 = 0 ; | |
6794 | PyObject * obj3 = 0 ; | |
6795 | char * kwnames[] = { | |
6796 | (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL | |
6797 | }; | |
6798 | ||
6799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
6800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6801 | if (!SWIG_IsOK(res1)) { | |
6802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6803 | } | |
6804 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6805 | { | |
6806 | arg2 = wxString_in_helper(obj1); | |
6807 | if (arg2 == NULL) SWIG_fail; | |
6808 | temp2 = true; | |
6809 | } | |
6810 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6811 | if (!SWIG_IsOK(ecode3)) { | |
6812 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6813 | } | |
6814 | arg3 = static_cast< wxBitmapType >(val3); | |
6815 | if (obj3) { | |
6816 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6817 | if (!SWIG_IsOK(res4)) { | |
6818 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'"); | |
d04418a7 | 6819 | } |
554f62e9 RD |
6820 | arg4 = reinterpret_cast< wxPalette * >(argp4); |
6821 | } | |
6822 | { | |
554f62e9 | 6823 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4); |
554f62e9 RD |
6824 | if (PyErr_Occurred()) SWIG_fail; |
6825 | } | |
6826 | { | |
6827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6828 | } | |
6829 | { | |
6830 | if (temp2) | |
6831 | delete arg2; | |
6832 | } | |
6833 | return resultobj; | |
6834 | fail: | |
6835 | { | |
6836 | if (temp2) | |
6837 | delete arg2; | |
6838 | } | |
6839 | return NULL; | |
6840 | } | |
6841 | ||
6842 | ||
6843 | SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6844 | PyObject *resultobj = 0; | |
6845 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6846 | wxString *arg2 = 0 ; | |
6847 | wxBitmapType arg3 ; | |
6848 | bool result; | |
6849 | void *argp1 = 0 ; | |
6850 | int res1 = 0 ; | |
6851 | bool temp2 = false ; | |
6852 | int val3 ; | |
6853 | int ecode3 = 0 ; | |
6854 | PyObject * obj0 = 0 ; | |
6855 | PyObject * obj1 = 0 ; | |
6856 | PyObject * obj2 = 0 ; | |
6857 | char * kwnames[] = { | |
6858 | (char *) "self",(char *) "name",(char *) "type", NULL | |
6859 | }; | |
6860 | ||
6861 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
6862 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6863 | if (!SWIG_IsOK(res1)) { | |
6864 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6865 | } | |
6866 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6867 | { | |
6868 | arg2 = wxString_in_helper(obj1); | |
6869 | if (arg2 == NULL) SWIG_fail; | |
6870 | temp2 = true; | |
6871 | } | |
6872 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
6873 | if (!SWIG_IsOK(ecode3)) { | |
6874 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
6875 | } | |
6876 | arg3 = static_cast< wxBitmapType >(val3); | |
6877 | { | |
554f62e9 | 6878 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); |
554f62e9 RD |
6879 | if (PyErr_Occurred()) SWIG_fail; |
6880 | } | |
6881 | { | |
6882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6883 | } | |
6884 | { | |
6885 | if (temp2) | |
6886 | delete arg2; | |
6887 | } | |
6888 | return resultobj; | |
6889 | fail: | |
6890 | { | |
6891 | if (temp2) | |
6892 | delete arg2; | |
6893 | } | |
6894 | return NULL; | |
d04418a7 RD |
6895 | } |
6896 | ||
6897 | ||
554f62e9 RD |
6898 | SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
6899 | PyObject *resultobj = 0; | |
6900 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6901 | wxPalette *result = 0 ; | |
6902 | void *argp1 = 0 ; | |
6903 | int res1 = 0 ; | |
6904 | PyObject *swig_obj[1] ; | |
6905 | ||
6906 | if (!args) SWIG_fail; | |
6907 | swig_obj[0] = args; | |
6908 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6909 | if (!SWIG_IsOK(res1)) { | |
6910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'"); | |
6911 | } | |
6912 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6913 | { | |
554f62e9 | 6914 | result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette(); |
554f62e9 RD |
6915 | if (PyErr_Occurred()) SWIG_fail; |
6916 | } | |
6917 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 ); | |
6918 | return resultobj; | |
6919 | fail: | |
6920 | return NULL; | |
6921 | } | |
6922 | ||
6923 | ||
6924 | SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6925 | PyObject *resultobj = 0; | |
6926 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6927 | wxPalette *arg2 = 0 ; | |
6928 | void *argp1 = 0 ; | |
6929 | int res1 = 0 ; | |
6930 | void *argp2 = 0 ; | |
6931 | int res2 = 0 ; | |
6932 | PyObject * obj0 = 0 ; | |
6933 | PyObject * obj1 = 0 ; | |
6934 | char * kwnames[] = { | |
6935 | (char *) "self",(char *) "palette", NULL | |
6936 | }; | |
6937 | ||
6938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
6939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6940 | if (!SWIG_IsOK(res1)) { | |
6941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6942 | } | |
6943 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6944 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
6945 | if (!SWIG_IsOK(res2)) { | |
6946 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
6947 | } | |
6948 | if (!argp2) { | |
6949 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
6950 | } | |
6951 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
6952 | { | |
554f62e9 | 6953 | (arg1)->SetPalette((wxPalette const &)*arg2); |
554f62e9 RD |
6954 | if (PyErr_Occurred()) SWIG_fail; |
6955 | } | |
6956 | resultobj = SWIG_Py_Void(); | |
6957 | return resultobj; | |
6958 | fail: | |
6959 | return NULL; | |
6960 | } | |
6961 | ||
6962 | ||
6963 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
6964 | PyObject *resultobj = 0; | |
6965 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
6966 | wxIcon *arg2 = 0 ; | |
6967 | bool result; | |
6968 | void *argp1 = 0 ; | |
6969 | int res1 = 0 ; | |
6970 | void *argp2 = 0 ; | |
6971 | int res2 = 0 ; | |
6972 | PyObject * obj0 = 0 ; | |
6973 | PyObject * obj1 = 0 ; | |
6974 | char * kwnames[] = { | |
6975 | (char *) "self",(char *) "icon", NULL | |
6976 | }; | |
6977 | ||
6978 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
6979 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
6980 | if (!SWIG_IsOK(res1)) { | |
6981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
6982 | } | |
6983 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
6984 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
6985 | if (!SWIG_IsOK(res2)) { | |
6986 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6987 | } | |
6988 | if (!argp2) { | |
6989 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
6990 | } | |
6991 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
6992 | { | |
554f62e9 | 6993 | result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2); |
554f62e9 RD |
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 *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7006 | PyObject *resultobj = 0; | |
7007 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7008 | int arg2 ; | |
7009 | void *argp1 = 0 ; | |
7010 | int res1 = 0 ; | |
7011 | int val2 ; | |
7012 | int ecode2 = 0 ; | |
7013 | PyObject * obj0 = 0 ; | |
7014 | PyObject * obj1 = 0 ; | |
7015 | char * kwnames[] = { | |
7016 | (char *) "self",(char *) "height", NULL | |
7017 | }; | |
7018 | ||
7019 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
7020 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7021 | if (!SWIG_IsOK(res1)) { | |
7022 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7023 | } | |
7024 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7025 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7026 | if (!SWIG_IsOK(ecode2)) { | |
7027 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
7028 | } | |
7029 | arg2 = static_cast< int >(val2); | |
7030 | { | |
554f62e9 | 7031 | (arg1)->SetHeight(arg2); |
554f62e9 RD |
7032 | if (PyErr_Occurred()) SWIG_fail; |
7033 | } | |
7034 | resultobj = SWIG_Py_Void(); | |
7035 | return resultobj; | |
7036 | fail: | |
7037 | return NULL; | |
7038 | } | |
7039 | ||
7040 | ||
7041 | SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7042 | PyObject *resultobj = 0; | |
7043 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7044 | int arg2 ; | |
7045 | void *argp1 = 0 ; | |
7046 | int res1 = 0 ; | |
7047 | int val2 ; | |
7048 | int ecode2 = 0 ; | |
7049 | PyObject * obj0 = 0 ; | |
7050 | PyObject * obj1 = 0 ; | |
7051 | char * kwnames[] = { | |
7052 | (char *) "self",(char *) "width", NULL | |
7053 | }; | |
7054 | ||
7055 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7056 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7057 | if (!SWIG_IsOK(res1)) { | |
7058 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7059 | } | |
7060 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7061 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7062 | if (!SWIG_IsOK(ecode2)) { | |
7063 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
7064 | } | |
7065 | arg2 = static_cast< int >(val2); | |
7066 | { | |
554f62e9 | 7067 | (arg1)->SetWidth(arg2); |
554f62e9 RD |
7068 | if (PyErr_Occurred()) SWIG_fail; |
7069 | } | |
7070 | resultobj = SWIG_Py_Void(); | |
7071 | return resultobj; | |
7072 | fail: | |
7073 | return NULL; | |
7074 | } | |
7075 | ||
7076 | ||
7077 | SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7078 | PyObject *resultobj = 0; | |
7079 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7080 | int arg2 ; | |
7081 | void *argp1 = 0 ; | |
7082 | int res1 = 0 ; | |
7083 | int val2 ; | |
7084 | int ecode2 = 0 ; | |
7085 | PyObject * obj0 = 0 ; | |
7086 | PyObject * obj1 = 0 ; | |
7087 | char * kwnames[] = { | |
7088 | (char *) "self",(char *) "depth", NULL | |
7089 | }; | |
7090 | ||
7091 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
7092 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7093 | if (!SWIG_IsOK(res1)) { | |
7094 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7095 | } | |
7096 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7097 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7098 | if (!SWIG_IsOK(ecode2)) { | |
7099 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
7100 | } | |
7101 | arg2 = static_cast< int >(val2); | |
7102 | { | |
554f62e9 | 7103 | (arg1)->SetDepth(arg2); |
554f62e9 RD |
7104 | if (PyErr_Occurred()) SWIG_fail; |
7105 | } | |
7106 | resultobj = SWIG_Py_Void(); | |
7107 | return resultobj; | |
7108 | fail: | |
7109 | return NULL; | |
7110 | } | |
7111 | ||
7112 | ||
7113 | SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7114 | PyObject *resultobj = 0; | |
7115 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7116 | wxSize *arg2 = 0 ; | |
7117 | void *argp1 = 0 ; | |
7118 | int res1 = 0 ; | |
7119 | wxSize temp2 ; | |
7120 | PyObject * obj0 = 0 ; | |
7121 | PyObject * obj1 = 0 ; | |
7122 | char * kwnames[] = { | |
7123 | (char *) "self",(char *) "size", NULL | |
7124 | }; | |
7125 | ||
7126 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
7127 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7128 | if (!SWIG_IsOK(res1)) { | |
7129 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7130 | } | |
7131 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7132 | { | |
7133 | arg2 = &temp2; | |
7134 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
7135 | } | |
7136 | { | |
554f62e9 | 7137 | wxBitmap_SetSize(arg1,(wxSize const &)*arg2); |
554f62e9 RD |
7138 | if (PyErr_Occurred()) SWIG_fail; |
7139 | } | |
7140 | resultobj = SWIG_Py_Void(); | |
7141 | return resultobj; | |
7142 | fail: | |
7143 | return NULL; | |
7144 | } | |
7145 | ||
7146 | ||
7147 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7148 | PyObject *resultobj = 0; | |
7149 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7150 | wxCursor *arg2 = 0 ; | |
7151 | bool result; | |
7152 | void *argp1 = 0 ; | |
7153 | int res1 = 0 ; | |
7154 | void *argp2 = 0 ; | |
7155 | int res2 = 0 ; | |
7156 | PyObject * obj0 = 0 ; | |
7157 | PyObject * obj1 = 0 ; | |
7158 | char * kwnames[] = { | |
7159 | (char *) "self",(char *) "cursor", NULL | |
7160 | }; | |
7161 | ||
7162 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail; | |
7163 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7164 | if (!SWIG_IsOK(res1)) { | |
7165 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7166 | } | |
7167 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7168 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0); | |
7169 | if (!SWIG_IsOK(res2)) { | |
7170 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
7171 | } | |
7172 | if (!argp2) { | |
7173 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'"); | |
7174 | } | |
7175 | arg2 = reinterpret_cast< wxCursor * >(argp2); | |
7176 | { | |
554f62e9 | 7177 | result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2); |
554f62e9 RD |
7178 | if (PyErr_Occurred()) SWIG_fail; |
7179 | } | |
7180 | { | |
7181 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7182 | } | |
7183 | return resultobj; | |
7184 | fail: | |
7185 | return NULL; | |
7186 | } | |
7187 | ||
7188 | ||
8f514ab4 RD |
7189 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7190 | PyObject *resultobj = 0; | |
7191 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7192 | buffer arg2 ; | |
7193 | int arg3 ; | |
7194 | void *argp1 = 0 ; | |
7195 | int res1 = 0 ; | |
7196 | Py_ssize_t temp2 ; | |
7197 | PyObject * obj0 = 0 ; | |
7198 | PyObject * obj1 = 0 ; | |
7199 | char * kwnames[] = { | |
7200 | (char *) "self",(char *) "data", NULL | |
7201 | }; | |
7202 | ||
7203 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBuffer",kwnames,&obj0,&obj1)) SWIG_fail; | |
7204 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7205 | if (!SWIG_IsOK(res1)) { | |
7206 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBuffer" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7207 | } | |
7208 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7209 | { | |
7210 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7211 | arg3 = (int)temp2; | |
7212 | } | |
7213 | { | |
7214 | wxBitmap_CopyFromBuffer(arg1,arg2,arg3); | |
7215 | if (PyErr_Occurred()) SWIG_fail; | |
7216 | } | |
7217 | resultobj = SWIG_Py_Void(); | |
7218 | return resultobj; | |
7219 | fail: | |
7220 | return NULL; | |
7221 | } | |
7222 | ||
7223 | ||
7224 | SWIGINTERN PyObject *_wrap_Bitmap_CopyFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7225 | PyObject *resultobj = 0; | |
7226 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7227 | buffer arg2 ; | |
7228 | int arg3 ; | |
7229 | void *argp1 = 0 ; | |
7230 | int res1 = 0 ; | |
7231 | Py_ssize_t temp2 ; | |
7232 | PyObject * obj0 = 0 ; | |
7233 | PyObject * obj1 = 0 ; | |
7234 | char * kwnames[] = { | |
7235 | (char *) "self",(char *) "data", NULL | |
7236 | }; | |
7237 | ||
7238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromBufferRGBA",kwnames,&obj0,&obj1)) SWIG_fail; | |
7239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7240 | if (!SWIG_IsOK(res1)) { | |
7241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromBufferRGBA" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7242 | } | |
7243 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7244 | { | |
7245 | if (PyObject_AsReadBuffer(obj1, (const void**)(&arg2), &temp2) == -1) SWIG_fail; | |
7246 | arg3 = (int)temp2; | |
7247 | } | |
7248 | { | |
7249 | wxBitmap_CopyFromBufferRGBA(arg1,arg2,arg3); | |
7250 | if (PyErr_Occurred()) SWIG_fail; | |
7251 | } | |
7252 | resultobj = SWIG_Py_Void(); | |
7253 | return resultobj; | |
7254 | fail: | |
7255 | return NULL; | |
7256 | } | |
7257 | ||
7258 | ||
554f62e9 RD |
7259 | SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
7260 | PyObject *resultobj = 0; | |
7261 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7262 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7263 | bool result; | |
7264 | void *argp1 = 0 ; | |
7265 | int res1 = 0 ; | |
7266 | void *argp2 = 0 ; | |
7267 | int res2 = 0 ; | |
7268 | PyObject * obj0 = 0 ; | |
7269 | PyObject * obj1 = 0 ; | |
7270 | char * kwnames[] = { | |
7271 | (char *) "self",(char *) "other", NULL | |
7272 | }; | |
7273 | ||
7274 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7275 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7276 | if (!SWIG_IsOK(res1)) { | |
7277 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7278 | } | |
7279 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7280 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7281 | if (!SWIG_IsOK(res2)) { | |
7282 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7283 | } | |
7284 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7285 | { | |
554f62e9 | 7286 | result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2); |
554f62e9 RD |
7287 | if (PyErr_Occurred()) SWIG_fail; |
7288 | } | |
7289 | { | |
fc46b7f3 RD |
7290 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
7291 | } | |
7292 | return resultobj; | |
7293 | fail: | |
7294 | return NULL; | |
7295 | } | |
7296 | ||
7297 | ||
7298 | SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7299 | PyObject *resultobj = 0; | |
7300 | wxBitmap *arg1 = (wxBitmap *) 0 ; | |
7301 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
7302 | bool result; | |
7303 | void *argp1 = 0 ; | |
7304 | int res1 = 0 ; | |
7305 | void *argp2 = 0 ; | |
7306 | int res2 = 0 ; | |
7307 | PyObject * obj0 = 0 ; | |
7308 | PyObject * obj1 = 0 ; | |
7309 | char * kwnames[] = { | |
7310 | (char *) "self",(char *) "other", NULL | |
7311 | }; | |
7312 | ||
7313 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
7314 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7315 | if (!SWIG_IsOK(res1)) { | |
7316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'"); | |
7317 | } | |
7318 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7319 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
7320 | if (!SWIG_IsOK(res2)) { | |
7321 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'"); | |
7322 | } | |
7323 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
7324 | { | |
7325 | result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2); | |
7326 | if (PyErr_Occurred()) SWIG_fail; | |
7327 | } | |
7328 | { | |
7329 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7330 | } | |
7331 | return resultobj; | |
7332 | fail: | |
7333 | return NULL; | |
7334 | } | |
7335 | ||
7336 | ||
7337 | SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7338 | PyObject *obj; | |
7339 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7340 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj)); | |
7341 | return SWIG_Py_Void(); | |
7342 | } | |
7343 | ||
7344 | SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7345 | return SWIG_Python_InitShadowInstance(args); | |
7346 | } | |
7347 | ||
7348 | SWIGINTERN PyObject *_wrap__BitmapFromBufferAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7349 | PyObject *resultobj = 0; | |
7350 | int arg1 ; | |
7351 | int arg2 ; | |
7352 | buffer arg3 ; | |
7353 | int arg4 ; | |
7354 | buffer arg5 ; | |
7355 | int arg6 ; | |
7356 | wxBitmap *result = 0 ; | |
7357 | int val1 ; | |
7358 | int ecode1 = 0 ; | |
7359 | int val2 ; | |
7360 | int ecode2 = 0 ; | |
e46e7e0d RD |
7361 | Py_ssize_t temp3 ; |
7362 | Py_ssize_t temp5 ; | |
fc46b7f3 RD |
7363 | PyObject * obj0 = 0 ; |
7364 | PyObject * obj1 = 0 ; | |
7365 | PyObject * obj2 = 0 ; | |
7366 | PyObject * obj3 = 0 ; | |
7367 | char * kwnames[] = { | |
7368 | (char *) "width",(char *) "height",(char *) "data",(char *) "alpha", NULL | |
7369 | }; | |
7370 | ||
7371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:_BitmapFromBufferAlpha",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
7372 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7373 | if (!SWIG_IsOK(ecode1)) { | |
7374 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "1"" of type '" "int""'"); | |
7375 | } | |
7376 | arg1 = static_cast< int >(val1); | |
7377 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7378 | if (!SWIG_IsOK(ecode2)) { | |
7379 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferAlpha" "', expected argument " "2"" of type '" "int""'"); | |
7380 | } | |
7381 | arg2 = static_cast< int >(val2); | |
7382 | { | |
e46e7e0d RD |
7383 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7384 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7385 | } |
7386 | { | |
7387 | if (obj3 != Py_None) { | |
e46e7e0d RD |
7388 | if (PyObject_AsReadBuffer(obj3, (const void**)(&arg5), &temp5) == -1) SWIG_fail; |
7389 | arg6 = (int)temp5; | |
fc46b7f3 RD |
7390 | } |
7391 | } | |
7392 | { | |
7393 | result = (wxBitmap *)_BitmapFromBufferAlpha(arg1,arg2,arg3,arg4,arg5,arg6); | |
7394 | if (PyErr_Occurred()) SWIG_fail; | |
7395 | } | |
7396 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7397 | return resultobj; | |
7398 | fail: | |
7399 | return NULL; | |
7400 | } | |
7401 | ||
7402 | ||
7403 | SWIGINTERN PyObject *_wrap__BitmapFromBuffer(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7404 | PyObject *resultobj = 0; | |
7405 | int arg1 ; | |
7406 | int arg2 ; | |
7407 | buffer arg3 ; | |
7408 | int arg4 ; | |
7409 | wxBitmap *result = 0 ; | |
7410 | int val1 ; | |
7411 | int ecode1 = 0 ; | |
7412 | int val2 ; | |
7413 | int ecode2 = 0 ; | |
e46e7e0d | 7414 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7415 | PyObject * obj0 = 0 ; |
7416 | PyObject * obj1 = 0 ; | |
7417 | PyObject * obj2 = 0 ; | |
7418 | char * kwnames[] = { | |
7419 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7420 | }; | |
7421 | ||
7422 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBuffer",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7423 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7424 | if (!SWIG_IsOK(ecode1)) { | |
7425 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBuffer" "', expected argument " "1"" of type '" "int""'"); | |
7426 | } | |
7427 | arg1 = static_cast< int >(val1); | |
7428 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7429 | if (!SWIG_IsOK(ecode2)) { | |
7430 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBuffer" "', expected argument " "2"" of type '" "int""'"); | |
7431 | } | |
7432 | arg2 = static_cast< int >(val2); | |
7433 | { | |
e46e7e0d RD |
7434 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7435 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7436 | } |
7437 | { | |
7438 | result = (wxBitmap *)_BitmapFromBuffer(arg1,arg2,arg3,arg4); | |
7439 | if (PyErr_Occurred()) SWIG_fail; | |
7440 | } | |
7441 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7442 | return resultobj; | |
7443 | fail: | |
7444 | return NULL; | |
7445 | } | |
7446 | ||
7447 | ||
7448 | SWIGINTERN PyObject *_wrap__BitmapFromBufferRGBA(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7449 | PyObject *resultobj = 0; | |
7450 | int arg1 ; | |
7451 | int arg2 ; | |
7452 | buffer arg3 ; | |
7453 | int arg4 ; | |
7454 | wxBitmap *result = 0 ; | |
7455 | int val1 ; | |
7456 | int ecode1 = 0 ; | |
7457 | int val2 ; | |
7458 | int ecode2 = 0 ; | |
e46e7e0d | 7459 | Py_ssize_t temp3 ; |
fc46b7f3 RD |
7460 | PyObject * obj0 = 0 ; |
7461 | PyObject * obj1 = 0 ; | |
7462 | PyObject * obj2 = 0 ; | |
7463 | char * kwnames[] = { | |
7464 | (char *) "width",(char *) "height",(char *) "data", NULL | |
7465 | }; | |
7466 | ||
7467 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:_BitmapFromBufferRGBA",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
7468 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
7469 | if (!SWIG_IsOK(ecode1)) { | |
7470 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "1"" of type '" "int""'"); | |
7471 | } | |
7472 | arg1 = static_cast< int >(val1); | |
7473 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
7474 | if (!SWIG_IsOK(ecode2)) { | |
7475 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "_BitmapFromBufferRGBA" "', expected argument " "2"" of type '" "int""'"); | |
7476 | } | |
7477 | arg2 = static_cast< int >(val2); | |
7478 | { | |
e46e7e0d RD |
7479 | if (PyObject_AsReadBuffer(obj2, (const void**)(&arg3), &temp3) == -1) SWIG_fail; |
7480 | arg4 = (int)temp3; | |
fc46b7f3 RD |
7481 | } |
7482 | { | |
7483 | result = (wxBitmap *)_BitmapFromBufferRGBA(arg1,arg2,arg3,arg4); | |
7484 | if (PyErr_Occurred()) SWIG_fail; | |
7485 | } | |
7486 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
7487 | return resultobj; | |
7488 | fail: | |
7489 | return NULL; | |
7490 | } | |
7491 | ||
7492 | ||
7493 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7494 | PyObject *resultobj = 0; | |
7495 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7496 | wxPoint result; | |
7497 | void *argp1 = 0 ; | |
7498 | int res1 = 0 ; | |
7499 | PyObject *swig_obj[1] ; | |
7500 | ||
7501 | if (!args) SWIG_fail; | |
7502 | swig_obj[0] = args; | |
7503 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7504 | if (!SWIG_IsOK(res1)) { | |
7505 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetOrigin" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7506 | } | |
7507 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7508 | { | |
7509 | result = ((wxPixelDataBase const *)arg1)->GetOrigin(); | |
7510 | if (PyErr_Occurred()) SWIG_fail; | |
7511 | } | |
7512 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
7513 | return resultobj; | |
7514 | fail: | |
7515 | return NULL; | |
7516 | } | |
7517 | ||
7518 | ||
7519 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7520 | PyObject *resultobj = 0; | |
7521 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7522 | int result; | |
7523 | void *argp1 = 0 ; | |
7524 | int res1 = 0 ; | |
7525 | PyObject *swig_obj[1] ; | |
7526 | ||
7527 | if (!args) SWIG_fail; | |
7528 | swig_obj[0] = args; | |
7529 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7530 | if (!SWIG_IsOK(res1)) { | |
7531 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetWidth" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7532 | } | |
7533 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7534 | { | |
7535 | result = (int)((wxPixelDataBase const *)arg1)->GetWidth(); | |
7536 | if (PyErr_Occurred()) SWIG_fail; | |
7537 | } | |
7538 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7539 | return resultobj; | |
7540 | fail: | |
7541 | return NULL; | |
7542 | } | |
7543 | ||
7544 | ||
7545 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7546 | PyObject *resultobj = 0; | |
7547 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7548 | int result; | |
7549 | void *argp1 = 0 ; | |
7550 | int res1 = 0 ; | |
7551 | PyObject *swig_obj[1] ; | |
7552 | ||
7553 | if (!args) SWIG_fail; | |
7554 | swig_obj[0] = args; | |
7555 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7556 | if (!SWIG_IsOK(res1)) { | |
7557 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetHeight" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7558 | } | |
7559 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7560 | { | |
7561 | result = (int)((wxPixelDataBase const *)arg1)->GetHeight(); | |
7562 | if (PyErr_Occurred()) SWIG_fail; | |
7563 | } | |
7564 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7565 | return resultobj; | |
7566 | fail: | |
7567 | return NULL; | |
7568 | } | |
7569 | ||
7570 | ||
7571 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7572 | PyObject *resultobj = 0; | |
7573 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7574 | wxSize result; | |
7575 | void *argp1 = 0 ; | |
7576 | int res1 = 0 ; | |
7577 | PyObject *swig_obj[1] ; | |
7578 | ||
7579 | if (!args) SWIG_fail; | |
7580 | swig_obj[0] = args; | |
7581 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7582 | if (!SWIG_IsOK(res1)) { | |
7583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetSize" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7584 | } | |
7585 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7586 | { | |
7587 | result = ((wxPixelDataBase const *)arg1)->GetSize(); | |
7588 | if (PyErr_Occurred()) SWIG_fail; | |
7589 | } | |
7590 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
7591 | return resultobj; | |
7592 | fail: | |
7593 | return NULL; | |
7594 | } | |
7595 | ||
7596 | ||
7597 | SWIGINTERN PyObject *_wrap_PixelDataBase_GetRowStride(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7598 | PyObject *resultobj = 0; | |
7599 | wxPixelDataBase *arg1 = (wxPixelDataBase *) 0 ; | |
7600 | int result; | |
7601 | void *argp1 = 0 ; | |
7602 | int res1 = 0 ; | |
7603 | PyObject *swig_obj[1] ; | |
7604 | ||
7605 | if (!args) SWIG_fail; | |
7606 | swig_obj[0] = args; | |
7607 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPixelDataBase, 0 | 0 ); | |
7608 | if (!SWIG_IsOK(res1)) { | |
7609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PixelDataBase_GetRowStride" "', expected argument " "1"" of type '" "wxPixelDataBase const *""'"); | |
7610 | } | |
7611 | arg1 = reinterpret_cast< wxPixelDataBase * >(argp1); | |
7612 | { | |
7613 | result = (int)((wxPixelDataBase const *)arg1)->GetRowStride(); | |
7614 | if (PyErr_Occurred()) SWIG_fail; | |
7615 | } | |
7616 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
7617 | return resultobj; | |
7618 | fail: | |
7619 | return NULL; | |
7620 | } | |
7621 | ||
7622 | ||
7623 | SWIGINTERN PyObject *PixelDataBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7624 | PyObject *obj; | |
7625 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7626 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPixelDataBase, SWIG_NewClientData(obj)); | |
7627 | return SWIG_Py_Void(); | |
7628 | } | |
7629 | ||
7630 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7631 | PyObject *resultobj = 0; | |
7632 | wxBitmap *arg1 = 0 ; | |
7633 | wxNativePixelData *result = 0 ; | |
7634 | void *argp1 = 0 ; | |
7635 | int res1 = 0 ; | |
7636 | ||
7637 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7638 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7639 | if (!SWIG_IsOK(res1)) { | |
7640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7641 | } | |
7642 | if (!argp1) { | |
7643 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7644 | } | |
7645 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7646 | { | |
7647 | result = (wxNativePixelData *)new wxNativePixelData(*arg1); | |
7648 | if (PyErr_Occurred()) SWIG_fail; | |
7649 | } | |
7650 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7651 | return resultobj; | |
7652 | fail: | |
7653 | return NULL; | |
7654 | } | |
7655 | ||
7656 | ||
7657 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7658 | PyObject *resultobj = 0; | |
7659 | wxBitmap *arg1 = 0 ; | |
7660 | wxRect *arg2 = 0 ; | |
7661 | wxNativePixelData *result = 0 ; | |
7662 | void *argp1 = 0 ; | |
7663 | int res1 = 0 ; | |
7664 | wxRect temp2 ; | |
7665 | ||
7666 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7667 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7668 | if (!SWIG_IsOK(res1)) { | |
7669 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7670 | } | |
7671 | if (!argp1) { | |
7672 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7673 | } | |
7674 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7675 | { | |
7676 | arg2 = &temp2; | |
7677 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7678 | } | |
7679 | { | |
7680 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxRect const &)*arg2); | |
7681 | if (PyErr_Occurred()) SWIG_fail; | |
7682 | } | |
7683 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7684 | return resultobj; | |
7685 | fail: | |
7686 | return NULL; | |
7687 | } | |
7688 | ||
7689 | ||
7690 | SWIGINTERN PyObject *_wrap_new_NativePixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7691 | PyObject *resultobj = 0; | |
7692 | wxBitmap *arg1 = 0 ; | |
7693 | wxPoint *arg2 = 0 ; | |
7694 | wxSize *arg3 = 0 ; | |
7695 | wxNativePixelData *result = 0 ; | |
7696 | void *argp1 = 0 ; | |
7697 | int res1 = 0 ; | |
7698 | wxPoint temp2 ; | |
7699 | wxSize temp3 ; | |
7700 | ||
7701 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
7702 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7703 | if (!SWIG_IsOK(res1)) { | |
7704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7705 | } | |
7706 | if (!argp1) { | |
7707 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7708 | } | |
7709 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7710 | { | |
7711 | arg2 = &temp2; | |
7712 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
7713 | } | |
7714 | { | |
7715 | arg3 = &temp3; | |
7716 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
7717 | } | |
7718 | { | |
7719 | result = (wxNativePixelData *)new wxNativePixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
7720 | if (PyErr_Occurred()) SWIG_fail; | |
7721 | } | |
7722 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_NEW | 0 ); | |
7723 | return resultobj; | |
7724 | fail: | |
7725 | return NULL; | |
7726 | } | |
7727 | ||
7728 | ||
7729 | SWIGINTERN PyObject *_wrap_new_NativePixelData(PyObject *self, PyObject *args) { | |
7730 | int argc; | |
7731 | PyObject *argv[4]; | |
7732 | ||
7733 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData",0,3,argv))) SWIG_fail; | |
7734 | --argc; | |
7735 | if (argc == 1) { | |
7736 | return _wrap_new_NativePixelData__SWIG_0(self, argc, argv); | |
7737 | } | |
7738 | if (argc == 2) { | |
7739 | return _wrap_new_NativePixelData__SWIG_1(self, argc, argv); | |
7740 | } | |
7741 | if (argc == 3) { | |
7742 | return _wrap_new_NativePixelData__SWIG_2(self, argc, argv); | |
7743 | } | |
7744 | ||
7745 | fail: | |
7746 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData'"); | |
7747 | return NULL; | |
7748 | } | |
7749 | ||
7750 | ||
7751 | SWIGINTERN PyObject *_wrap_delete_NativePixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7752 | PyObject *resultobj = 0; | |
7753 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7754 | void *argp1 = 0 ; | |
7755 | int res1 = 0 ; | |
7756 | PyObject *swig_obj[1] ; | |
7757 | ||
7758 | if (!args) SWIG_fail; | |
7759 | swig_obj[0] = args; | |
7760 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, SWIG_POINTER_DISOWN | 0 ); | |
7761 | if (!SWIG_IsOK(res1)) { | |
7762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7763 | } | |
7764 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7765 | { | |
7766 | delete arg1; | |
7767 | ||
7768 | if (PyErr_Occurred()) SWIG_fail; | |
7769 | } | |
7770 | resultobj = SWIG_Py_Void(); | |
7771 | return resultobj; | |
7772 | fail: | |
7773 | return NULL; | |
7774 | } | |
7775 | ||
7776 | ||
7777 | SWIGINTERN PyObject *_wrap_NativePixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7778 | PyObject *resultobj = 0; | |
7779 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7780 | wxNativePixelData_Accessor result; | |
7781 | void *argp1 = 0 ; | |
7782 | int res1 = 0 ; | |
7783 | PyObject *swig_obj[1] ; | |
7784 | ||
7785 | if (!args) SWIG_fail; | |
7786 | swig_obj[0] = args; | |
7787 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7788 | if (!SWIG_IsOK(res1)) { | |
7789 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_GetPixels" "', expected argument " "1"" of type '" "wxNativePixelData const *""'"); | |
7790 | } | |
7791 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7792 | { | |
7793 | result = ((wxNativePixelData const *)arg1)->GetPixels(); | |
7794 | if (PyErr_Occurred()) SWIG_fail; | |
7795 | } | |
7796 | resultobj = SWIG_NewPointerObj((new wxNativePixelData_Accessor(static_cast< const wxNativePixelData_Accessor& >(result))), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
7797 | return resultobj; | |
7798 | fail: | |
7799 | return NULL; | |
7800 | } | |
7801 | ||
7802 | ||
7803 | SWIGINTERN PyObject *_wrap_NativePixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7804 | PyObject *resultobj = 0; | |
7805 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7806 | void *argp1 = 0 ; | |
7807 | int res1 = 0 ; | |
7808 | PyObject *swig_obj[1] ; | |
7809 | ||
7810 | if (!args) SWIG_fail; | |
7811 | swig_obj[0] = args; | |
7812 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7813 | if (!SWIG_IsOK(res1)) { | |
7814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_UseAlpha" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7815 | } | |
7816 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7817 | { | |
7818 | (arg1)->UseAlpha(); | |
7819 | if (PyErr_Occurred()) SWIG_fail; | |
7820 | } | |
7821 | resultobj = SWIG_Py_Void(); | |
7822 | return resultobj; | |
7823 | fail: | |
7824 | return NULL; | |
7825 | } | |
7826 | ||
7827 | ||
7828 | SWIGINTERN PyObject *_wrap_NativePixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7829 | PyObject *resultobj = 0; | |
7830 | wxNativePixelData *arg1 = (wxNativePixelData *) 0 ; | |
7831 | bool result; | |
7832 | void *argp1 = 0 ; | |
7833 | int res1 = 0 ; | |
7834 | PyObject *swig_obj[1] ; | |
7835 | ||
7836 | if (!args) SWIG_fail; | |
7837 | swig_obj[0] = args; | |
7838 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData, 0 | 0 ); | |
7839 | if (!SWIG_IsOK(res1)) { | |
7840 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData___nonzero__" "', expected argument " "1"" of type '" "wxNativePixelData *""'"); | |
7841 | } | |
7842 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7843 | { | |
7844 | result = (bool)wxNativePixelData___nonzero__(arg1); | |
7845 | if (PyErr_Occurred()) SWIG_fail; | |
7846 | } | |
7847 | { | |
7848 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7849 | } | |
7850 | return resultobj; | |
7851 | fail: | |
7852 | return NULL; | |
7853 | } | |
7854 | ||
7855 | ||
7856 | SWIGINTERN PyObject *NativePixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7857 | PyObject *obj; | |
7858 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
7859 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData, SWIG_NewClientData(obj)); | |
7860 | return SWIG_Py_Void(); | |
7861 | } | |
7862 | ||
7863 | SWIGINTERN PyObject *NativePixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7864 | return SWIG_Python_InitShadowInstance(args); | |
7865 | } | |
7866 | ||
7867 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7868 | PyObject *resultobj = 0; | |
7869 | wxNativePixelData *arg1 = 0 ; | |
7870 | wxNativePixelData_Accessor *result = 0 ; | |
7871 | void *argp1 = 0 ; | |
7872 | int res1 = 0 ; | |
7873 | ||
7874 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
7875 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7876 | if (!SWIG_IsOK(res1)) { | |
7877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7878 | } | |
7879 | if (!argp1) { | |
7880 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData &""'"); | |
7881 | } | |
7882 | arg1 = reinterpret_cast< wxNativePixelData * >(argp1); | |
7883 | { | |
7884 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1); | |
7885 | if (PyErr_Occurred()) SWIG_fail; | |
7886 | } | |
7887 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7888 | return resultobj; | |
7889 | fail: | |
7890 | return NULL; | |
7891 | } | |
7892 | ||
7893 | ||
7894 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
7895 | PyObject *resultobj = 0; | |
7896 | wxBitmap *arg1 = 0 ; | |
7897 | wxNativePixelData *arg2 = 0 ; | |
7898 | wxNativePixelData_Accessor *result = 0 ; | |
7899 | void *argp1 = 0 ; | |
7900 | int res1 = 0 ; | |
7901 | void *argp2 = 0 ; | |
7902 | int res2 = 0 ; | |
7903 | ||
7904 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
7905 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
7906 | if (!SWIG_IsOK(res1)) { | |
7907 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7908 | } | |
7909 | if (!argp1) { | |
7910 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
7911 | } | |
7912 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
7913 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxNativePixelData, 0 ); | |
7914 | if (!SWIG_IsOK(res2)) { | |
7915 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7916 | } | |
7917 | if (!argp2) { | |
7918 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_NativePixelData_Accessor" "', expected argument " "2"" of type '" "wxNativePixelData &""'"); | |
7919 | } | |
7920 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
7921 | { | |
7922 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(*arg1,*arg2); | |
7923 | if (PyErr_Occurred()) SWIG_fail; | |
7924 | } | |
7925 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7926 | return resultobj; | |
7927 | fail: | |
7928 | return NULL; | |
7929 | } | |
7930 | ||
7931 | ||
7932 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
7933 | PyObject *resultobj = 0; | |
7934 | wxNativePixelData_Accessor *result = 0 ; | |
7935 | ||
7936 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
7937 | { | |
7938 | result = (wxNativePixelData_Accessor *)new wxNativePixelData_Accessor(); | |
7939 | if (PyErr_Occurred()) SWIG_fail; | |
7940 | } | |
7941 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
7942 | return resultobj; | |
7943 | fail: | |
7944 | return NULL; | |
7945 | } | |
7946 | ||
7947 | ||
7948 | SWIGINTERN PyObject *_wrap_new_NativePixelData_Accessor(PyObject *self, PyObject *args) { | |
7949 | int argc; | |
7950 | PyObject *argv[3]; | |
7951 | ||
7952 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_NativePixelData_Accessor",0,2,argv))) SWIG_fail; | |
7953 | --argc; | |
7954 | if (argc == 0) { | |
7955 | return _wrap_new_NativePixelData_Accessor__SWIG_2(self, argc, argv); | |
7956 | } | |
7957 | if (argc == 1) { | |
7958 | return _wrap_new_NativePixelData_Accessor__SWIG_0(self, argc, argv); | |
7959 | } | |
7960 | if (argc == 2) { | |
7961 | return _wrap_new_NativePixelData_Accessor__SWIG_1(self, argc, argv); | |
7962 | } | |
7963 | ||
7964 | fail: | |
7965 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_NativePixelData_Accessor'"); | |
7966 | return NULL; | |
7967 | } | |
7968 | ||
7969 | ||
7970 | SWIGINTERN PyObject *_wrap_delete_NativePixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
7971 | PyObject *resultobj = 0; | |
7972 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7973 | void *argp1 = 0 ; | |
7974 | int res1 = 0 ; | |
7975 | PyObject *swig_obj[1] ; | |
7976 | ||
7977 | if (!args) SWIG_fail; | |
7978 | swig_obj[0] = args; | |
7979 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
7980 | if (!SWIG_IsOK(res1)) { | |
7981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativePixelData_Accessor" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
7982 | } | |
7983 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
7984 | { | |
7985 | delete arg1; | |
7986 | ||
7987 | if (PyErr_Occurred()) SWIG_fail; | |
7988 | } | |
7989 | resultobj = SWIG_Py_Void(); | |
7990 | return resultobj; | |
7991 | fail: | |
7992 | return NULL; | |
7993 | } | |
7994 | ||
7995 | ||
7996 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
7997 | PyObject *resultobj = 0; | |
7998 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
7999 | wxNativePixelData *arg2 = 0 ; | |
8000 | void *argp1 = 0 ; | |
8001 | int res1 = 0 ; | |
8002 | void *argp2 = 0 ; | |
8003 | int res2 = 0 ; | |
8004 | PyObject * obj0 = 0 ; | |
8005 | PyObject * obj1 = 0 ; | |
8006 | char * kwnames[] = { | |
8007 | (char *) "self",(char *) "data", NULL | |
8008 | }; | |
8009 | ||
8010 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativePixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
8011 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8012 | if (!SWIG_IsOK(res1)) { | |
8013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8014 | } | |
8015 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8016 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8017 | if (!SWIG_IsOK(res2)) { | |
8018 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8019 | } | |
8020 | if (!argp2) { | |
8021 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8022 | } | |
8023 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8024 | { | |
8025 | (arg1)->Reset((wxNativePixelData const &)*arg2); | |
8026 | if (PyErr_Occurred()) SWIG_fail; | |
8027 | } | |
8028 | resultobj = SWIG_Py_Void(); | |
8029 | return resultobj; | |
8030 | fail: | |
8031 | return NULL; | |
8032 | } | |
8033 | ||
8034 | ||
8035 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8036 | PyObject *resultobj = 0; | |
8037 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8038 | bool result; | |
8039 | void *argp1 = 0 ; | |
8040 | int res1 = 0 ; | |
8041 | PyObject *swig_obj[1] ; | |
8042 | ||
8043 | if (!args) SWIG_fail; | |
8044 | swig_obj[0] = args; | |
8045 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8046 | if (!SWIG_IsOK(res1)) { | |
8047 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor const *""'"); | |
8048 | } | |
8049 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8050 | { | |
8051 | result = (bool)((wxNativePixelData_Accessor const *)arg1)->IsOk(); | |
8052 | if (PyErr_Occurred()) SWIG_fail; | |
8053 | } | |
8054 | { | |
8055 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8056 | } | |
8057 | return resultobj; | |
8058 | fail: | |
8059 | return NULL; | |
8060 | } | |
8061 | ||
8062 | ||
8063 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8064 | PyObject *resultobj = 0; | |
8065 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8066 | void *argp1 = 0 ; | |
8067 | int res1 = 0 ; | |
8068 | PyObject *swig_obj[1] ; | |
8069 | ||
8070 | if (!args) SWIG_fail; | |
8071 | swig_obj[0] = args; | |
8072 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8073 | if (!SWIG_IsOK(res1)) { | |
8074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8075 | } | |
8076 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8077 | { | |
8078 | wxNativePixelData_Accessor_nextPixel(arg1); | |
8079 | if (PyErr_Occurred()) SWIG_fail; | |
8080 | } | |
8081 | resultobj = SWIG_Py_Void(); | |
8082 | return resultobj; | |
8083 | fail: | |
8084 | return NULL; | |
8085 | } | |
8086 | ||
8087 | ||
8088 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8089 | PyObject *resultobj = 0; | |
8090 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8091 | wxNativePixelData *arg2 = 0 ; | |
8092 | int arg3 ; | |
8093 | int arg4 ; | |
8094 | void *argp1 = 0 ; | |
8095 | int res1 = 0 ; | |
8096 | void *argp2 = 0 ; | |
8097 | int res2 = 0 ; | |
8098 | int val3 ; | |
8099 | int ecode3 = 0 ; | |
8100 | int val4 ; | |
8101 | int ecode4 = 0 ; | |
8102 | PyObject * obj0 = 0 ; | |
8103 | PyObject * obj1 = 0 ; | |
8104 | PyObject * obj2 = 0 ; | |
8105 | PyObject * obj3 = 0 ; | |
8106 | char * kwnames[] = { | |
8107 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8108 | }; | |
8109 | ||
8110 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8111 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8112 | if (!SWIG_IsOK(res1)) { | |
8113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8114 | } | |
8115 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8116 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8117 | if (!SWIG_IsOK(res2)) { | |
8118 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8119 | } | |
8120 | if (!argp2) { | |
8121 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8122 | } | |
8123 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8124 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8125 | if (!SWIG_IsOK(ecode3)) { | |
8126 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8127 | } | |
8128 | arg3 = static_cast< int >(val3); | |
8129 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8130 | if (!SWIG_IsOK(ecode4)) { | |
8131 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8132 | } | |
8133 | arg4 = static_cast< int >(val4); | |
8134 | { | |
8135 | (arg1)->Offset((wxNativePixelData const &)*arg2,arg3,arg4); | |
8136 | if (PyErr_Occurred()) SWIG_fail; | |
8137 | } | |
8138 | resultobj = SWIG_Py_Void(); | |
8139 | return resultobj; | |
8140 | fail: | |
8141 | return NULL; | |
8142 | } | |
8143 | ||
8144 | ||
8145 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8146 | PyObject *resultobj = 0; | |
8147 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8148 | wxNativePixelData *arg2 = 0 ; | |
8149 | int arg3 ; | |
8150 | void *argp1 = 0 ; | |
8151 | int res1 = 0 ; | |
8152 | void *argp2 = 0 ; | |
8153 | int res2 = 0 ; | |
8154 | int val3 ; | |
8155 | int ecode3 = 0 ; | |
8156 | PyObject * obj0 = 0 ; | |
8157 | PyObject * obj1 = 0 ; | |
8158 | PyObject * obj2 = 0 ; | |
8159 | char * kwnames[] = { | |
8160 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8161 | }; | |
8162 | ||
8163 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8164 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8165 | if (!SWIG_IsOK(res1)) { | |
8166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8167 | } | |
8168 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8169 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8170 | if (!SWIG_IsOK(res2)) { | |
8171 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8172 | } | |
8173 | if (!argp2) { | |
8174 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8175 | } | |
8176 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8177 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8178 | if (!SWIG_IsOK(ecode3)) { | |
8179 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8180 | } | |
8181 | arg3 = static_cast< int >(val3); | |
8182 | { | |
8183 | (arg1)->OffsetX((wxNativePixelData const &)*arg2,arg3); | |
8184 | if (PyErr_Occurred()) SWIG_fail; | |
8185 | } | |
8186 | resultobj = SWIG_Py_Void(); | |
8187 | return resultobj; | |
8188 | fail: | |
8189 | return NULL; | |
8190 | } | |
8191 | ||
8192 | ||
8193 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8194 | PyObject *resultobj = 0; | |
8195 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8196 | wxNativePixelData *arg2 = 0 ; | |
8197 | int arg3 ; | |
8198 | void *argp1 = 0 ; | |
8199 | int res1 = 0 ; | |
8200 | void *argp2 = 0 ; | |
8201 | int res2 = 0 ; | |
8202 | int val3 ; | |
8203 | int ecode3 = 0 ; | |
8204 | PyObject * obj0 = 0 ; | |
8205 | PyObject * obj1 = 0 ; | |
8206 | PyObject * obj2 = 0 ; | |
8207 | char * kwnames[] = { | |
8208 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8209 | }; | |
8210 | ||
8211 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:NativePixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8212 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8213 | if (!SWIG_IsOK(res1)) { | |
8214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8215 | } | |
8216 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8217 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8218 | if (!SWIG_IsOK(res2)) { | |
8219 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8220 | } | |
8221 | if (!argp2) { | |
8222 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8223 | } | |
8224 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8225 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8226 | if (!SWIG_IsOK(ecode3)) { | |
8227 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8228 | } | |
8229 | arg3 = static_cast< int >(val3); | |
8230 | { | |
8231 | (arg1)->OffsetY((wxNativePixelData const &)*arg2,arg3); | |
8232 | if (PyErr_Occurred()) SWIG_fail; | |
8233 | } | |
8234 | resultobj = SWIG_Py_Void(); | |
8235 | return resultobj; | |
8236 | fail: | |
8237 | return NULL; | |
8238 | } | |
8239 | ||
8240 | ||
8241 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8242 | PyObject *resultobj = 0; | |
8243 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8244 | wxNativePixelData *arg2 = 0 ; | |
8245 | int arg3 ; | |
8246 | int arg4 ; | |
8247 | void *argp1 = 0 ; | |
8248 | int res1 = 0 ; | |
8249 | void *argp2 = 0 ; | |
8250 | int res2 = 0 ; | |
8251 | int val3 ; | |
8252 | int ecode3 = 0 ; | |
8253 | int val4 ; | |
8254 | int ecode4 = 0 ; | |
8255 | PyObject * obj0 = 0 ; | |
8256 | PyObject * obj1 = 0 ; | |
8257 | PyObject * obj2 = 0 ; | |
8258 | PyObject * obj3 = 0 ; | |
8259 | char * kwnames[] = { | |
8260 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8261 | }; | |
8262 | ||
8263 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8264 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8265 | if (!SWIG_IsOK(res1)) { | |
8266 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8267 | } | |
8268 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8269 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativePixelData, 0 | 0); | |
8270 | if (!SWIG_IsOK(res2)) { | |
8271 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8272 | } | |
8273 | if (!argp2) { | |
8274 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxNativePixelData const &""'"); | |
8275 | } | |
8276 | arg2 = reinterpret_cast< wxNativePixelData * >(argp2); | |
8277 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8278 | if (!SWIG_IsOK(ecode3)) { | |
8279 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
8280 | } | |
8281 | arg3 = static_cast< int >(val3); | |
8282 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8283 | if (!SWIG_IsOK(ecode4)) { | |
8284 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
8285 | } | |
8286 | arg4 = static_cast< int >(val4); | |
8287 | { | |
8288 | (arg1)->MoveTo((wxNativePixelData const &)*arg2,arg3,arg4); | |
8289 | if (PyErr_Occurred()) SWIG_fail; | |
8290 | } | |
8291 | resultobj = SWIG_Py_Void(); | |
8292 | return resultobj; | |
8293 | fail: | |
8294 | return NULL; | |
8295 | } | |
8296 | ||
8297 | ||
8298 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8299 | PyObject *resultobj = 0; | |
8300 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8301 | byte arg2 ; | |
8302 | byte arg3 ; | |
8303 | byte arg4 ; | |
8304 | void *argp1 = 0 ; | |
8305 | int res1 = 0 ; | |
8306 | unsigned char val2 ; | |
8307 | int ecode2 = 0 ; | |
8308 | unsigned char val3 ; | |
8309 | int ecode3 = 0 ; | |
8310 | unsigned char val4 ; | |
8311 | int ecode4 = 0 ; | |
8312 | PyObject * obj0 = 0 ; | |
8313 | PyObject * obj1 = 0 ; | |
8314 | PyObject * obj2 = 0 ; | |
8315 | PyObject * obj3 = 0 ; | |
8316 | char * kwnames[] = { | |
8317 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL | |
8318 | }; | |
8319 | ||
8320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:NativePixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8321 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8322 | if (!SWIG_IsOK(res1)) { | |
8323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8324 | } | |
8325 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8326 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
8327 | if (!SWIG_IsOK(ecode2)) { | |
8328 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
8329 | } | |
8330 | arg2 = static_cast< byte >(val2); | |
8331 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
8332 | if (!SWIG_IsOK(ecode3)) { | |
8333 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
8334 | } | |
8335 | arg3 = static_cast< byte >(val3); | |
8336 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
8337 | if (!SWIG_IsOK(ecode4)) { | |
8338 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "NativePixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
8339 | } | |
8340 | arg4 = static_cast< byte >(val4); | |
8341 | { | |
8342 | wxNativePixelData_Accessor_Set(arg1,arg2,arg3,arg4); | |
8343 | if (PyErr_Occurred()) SWIG_fail; | |
8344 | } | |
8345 | resultobj = SWIG_Py_Void(); | |
8346 | return resultobj; | |
8347 | fail: | |
8348 | return NULL; | |
8349 | } | |
8350 | ||
8351 | ||
8352 | SWIGINTERN PyObject *_wrap_NativePixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8353 | PyObject *resultobj = 0; | |
8354 | wxNativePixelData_Accessor *arg1 = (wxNativePixelData_Accessor *) 0 ; | |
8355 | PyObject *result = 0 ; | |
8356 | void *argp1 = 0 ; | |
8357 | int res1 = 0 ; | |
8358 | PyObject *swig_obj[1] ; | |
8359 | ||
8360 | if (!args) SWIG_fail; | |
8361 | swig_obj[0] = args; | |
8362 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativePixelData_Accessor, 0 | 0 ); | |
8363 | if (!SWIG_IsOK(res1)) { | |
8364 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativePixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxNativePixelData_Accessor *""'"); | |
8365 | } | |
8366 | arg1 = reinterpret_cast< wxNativePixelData_Accessor * >(argp1); | |
8367 | { | |
8368 | result = (PyObject *)wxNativePixelData_Accessor_Get(arg1); | |
8369 | if (PyErr_Occurred()) SWIG_fail; | |
8370 | } | |
8371 | resultobj = result; | |
8372 | return resultobj; | |
8373 | fail: | |
8374 | return NULL; | |
8375 | } | |
8376 | ||
8377 | ||
8378 | SWIGINTERN PyObject *NativePixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8379 | PyObject *obj; | |
8380 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8381 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativePixelData_Accessor, SWIG_NewClientData(obj)); | |
8382 | return SWIG_Py_Void(); | |
8383 | } | |
8384 | ||
8385 | SWIGINTERN PyObject *NativePixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8386 | return SWIG_Python_InitShadowInstance(args); | |
8387 | } | |
8388 | ||
8389 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8390 | PyObject *resultobj = 0; | |
8391 | wxBitmap *arg1 = 0 ; | |
8392 | wxAlphaPixelData *result = 0 ; | |
8393 | void *argp1 = 0 ; | |
8394 | int res1 = 0 ; | |
8395 | ||
8396 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8397 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8398 | if (!SWIG_IsOK(res1)) { | |
8399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8400 | } | |
8401 | if (!argp1) { | |
8402 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8403 | } | |
8404 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8405 | { | |
8406 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1); | |
8407 | if (PyErr_Occurred()) SWIG_fail; | |
8408 | } | |
8409 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8410 | return resultobj; | |
8411 | fail: | |
8412 | return NULL; | |
8413 | } | |
8414 | ||
8415 | ||
8416 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8417 | PyObject *resultobj = 0; | |
8418 | wxBitmap *arg1 = 0 ; | |
8419 | wxRect *arg2 = 0 ; | |
8420 | wxAlphaPixelData *result = 0 ; | |
8421 | void *argp1 = 0 ; | |
8422 | int res1 = 0 ; | |
8423 | wxRect temp2 ; | |
8424 | ||
8425 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8426 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8427 | if (!SWIG_IsOK(res1)) { | |
8428 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8429 | } | |
8430 | if (!argp1) { | |
8431 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8432 | } | |
8433 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8434 | { | |
8435 | arg2 = &temp2; | |
8436 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8437 | } | |
8438 | { | |
8439 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxRect const &)*arg2); | |
8440 | if (PyErr_Occurred()) SWIG_fail; | |
8441 | } | |
8442 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8443 | return resultobj; | |
8444 | fail: | |
8445 | return NULL; | |
8446 | } | |
8447 | ||
8448 | ||
8449 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8450 | PyObject *resultobj = 0; | |
8451 | wxBitmap *arg1 = 0 ; | |
8452 | wxPoint *arg2 = 0 ; | |
8453 | wxSize *arg3 = 0 ; | |
8454 | wxAlphaPixelData *result = 0 ; | |
8455 | void *argp1 = 0 ; | |
8456 | int res1 = 0 ; | |
8457 | wxPoint temp2 ; | |
8458 | wxSize temp3 ; | |
8459 | ||
8460 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
8461 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8462 | if (!SWIG_IsOK(res1)) { | |
8463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8464 | } | |
8465 | if (!argp1) { | |
8466 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8467 | } | |
8468 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8469 | { | |
8470 | arg2 = &temp2; | |
8471 | if ( ! wxPoint_helper(swig_obj[1], &arg2)) SWIG_fail; | |
8472 | } | |
8473 | { | |
8474 | arg3 = &temp3; | |
8475 | if ( ! wxSize_helper(swig_obj[2], &arg3)) SWIG_fail; | |
8476 | } | |
8477 | { | |
8478 | result = (wxAlphaPixelData *)new wxAlphaPixelData(*arg1,(wxPoint const &)*arg2,(wxSize const &)*arg3); | |
8479 | if (PyErr_Occurred()) SWIG_fail; | |
8480 | } | |
8481 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_NEW | 0 ); | |
8482 | return resultobj; | |
8483 | fail: | |
8484 | return NULL; | |
8485 | } | |
8486 | ||
8487 | ||
8488 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData(PyObject *self, PyObject *args) { | |
8489 | int argc; | |
8490 | PyObject *argv[4]; | |
8491 | ||
8492 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData",0,3,argv))) SWIG_fail; | |
8493 | --argc; | |
8494 | if (argc == 1) { | |
8495 | return _wrap_new_AlphaPixelData__SWIG_0(self, argc, argv); | |
8496 | } | |
8497 | if (argc == 2) { | |
8498 | return _wrap_new_AlphaPixelData__SWIG_1(self, argc, argv); | |
8499 | } | |
8500 | if (argc == 3) { | |
8501 | return _wrap_new_AlphaPixelData__SWIG_2(self, argc, argv); | |
8502 | } | |
8503 | ||
8504 | fail: | |
8505 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData'"); | |
8506 | return NULL; | |
8507 | } | |
8508 | ||
8509 | ||
8510 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8511 | PyObject *resultobj = 0; | |
8512 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8513 | void *argp1 = 0 ; | |
8514 | int res1 = 0 ; | |
8515 | PyObject *swig_obj[1] ; | |
8516 | ||
8517 | if (!args) SWIG_fail; | |
8518 | swig_obj[0] = args; | |
8519 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, SWIG_POINTER_DISOWN | 0 ); | |
8520 | if (!SWIG_IsOK(res1)) { | |
8521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8522 | } | |
8523 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8524 | { | |
8525 | delete arg1; | |
8526 | ||
8527 | if (PyErr_Occurred()) SWIG_fail; | |
8528 | } | |
8529 | resultobj = SWIG_Py_Void(); | |
8530 | return resultobj; | |
8531 | fail: | |
8532 | return NULL; | |
8533 | } | |
8534 | ||
8535 | ||
8536 | SWIGINTERN PyObject *_wrap_AlphaPixelData_GetPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8537 | PyObject *resultobj = 0; | |
8538 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8539 | wxAlphaPixelData_Accessor result; | |
8540 | void *argp1 = 0 ; | |
8541 | int res1 = 0 ; | |
8542 | PyObject *swig_obj[1] ; | |
8543 | ||
8544 | if (!args) SWIG_fail; | |
8545 | swig_obj[0] = args; | |
8546 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8547 | if (!SWIG_IsOK(res1)) { | |
8548 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_GetPixels" "', expected argument " "1"" of type '" "wxAlphaPixelData const *""'"); | |
8549 | } | |
8550 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8551 | { | |
8552 | result = ((wxAlphaPixelData const *)arg1)->GetPixels(); | |
8553 | if (PyErr_Occurred()) SWIG_fail; | |
8554 | } | |
8555 | resultobj = SWIG_NewPointerObj((new wxAlphaPixelData_Accessor(static_cast< const wxAlphaPixelData_Accessor& >(result))), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_OWN | 0 ); | |
8556 | return resultobj; | |
8557 | fail: | |
8558 | return NULL; | |
8559 | } | |
8560 | ||
8561 | ||
8562 | SWIGINTERN PyObject *_wrap_AlphaPixelData_UseAlpha(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8563 | PyObject *resultobj = 0; | |
8564 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8565 | void *argp1 = 0 ; | |
8566 | int res1 = 0 ; | |
8567 | PyObject *swig_obj[1] ; | |
8568 | ||
8569 | if (!args) SWIG_fail; | |
8570 | swig_obj[0] = args; | |
8571 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8572 | if (!SWIG_IsOK(res1)) { | |
8573 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_UseAlpha" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8574 | } | |
8575 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8576 | { | |
8577 | (arg1)->UseAlpha(); | |
8578 | if (PyErr_Occurred()) SWIG_fail; | |
8579 | } | |
8580 | resultobj = SWIG_Py_Void(); | |
8581 | return resultobj; | |
8582 | fail: | |
8583 | return NULL; | |
8584 | } | |
8585 | ||
8586 | ||
8587 | SWIGINTERN PyObject *_wrap_AlphaPixelData___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8588 | PyObject *resultobj = 0; | |
8589 | wxAlphaPixelData *arg1 = (wxAlphaPixelData *) 0 ; | |
8590 | bool result; | |
8591 | void *argp1 = 0 ; | |
8592 | int res1 = 0 ; | |
8593 | PyObject *swig_obj[1] ; | |
8594 | ||
8595 | if (!args) SWIG_fail; | |
8596 | swig_obj[0] = args; | |
8597 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData, 0 | 0 ); | |
8598 | if (!SWIG_IsOK(res1)) { | |
8599 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData___nonzero__" "', expected argument " "1"" of type '" "wxAlphaPixelData *""'"); | |
8600 | } | |
8601 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8602 | { | |
8603 | result = (bool)wxAlphaPixelData___nonzero__(arg1); | |
8604 | if (PyErr_Occurred()) SWIG_fail; | |
8605 | } | |
8606 | { | |
8607 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8608 | } | |
8609 | return resultobj; | |
8610 | fail: | |
8611 | return NULL; | |
8612 | } | |
8613 | ||
8614 | ||
8615 | SWIGINTERN PyObject *AlphaPixelData_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8616 | PyObject *obj; | |
8617 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
8618 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData, SWIG_NewClientData(obj)); | |
8619 | return SWIG_Py_Void(); | |
8620 | } | |
8621 | ||
8622 | SWIGINTERN PyObject *AlphaPixelData_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8623 | return SWIG_Python_InitShadowInstance(args); | |
8624 | } | |
8625 | ||
8626 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8627 | PyObject *resultobj = 0; | |
8628 | wxAlphaPixelData *arg1 = 0 ; | |
8629 | wxAlphaPixelData_Accessor *result = 0 ; | |
8630 | void *argp1 = 0 ; | |
8631 | int res1 = 0 ; | |
8632 | ||
8633 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
8634 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8635 | if (!SWIG_IsOK(res1)) { | |
8636 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8637 | } | |
8638 | if (!argp1) { | |
8639 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData &""'"); | |
8640 | } | |
8641 | arg1 = reinterpret_cast< wxAlphaPixelData * >(argp1); | |
8642 | { | |
8643 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1); | |
8644 | if (PyErr_Occurred()) SWIG_fail; | |
8645 | } | |
8646 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8647 | return resultobj; | |
8648 | fail: | |
8649 | return NULL; | |
8650 | } | |
8651 | ||
8652 | ||
8653 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
8654 | PyObject *resultobj = 0; | |
8655 | wxBitmap *arg1 = 0 ; | |
8656 | wxAlphaPixelData *arg2 = 0 ; | |
8657 | wxAlphaPixelData_Accessor *result = 0 ; | |
8658 | void *argp1 = 0 ; | |
8659 | int res1 = 0 ; | |
8660 | void *argp2 = 0 ; | |
8661 | int res2 = 0 ; | |
8662 | ||
8663 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
8664 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
8665 | if (!SWIG_IsOK(res1)) { | |
8666 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8667 | } | |
8668 | if (!argp1) { | |
8669 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
8670 | } | |
8671 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
8672 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 ); | |
8673 | if (!SWIG_IsOK(res2)) { | |
8674 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8675 | } | |
8676 | if (!argp2) { | |
8677 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_AlphaPixelData_Accessor" "', expected argument " "2"" of type '" "wxAlphaPixelData &""'"); | |
8678 | } | |
8679 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8680 | { | |
8681 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(*arg1,*arg2); | |
8682 | if (PyErr_Occurred()) SWIG_fail; | |
8683 | } | |
8684 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8685 | return resultobj; | |
8686 | fail: | |
8687 | return NULL; | |
8688 | } | |
8689 | ||
8690 | ||
8691 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) { | |
8692 | PyObject *resultobj = 0; | |
8693 | wxAlphaPixelData_Accessor *result = 0 ; | |
8694 | ||
8695 | if ((nobjs < 0) || (nobjs > 0)) SWIG_fail; | |
8696 | { | |
8697 | result = (wxAlphaPixelData_Accessor *)new wxAlphaPixelData_Accessor(); | |
8698 | if (PyErr_Occurred()) SWIG_fail; | |
8699 | } | |
8700 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_NEW | 0 ); | |
8701 | return resultobj; | |
8702 | fail: | |
8703 | return NULL; | |
8704 | } | |
8705 | ||
8706 | ||
8707 | SWIGINTERN PyObject *_wrap_new_AlphaPixelData_Accessor(PyObject *self, PyObject *args) { | |
8708 | int argc; | |
8709 | PyObject *argv[3]; | |
8710 | ||
8711 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_AlphaPixelData_Accessor",0,2,argv))) SWIG_fail; | |
8712 | --argc; | |
8713 | if (argc == 0) { | |
8714 | return _wrap_new_AlphaPixelData_Accessor__SWIG_2(self, argc, argv); | |
8715 | } | |
8716 | if (argc == 1) { | |
8717 | return _wrap_new_AlphaPixelData_Accessor__SWIG_0(self, argc, argv); | |
8718 | } | |
8719 | if (argc == 2) { | |
8720 | return _wrap_new_AlphaPixelData_Accessor__SWIG_1(self, argc, argv); | |
8721 | } | |
8722 | ||
8723 | fail: | |
8724 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_AlphaPixelData_Accessor'"); | |
8725 | return NULL; | |
8726 | } | |
8727 | ||
8728 | ||
8729 | SWIGINTERN PyObject *_wrap_delete_AlphaPixelData_Accessor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8730 | PyObject *resultobj = 0; | |
8731 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8732 | void *argp1 = 0 ; | |
8733 | int res1 = 0 ; | |
8734 | PyObject *swig_obj[1] ; | |
8735 | ||
8736 | if (!args) SWIG_fail; | |
8737 | swig_obj[0] = args; | |
8738 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_POINTER_DISOWN | 0 ); | |
8739 | if (!SWIG_IsOK(res1)) { | |
8740 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_AlphaPixelData_Accessor" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8741 | } | |
8742 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8743 | { | |
8744 | delete arg1; | |
8745 | ||
8746 | if (PyErr_Occurred()) SWIG_fail; | |
8747 | } | |
8748 | resultobj = SWIG_Py_Void(); | |
8749 | return resultobj; | |
8750 | fail: | |
8751 | return NULL; | |
8752 | } | |
8753 | ||
8754 | ||
8755 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8756 | PyObject *resultobj = 0; | |
8757 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8758 | wxAlphaPixelData *arg2 = 0 ; | |
8759 | void *argp1 = 0 ; | |
8760 | int res1 = 0 ; | |
8761 | void *argp2 = 0 ; | |
8762 | int res2 = 0 ; | |
8763 | PyObject * obj0 = 0 ; | |
8764 | PyObject * obj1 = 0 ; | |
8765 | char * kwnames[] = { | |
8766 | (char *) "self",(char *) "data", NULL | |
8767 | }; | |
8768 | ||
8769 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:AlphaPixelData_Accessor_Reset",kwnames,&obj0,&obj1)) SWIG_fail; | |
8770 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8771 | if (!SWIG_IsOK(res1)) { | |
8772 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8773 | } | |
8774 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8775 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8776 | if (!SWIG_IsOK(res2)) { | |
8777 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8778 | } | |
8779 | if (!argp2) { | |
8780 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Reset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8781 | } | |
8782 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8783 | { | |
8784 | (arg1)->Reset((wxAlphaPixelData const &)*arg2); | |
8785 | if (PyErr_Occurred()) SWIG_fail; | |
8786 | } | |
8787 | resultobj = SWIG_Py_Void(); | |
8788 | return resultobj; | |
8789 | fail: | |
8790 | return NULL; | |
8791 | } | |
8792 | ||
8793 | ||
8794 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8795 | PyObject *resultobj = 0; | |
8796 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8797 | bool result; | |
8798 | void *argp1 = 0 ; | |
8799 | int res1 = 0 ; | |
8800 | PyObject *swig_obj[1] ; | |
8801 | ||
8802 | if (!args) SWIG_fail; | |
8803 | swig_obj[0] = args; | |
8804 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8805 | if (!SWIG_IsOK(res1)) { | |
8806 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_IsOk" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor const *""'"); | |
8807 | } | |
8808 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8809 | { | |
8810 | result = (bool)((wxAlphaPixelData_Accessor const *)arg1)->IsOk(); | |
8811 | if (PyErr_Occurred()) SWIG_fail; | |
8812 | } | |
8813 | { | |
8814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8815 | } | |
8816 | return resultobj; | |
8817 | fail: | |
8818 | return NULL; | |
8819 | } | |
8820 | ||
8821 | ||
8822 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_nextPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
8823 | PyObject *resultobj = 0; | |
8824 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8825 | void *argp1 = 0 ; | |
8826 | int res1 = 0 ; | |
8827 | PyObject *swig_obj[1] ; | |
8828 | ||
8829 | if (!args) SWIG_fail; | |
8830 | swig_obj[0] = args; | |
8831 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8832 | if (!SWIG_IsOK(res1)) { | |
8833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_nextPixel" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8834 | } | |
8835 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8836 | { | |
8837 | wxAlphaPixelData_Accessor_nextPixel(arg1); | |
8838 | if (PyErr_Occurred()) SWIG_fail; | |
8839 | } | |
8840 | resultobj = SWIG_Py_Void(); | |
8841 | return resultobj; | |
8842 | fail: | |
8843 | return NULL; | |
8844 | } | |
8845 | ||
8846 | ||
8847 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8848 | PyObject *resultobj = 0; | |
8849 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8850 | wxAlphaPixelData *arg2 = 0 ; | |
8851 | int arg3 ; | |
8852 | int arg4 ; | |
8853 | void *argp1 = 0 ; | |
8854 | int res1 = 0 ; | |
8855 | void *argp2 = 0 ; | |
8856 | int res2 = 0 ; | |
8857 | int val3 ; | |
8858 | int ecode3 = 0 ; | |
8859 | int val4 ; | |
8860 | int ecode4 = 0 ; | |
8861 | PyObject * obj0 = 0 ; | |
8862 | PyObject * obj1 = 0 ; | |
8863 | PyObject * obj2 = 0 ; | |
8864 | PyObject * obj3 = 0 ; | |
8865 | char * kwnames[] = { | |
8866 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
8867 | }; | |
8868 | ||
8869 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_Offset",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
8870 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8871 | if (!SWIG_IsOK(res1)) { | |
8872 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8873 | } | |
8874 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8875 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8876 | if (!SWIG_IsOK(res2)) { | |
8877 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8878 | } | |
8879 | if (!argp2) { | |
8880 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8881 | } | |
8882 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8883 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8884 | if (!SWIG_IsOK(ecode3)) { | |
8885 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "3"" of type '" "int""'"); | |
8886 | } | |
8887 | arg3 = static_cast< int >(val3); | |
8888 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
8889 | if (!SWIG_IsOK(ecode4)) { | |
8890 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Offset" "', expected argument " "4"" of type '" "int""'"); | |
8891 | } | |
8892 | arg4 = static_cast< int >(val4); | |
8893 | { | |
8894 | (arg1)->Offset((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
8895 | if (PyErr_Occurred()) SWIG_fail; | |
8896 | } | |
8897 | resultobj = SWIG_Py_Void(); | |
8898 | return resultobj; | |
8899 | fail: | |
8900 | return NULL; | |
8901 | } | |
8902 | ||
8903 | ||
8904 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8905 | PyObject *resultobj = 0; | |
8906 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8907 | wxAlphaPixelData *arg2 = 0 ; | |
8908 | int arg3 ; | |
8909 | void *argp1 = 0 ; | |
8910 | int res1 = 0 ; | |
8911 | void *argp2 = 0 ; | |
8912 | int res2 = 0 ; | |
8913 | int val3 ; | |
8914 | int ecode3 = 0 ; | |
8915 | PyObject * obj0 = 0 ; | |
8916 | PyObject * obj1 = 0 ; | |
8917 | PyObject * obj2 = 0 ; | |
8918 | char * kwnames[] = { | |
8919 | (char *) "self",(char *) "data",(char *) "x", NULL | |
8920 | }; | |
8921 | ||
8922 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetX",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8923 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8924 | if (!SWIG_IsOK(res1)) { | |
8925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8926 | } | |
8927 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8928 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8929 | if (!SWIG_IsOK(res2)) { | |
8930 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8931 | } | |
8932 | if (!argp2) { | |
8933 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8934 | } | |
8935 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8936 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8937 | if (!SWIG_IsOK(ecode3)) { | |
8938 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetX" "', expected argument " "3"" of type '" "int""'"); | |
8939 | } | |
8940 | arg3 = static_cast< int >(val3); | |
8941 | { | |
8942 | (arg1)->OffsetX((wxAlphaPixelData const &)*arg2,arg3); | |
8943 | if (PyErr_Occurred()) SWIG_fail; | |
8944 | } | |
8945 | resultobj = SWIG_Py_Void(); | |
8946 | return resultobj; | |
8947 | fail: | |
8948 | return NULL; | |
8949 | } | |
8950 | ||
8951 | ||
8952 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_OffsetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
8953 | PyObject *resultobj = 0; | |
8954 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
8955 | wxAlphaPixelData *arg2 = 0 ; | |
8956 | int arg3 ; | |
8957 | void *argp1 = 0 ; | |
8958 | int res1 = 0 ; | |
8959 | void *argp2 = 0 ; | |
8960 | int res2 = 0 ; | |
8961 | int val3 ; | |
8962 | int ecode3 = 0 ; | |
8963 | PyObject * obj0 = 0 ; | |
8964 | PyObject * obj1 = 0 ; | |
8965 | PyObject * obj2 = 0 ; | |
8966 | char * kwnames[] = { | |
8967 | (char *) "self",(char *) "data",(char *) "y", NULL | |
8968 | }; | |
8969 | ||
8970 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:AlphaPixelData_Accessor_OffsetY",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
8971 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
8972 | if (!SWIG_IsOK(res1)) { | |
8973 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
8974 | } | |
8975 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
8976 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
8977 | if (!SWIG_IsOK(res2)) { | |
8978 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8979 | } | |
8980 | if (!argp2) { | |
8981 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
8982 | } | |
8983 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
8984 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
8985 | if (!SWIG_IsOK(ecode3)) { | |
8986 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_OffsetY" "', expected argument " "3"" of type '" "int""'"); | |
8987 | } | |
8988 | arg3 = static_cast< int >(val3); | |
8989 | { | |
8990 | (arg1)->OffsetY((wxAlphaPixelData const &)*arg2,arg3); | |
8991 | if (PyErr_Occurred()) SWIG_fail; | |
8992 | } | |
8993 | resultobj = SWIG_Py_Void(); | |
8994 | return resultobj; | |
8995 | fail: | |
8996 | return NULL; | |
8997 | } | |
8998 | ||
8999 | ||
9000 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_MoveTo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9001 | PyObject *resultobj = 0; | |
9002 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
9003 | wxAlphaPixelData *arg2 = 0 ; | |
9004 | int arg3 ; | |
9005 | int arg4 ; | |
9006 | void *argp1 = 0 ; | |
9007 | int res1 = 0 ; | |
9008 | void *argp2 = 0 ; | |
9009 | int res2 = 0 ; | |
9010 | int val3 ; | |
9011 | int ecode3 = 0 ; | |
9012 | int val4 ; | |
9013 | int ecode4 = 0 ; | |
9014 | PyObject * obj0 = 0 ; | |
9015 | PyObject * obj1 = 0 ; | |
9016 | PyObject * obj2 = 0 ; | |
9017 | PyObject * obj3 = 0 ; | |
9018 | char * kwnames[] = { | |
9019 | (char *) "self",(char *) "data",(char *) "x",(char *) "y", NULL | |
9020 | }; | |
9021 | ||
9022 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:AlphaPixelData_Accessor_MoveTo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9023 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
9024 | if (!SWIG_IsOK(res1)) { | |
9025 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
9026 | } | |
9027 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
9028 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxAlphaPixelData, 0 | 0); | |
9029 | if (!SWIG_IsOK(res2)) { | |
9030 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
9031 | } | |
9032 | if (!argp2) { | |
9033 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "2"" of type '" "wxAlphaPixelData const &""'"); | |
9034 | } | |
9035 | arg2 = reinterpret_cast< wxAlphaPixelData * >(argp2); | |
9036 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9037 | if (!SWIG_IsOK(ecode3)) { | |
9038 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "3"" of type '" "int""'"); | |
9039 | } | |
9040 | arg3 = static_cast< int >(val3); | |
9041 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9042 | if (!SWIG_IsOK(ecode4)) { | |
9043 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_MoveTo" "', expected argument " "4"" of type '" "int""'"); | |
9044 | } | |
9045 | arg4 = static_cast< int >(val4); | |
9046 | { | |
9047 | (arg1)->MoveTo((wxAlphaPixelData const &)*arg2,arg3,arg4); | |
9048 | if (PyErr_Occurred()) SWIG_fail; | |
9049 | } | |
9050 | resultobj = SWIG_Py_Void(); | |
9051 | return resultobj; | |
9052 | fail: | |
9053 | return NULL; | |
9054 | } | |
9055 | ||
9056 | ||
9057 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9058 | PyObject *resultobj = 0; | |
9059 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; | |
9060 | byte arg2 ; | |
9061 | byte arg3 ; | |
9062 | byte arg4 ; | |
9063 | byte arg5 ; | |
9064 | void *argp1 = 0 ; | |
9065 | int res1 = 0 ; | |
9066 | unsigned char val2 ; | |
9067 | int ecode2 = 0 ; | |
9068 | unsigned char val3 ; | |
9069 | int ecode3 = 0 ; | |
9070 | unsigned char val4 ; | |
9071 | int ecode4 = 0 ; | |
9072 | unsigned char val5 ; | |
9073 | int ecode5 = 0 ; | |
9074 | PyObject * obj0 = 0 ; | |
9075 | PyObject * obj1 = 0 ; | |
9076 | PyObject * obj2 = 0 ; | |
9077 | PyObject * obj3 = 0 ; | |
9078 | PyObject * obj4 = 0 ; | |
9079 | char * kwnames[] = { | |
9080 | (char *) "self",(char *) "red",(char *) "green",(char *) "blue",(char *) "alpha", NULL | |
9081 | }; | |
9082 | ||
9083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:AlphaPixelData_Accessor_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
9084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
9085 | if (!SWIG_IsOK(res1)) { | |
9086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); | |
9087 | } | |
9088 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); | |
9089 | ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2); | |
9090 | if (!SWIG_IsOK(ecode2)) { | |
9091 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "2"" of type '" "byte""'"); | |
9092 | } | |
9093 | arg2 = static_cast< byte >(val2); | |
9094 | ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3); | |
9095 | if (!SWIG_IsOK(ecode3)) { | |
9096 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "3"" of type '" "byte""'"); | |
9097 | } | |
9098 | arg3 = static_cast< byte >(val3); | |
9099 | ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4); | |
9100 | if (!SWIG_IsOK(ecode4)) { | |
9101 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "4"" of type '" "byte""'"); | |
9102 | } | |
9103 | arg4 = static_cast< byte >(val4); | |
9104 | ecode5 = SWIG_AsVal_unsigned_SS_char(obj4, &val5); | |
9105 | if (!SWIG_IsOK(ecode5)) { | |
9106 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "AlphaPixelData_Accessor_Set" "', expected argument " "5"" of type '" "byte""'"); | |
9107 | } | |
9108 | arg5 = static_cast< byte >(val5); | |
9109 | { | |
9110 | wxAlphaPixelData_Accessor_Set(arg1,arg2,arg3,arg4,arg5); | |
9111 | if (PyErr_Occurred()) SWIG_fail; | |
554f62e9 | 9112 | } |
fc46b7f3 | 9113 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
9114 | return resultobj; |
9115 | fail: | |
9116 | return NULL; | |
9117 | } | |
9118 | ||
9119 | ||
fc46b7f3 | 9120 | SWIGINTERN PyObject *_wrap_AlphaPixelData_Accessor_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 9121 | PyObject *resultobj = 0; |
fc46b7f3 RD |
9122 | wxAlphaPixelData_Accessor *arg1 = (wxAlphaPixelData_Accessor *) 0 ; |
9123 | PyObject *result = 0 ; | |
554f62e9 RD |
9124 | void *argp1 = 0 ; |
9125 | int res1 = 0 ; | |
fc46b7f3 | 9126 | PyObject *swig_obj[1] ; |
554f62e9 | 9127 | |
fc46b7f3 RD |
9128 | if (!args) SWIG_fail; |
9129 | swig_obj[0] = args; | |
9130 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxAlphaPixelData_Accessor, 0 | 0 ); | |
554f62e9 | 9131 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 9132 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AlphaPixelData_Accessor_Get" "', expected argument " "1"" of type '" "wxAlphaPixelData_Accessor *""'"); |
554f62e9 | 9133 | } |
fc46b7f3 | 9134 | arg1 = reinterpret_cast< wxAlphaPixelData_Accessor * >(argp1); |
554f62e9 | 9135 | { |
fc46b7f3 | 9136 | result = (PyObject *)wxAlphaPixelData_Accessor_Get(arg1); |
554f62e9 RD |
9137 | if (PyErr_Occurred()) SWIG_fail; |
9138 | } | |
fc46b7f3 | 9139 | resultobj = result; |
554f62e9 RD |
9140 | return resultobj; |
9141 | fail: | |
9142 | return NULL; | |
d55e5bfc RD |
9143 | } |
9144 | ||
9145 | ||
fc46b7f3 | 9146 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
9147 | PyObject *obj; |
9148 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 9149 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAlphaPixelData_Accessor, SWIG_NewClientData(obj)); |
554f62e9 | 9150 | return SWIG_Py_Void(); |
d55e5bfc RD |
9151 | } |
9152 | ||
fc46b7f3 | 9153 | SWIGINTERN PyObject *AlphaPixelData_Accessor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 9154 | return SWIG_Python_InitShadowInstance(args); |
093d3ff1 RD |
9155 | } |
9156 | ||
554f62e9 RD |
9157 | SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9158 | PyObject *resultobj = 0; | |
9159 | wxBitmap *arg1 = 0 ; | |
9160 | wxColour const &arg2_defvalue = wxNullColour ; | |
9161 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
9162 | wxMask *result = 0 ; | |
9163 | void *argp1 = 0 ; | |
9164 | int res1 = 0 ; | |
9165 | wxColour temp2 ; | |
9166 | PyObject * obj0 = 0 ; | |
9167 | PyObject * obj1 = 0 ; | |
9168 | char * kwnames[] = { | |
9169 | (char *) "bitmap",(char *) "colour", NULL | |
9170 | }; | |
9171 | ||
9172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail; | |
9173 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9174 | if (!SWIG_IsOK(res1)) { | |
9175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9176 | } | |
9177 | if (!argp1) { | |
9178 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9179 | } | |
9180 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9181 | if (obj1) { | |
d55e5bfc | 9182 | { |
554f62e9 RD |
9183 | arg2 = &temp2; |
9184 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
d55e5bfc | 9185 | } |
554f62e9 RD |
9186 | } |
9187 | { | |
9188 | if (!wxPyCheckForApp()) SWIG_fail; | |
9189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9190 | result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2); | |
9191 | wxPyEndAllowThreads(__tstate); | |
9192 | if (PyErr_Occurred()) SWIG_fail; | |
9193 | } | |
9194 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 ); | |
9195 | return resultobj; | |
9196 | fail: | |
9197 | return NULL; | |
d55e5bfc RD |
9198 | } |
9199 | ||
9200 | ||
554f62e9 RD |
9201 | SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9202 | PyObject *resultobj = 0; | |
9203 | wxMask *arg1 = (wxMask *) 0 ; | |
9204 | void *argp1 = 0 ; | |
9205 | int res1 = 0 ; | |
9206 | PyObject *swig_obj[1] ; | |
9207 | ||
9208 | if (!args) SWIG_fail; | |
9209 | swig_obj[0] = args; | |
9210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 ); | |
9211 | if (!SWIG_IsOK(res1)) { | |
9212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'"); | |
9213 | } | |
9214 | arg1 = reinterpret_cast< wxMask * >(argp1); | |
9215 | { | |
554f62e9 | 9216 | delete arg1; |
d55e5bfc | 9217 | |
554f62e9 RD |
9218 | if (PyErr_Occurred()) SWIG_fail; |
9219 | } | |
9220 | resultobj = SWIG_Py_Void(); | |
9221 | return resultobj; | |
9222 | fail: | |
9223 | return NULL; | |
9224 | } | |
9225 | ||
9226 | ||
9227 | SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9228 | PyObject *obj; | |
9229 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9230 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj)); | |
9231 | return SWIG_Py_Void(); | |
9232 | } | |
9233 | ||
9234 | SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
9235 | return SWIG_Python_InitShadowInstance(args); | |
9236 | } | |
9237 | ||
9238 | SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9239 | PyObject *resultobj = 0; | |
9240 | wxString *arg1 = 0 ; | |
9241 | wxBitmapType arg2 ; | |
9242 | int arg3 = (int) -1 ; | |
9243 | int arg4 = (int) -1 ; | |
9244 | wxIcon *result = 0 ; | |
9245 | bool temp1 = false ; | |
9246 | int val2 ; | |
9247 | int ecode2 = 0 ; | |
9248 | int val3 ; | |
9249 | int ecode3 = 0 ; | |
9250 | int val4 ; | |
9251 | int ecode4 = 0 ; | |
9252 | PyObject * obj0 = 0 ; | |
9253 | PyObject * obj1 = 0 ; | |
9254 | PyObject * obj2 = 0 ; | |
9255 | PyObject * obj3 = 0 ; | |
9256 | char * kwnames[] = { | |
9257 | (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL | |
9258 | }; | |
9259 | ||
9260 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
9261 | { | |
9262 | arg1 = wxString_in_helper(obj0); | |
9263 | if (arg1 == NULL) SWIG_fail; | |
9264 | temp1 = true; | |
9265 | } | |
9266 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9267 | if (!SWIG_IsOK(ecode2)) { | |
9268 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'"); | |
9269 | } | |
9270 | arg2 = static_cast< wxBitmapType >(val2); | |
9271 | if (obj2) { | |
9272 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9273 | if (!SWIG_IsOK(ecode3)) { | |
9274 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'"); | |
9275 | } | |
9276 | arg3 = static_cast< int >(val3); | |
9277 | } | |
9278 | if (obj3) { | |
9279 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
9280 | if (!SWIG_IsOK(ecode4)) { | |
9281 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'"); | |
9282 | } | |
9283 | arg4 = static_cast< int >(val4); | |
9284 | } | |
9285 | { | |
9286 | if (!wxPyCheckForApp()) SWIG_fail; | |
9287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9288 | result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4); | |
9289 | wxPyEndAllowThreads(__tstate); | |
9290 | if (PyErr_Occurred()) SWIG_fail; | |
9291 | } | |
9292 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 ); | |
9293 | { | |
9294 | if (temp1) | |
9295 | delete arg1; | |
9296 | } | |
9297 | return resultobj; | |
9298 | fail: | |
9299 | { | |
9300 | if (temp1) | |
9301 | delete arg1; | |
9302 | } | |
9303 | return NULL; | |
d55e5bfc RD |
9304 | } |
9305 | ||
9306 | ||
554f62e9 RD |
9307 | SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9308 | PyObject *resultobj = 0; | |
9309 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9310 | void *argp1 = 0 ; | |
9311 | int res1 = 0 ; | |
9312 | PyObject *swig_obj[1] ; | |
9313 | ||
9314 | if (!args) SWIG_fail; | |
9315 | swig_obj[0] = args; | |
9316 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 ); | |
9317 | if (!SWIG_IsOK(res1)) { | |
9318 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9319 | } | |
9320 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9321 | { | |
9322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9323 | delete arg1; | |
d55e5bfc | 9324 | |
554f62e9 RD |
9325 | wxPyEndAllowThreads(__tstate); |
9326 | if (PyErr_Occurred()) SWIG_fail; | |
9327 | } | |
9328 | resultobj = SWIG_Py_Void(); | |
9329 | return resultobj; | |
9330 | fail: | |
9331 | return NULL; | |
d55e5bfc RD |
9332 | } |
9333 | ||
9334 | ||
554f62e9 RD |
9335 | SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9336 | PyObject *resultobj = 0; | |
9337 | wxIcon *result = 0 ; | |
9338 | ||
9339 | if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail; | |
9340 | { | |
9341 | if (!wxPyCheckForApp()) SWIG_fail; | |
9342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9343 | result = (wxIcon *)new wxIcon(); | |
9344 | wxPyEndAllowThreads(__tstate); | |
9345 | if (PyErr_Occurred()) SWIG_fail; | |
9346 | } | |
9347 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9348 | return resultobj; | |
9349 | fail: | |
9350 | return NULL; | |
9351 | } | |
9352 | ||
9353 | ||
9354 | SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9355 | PyObject *resultobj = 0; | |
9356 | wxIconLocation *arg1 = 0 ; | |
9357 | wxIcon *result = 0 ; | |
9358 | void *argp1 = 0 ; | |
9359 | int res1 = 0 ; | |
9360 | PyObject * obj0 = 0 ; | |
9361 | char * kwnames[] = { | |
9362 | (char *) "loc", NULL | |
9363 | }; | |
9364 | ||
9365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail; | |
9366 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0); | |
9367 | if (!SWIG_IsOK(res1)) { | |
9368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9369 | } | |
9370 | if (!argp1) { | |
9371 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'"); | |
9372 | } | |
9373 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9374 | { | |
9375 | if (!wxPyCheckForApp()) SWIG_fail; | |
9376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9377 | result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1); | |
9378 | wxPyEndAllowThreads(__tstate); | |
9379 | if (PyErr_Occurred()) SWIG_fail; | |
9380 | } | |
9381 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9382 | return resultobj; | |
9383 | fail: | |
9384 | return NULL; | |
9385 | } | |
9386 | ||
9387 | ||
9388 | SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9389 | PyObject *resultobj = 0; | |
9390 | wxBitmap *arg1 = 0 ; | |
9391 | wxIcon *result = 0 ; | |
9392 | void *argp1 = 0 ; | |
9393 | int res1 = 0 ; | |
9394 | PyObject * obj0 = 0 ; | |
9395 | char * kwnames[] = { | |
9396 | (char *) "bmp", NULL | |
9397 | }; | |
9398 | ||
9399 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail; | |
9400 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9401 | if (!SWIG_IsOK(res1)) { | |
9402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9403 | } | |
9404 | if (!argp1) { | |
9405 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
9406 | } | |
9407 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
9408 | { | |
9409 | if (!wxPyCheckForApp()) SWIG_fail; | |
9410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9411 | result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1); | |
9412 | wxPyEndAllowThreads(__tstate); | |
9413 | if (PyErr_Occurred()) SWIG_fail; | |
9414 | } | |
9415 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9416 | return resultobj; | |
9417 | fail: | |
9418 | return NULL; | |
d55e5bfc RD |
9419 | } |
9420 | ||
9421 | ||
554f62e9 RD |
9422 | SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9423 | PyObject *resultobj = 0; | |
9424 | PyObject *arg1 = (PyObject *) 0 ; | |
9425 | wxIcon *result = 0 ; | |
9426 | PyObject * obj0 = 0 ; | |
9427 | char * kwnames[] = { | |
9428 | (char *) "listOfStrings", NULL | |
9429 | }; | |
9430 | ||
9431 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail; | |
9432 | arg1 = obj0; | |
9433 | { | |
9434 | if (!wxPyCheckForApp()) SWIG_fail; | |
9435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9436 | result = (wxIcon *)new_wxIcon(arg1); | |
9437 | wxPyEndAllowThreads(__tstate); | |
9438 | if (PyErr_Occurred()) SWIG_fail; | |
9439 | } | |
9440 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
9441 | return resultobj; | |
9442 | fail: | |
9443 | return NULL; | |
9444 | } | |
9445 | ||
9446 | ||
9447 | SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9448 | PyObject *resultobj = 0; | |
9449 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9450 | wxString *arg2 = 0 ; | |
9451 | wxBitmapType arg3 ; | |
9452 | bool result; | |
9453 | void *argp1 = 0 ; | |
9454 | int res1 = 0 ; | |
9455 | bool temp2 = false ; | |
9456 | int val3 ; | |
9457 | int ecode3 = 0 ; | |
9458 | PyObject * obj0 = 0 ; | |
9459 | PyObject * obj1 = 0 ; | |
9460 | PyObject * obj2 = 0 ; | |
9461 | char * kwnames[] = { | |
9462 | (char *) "self",(char *) "name",(char *) "type", NULL | |
9463 | }; | |
9464 | ||
9465 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
9466 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9467 | if (!SWIG_IsOK(res1)) { | |
9468 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9469 | } | |
9470 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9471 | { | |
9472 | arg2 = wxString_in_helper(obj1); | |
9473 | if (arg2 == NULL) SWIG_fail; | |
9474 | temp2 = true; | |
9475 | } | |
9476 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
9477 | if (!SWIG_IsOK(ecode3)) { | |
9478 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'"); | |
9479 | } | |
9480 | arg3 = static_cast< wxBitmapType >(val3); | |
9481 | { | |
9482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9483 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3); | |
9484 | wxPyEndAllowThreads(__tstate); | |
9485 | if (PyErr_Occurred()) SWIG_fail; | |
9486 | } | |
9487 | { | |
9488 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9489 | } | |
9490 | { | |
9491 | if (temp2) | |
9492 | delete arg2; | |
9493 | } | |
9494 | return resultobj; | |
9495 | fail: | |
9496 | { | |
9497 | if (temp2) | |
9498 | delete arg2; | |
9499 | } | |
9500 | return NULL; | |
d55e5bfc RD |
9501 | } |
9502 | ||
9503 | ||
554f62e9 RD |
9504 | SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9505 | PyObject *resultobj = 0; | |
9506 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9507 | long result; | |
9508 | void *argp1 = 0 ; | |
9509 | int res1 = 0 ; | |
9510 | PyObject *swig_obj[1] ; | |
9511 | ||
9512 | if (!args) SWIG_fail; | |
9513 | swig_obj[0] = args; | |
9514 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9515 | if (!SWIG_IsOK(res1)) { | |
9516 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9517 | } | |
9518 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9519 | { | |
9520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9521 | result = (long)(arg1)->GetHandle(); | |
9522 | wxPyEndAllowThreads(__tstate); | |
9523 | if (PyErr_Occurred()) SWIG_fail; | |
9524 | } | |
9525 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
9526 | return resultobj; | |
9527 | fail: | |
9528 | return NULL; | |
9529 | } | |
9530 | ||
9531 | ||
9532 | SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9533 | PyObject *resultobj = 0; | |
9534 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9535 | long arg2 ; | |
9536 | void *argp1 = 0 ; | |
9537 | int res1 = 0 ; | |
9538 | long val2 ; | |
9539 | int ecode2 = 0 ; | |
9540 | PyObject * obj0 = 0 ; | |
9541 | PyObject * obj1 = 0 ; | |
9542 | char * kwnames[] = { | |
9543 | (char *) "self",(char *) "handle", NULL | |
9544 | }; | |
9545 | ||
9546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
9547 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9548 | if (!SWIG_IsOK(res1)) { | |
9549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9550 | } | |
9551 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9552 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
9553 | if (!SWIG_IsOK(ecode2)) { | |
9554 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
9555 | } | |
9556 | arg2 = static_cast< long >(val2); | |
9557 | { | |
9558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9559 | wxIcon_SetHandle(arg1,arg2); | |
9560 | wxPyEndAllowThreads(__tstate); | |
9561 | if (PyErr_Occurred()) SWIG_fail; | |
9562 | } | |
9563 | resultobj = SWIG_Py_Void(); | |
9564 | return resultobj; | |
9565 | fail: | |
9566 | return NULL; | |
d55e5bfc RD |
9567 | } |
9568 | ||
9569 | ||
b39fe951 | 9570 | SWIGINTERN PyObject *_wrap_Icon_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
9571 | PyObject *resultobj = 0; |
9572 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9573 | bool result; | |
9574 | void *argp1 = 0 ; | |
9575 | int res1 = 0 ; | |
9576 | PyObject *swig_obj[1] ; | |
9577 | ||
9578 | if (!args) SWIG_fail; | |
9579 | swig_obj[0] = args; | |
9580 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9581 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 9582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_IsOk" "', expected argument " "1"" of type '" "wxIcon *""'"); |
554f62e9 RD |
9583 | } |
9584 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9585 | { | |
9586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 9587 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
9588 | wxPyEndAllowThreads(__tstate); |
9589 | if (PyErr_Occurred()) SWIG_fail; | |
9590 | } | |
9591 | { | |
9592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9593 | } | |
9594 | return resultobj; | |
9595 | fail: | |
9596 | return NULL; | |
d55e5bfc RD |
9597 | } |
9598 | ||
9599 | ||
554f62e9 RD |
9600 | SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9601 | PyObject *resultobj = 0; | |
9602 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9603 | int result; | |
9604 | void *argp1 = 0 ; | |
9605 | int res1 = 0 ; | |
9606 | PyObject *swig_obj[1] ; | |
9607 | ||
9608 | if (!args) SWIG_fail; | |
9609 | swig_obj[0] = args; | |
9610 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9611 | if (!SWIG_IsOK(res1)) { | |
9612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9613 | } | |
9614 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9615 | { | |
9616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9617 | result = (int)(arg1)->GetWidth(); | |
9618 | wxPyEndAllowThreads(__tstate); | |
9619 | if (PyErr_Occurred()) SWIG_fail; | |
9620 | } | |
9621 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9622 | return resultobj; | |
9623 | fail: | |
9624 | return NULL; | |
c1cb24a4 RD |
9625 | } |
9626 | ||
9627 | ||
554f62e9 RD |
9628 | SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9629 | PyObject *resultobj = 0; | |
9630 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9631 | int result; | |
9632 | void *argp1 = 0 ; | |
9633 | int res1 = 0 ; | |
9634 | PyObject *swig_obj[1] ; | |
9635 | ||
9636 | if (!args) SWIG_fail; | |
9637 | swig_obj[0] = args; | |
9638 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9639 | if (!SWIG_IsOK(res1)) { | |
9640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9641 | } | |
9642 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9643 | { | |
9644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9645 | result = (int)(arg1)->GetHeight(); | |
9646 | wxPyEndAllowThreads(__tstate); | |
9647 | if (PyErr_Occurred()) SWIG_fail; | |
9648 | } | |
9649 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9650 | return resultobj; | |
9651 | fail: | |
9652 | return NULL; | |
c1cb24a4 RD |
9653 | } |
9654 | ||
9655 | ||
554f62e9 RD |
9656 | SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9657 | PyObject *resultobj = 0; | |
9658 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9659 | int result; | |
9660 | void *argp1 = 0 ; | |
9661 | int res1 = 0 ; | |
9662 | PyObject *swig_obj[1] ; | |
9663 | ||
9664 | if (!args) SWIG_fail; | |
9665 | swig_obj[0] = args; | |
9666 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9667 | if (!SWIG_IsOK(res1)) { | |
9668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9669 | } | |
9670 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9671 | { | |
9672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9673 | result = (int)(arg1)->GetDepth(); | |
9674 | wxPyEndAllowThreads(__tstate); | |
9675 | if (PyErr_Occurred()) SWIG_fail; | |
9676 | } | |
9677 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
9678 | return resultobj; | |
9679 | fail: | |
9680 | return NULL; | |
9681 | } | |
9682 | ||
9683 | ||
9684 | SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9685 | PyObject *resultobj = 0; | |
9686 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9687 | int arg2 ; | |
9688 | void *argp1 = 0 ; | |
9689 | int res1 = 0 ; | |
9690 | int val2 ; | |
9691 | int ecode2 = 0 ; | |
9692 | PyObject * obj0 = 0 ; | |
9693 | PyObject * obj1 = 0 ; | |
9694 | char * kwnames[] = { | |
9695 | (char *) "self",(char *) "w", NULL | |
9696 | }; | |
9697 | ||
9698 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9699 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9700 | if (!SWIG_IsOK(res1)) { | |
9701 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9702 | } | |
9703 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9704 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9705 | if (!SWIG_IsOK(ecode2)) { | |
9706 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
9707 | } | |
9708 | arg2 = static_cast< int >(val2); | |
9709 | { | |
9710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9711 | (arg1)->SetWidth(arg2); | |
9712 | wxPyEndAllowThreads(__tstate); | |
9713 | if (PyErr_Occurred()) SWIG_fail; | |
9714 | } | |
9715 | resultobj = SWIG_Py_Void(); | |
9716 | return resultobj; | |
9717 | fail: | |
9718 | return NULL; | |
9719 | } | |
9720 | ||
9721 | ||
9722 | SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9723 | PyObject *resultobj = 0; | |
9724 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9725 | int arg2 ; | |
9726 | void *argp1 = 0 ; | |
9727 | int res1 = 0 ; | |
9728 | int val2 ; | |
9729 | int ecode2 = 0 ; | |
9730 | PyObject * obj0 = 0 ; | |
9731 | PyObject * obj1 = 0 ; | |
9732 | char * kwnames[] = { | |
9733 | (char *) "self",(char *) "h", NULL | |
9734 | }; | |
9735 | ||
9736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
9737 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9738 | if (!SWIG_IsOK(res1)) { | |
9739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9740 | } | |
9741 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9742 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9743 | if (!SWIG_IsOK(ecode2)) { | |
9744 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
9745 | } | |
9746 | arg2 = static_cast< int >(val2); | |
9747 | { | |
9748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9749 | (arg1)->SetHeight(arg2); | |
9750 | wxPyEndAllowThreads(__tstate); | |
9751 | if (PyErr_Occurred()) SWIG_fail; | |
9752 | } | |
9753 | resultobj = SWIG_Py_Void(); | |
9754 | return resultobj; | |
9755 | fail: | |
9756 | return NULL; | |
9757 | } | |
9758 | ||
9759 | ||
9760 | SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9761 | PyObject *resultobj = 0; | |
9762 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9763 | int arg2 ; | |
9764 | void *argp1 = 0 ; | |
9765 | int res1 = 0 ; | |
9766 | int val2 ; | |
9767 | int ecode2 = 0 ; | |
9768 | PyObject * obj0 = 0 ; | |
9769 | PyObject * obj1 = 0 ; | |
9770 | char * kwnames[] = { | |
9771 | (char *) "self",(char *) "d", NULL | |
9772 | }; | |
9773 | ||
9774 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
9775 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9776 | if (!SWIG_IsOK(res1)) { | |
9777 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9778 | } | |
9779 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9780 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9781 | if (!SWIG_IsOK(ecode2)) { | |
9782 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
9783 | } | |
9784 | arg2 = static_cast< int >(val2); | |
9785 | { | |
9786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9787 | (arg1)->SetDepth(arg2); | |
9788 | wxPyEndAllowThreads(__tstate); | |
9789 | if (PyErr_Occurred()) SWIG_fail; | |
9790 | } | |
9791 | resultobj = SWIG_Py_Void(); | |
9792 | return resultobj; | |
9793 | fail: | |
9794 | return NULL; | |
9795 | } | |
9796 | ||
9797 | ||
9798 | SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9799 | PyObject *resultobj = 0; | |
9800 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9801 | wxSize *arg2 = 0 ; | |
9802 | void *argp1 = 0 ; | |
9803 | int res1 = 0 ; | |
9804 | wxSize temp2 ; | |
9805 | PyObject * obj0 = 0 ; | |
9806 | PyObject * obj1 = 0 ; | |
9807 | char * kwnames[] = { | |
9808 | (char *) "self",(char *) "size", NULL | |
9809 | }; | |
9810 | ||
9811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
9812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9813 | if (!SWIG_IsOK(res1)) { | |
9814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9815 | } | |
9816 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9817 | { | |
9818 | arg2 = &temp2; | |
9819 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
9820 | } | |
9821 | { | |
9822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9823 | (arg1)->SetSize((wxSize const &)*arg2); | |
9824 | wxPyEndAllowThreads(__tstate); | |
9825 | if (PyErr_Occurred()) SWIG_fail; | |
9826 | } | |
9827 | resultobj = SWIG_Py_Void(); | |
9828 | return resultobj; | |
9829 | fail: | |
9830 | return NULL; | |
9831 | } | |
9832 | ||
9833 | ||
9834 | SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9835 | PyObject *resultobj = 0; | |
9836 | wxIcon *arg1 = (wxIcon *) 0 ; | |
9837 | wxBitmap *arg2 = 0 ; | |
9838 | void *argp1 = 0 ; | |
9839 | int res1 = 0 ; | |
9840 | void *argp2 = 0 ; | |
9841 | int res2 = 0 ; | |
9842 | PyObject * obj0 = 0 ; | |
9843 | PyObject * obj1 = 0 ; | |
9844 | char * kwnames[] = { | |
9845 | (char *) "self",(char *) "bmp", NULL | |
9846 | }; | |
9847 | ||
9848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
9849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 ); | |
9850 | if (!SWIG_IsOK(res1)) { | |
9851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'"); | |
9852 | } | |
9853 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
9854 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
9855 | if (!SWIG_IsOK(res2)) { | |
9856 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9857 | } | |
9858 | if (!argp2) { | |
9859 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
9860 | } | |
9861 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
9862 | { | |
9863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9864 | (arg1)->CopyFromBitmap((wxBitmap const &)*arg2); | |
9865 | wxPyEndAllowThreads(__tstate); | |
9866 | if (PyErr_Occurred()) SWIG_fail; | |
9867 | } | |
9868 | resultobj = SWIG_Py_Void(); | |
9869 | return resultobj; | |
9870 | fail: | |
9871 | return NULL; | |
d55e5bfc RD |
9872 | } |
9873 | ||
9874 | ||
554f62e9 RD |
9875 | SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9876 | PyObject *obj; | |
9877 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
9878 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj)); | |
9879 | return SWIG_Py_Void(); | |
d55e5bfc RD |
9880 | } |
9881 | ||
554f62e9 RD |
9882 | SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9883 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
9884 | } |
9885 | ||
554f62e9 RD |
9886 | SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
9887 | PyObject *resultobj = 0; | |
9888 | wxString *arg1 = (wxString *) &wxPyEmptyString ; | |
9889 | int arg2 = (int) 0 ; | |
9890 | wxIconLocation *result = 0 ; | |
9891 | bool temp1 = false ; | |
9892 | int val2 ; | |
9893 | int ecode2 = 0 ; | |
9894 | PyObject * obj0 = 0 ; | |
9895 | PyObject * obj1 = 0 ; | |
9896 | char * kwnames[] = { | |
9897 | (char *) "filename",(char *) "num", NULL | |
9898 | }; | |
9899 | ||
9900 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail; | |
9901 | if (obj0) { | |
d55e5bfc | 9902 | { |
554f62e9 RD |
9903 | arg1 = wxString_in_helper(obj0); |
9904 | if (arg1 == NULL) SWIG_fail; | |
9905 | temp1 = true; | |
d55e5bfc | 9906 | } |
554f62e9 RD |
9907 | } |
9908 | if (obj1) { | |
9909 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
9910 | if (!SWIG_IsOK(ecode2)) { | |
9911 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'"); | |
9912 | } | |
9913 | arg2 = static_cast< int >(val2); | |
9914 | } | |
9915 | { | |
9916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9917 | result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2); | |
9918 | wxPyEndAllowThreads(__tstate); | |
9919 | if (PyErr_Occurred()) SWIG_fail; | |
9920 | } | |
9921 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 ); | |
9922 | { | |
9923 | if (temp1) | |
9924 | delete arg1; | |
9925 | } | |
9926 | return resultobj; | |
9927 | fail: | |
9928 | { | |
9929 | if (temp1) | |
9930 | delete arg1; | |
9931 | } | |
9932 | return NULL; | |
d55e5bfc RD |
9933 | } |
9934 | ||
9935 | ||
554f62e9 RD |
9936 | SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9937 | PyObject *resultobj = 0; | |
9938 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9939 | void *argp1 = 0 ; | |
9940 | int res1 = 0 ; | |
9941 | PyObject *swig_obj[1] ; | |
9942 | ||
9943 | if (!args) SWIG_fail; | |
9944 | swig_obj[0] = args; | |
9945 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 ); | |
9946 | if (!SWIG_IsOK(res1)) { | |
9947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
9948 | } | |
9949 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9950 | { | |
9951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9952 | delete arg1; | |
d55e5bfc | 9953 | |
554f62e9 RD |
9954 | wxPyEndAllowThreads(__tstate); |
9955 | if (PyErr_Occurred()) SWIG_fail; | |
9956 | } | |
9957 | resultobj = SWIG_Py_Void(); | |
9958 | return resultobj; | |
9959 | fail: | |
9960 | return NULL; | |
d55e5bfc RD |
9961 | } |
9962 | ||
9963 | ||
554f62e9 RD |
9964 | SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
9965 | PyObject *resultobj = 0; | |
9966 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9967 | bool result; | |
9968 | void *argp1 = 0 ; | |
9969 | int res1 = 0 ; | |
9970 | PyObject *swig_obj[1] ; | |
9971 | ||
9972 | if (!args) SWIG_fail; | |
9973 | swig_obj[0] = args; | |
9974 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
9975 | if (!SWIG_IsOK(res1)) { | |
9976 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
9977 | } | |
9978 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
9979 | { | |
9980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9981 | result = (bool)((wxIconLocation const *)arg1)->IsOk(); | |
9982 | wxPyEndAllowThreads(__tstate); | |
9983 | if (PyErr_Occurred()) SWIG_fail; | |
9984 | } | |
9985 | { | |
9986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9987 | } | |
9988 | return resultobj; | |
9989 | fail: | |
9990 | return NULL; | |
9991 | } | |
9992 | ||
9993 | ||
9994 | SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
9995 | PyObject *resultobj = 0; | |
9996 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
9997 | wxString *arg2 = 0 ; | |
9998 | void *argp1 = 0 ; | |
9999 | int res1 = 0 ; | |
10000 | bool temp2 = false ; | |
10001 | PyObject * obj0 = 0 ; | |
10002 | PyObject * obj1 = 0 ; | |
10003 | char * kwnames[] = { | |
10004 | (char *) "self",(char *) "filename", NULL | |
10005 | }; | |
10006 | ||
10007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail; | |
10008 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
10009 | if (!SWIG_IsOK(res1)) { | |
10010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
10011 | } | |
10012 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
10013 | { | |
10014 | arg2 = wxString_in_helper(obj1); | |
10015 | if (arg2 == NULL) SWIG_fail; | |
10016 | temp2 = true; | |
10017 | } | |
10018 | { | |
10019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10020 | (arg1)->SetFileName((wxString const &)*arg2); | |
10021 | wxPyEndAllowThreads(__tstate); | |
10022 | if (PyErr_Occurred()) SWIG_fail; | |
10023 | } | |
10024 | resultobj = SWIG_Py_Void(); | |
10025 | { | |
10026 | if (temp2) | |
10027 | delete arg2; | |
10028 | } | |
10029 | return resultobj; | |
10030 | fail: | |
10031 | { | |
10032 | if (temp2) | |
10033 | delete arg2; | |
10034 | } | |
10035 | return NULL; | |
d55e5bfc RD |
10036 | } |
10037 | ||
10038 | ||
554f62e9 RD |
10039 | SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10040 | PyObject *resultobj = 0; | |
10041 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
10042 | wxString *result = 0 ; | |
10043 | void *argp1 = 0 ; | |
10044 | int res1 = 0 ; | |
10045 | PyObject *swig_obj[1] ; | |
10046 | ||
10047 | if (!args) SWIG_fail; | |
10048 | swig_obj[0] = args; | |
10049 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
10050 | if (!SWIG_IsOK(res1)) { | |
10051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'"); | |
10052 | } | |
10053 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
10054 | { | |
10055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 10056 | { |
554f62e9 RD |
10057 | wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName(); |
10058 | result = (wxString *) &_result_ref; | |
093d3ff1 | 10059 | } |
554f62e9 RD |
10060 | wxPyEndAllowThreads(__tstate); |
10061 | if (PyErr_Occurred()) SWIG_fail; | |
10062 | } | |
10063 | { | |
10064 | #if wxUSE_UNICODE | |
10065 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
10066 | #else | |
10067 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
10068 | #endif | |
10069 | } | |
10070 | return resultobj; | |
10071 | fail: | |
10072 | return NULL; | |
10073 | } | |
10074 | ||
10075 | ||
10076 | SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10077 | PyObject *resultobj = 0; | |
10078 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
10079 | int arg2 ; | |
10080 | void *argp1 = 0 ; | |
10081 | int res1 = 0 ; | |
10082 | int val2 ; | |
10083 | int ecode2 = 0 ; | |
10084 | PyObject * obj0 = 0 ; | |
10085 | PyObject * obj1 = 0 ; | |
10086 | char * kwnames[] = { | |
10087 | (char *) "self",(char *) "num", NULL | |
10088 | }; | |
10089 | ||
10090 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail; | |
10091 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
10092 | if (!SWIG_IsOK(res1)) { | |
10093 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
10094 | } | |
10095 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
10096 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10097 | if (!SWIG_IsOK(ecode2)) { | |
10098 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'"); | |
10099 | } | |
10100 | arg2 = static_cast< int >(val2); | |
10101 | { | |
10102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10103 | wxIconLocation_SetIndex(arg1,arg2); | |
10104 | wxPyEndAllowThreads(__tstate); | |
10105 | if (PyErr_Occurred()) SWIG_fail; | |
10106 | } | |
10107 | resultobj = SWIG_Py_Void(); | |
10108 | return resultobj; | |
10109 | fail: | |
10110 | return NULL; | |
d55e5bfc RD |
10111 | } |
10112 | ||
10113 | ||
554f62e9 RD |
10114 | SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10115 | PyObject *resultobj = 0; | |
10116 | wxIconLocation *arg1 = (wxIconLocation *) 0 ; | |
10117 | int result; | |
10118 | void *argp1 = 0 ; | |
10119 | int res1 = 0 ; | |
10120 | PyObject *swig_obj[1] ; | |
10121 | ||
10122 | if (!args) SWIG_fail; | |
10123 | swig_obj[0] = args; | |
10124 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 ); | |
10125 | if (!SWIG_IsOK(res1)) { | |
10126 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'"); | |
10127 | } | |
10128 | arg1 = reinterpret_cast< wxIconLocation * >(argp1); | |
10129 | { | |
10130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10131 | result = (int)wxIconLocation_GetIndex(arg1); | |
10132 | wxPyEndAllowThreads(__tstate); | |
10133 | if (PyErr_Occurred()) SWIG_fail; | |
10134 | } | |
10135 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10136 | return resultobj; | |
10137 | fail: | |
10138 | return NULL; | |
d55e5bfc RD |
10139 | } |
10140 | ||
10141 | ||
554f62e9 RD |
10142 | SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10143 | PyObject *obj; | |
10144 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10145 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj)); | |
10146 | return SWIG_Py_Void(); | |
d55e5bfc RD |
10147 | } |
10148 | ||
554f62e9 RD |
10149 | SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10150 | return SWIG_Python_InitShadowInstance(args); | |
10151 | } | |
d55e5bfc | 10152 | |
554f62e9 RD |
10153 | SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10154 | PyObject *resultobj = 0; | |
10155 | wxIconBundle *result = 0 ; | |
10156 | ||
10157 | if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail; | |
10158 | { | |
10159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10160 | result = (wxIconBundle *)new wxIconBundle(); | |
10161 | wxPyEndAllowThreads(__tstate); | |
10162 | if (PyErr_Occurred()) SWIG_fail; | |
10163 | } | |
10164 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 ); | |
10165 | return resultobj; | |
10166 | fail: | |
10167 | return NULL; | |
10168 | } | |
10169 | ||
10170 | ||
10171 | SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10172 | PyObject *resultobj = 0; | |
10173 | wxString *arg1 = 0 ; | |
10174 | long arg2 ; | |
10175 | wxIconBundle *result = 0 ; | |
10176 | bool temp1 = false ; | |
10177 | long val2 ; | |
10178 | int ecode2 = 0 ; | |
10179 | PyObject * obj0 = 0 ; | |
10180 | PyObject * obj1 = 0 ; | |
10181 | char * kwnames[] = { | |
10182 | (char *) "file",(char *) "type", NULL | |
10183 | }; | |
10184 | ||
10185 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail; | |
10186 | { | |
10187 | arg1 = wxString_in_helper(obj0); | |
10188 | if (arg1 == NULL) SWIG_fail; | |
10189 | temp1 = true; | |
10190 | } | |
10191 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10192 | if (!SWIG_IsOK(ecode2)) { | |
10193 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'"); | |
10194 | } | |
10195 | arg2 = static_cast< long >(val2); | |
10196 | { | |
10197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10198 | result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2); | |
10199 | wxPyEndAllowThreads(__tstate); | |
10200 | if (PyErr_Occurred()) SWIG_fail; | |
10201 | } | |
10202 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
10203 | { | |
10204 | if (temp1) | |
10205 | delete arg1; | |
10206 | } | |
10207 | return resultobj; | |
10208 | fail: | |
10209 | { | |
10210 | if (temp1) | |
10211 | delete arg1; | |
10212 | } | |
10213 | return NULL; | |
d55e5bfc RD |
10214 | } |
10215 | ||
10216 | ||
554f62e9 RD |
10217 | SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
10218 | PyObject *resultobj = 0; | |
10219 | wxIcon *arg1 = 0 ; | |
10220 | wxIconBundle *result = 0 ; | |
10221 | void *argp1 = 0 ; | |
10222 | int res1 = 0 ; | |
10223 | PyObject * obj0 = 0 ; | |
10224 | char * kwnames[] = { | |
10225 | (char *) "icon", NULL | |
10226 | }; | |
10227 | ||
10228 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail; | |
10229 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0); | |
10230 | if (!SWIG_IsOK(res1)) { | |
10231 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
10232 | } | |
10233 | if (!argp1) { | |
10234 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'"); | |
10235 | } | |
10236 | arg1 = reinterpret_cast< wxIcon * >(argp1); | |
10237 | { | |
10238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10239 | result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1); | |
10240 | wxPyEndAllowThreads(__tstate); | |
10241 | if (PyErr_Occurred()) SWIG_fail; | |
10242 | } | |
10243 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 ); | |
10244 | return resultobj; | |
10245 | fail: | |
10246 | return NULL; | |
d55e5bfc RD |
10247 | } |
10248 | ||
10249 | ||
554f62e9 RD |
10250 | SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10251 | PyObject *resultobj = 0; | |
10252 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10253 | void *argp1 = 0 ; | |
10254 | int res1 = 0 ; | |
10255 | PyObject *swig_obj[1] ; | |
10256 | ||
10257 | if (!args) SWIG_fail; | |
10258 | swig_obj[0] = args; | |
10259 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 ); | |
10260 | if (!SWIG_IsOK(res1)) { | |
10261 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10262 | } | |
10263 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10264 | { | |
10265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10266 | delete arg1; | |
d55e5bfc | 10267 | |
554f62e9 RD |
10268 | wxPyEndAllowThreads(__tstate); |
10269 | if (PyErr_Occurred()) SWIG_fail; | |
10270 | } | |
10271 | resultobj = SWIG_Py_Void(); | |
10272 | return resultobj; | |
10273 | fail: | |
10274 | return NULL; | |
10275 | } | |
10276 | ||
10277 | ||
10278 | SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10279 | PyObject *resultobj = 0; | |
10280 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10281 | wxIcon *arg2 = 0 ; | |
10282 | void *argp1 = 0 ; | |
10283 | int res1 = 0 ; | |
10284 | void *argp2 = 0 ; | |
10285 | int res2 = 0 ; | |
10286 | PyObject * obj0 = 0 ; | |
10287 | PyObject * obj1 = 0 ; | |
10288 | char * kwnames[] = { | |
10289 | (char *) "self",(char *) "icon", NULL | |
10290 | }; | |
10291 | ||
10292 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
10293 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10294 | if (!SWIG_IsOK(res1)) { | |
10295 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10296 | } | |
10297 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10298 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
10299 | if (!SWIG_IsOK(res2)) { | |
10300 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10301 | } | |
10302 | if (!argp2) { | |
10303 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
10304 | } | |
10305 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
10306 | { | |
10307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10308 | (arg1)->AddIcon((wxIcon const &)*arg2); | |
10309 | wxPyEndAllowThreads(__tstate); | |
10310 | if (PyErr_Occurred()) SWIG_fail; | |
10311 | } | |
10312 | resultobj = SWIG_Py_Void(); | |
10313 | return resultobj; | |
10314 | fail: | |
10315 | return NULL; | |
10316 | } | |
10317 | ||
10318 | ||
10319 | SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10320 | PyObject *resultobj = 0; | |
10321 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10322 | wxString *arg2 = 0 ; | |
10323 | long arg3 ; | |
10324 | void *argp1 = 0 ; | |
10325 | int res1 = 0 ; | |
10326 | bool temp2 = false ; | |
10327 | long val3 ; | |
10328 | int ecode3 = 0 ; | |
10329 | PyObject * obj0 = 0 ; | |
10330 | PyObject * obj1 = 0 ; | |
10331 | PyObject * obj2 = 0 ; | |
10332 | char * kwnames[] = { | |
10333 | (char *) "self",(char *) "file",(char *) "type", NULL | |
10334 | }; | |
10335 | ||
10336 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
10337 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10338 | if (!SWIG_IsOK(res1)) { | |
10339 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'"); | |
10340 | } | |
10341 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10342 | { | |
10343 | arg2 = wxString_in_helper(obj1); | |
10344 | if (arg2 == NULL) SWIG_fail; | |
10345 | temp2 = true; | |
10346 | } | |
10347 | ecode3 = SWIG_AsVal_long(obj2, &val3); | |
10348 | if (!SWIG_IsOK(ecode3)) { | |
10349 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'"); | |
10350 | } | |
10351 | arg3 = static_cast< long >(val3); | |
10352 | { | |
10353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10354 | (arg1)->AddIcon((wxString const &)*arg2,arg3); | |
10355 | wxPyEndAllowThreads(__tstate); | |
10356 | if (PyErr_Occurred()) SWIG_fail; | |
10357 | } | |
10358 | resultobj = SWIG_Py_Void(); | |
10359 | { | |
10360 | if (temp2) | |
10361 | delete arg2; | |
10362 | } | |
10363 | return resultobj; | |
10364 | fail: | |
10365 | { | |
10366 | if (temp2) | |
10367 | delete arg2; | |
10368 | } | |
10369 | return NULL; | |
10370 | } | |
10371 | ||
10372 | ||
10373 | SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10374 | PyObject *resultobj = 0; | |
10375 | wxIconBundle *arg1 = (wxIconBundle *) 0 ; | |
10376 | wxSize *arg2 = 0 ; | |
10377 | wxIcon *result = 0 ; | |
10378 | void *argp1 = 0 ; | |
10379 | int res1 = 0 ; | |
10380 | wxSize temp2 ; | |
10381 | PyObject * obj0 = 0 ; | |
10382 | PyObject * obj1 = 0 ; | |
10383 | char * kwnames[] = { | |
10384 | (char *) "self",(char *) "size", NULL | |
10385 | }; | |
10386 | ||
10387 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
10388 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 ); | |
10389 | if (!SWIG_IsOK(res1)) { | |
10390 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'"); | |
10391 | } | |
10392 | arg1 = reinterpret_cast< wxIconBundle * >(argp1); | |
10393 | { | |
10394 | arg2 = &temp2; | |
10395 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10396 | } | |
10397 | { | |
10398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d55e5bfc | 10399 | { |
554f62e9 RD |
10400 | wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2); |
10401 | result = (wxIcon *) &_result_ref; | |
d55e5bfc | 10402 | } |
554f62e9 RD |
10403 | wxPyEndAllowThreads(__tstate); |
10404 | if (PyErr_Occurred()) SWIG_fail; | |
10405 | } | |
10406 | { | |
10407 | wxIcon* resultptr = new wxIcon(*result); | |
10408 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1); | |
10409 | } | |
10410 | return resultobj; | |
10411 | fail: | |
10412 | return NULL; | |
10413 | } | |
10414 | ||
10415 | ||
10416 | SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10417 | PyObject *obj; | |
10418 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10419 | SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj)); | |
10420 | return SWIG_Py_Void(); | |
10421 | } | |
10422 | ||
10423 | SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10424 | return SWIG_Python_InitShadowInstance(args); | |
10425 | } | |
10426 | ||
10427 | SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10428 | PyObject *resultobj = 0; | |
10429 | wxString *arg1 = 0 ; | |
10430 | long arg2 ; | |
10431 | int arg3 = (int) 0 ; | |
10432 | int arg4 = (int) 0 ; | |
10433 | wxCursor *result = 0 ; | |
10434 | bool temp1 = false ; | |
10435 | long val2 ; | |
10436 | int ecode2 = 0 ; | |
10437 | int val3 ; | |
10438 | int ecode3 = 0 ; | |
10439 | int val4 ; | |
10440 | int ecode4 = 0 ; | |
10441 | PyObject * obj0 = 0 ; | |
10442 | PyObject * obj1 = 0 ; | |
10443 | PyObject * obj2 = 0 ; | |
10444 | PyObject * obj3 = 0 ; | |
10445 | char * kwnames[] = { | |
10446 | (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL | |
10447 | }; | |
10448 | ||
10449 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10450 | { | |
10451 | arg1 = wxString_in_helper(obj0); | |
10452 | if (arg1 == NULL) SWIG_fail; | |
10453 | temp1 = true; | |
10454 | } | |
10455 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10456 | if (!SWIG_IsOK(ecode2)) { | |
10457 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'"); | |
10458 | } | |
10459 | arg2 = static_cast< long >(val2); | |
10460 | if (obj2) { | |
10461 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10462 | if (!SWIG_IsOK(ecode3)) { | |
10463 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'"); | |
10464 | } | |
10465 | arg3 = static_cast< int >(val3); | |
10466 | } | |
10467 | if (obj3) { | |
10468 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10469 | if (!SWIG_IsOK(ecode4)) { | |
10470 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'"); | |
10471 | } | |
10472 | arg4 = static_cast< int >(val4); | |
10473 | } | |
10474 | { | |
10475 | if (!wxPyCheckForApp()) SWIG_fail; | |
10476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10477 | result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4); | |
10478 | wxPyEndAllowThreads(__tstate); | |
10479 | if (PyErr_Occurred()) SWIG_fail; | |
10480 | } | |
10481 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 ); | |
10482 | { | |
10483 | if (temp1) | |
10484 | delete arg1; | |
10485 | } | |
10486 | return resultobj; | |
10487 | fail: | |
10488 | { | |
10489 | if (temp1) | |
10490 | delete arg1; | |
10491 | } | |
10492 | return NULL; | |
d55e5bfc RD |
10493 | } |
10494 | ||
10495 | ||
554f62e9 RD |
10496 | SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10497 | PyObject *resultobj = 0; | |
10498 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10499 | void *argp1 = 0 ; | |
10500 | int res1 = 0 ; | |
10501 | PyObject *swig_obj[1] ; | |
10502 | ||
10503 | if (!args) SWIG_fail; | |
10504 | swig_obj[0] = args; | |
10505 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 ); | |
10506 | if (!SWIG_IsOK(res1)) { | |
10507 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10508 | } | |
10509 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10510 | { | |
10511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10512 | delete arg1; | |
d55e5bfc | 10513 | |
554f62e9 RD |
10514 | wxPyEndAllowThreads(__tstate); |
10515 | if (PyErr_Occurred()) SWIG_fail; | |
10516 | } | |
10517 | resultobj = SWIG_Py_Void(); | |
10518 | return resultobj; | |
10519 | fail: | |
10520 | return NULL; | |
10521 | } | |
10522 | ||
10523 | ||
10524 | SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10525 | PyObject *resultobj = 0; | |
10526 | int arg1 ; | |
10527 | wxCursor *result = 0 ; | |
10528 | int val1 ; | |
10529 | int ecode1 = 0 ; | |
10530 | PyObject * obj0 = 0 ; | |
10531 | char * kwnames[] = { | |
10532 | (char *) "id", NULL | |
10533 | }; | |
10534 | ||
10535 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail; | |
10536 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10537 | if (!SWIG_IsOK(ecode1)) { | |
10538 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'"); | |
10539 | } | |
10540 | arg1 = static_cast< int >(val1); | |
10541 | { | |
10542 | if (!wxPyCheckForApp()) SWIG_fail; | |
10543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10544 | result = (wxCursor *)new wxCursor(arg1); | |
10545 | wxPyEndAllowThreads(__tstate); | |
10546 | if (PyErr_Occurred()) SWIG_fail; | |
10547 | } | |
10548 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10549 | return resultobj; | |
10550 | fail: | |
10551 | return NULL; | |
10552 | } | |
10553 | ||
10554 | ||
10555 | SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10556 | PyObject *resultobj = 0; | |
10557 | wxImage *arg1 = 0 ; | |
10558 | wxCursor *result = 0 ; | |
10559 | void *argp1 = 0 ; | |
10560 | int res1 = 0 ; | |
10561 | PyObject * obj0 = 0 ; | |
10562 | char * kwnames[] = { | |
10563 | (char *) "image", NULL | |
10564 | }; | |
10565 | ||
10566 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail; | |
10567 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0); | |
10568 | if (!SWIG_IsOK(res1)) { | |
10569 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10570 | } | |
10571 | if (!argp1) { | |
10572 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'"); | |
10573 | } | |
10574 | arg1 = reinterpret_cast< wxImage * >(argp1); | |
10575 | { | |
10576 | if (!wxPyCheckForApp()) SWIG_fail; | |
10577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10578 | result = (wxCursor *)new wxCursor((wxImage const &)*arg1); | |
10579 | wxPyEndAllowThreads(__tstate); | |
10580 | if (PyErr_Occurred()) SWIG_fail; | |
10581 | } | |
10582 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 ); | |
10583 | return resultobj; | |
10584 | fail: | |
10585 | return NULL; | |
d55e5bfc RD |
10586 | } |
10587 | ||
10588 | ||
554f62e9 RD |
10589 | SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10590 | PyObject *resultobj = 0; | |
10591 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10592 | long result; | |
10593 | void *argp1 = 0 ; | |
10594 | int res1 = 0 ; | |
10595 | PyObject *swig_obj[1] ; | |
10596 | ||
10597 | if (!args) SWIG_fail; | |
10598 | swig_obj[0] = args; | |
10599 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10600 | if (!SWIG_IsOK(res1)) { | |
10601 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10602 | } | |
10603 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10604 | { | |
10605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10606 | result = (long)(arg1)->GetHandle(); | |
10607 | wxPyEndAllowThreads(__tstate); | |
10608 | if (PyErr_Occurred()) SWIG_fail; | |
10609 | } | |
10610 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
10611 | return resultobj; | |
10612 | fail: | |
10613 | return NULL; | |
10614 | } | |
10615 | ||
10616 | ||
10617 | SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10618 | PyObject *resultobj = 0; | |
10619 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10620 | long arg2 ; | |
10621 | void *argp1 = 0 ; | |
10622 | int res1 = 0 ; | |
10623 | long val2 ; | |
10624 | int ecode2 = 0 ; | |
10625 | PyObject * obj0 = 0 ; | |
10626 | PyObject * obj1 = 0 ; | |
10627 | char * kwnames[] = { | |
10628 | (char *) "self",(char *) "handle", NULL | |
10629 | }; | |
10630 | ||
10631 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail; | |
10632 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10633 | if (!SWIG_IsOK(res1)) { | |
10634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10635 | } | |
10636 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10637 | ecode2 = SWIG_AsVal_long(obj1, &val2); | |
10638 | if (!SWIG_IsOK(ecode2)) { | |
10639 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'"); | |
10640 | } | |
10641 | arg2 = static_cast< long >(val2); | |
10642 | { | |
10643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10644 | wxCursor_SetHandle(arg1,arg2); | |
10645 | wxPyEndAllowThreads(__tstate); | |
10646 | if (PyErr_Occurred()) SWIG_fail; | |
10647 | } | |
10648 | resultobj = SWIG_Py_Void(); | |
10649 | return resultobj; | |
10650 | fail: | |
10651 | return NULL; | |
d55e5bfc RD |
10652 | } |
10653 | ||
10654 | ||
b39fe951 | 10655 | SWIGINTERN PyObject *_wrap_Cursor_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
10656 | PyObject *resultobj = 0; |
10657 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10658 | bool result; | |
10659 | void *argp1 = 0 ; | |
10660 | int res1 = 0 ; | |
10661 | PyObject *swig_obj[1] ; | |
10662 | ||
10663 | if (!args) SWIG_fail; | |
10664 | swig_obj[0] = args; | |
10665 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10666 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 10667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_IsOk" "', expected argument " "1"" of type '" "wxCursor *""'"); |
554f62e9 RD |
10668 | } |
10669 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10670 | { | |
10671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 10672 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
10673 | wxPyEndAllowThreads(__tstate); |
10674 | if (PyErr_Occurred()) SWIG_fail; | |
10675 | } | |
10676 | { | |
10677 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10678 | } | |
10679 | return resultobj; | |
10680 | fail: | |
10681 | return NULL; | |
d55e5bfc RD |
10682 | } |
10683 | ||
10684 | ||
554f62e9 RD |
10685 | SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10686 | PyObject *resultobj = 0; | |
10687 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10688 | int result; | |
10689 | void *argp1 = 0 ; | |
10690 | int res1 = 0 ; | |
10691 | PyObject *swig_obj[1] ; | |
10692 | ||
10693 | if (!args) SWIG_fail; | |
10694 | swig_obj[0] = args; | |
10695 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10696 | if (!SWIG_IsOK(res1)) { | |
10697 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10698 | } | |
10699 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10700 | { | |
10701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10702 | result = (int)(arg1)->GetWidth(); | |
10703 | wxPyEndAllowThreads(__tstate); | |
10704 | if (PyErr_Occurred()) SWIG_fail; | |
10705 | } | |
10706 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10707 | return resultobj; | |
10708 | fail: | |
10709 | return NULL; | |
d55e5bfc RD |
10710 | } |
10711 | ||
10712 | ||
554f62e9 RD |
10713 | SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10714 | PyObject *resultobj = 0; | |
10715 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10716 | int result; | |
10717 | void *argp1 = 0 ; | |
10718 | int res1 = 0 ; | |
10719 | PyObject *swig_obj[1] ; | |
10720 | ||
10721 | if (!args) SWIG_fail; | |
10722 | swig_obj[0] = args; | |
10723 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10724 | if (!SWIG_IsOK(res1)) { | |
10725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10726 | } | |
10727 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10728 | { | |
10729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10730 | result = (int)(arg1)->GetHeight(); | |
10731 | wxPyEndAllowThreads(__tstate); | |
10732 | if (PyErr_Occurred()) SWIG_fail; | |
10733 | } | |
10734 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10735 | return resultobj; | |
10736 | fail: | |
10737 | return NULL; | |
d55e5bfc RD |
10738 | } |
10739 | ||
10740 | ||
554f62e9 RD |
10741 | SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
10742 | PyObject *resultobj = 0; | |
10743 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10744 | int result; | |
10745 | void *argp1 = 0 ; | |
10746 | int res1 = 0 ; | |
10747 | PyObject *swig_obj[1] ; | |
10748 | ||
10749 | if (!args) SWIG_fail; | |
10750 | swig_obj[0] = args; | |
10751 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10752 | if (!SWIG_IsOK(res1)) { | |
10753 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10754 | } | |
10755 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10756 | { | |
10757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10758 | result = (int)(arg1)->GetDepth(); | |
10759 | wxPyEndAllowThreads(__tstate); | |
10760 | if (PyErr_Occurred()) SWIG_fail; | |
10761 | } | |
10762 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
10763 | return resultobj; | |
10764 | fail: | |
10765 | return NULL; | |
10766 | } | |
10767 | ||
10768 | ||
10769 | SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10770 | PyObject *resultobj = 0; | |
10771 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10772 | int arg2 ; | |
10773 | void *argp1 = 0 ; | |
10774 | int res1 = 0 ; | |
10775 | int val2 ; | |
10776 | int ecode2 = 0 ; | |
10777 | PyObject * obj0 = 0 ; | |
10778 | PyObject * obj1 = 0 ; | |
10779 | char * kwnames[] = { | |
10780 | (char *) "self",(char *) "w", NULL | |
10781 | }; | |
10782 | ||
10783 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail; | |
10784 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10785 | if (!SWIG_IsOK(res1)) { | |
10786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10787 | } | |
10788 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10789 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10790 | if (!SWIG_IsOK(ecode2)) { | |
10791 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'"); | |
10792 | } | |
10793 | arg2 = static_cast< int >(val2); | |
10794 | { | |
10795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10796 | (arg1)->SetWidth(arg2); | |
10797 | wxPyEndAllowThreads(__tstate); | |
10798 | if (PyErr_Occurred()) SWIG_fail; | |
10799 | } | |
10800 | resultobj = SWIG_Py_Void(); | |
10801 | return resultobj; | |
10802 | fail: | |
10803 | return NULL; | |
10804 | } | |
10805 | ||
10806 | ||
10807 | SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10808 | PyObject *resultobj = 0; | |
10809 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10810 | int arg2 ; | |
10811 | void *argp1 = 0 ; | |
10812 | int res1 = 0 ; | |
10813 | int val2 ; | |
10814 | int ecode2 = 0 ; | |
10815 | PyObject * obj0 = 0 ; | |
10816 | PyObject * obj1 = 0 ; | |
10817 | char * kwnames[] = { | |
10818 | (char *) "self",(char *) "h", NULL | |
10819 | }; | |
10820 | ||
10821 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
10822 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10823 | if (!SWIG_IsOK(res1)) { | |
10824 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10825 | } | |
10826 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10827 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10828 | if (!SWIG_IsOK(ecode2)) { | |
10829 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'"); | |
10830 | } | |
10831 | arg2 = static_cast< int >(val2); | |
10832 | { | |
10833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10834 | (arg1)->SetHeight(arg2); | |
10835 | wxPyEndAllowThreads(__tstate); | |
10836 | if (PyErr_Occurred()) SWIG_fail; | |
10837 | } | |
10838 | resultobj = SWIG_Py_Void(); | |
10839 | return resultobj; | |
10840 | fail: | |
10841 | return NULL; | |
10842 | } | |
10843 | ||
10844 | ||
10845 | SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10846 | PyObject *resultobj = 0; | |
10847 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10848 | int arg2 ; | |
10849 | void *argp1 = 0 ; | |
10850 | int res1 = 0 ; | |
10851 | int val2 ; | |
10852 | int ecode2 = 0 ; | |
10853 | PyObject * obj0 = 0 ; | |
10854 | PyObject * obj1 = 0 ; | |
10855 | char * kwnames[] = { | |
10856 | (char *) "self",(char *) "d", NULL | |
10857 | }; | |
10858 | ||
10859 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail; | |
10860 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10861 | if (!SWIG_IsOK(res1)) { | |
10862 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10863 | } | |
10864 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10865 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10866 | if (!SWIG_IsOK(ecode2)) { | |
10867 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'"); | |
10868 | } | |
10869 | arg2 = static_cast< int >(val2); | |
10870 | { | |
10871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10872 | (arg1)->SetDepth(arg2); | |
10873 | wxPyEndAllowThreads(__tstate); | |
10874 | if (PyErr_Occurred()) SWIG_fail; | |
10875 | } | |
10876 | resultobj = SWIG_Py_Void(); | |
10877 | return resultobj; | |
10878 | fail: | |
10879 | return NULL; | |
10880 | } | |
10881 | ||
10882 | ||
10883 | SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10884 | PyObject *resultobj = 0; | |
10885 | wxCursor *arg1 = (wxCursor *) 0 ; | |
10886 | wxSize *arg2 = 0 ; | |
10887 | void *argp1 = 0 ; | |
10888 | int res1 = 0 ; | |
10889 | wxSize temp2 ; | |
10890 | PyObject * obj0 = 0 ; | |
10891 | PyObject * obj1 = 0 ; | |
10892 | char * kwnames[] = { | |
10893 | (char *) "self",(char *) "size", NULL | |
10894 | }; | |
10895 | ||
10896 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
10897 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 ); | |
10898 | if (!SWIG_IsOK(res1)) { | |
10899 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'"); | |
10900 | } | |
10901 | arg1 = reinterpret_cast< wxCursor * >(argp1); | |
10902 | { | |
10903 | arg2 = &temp2; | |
10904 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
10905 | } | |
10906 | { | |
10907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10908 | (arg1)->SetSize((wxSize const &)*arg2); | |
10909 | wxPyEndAllowThreads(__tstate); | |
10910 | if (PyErr_Occurred()) SWIG_fail; | |
10911 | } | |
10912 | resultobj = SWIG_Py_Void(); | |
10913 | return resultobj; | |
10914 | fail: | |
10915 | return NULL; | |
10916 | } | |
10917 | ||
10918 | ||
10919 | SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10920 | PyObject *obj; | |
10921 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
10922 | SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj)); | |
10923 | return SWIG_Py_Void(); | |
10924 | } | |
10925 | ||
10926 | SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
10927 | return SWIG_Python_InitShadowInstance(args); | |
10928 | } | |
10929 | ||
10930 | SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10931 | PyObject *resultobj = 0; | |
10932 | int arg1 = (int) 0 ; | |
10933 | int arg2 = (int) 0 ; | |
10934 | int arg3 = (int) 0 ; | |
10935 | int arg4 = (int) 0 ; | |
10936 | wxRegion *result = 0 ; | |
10937 | int val1 ; | |
10938 | int ecode1 = 0 ; | |
10939 | int val2 ; | |
10940 | int ecode2 = 0 ; | |
10941 | int val3 ; | |
10942 | int ecode3 = 0 ; | |
10943 | int val4 ; | |
10944 | int ecode4 = 0 ; | |
10945 | PyObject * obj0 = 0 ; | |
10946 | PyObject * obj1 = 0 ; | |
10947 | PyObject * obj2 = 0 ; | |
10948 | PyObject * obj3 = 0 ; | |
10949 | char * kwnames[] = { | |
10950 | (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
10951 | }; | |
10952 | ||
10953 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
10954 | if (obj0) { | |
10955 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
10956 | if (!SWIG_IsOK(ecode1)) { | |
10957 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'"); | |
10958 | } | |
10959 | arg1 = static_cast< int >(val1); | |
10960 | } | |
10961 | if (obj1) { | |
10962 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
10963 | if (!SWIG_IsOK(ecode2)) { | |
10964 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'"); | |
10965 | } | |
10966 | arg2 = static_cast< int >(val2); | |
10967 | } | |
10968 | if (obj2) { | |
10969 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
10970 | if (!SWIG_IsOK(ecode3)) { | |
10971 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'"); | |
10972 | } | |
10973 | arg3 = static_cast< int >(val3); | |
10974 | } | |
10975 | if (obj3) { | |
10976 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
10977 | if (!SWIG_IsOK(ecode4)) { | |
10978 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'"); | |
10979 | } | |
10980 | arg4 = static_cast< int >(val4); | |
10981 | } | |
10982 | { | |
10983 | if (!wxPyCheckForApp()) SWIG_fail; | |
10984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10985 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4); | |
10986 | wxPyEndAllowThreads(__tstate); | |
10987 | if (PyErr_Occurred()) SWIG_fail; | |
10988 | } | |
10989 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 ); | |
10990 | return resultobj; | |
10991 | fail: | |
10992 | return NULL; | |
10993 | } | |
10994 | ||
10995 | ||
10996 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
10997 | PyObject *resultobj = 0; | |
10998 | wxBitmap *arg1 = 0 ; | |
10999 | wxRegion *result = 0 ; | |
11000 | void *argp1 = 0 ; | |
11001 | int res1 = 0 ; | |
11002 | PyObject * obj0 = 0 ; | |
11003 | char * kwnames[] = { | |
11004 | (char *) "bmp", NULL | |
11005 | }; | |
11006 | ||
11007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail; | |
11008 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11009 | if (!SWIG_IsOK(res1)) { | |
11010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
11011 | } | |
11012 | if (!argp1) { | |
11013 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
11014 | } | |
11015 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
11016 | { | |
11017 | if (!wxPyCheckForApp()) SWIG_fail; | |
11018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11019 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1); | |
11020 | wxPyEndAllowThreads(__tstate); | |
11021 | if (PyErr_Occurred()) SWIG_fail; | |
11022 | } | |
11023 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
11024 | return resultobj; | |
11025 | fail: | |
11026 | return NULL; | |
11027 | } | |
11028 | ||
11029 | ||
11030 | SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11031 | PyObject *resultobj = 0; | |
11032 | wxBitmap *arg1 = 0 ; | |
11033 | wxColour *arg2 = 0 ; | |
11034 | int arg3 = (int) 0 ; | |
11035 | wxRegion *result = 0 ; | |
11036 | void *argp1 = 0 ; | |
11037 | int res1 = 0 ; | |
11038 | wxColour temp2 ; | |
11039 | int val3 ; | |
11040 | int ecode3 = 0 ; | |
11041 | PyObject * obj0 = 0 ; | |
11042 | PyObject * obj1 = 0 ; | |
11043 | PyObject * obj2 = 0 ; | |
11044 | char * kwnames[] = { | |
11045 | (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
11046 | }; | |
11047 | ||
11048 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11049 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0); | |
11050 | if (!SWIG_IsOK(res1)) { | |
11051 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
11052 | } | |
11053 | if (!argp1) { | |
11054 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'"); | |
11055 | } | |
11056 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
11057 | { | |
11058 | arg2 = &temp2; | |
11059 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
11060 | } | |
11061 | if (obj2) { | |
11062 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11063 | if (!SWIG_IsOK(ecode3)) { | |
11064 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'"); | |
11065 | } | |
11066 | arg3 = static_cast< int >(val3); | |
11067 | } | |
11068 | { | |
11069 | if (!wxPyCheckForApp()) SWIG_fail; | |
11070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11071 | result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3); | |
11072 | wxPyEndAllowThreads(__tstate); | |
11073 | if (PyErr_Occurred()) SWIG_fail; | |
11074 | } | |
11075 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
11076 | return resultobj; | |
11077 | fail: | |
11078 | return NULL; | |
11079 | } | |
11080 | ||
11081 | ||
11082 | SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11083 | PyObject *resultobj = 0; | |
11084 | int arg1 ; | |
11085 | wxPoint *arg2 = (wxPoint *) 0 ; | |
11086 | int arg3 = (int) wxWINDING_RULE ; | |
11087 | wxRegion *result = 0 ; | |
11088 | int val3 ; | |
11089 | int ecode3 = 0 ; | |
11090 | PyObject * obj0 = 0 ; | |
11091 | PyObject * obj1 = 0 ; | |
11092 | char * kwnames[] = { | |
11093 | (char *) "points",(char *) "fillStyle", NULL | |
11094 | }; | |
11095 | ||
11096 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail; | |
11097 | { | |
11098 | arg2 = wxPoint_LIST_helper(obj0, &arg1); | |
11099 | if (arg2 == NULL) SWIG_fail; | |
11100 | } | |
11101 | if (obj1) { | |
11102 | ecode3 = SWIG_AsVal_int(obj1, &val3); | |
11103 | if (!SWIG_IsOK(ecode3)) { | |
11104 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'"); | |
11105 | } | |
11106 | arg3 = static_cast< int >(val3); | |
11107 | } | |
11108 | { | |
11109 | if (!wxPyCheckForApp()) SWIG_fail; | |
11110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11111 | result = (wxRegion *)new wxRegion(arg1,arg2,arg3); | |
11112 | wxPyEndAllowThreads(__tstate); | |
11113 | if (PyErr_Occurred()) SWIG_fail; | |
11114 | } | |
11115 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 ); | |
11116 | { | |
11117 | if (arg2) delete [] arg2; | |
11118 | } | |
11119 | return resultobj; | |
11120 | fail: | |
11121 | { | |
11122 | if (arg2) delete [] arg2; | |
11123 | } | |
11124 | return NULL; | |
d55e5bfc RD |
11125 | } |
11126 | ||
11127 | ||
554f62e9 RD |
11128 | SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11129 | PyObject *resultobj = 0; | |
11130 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11131 | void *argp1 = 0 ; | |
11132 | int res1 = 0 ; | |
11133 | PyObject *swig_obj[1] ; | |
11134 | ||
11135 | if (!args) SWIG_fail; | |
11136 | swig_obj[0] = args; | |
11137 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 ); | |
11138 | if (!SWIG_IsOK(res1)) { | |
11139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11140 | } | |
11141 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11142 | { | |
11143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11144 | delete arg1; | |
d55e5bfc | 11145 | |
554f62e9 RD |
11146 | wxPyEndAllowThreads(__tstate); |
11147 | if (PyErr_Occurred()) SWIG_fail; | |
11148 | } | |
11149 | resultobj = SWIG_Py_Void(); | |
11150 | return resultobj; | |
11151 | fail: | |
11152 | return NULL; | |
d55e5bfc RD |
11153 | } |
11154 | ||
11155 | ||
554f62e9 RD |
11156 | SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11157 | PyObject *resultobj = 0; | |
11158 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11159 | void *argp1 = 0 ; | |
11160 | int res1 = 0 ; | |
11161 | PyObject *swig_obj[1] ; | |
11162 | ||
11163 | if (!args) SWIG_fail; | |
11164 | swig_obj[0] = args; | |
11165 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11166 | if (!SWIG_IsOK(res1)) { | |
11167 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11168 | } | |
11169 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11170 | { | |
11171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11172 | (arg1)->Clear(); | |
11173 | wxPyEndAllowThreads(__tstate); | |
11174 | if (PyErr_Occurred()) SWIG_fail; | |
11175 | } | |
11176 | resultobj = SWIG_Py_Void(); | |
11177 | return resultobj; | |
11178 | fail: | |
11179 | return NULL; | |
11180 | } | |
11181 | ||
11182 | ||
11183 | SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11184 | PyObject *resultobj = 0; | |
11185 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11186 | int arg2 ; | |
11187 | int arg3 ; | |
11188 | bool result; | |
11189 | void *argp1 = 0 ; | |
11190 | int res1 = 0 ; | |
11191 | int val2 ; | |
11192 | int ecode2 = 0 ; | |
11193 | int val3 ; | |
11194 | int ecode3 = 0 ; | |
11195 | PyObject * obj0 = 0 ; | |
11196 | PyObject * obj1 = 0 ; | |
11197 | PyObject * obj2 = 0 ; | |
11198 | char * kwnames[] = { | |
11199 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11200 | }; | |
11201 | ||
11202 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11203 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11204 | if (!SWIG_IsOK(res1)) { | |
11205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11206 | } | |
11207 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11208 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11209 | if (!SWIG_IsOK(ecode2)) { | |
11210 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'"); | |
11211 | } | |
11212 | arg2 = static_cast< int >(val2); | |
11213 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11214 | if (!SWIG_IsOK(ecode3)) { | |
11215 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'"); | |
11216 | } | |
11217 | arg3 = static_cast< int >(val3); | |
11218 | { | |
11219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11220 | result = (bool)(arg1)->Offset(arg2,arg3); | |
11221 | wxPyEndAllowThreads(__tstate); | |
11222 | if (PyErr_Occurred()) SWIG_fail; | |
11223 | } | |
11224 | { | |
11225 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11226 | } | |
11227 | return resultobj; | |
11228 | fail: | |
11229 | return NULL; | |
11230 | } | |
11231 | ||
11232 | ||
11233 | SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11234 | PyObject *resultobj = 0; | |
11235 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11236 | int arg2 ; | |
11237 | int arg3 ; | |
11238 | wxRegionContain result; | |
11239 | void *argp1 = 0 ; | |
11240 | int res1 = 0 ; | |
11241 | int val2 ; | |
11242 | int ecode2 = 0 ; | |
11243 | int val3 ; | |
11244 | int ecode3 = 0 ; | |
11245 | PyObject * obj0 = 0 ; | |
11246 | PyObject * obj1 = 0 ; | |
11247 | PyObject * obj2 = 0 ; | |
11248 | char * kwnames[] = { | |
11249 | (char *) "self",(char *) "x",(char *) "y", NULL | |
11250 | }; | |
11251 | ||
11252 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
11253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11254 | if (!SWIG_IsOK(res1)) { | |
11255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11256 | } | |
11257 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11258 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11259 | if (!SWIG_IsOK(ecode2)) { | |
11260 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'"); | |
11261 | } | |
11262 | arg2 = static_cast< int >(val2); | |
11263 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11264 | if (!SWIG_IsOK(ecode3)) { | |
11265 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'"); | |
11266 | } | |
11267 | arg3 = static_cast< int >(val3); | |
11268 | { | |
11269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11270 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3); | |
11271 | wxPyEndAllowThreads(__tstate); | |
11272 | if (PyErr_Occurred()) SWIG_fail; | |
11273 | } | |
11274 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11275 | return resultobj; | |
11276 | fail: | |
11277 | return NULL; | |
11278 | } | |
11279 | ||
11280 | ||
11281 | SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11282 | PyObject *resultobj = 0; | |
11283 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11284 | wxPoint *arg2 = 0 ; | |
11285 | wxRegionContain result; | |
11286 | void *argp1 = 0 ; | |
11287 | int res1 = 0 ; | |
11288 | wxPoint temp2 ; | |
11289 | PyObject * obj0 = 0 ; | |
11290 | PyObject * obj1 = 0 ; | |
11291 | char * kwnames[] = { | |
11292 | (char *) "self",(char *) "pt", NULL | |
11293 | }; | |
11294 | ||
11295 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
11296 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11297 | if (!SWIG_IsOK(res1)) { | |
11298 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11299 | } | |
11300 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11301 | { | |
11302 | arg2 = &temp2; | |
11303 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
11304 | } | |
11305 | { | |
11306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11307 | result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2); | |
11308 | wxPyEndAllowThreads(__tstate); | |
11309 | if (PyErr_Occurred()) SWIG_fail; | |
11310 | } | |
11311 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11312 | return resultobj; | |
11313 | fail: | |
11314 | return NULL; | |
11315 | } | |
11316 | ||
11317 | ||
11318 | SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11319 | PyObject *resultobj = 0; | |
11320 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11321 | wxRect *arg2 = 0 ; | |
11322 | wxRegionContain result; | |
11323 | void *argp1 = 0 ; | |
11324 | int res1 = 0 ; | |
11325 | wxRect temp2 ; | |
11326 | PyObject * obj0 = 0 ; | |
11327 | PyObject * obj1 = 0 ; | |
11328 | char * kwnames[] = { | |
11329 | (char *) "self",(char *) "rect", NULL | |
11330 | }; | |
11331 | ||
11332 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11334 | if (!SWIG_IsOK(res1)) { | |
11335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11336 | } | |
11337 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11338 | { | |
11339 | arg2 = &temp2; | |
11340 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11341 | } | |
11342 | { | |
11343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11344 | result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2); | |
11345 | wxPyEndAllowThreads(__tstate); | |
11346 | if (PyErr_Occurred()) SWIG_fail; | |
11347 | } | |
11348 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11349 | return resultobj; | |
11350 | fail: | |
11351 | return NULL; | |
11352 | } | |
11353 | ||
11354 | ||
11355 | SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11356 | PyObject *resultobj = 0; | |
11357 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11358 | int arg2 ; | |
11359 | int arg3 ; | |
11360 | int arg4 ; | |
11361 | int arg5 ; | |
11362 | wxRegionContain result; | |
11363 | void *argp1 = 0 ; | |
11364 | int res1 = 0 ; | |
11365 | int val2 ; | |
11366 | int ecode2 = 0 ; | |
11367 | int val3 ; | |
11368 | int ecode3 = 0 ; | |
11369 | int val4 ; | |
11370 | int ecode4 = 0 ; | |
11371 | int val5 ; | |
11372 | int ecode5 = 0 ; | |
11373 | PyObject * obj0 = 0 ; | |
11374 | PyObject * obj1 = 0 ; | |
11375 | PyObject * obj2 = 0 ; | |
11376 | PyObject * obj3 = 0 ; | |
11377 | PyObject * obj4 = 0 ; | |
11378 | char * kwnames[] = { | |
11379 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
11380 | }; | |
11381 | ||
11382 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11383 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11384 | if (!SWIG_IsOK(res1)) { | |
11385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11386 | } | |
11387 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11388 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11389 | if (!SWIG_IsOK(ecode2)) { | |
11390 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'"); | |
11391 | } | |
11392 | arg2 = static_cast< int >(val2); | |
11393 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11394 | if (!SWIG_IsOK(ecode3)) { | |
11395 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'"); | |
11396 | } | |
11397 | arg3 = static_cast< int >(val3); | |
11398 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11399 | if (!SWIG_IsOK(ecode4)) { | |
11400 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'"); | |
11401 | } | |
11402 | arg4 = static_cast< int >(val4); | |
11403 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11404 | if (!SWIG_IsOK(ecode5)) { | |
11405 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'"); | |
11406 | } | |
11407 | arg5 = static_cast< int >(val5); | |
11408 | { | |
11409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11410 | result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5); | |
11411 | wxPyEndAllowThreads(__tstate); | |
11412 | if (PyErr_Occurred()) SWIG_fail; | |
11413 | } | |
11414 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
11415 | return resultobj; | |
11416 | fail: | |
11417 | return NULL; | |
d55e5bfc RD |
11418 | } |
11419 | ||
11420 | ||
554f62e9 RD |
11421 | SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11422 | PyObject *resultobj = 0; | |
11423 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11424 | wxRect result; | |
11425 | void *argp1 = 0 ; | |
11426 | int res1 = 0 ; | |
11427 | PyObject *swig_obj[1] ; | |
11428 | ||
11429 | if (!args) SWIG_fail; | |
11430 | swig_obj[0] = args; | |
11431 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11432 | if (!SWIG_IsOK(res1)) { | |
11433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11434 | } | |
11435 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11436 | { | |
11437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11438 | result = (arg1)->GetBox(); | |
11439 | wxPyEndAllowThreads(__tstate); | |
11440 | if (PyErr_Occurred()) SWIG_fail; | |
11441 | } | |
11442 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
11443 | return resultobj; | |
11444 | fail: | |
11445 | return NULL; | |
11446 | } | |
11447 | ||
11448 | ||
11449 | SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11450 | PyObject *resultobj = 0; | |
11451 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11452 | int arg2 ; | |
11453 | int arg3 ; | |
11454 | int arg4 ; | |
11455 | int arg5 ; | |
11456 | bool result; | |
11457 | void *argp1 = 0 ; | |
11458 | int res1 = 0 ; | |
11459 | int val2 ; | |
11460 | int ecode2 = 0 ; | |
11461 | int val3 ; | |
11462 | int ecode3 = 0 ; | |
11463 | int val4 ; | |
11464 | int ecode4 = 0 ; | |
11465 | int val5 ; | |
11466 | int ecode5 = 0 ; | |
11467 | PyObject * obj0 = 0 ; | |
11468 | PyObject * obj1 = 0 ; | |
11469 | PyObject * obj2 = 0 ; | |
11470 | PyObject * obj3 = 0 ; | |
11471 | PyObject * obj4 = 0 ; | |
11472 | char * kwnames[] = { | |
11473 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11474 | }; | |
11475 | ||
11476 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11477 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11478 | if (!SWIG_IsOK(res1)) { | |
11479 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11480 | } | |
11481 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11482 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11483 | if (!SWIG_IsOK(ecode2)) { | |
11484 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'"); | |
11485 | } | |
11486 | arg2 = static_cast< int >(val2); | |
11487 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11488 | if (!SWIG_IsOK(ecode3)) { | |
11489 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'"); | |
11490 | } | |
11491 | arg3 = static_cast< int >(val3); | |
11492 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11493 | if (!SWIG_IsOK(ecode4)) { | |
11494 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'"); | |
11495 | } | |
11496 | arg4 = static_cast< int >(val4); | |
11497 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11498 | if (!SWIG_IsOK(ecode5)) { | |
11499 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'"); | |
11500 | } | |
11501 | arg5 = static_cast< int >(val5); | |
11502 | { | |
11503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11504 | result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5); | |
11505 | wxPyEndAllowThreads(__tstate); | |
11506 | if (PyErr_Occurred()) SWIG_fail; | |
11507 | } | |
11508 | { | |
11509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11510 | } | |
11511 | return resultobj; | |
11512 | fail: | |
11513 | return NULL; | |
11514 | } | |
11515 | ||
11516 | ||
11517 | SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11518 | PyObject *resultobj = 0; | |
11519 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11520 | wxRect *arg2 = 0 ; | |
11521 | bool result; | |
11522 | void *argp1 = 0 ; | |
11523 | int res1 = 0 ; | |
11524 | wxRect temp2 ; | |
11525 | PyObject * obj0 = 0 ; | |
11526 | PyObject * obj1 = 0 ; | |
11527 | char * kwnames[] = { | |
11528 | (char *) "self",(char *) "rect", NULL | |
11529 | }; | |
11530 | ||
11531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11532 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11533 | if (!SWIG_IsOK(res1)) { | |
11534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11535 | } | |
11536 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11537 | { | |
11538 | arg2 = &temp2; | |
11539 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11540 | } | |
11541 | { | |
11542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11543 | result = (bool)(arg1)->Intersect((wxRect const &)*arg2); | |
11544 | wxPyEndAllowThreads(__tstate); | |
11545 | if (PyErr_Occurred()) SWIG_fail; | |
11546 | } | |
11547 | { | |
11548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11549 | } | |
11550 | return resultobj; | |
11551 | fail: | |
11552 | return NULL; | |
11553 | } | |
11554 | ||
11555 | ||
11556 | SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11557 | PyObject *resultobj = 0; | |
11558 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11559 | wxRegion *arg2 = 0 ; | |
11560 | bool result; | |
11561 | void *argp1 = 0 ; | |
11562 | int res1 = 0 ; | |
11563 | void *argp2 = 0 ; | |
11564 | int res2 = 0 ; | |
11565 | PyObject * obj0 = 0 ; | |
11566 | PyObject * obj1 = 0 ; | |
11567 | char * kwnames[] = { | |
11568 | (char *) "self",(char *) "region", NULL | |
11569 | }; | |
11570 | ||
11571 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11572 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11573 | if (!SWIG_IsOK(res1)) { | |
11574 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11575 | } | |
11576 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11577 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11578 | if (!SWIG_IsOK(res2)) { | |
11579 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11580 | } | |
11581 | if (!argp2) { | |
11582 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11583 | } | |
11584 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11585 | { | |
11586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11587 | result = (bool)(arg1)->Intersect((wxRegion 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; | |
d55e5bfc RD |
11597 | } |
11598 | ||
11599 | ||
554f62e9 RD |
11600 | SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
11601 | PyObject *resultobj = 0; | |
11602 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11603 | bool result; | |
11604 | void *argp1 = 0 ; | |
11605 | int res1 = 0 ; | |
11606 | PyObject *swig_obj[1] ; | |
11607 | ||
11608 | if (!args) SWIG_fail; | |
11609 | swig_obj[0] = args; | |
11610 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11611 | if (!SWIG_IsOK(res1)) { | |
11612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11613 | } | |
11614 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11615 | { | |
11616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11617 | result = (bool)(arg1)->IsEmpty(); | |
11618 | wxPyEndAllowThreads(__tstate); | |
11619 | if (PyErr_Occurred()) SWIG_fail; | |
11620 | } | |
11621 | { | |
11622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11623 | } | |
11624 | return resultobj; | |
11625 | fail: | |
11626 | return NULL; | |
11627 | } | |
11628 | ||
11629 | ||
f5263701 RD |
11630 | SWIGINTERN PyObject *_wrap_Region_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11631 | PyObject *resultobj = 0; | |
11632 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11633 | wxRegion *arg2 = 0 ; | |
11634 | bool result; | |
11635 | void *argp1 = 0 ; | |
11636 | int res1 = 0 ; | |
11637 | void *argp2 = 0 ; | |
11638 | int res2 = 0 ; | |
11639 | PyObject * obj0 = 0 ; | |
11640 | PyObject * obj1 = 0 ; | |
11641 | char * kwnames[] = { | |
11642 | (char *) "self",(char *) "region", NULL | |
11643 | }; | |
11644 | ||
11645 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; | |
11646 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11647 | if (!SWIG_IsOK(res1)) { | |
11648 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEqual" "', expected argument " "1"" of type '" "wxRegion const *""'"); | |
11649 | } | |
11650 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11651 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11652 | if (!SWIG_IsOK(res2)) { | |
11653 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11654 | } | |
11655 | if (!argp2) { | |
11656 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IsEqual" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11657 | } | |
11658 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11659 | { | |
11660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11661 | result = (bool)((wxRegion const *)arg1)->IsEqual((wxRegion const &)*arg2); | |
11662 | wxPyEndAllowThreads(__tstate); | |
11663 | if (PyErr_Occurred()) SWIG_fail; | |
11664 | } | |
11665 | { | |
11666 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11667 | } | |
11668 | return resultobj; | |
11669 | fail: | |
11670 | return NULL; | |
11671 | } | |
11672 | ||
11673 | ||
554f62e9 RD |
11674 | SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
11675 | PyObject *resultobj = 0; | |
11676 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11677 | int arg2 ; | |
11678 | int arg3 ; | |
11679 | int arg4 ; | |
11680 | int arg5 ; | |
11681 | bool result; | |
11682 | void *argp1 = 0 ; | |
11683 | int res1 = 0 ; | |
11684 | int val2 ; | |
11685 | int ecode2 = 0 ; | |
11686 | int val3 ; | |
11687 | int ecode3 = 0 ; | |
11688 | int val4 ; | |
11689 | int ecode4 = 0 ; | |
11690 | int val5 ; | |
11691 | int ecode5 = 0 ; | |
11692 | PyObject * obj0 = 0 ; | |
11693 | PyObject * obj1 = 0 ; | |
11694 | PyObject * obj2 = 0 ; | |
11695 | PyObject * obj3 = 0 ; | |
11696 | PyObject * obj4 = 0 ; | |
11697 | char * kwnames[] = { | |
11698 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11699 | }; | |
11700 | ||
11701 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11702 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11703 | if (!SWIG_IsOK(res1)) { | |
11704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11705 | } | |
11706 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11707 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11708 | if (!SWIG_IsOK(ecode2)) { | |
11709 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'"); | |
11710 | } | |
11711 | arg2 = static_cast< int >(val2); | |
11712 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11713 | if (!SWIG_IsOK(ecode3)) { | |
11714 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'"); | |
11715 | } | |
11716 | arg3 = static_cast< int >(val3); | |
11717 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11718 | if (!SWIG_IsOK(ecode4)) { | |
11719 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'"); | |
11720 | } | |
11721 | arg4 = static_cast< int >(val4); | |
11722 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11723 | if (!SWIG_IsOK(ecode5)) { | |
11724 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'"); | |
11725 | } | |
11726 | arg5 = static_cast< int >(val5); | |
11727 | { | |
11728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11729 | result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5); | |
11730 | wxPyEndAllowThreads(__tstate); | |
11731 | if (PyErr_Occurred()) SWIG_fail; | |
11732 | } | |
11733 | { | |
11734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11735 | } | |
11736 | return resultobj; | |
11737 | fail: | |
11738 | return NULL; | |
11739 | } | |
11740 | ||
11741 | ||
11742 | SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11743 | PyObject *resultobj = 0; | |
11744 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11745 | wxRect *arg2 = 0 ; | |
11746 | bool result; | |
11747 | void *argp1 = 0 ; | |
11748 | int res1 = 0 ; | |
11749 | wxRect temp2 ; | |
11750 | PyObject * obj0 = 0 ; | |
11751 | PyObject * obj1 = 0 ; | |
11752 | char * kwnames[] = { | |
11753 | (char *) "self",(char *) "rect", NULL | |
11754 | }; | |
11755 | ||
11756 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11757 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11758 | if (!SWIG_IsOK(res1)) { | |
11759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11760 | } | |
11761 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11762 | { | |
11763 | arg2 = &temp2; | |
11764 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11765 | } | |
11766 | { | |
11767 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11768 | result = (bool)(arg1)->Union((wxRect const &)*arg2); | |
11769 | wxPyEndAllowThreads(__tstate); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
11771 | } | |
11772 | { | |
11773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11774 | } | |
11775 | return resultobj; | |
11776 | fail: | |
11777 | return NULL; | |
11778 | } | |
11779 | ||
11780 | ||
11781 | SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11782 | PyObject *resultobj = 0; | |
11783 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11784 | wxRegion *arg2 = 0 ; | |
11785 | bool result; | |
11786 | void *argp1 = 0 ; | |
11787 | int res1 = 0 ; | |
11788 | void *argp2 = 0 ; | |
11789 | int res2 = 0 ; | |
11790 | PyObject * obj0 = 0 ; | |
11791 | PyObject * obj1 = 0 ; | |
11792 | char * kwnames[] = { | |
11793 | (char *) "self",(char *) "region", NULL | |
11794 | }; | |
11795 | ||
11796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11798 | if (!SWIG_IsOK(res1)) { | |
11799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11800 | } | |
11801 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11802 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11803 | if (!SWIG_IsOK(res2)) { | |
11804 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11805 | } | |
11806 | if (!argp2) { | |
11807 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11808 | } | |
11809 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11810 | { | |
11811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11812 | result = (bool)(arg1)->Union((wxRegion const &)*arg2); | |
11813 | wxPyEndAllowThreads(__tstate); | |
11814 | if (PyErr_Occurred()) SWIG_fail; | |
11815 | } | |
11816 | { | |
11817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11818 | } | |
11819 | return resultobj; | |
11820 | fail: | |
11821 | return NULL; | |
11822 | } | |
11823 | ||
11824 | ||
11825 | SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11826 | PyObject *resultobj = 0; | |
11827 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11828 | int arg2 ; | |
11829 | int arg3 ; | |
11830 | int arg4 ; | |
11831 | int arg5 ; | |
11832 | bool result; | |
11833 | void *argp1 = 0 ; | |
11834 | int res1 = 0 ; | |
11835 | int val2 ; | |
11836 | int ecode2 = 0 ; | |
11837 | int val3 ; | |
11838 | int ecode3 = 0 ; | |
11839 | int val4 ; | |
11840 | int ecode4 = 0 ; | |
11841 | int val5 ; | |
11842 | int ecode5 = 0 ; | |
11843 | PyObject * obj0 = 0 ; | |
11844 | PyObject * obj1 = 0 ; | |
11845 | PyObject * obj2 = 0 ; | |
11846 | PyObject * obj3 = 0 ; | |
11847 | PyObject * obj4 = 0 ; | |
11848 | char * kwnames[] = { | |
11849 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
11850 | }; | |
11851 | ||
11852 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
11853 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11854 | if (!SWIG_IsOK(res1)) { | |
11855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11856 | } | |
11857 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11858 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
11859 | if (!SWIG_IsOK(ecode2)) { | |
11860 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'"); | |
11861 | } | |
11862 | arg2 = static_cast< int >(val2); | |
11863 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
11864 | if (!SWIG_IsOK(ecode3)) { | |
11865 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'"); | |
11866 | } | |
11867 | arg3 = static_cast< int >(val3); | |
11868 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
11869 | if (!SWIG_IsOK(ecode4)) { | |
11870 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'"); | |
11871 | } | |
11872 | arg4 = static_cast< int >(val4); | |
11873 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
11874 | if (!SWIG_IsOK(ecode5)) { | |
11875 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'"); | |
11876 | } | |
11877 | arg5 = static_cast< int >(val5); | |
11878 | { | |
11879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11880 | result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5); | |
11881 | wxPyEndAllowThreads(__tstate); | |
11882 | if (PyErr_Occurred()) SWIG_fail; | |
11883 | } | |
11884 | { | |
11885 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11886 | } | |
11887 | return resultobj; | |
11888 | fail: | |
11889 | return NULL; | |
11890 | } | |
11891 | ||
11892 | ||
11893 | SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11894 | PyObject *resultobj = 0; | |
11895 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11896 | wxRect *arg2 = 0 ; | |
11897 | bool result; | |
11898 | void *argp1 = 0 ; | |
11899 | int res1 = 0 ; | |
11900 | wxRect temp2 ; | |
11901 | PyObject * obj0 = 0 ; | |
11902 | PyObject * obj1 = 0 ; | |
11903 | char * kwnames[] = { | |
11904 | (char *) "self",(char *) "rect", NULL | |
11905 | }; | |
11906 | ||
11907 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
11908 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11909 | if (!SWIG_IsOK(res1)) { | |
11910 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11911 | } | |
11912 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11913 | { | |
11914 | arg2 = &temp2; | |
11915 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
11916 | } | |
11917 | { | |
11918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11919 | result = (bool)(arg1)->Subtract((wxRect const &)*arg2); | |
11920 | wxPyEndAllowThreads(__tstate); | |
11921 | if (PyErr_Occurred()) SWIG_fail; | |
11922 | } | |
11923 | { | |
11924 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11925 | } | |
11926 | return resultobj; | |
11927 | fail: | |
11928 | return NULL; | |
11929 | } | |
11930 | ||
11931 | ||
11932 | SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11933 | PyObject *resultobj = 0; | |
11934 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11935 | wxRegion *arg2 = 0 ; | |
11936 | bool result; | |
11937 | void *argp1 = 0 ; | |
11938 | int res1 = 0 ; | |
11939 | void *argp2 = 0 ; | |
11940 | int res2 = 0 ; | |
11941 | PyObject * obj0 = 0 ; | |
11942 | PyObject * obj1 = 0 ; | |
11943 | char * kwnames[] = { | |
11944 | (char *) "self",(char *) "region", NULL | |
11945 | }; | |
11946 | ||
11947 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
11948 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
11949 | if (!SWIG_IsOK(res1)) { | |
11950 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
11951 | } | |
11952 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
11953 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
11954 | if (!SWIG_IsOK(res2)) { | |
11955 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11956 | } | |
11957 | if (!argp2) { | |
11958 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
11959 | } | |
11960 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
11961 | { | |
11962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11963 | result = (bool)(arg1)->Subtract((wxRegion const &)*arg2); | |
11964 | wxPyEndAllowThreads(__tstate); | |
11965 | if (PyErr_Occurred()) SWIG_fail; | |
11966 | } | |
11967 | { | |
11968 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11969 | } | |
11970 | return resultobj; | |
11971 | fail: | |
11972 | return NULL; | |
11973 | } | |
11974 | ||
11975 | ||
11976 | SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
11977 | PyObject *resultobj = 0; | |
11978 | wxRegion *arg1 = (wxRegion *) 0 ; | |
11979 | int arg2 ; | |
11980 | int arg3 ; | |
11981 | int arg4 ; | |
11982 | int arg5 ; | |
11983 | bool result; | |
11984 | void *argp1 = 0 ; | |
11985 | int res1 = 0 ; | |
11986 | int val2 ; | |
11987 | int ecode2 = 0 ; | |
11988 | int val3 ; | |
11989 | int ecode3 = 0 ; | |
11990 | int val4 ; | |
11991 | int ecode4 = 0 ; | |
11992 | int val5 ; | |
11993 | int ecode5 = 0 ; | |
11994 | PyObject * obj0 = 0 ; | |
11995 | PyObject * obj1 = 0 ; | |
11996 | PyObject * obj2 = 0 ; | |
11997 | PyObject * obj3 = 0 ; | |
11998 | PyObject * obj4 = 0 ; | |
11999 | char * kwnames[] = { | |
12000 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
12001 | }; | |
12002 | ||
12003 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
12004 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12005 | if (!SWIG_IsOK(res1)) { | |
12006 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12007 | } | |
12008 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12009 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
12010 | if (!SWIG_IsOK(ecode2)) { | |
12011 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'"); | |
12012 | } | |
12013 | arg2 = static_cast< int >(val2); | |
12014 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
12015 | if (!SWIG_IsOK(ecode3)) { | |
12016 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'"); | |
12017 | } | |
12018 | arg3 = static_cast< int >(val3); | |
12019 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
12020 | if (!SWIG_IsOK(ecode4)) { | |
12021 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'"); | |
12022 | } | |
12023 | arg4 = static_cast< int >(val4); | |
12024 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
12025 | if (!SWIG_IsOK(ecode5)) { | |
12026 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'"); | |
12027 | } | |
12028 | arg5 = static_cast< int >(val5); | |
12029 | { | |
12030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12031 | result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5); | |
12032 | wxPyEndAllowThreads(__tstate); | |
12033 | if (PyErr_Occurred()) SWIG_fail; | |
12034 | } | |
12035 | { | |
12036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12037 | } | |
12038 | return resultobj; | |
12039 | fail: | |
12040 | return NULL; | |
12041 | } | |
12042 | ||
12043 | ||
12044 | SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12045 | PyObject *resultobj = 0; | |
12046 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12047 | wxRect *arg2 = 0 ; | |
12048 | bool result; | |
12049 | void *argp1 = 0 ; | |
12050 | int res1 = 0 ; | |
12051 | wxRect temp2 ; | |
12052 | PyObject * obj0 = 0 ; | |
12053 | PyObject * obj1 = 0 ; | |
12054 | char * kwnames[] = { | |
12055 | (char *) "self",(char *) "rect", NULL | |
12056 | }; | |
12057 | ||
12058 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
12059 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12060 | if (!SWIG_IsOK(res1)) { | |
12061 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12062 | } | |
12063 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12064 | { | |
12065 | arg2 = &temp2; | |
12066 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
12067 | } | |
12068 | { | |
12069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12070 | result = (bool)(arg1)->Xor((wxRect const &)*arg2); | |
12071 | wxPyEndAllowThreads(__tstate); | |
12072 | if (PyErr_Occurred()) SWIG_fail; | |
12073 | } | |
12074 | { | |
12075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12076 | } | |
12077 | return resultobj; | |
12078 | fail: | |
12079 | return NULL; | |
12080 | } | |
12081 | ||
12082 | ||
12083 | SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12084 | PyObject *resultobj = 0; | |
12085 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12086 | wxRegion *arg2 = 0 ; | |
12087 | bool result; | |
12088 | void *argp1 = 0 ; | |
12089 | int res1 = 0 ; | |
12090 | void *argp2 = 0 ; | |
12091 | int res2 = 0 ; | |
12092 | PyObject * obj0 = 0 ; | |
12093 | PyObject * obj1 = 0 ; | |
12094 | char * kwnames[] = { | |
12095 | (char *) "self",(char *) "region", NULL | |
12096 | }; | |
12097 | ||
12098 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
12099 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12100 | if (!SWIG_IsOK(res1)) { | |
12101 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12102 | } | |
12103 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12104 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
12105 | if (!SWIG_IsOK(res2)) { | |
12106 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
12107 | } | |
12108 | if (!argp2) { | |
12109 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
12110 | } | |
12111 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
12112 | { | |
12113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12114 | result = (bool)(arg1)->Xor((wxRegion const &)*arg2); | |
12115 | wxPyEndAllowThreads(__tstate); | |
12116 | if (PyErr_Occurred()) SWIG_fail; | |
12117 | } | |
12118 | { | |
12119 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12120 | } | |
12121 | return resultobj; | |
12122 | fail: | |
12123 | return NULL; | |
d55e5bfc RD |
12124 | } |
12125 | ||
12126 | ||
554f62e9 RD |
12127 | SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12128 | PyObject *resultobj = 0; | |
12129 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12130 | SwigValueWrapper<wxBitmap > result; | |
12131 | void *argp1 = 0 ; | |
12132 | int res1 = 0 ; | |
12133 | PyObject *swig_obj[1] ; | |
12134 | ||
12135 | if (!args) SWIG_fail; | |
12136 | swig_obj[0] = args; | |
12137 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12138 | if (!SWIG_IsOK(res1)) { | |
12139 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12140 | } | |
12141 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12142 | { | |
12143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12144 | result = (arg1)->ConvertToBitmap(); | |
12145 | wxPyEndAllowThreads(__tstate); | |
12146 | if (PyErr_Occurred()) SWIG_fail; | |
12147 | } | |
12148 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
12149 | return resultobj; | |
12150 | fail: | |
12151 | return NULL; | |
12152 | } | |
12153 | ||
12154 | ||
12155 | SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12156 | PyObject *resultobj = 0; | |
12157 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12158 | wxBitmap *arg2 = 0 ; | |
12159 | bool result; | |
12160 | void *argp1 = 0 ; | |
12161 | int res1 = 0 ; | |
12162 | void *argp2 = 0 ; | |
12163 | int res2 = 0 ; | |
12164 | PyObject * obj0 = 0 ; | |
12165 | PyObject * obj1 = 0 ; | |
12166 | char * kwnames[] = { | |
12167 | (char *) "self",(char *) "bmp", NULL | |
12168 | }; | |
12169 | ||
12170 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
12171 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12172 | if (!SWIG_IsOK(res1)) { | |
12173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12174 | } | |
12175 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12176 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
12177 | if (!SWIG_IsOK(res2)) { | |
12178 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
12179 | } | |
12180 | if (!argp2) { | |
12181 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
12182 | } | |
12183 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
12184 | { | |
12185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12186 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2); | |
12187 | wxPyEndAllowThreads(__tstate); | |
12188 | if (PyErr_Occurred()) SWIG_fail; | |
12189 | } | |
12190 | { | |
12191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12192 | } | |
12193 | return resultobj; | |
12194 | fail: | |
12195 | return NULL; | |
12196 | } | |
12197 | ||
12198 | ||
12199 | SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12200 | PyObject *resultobj = 0; | |
12201 | wxRegion *arg1 = (wxRegion *) 0 ; | |
12202 | wxBitmap *arg2 = 0 ; | |
12203 | wxColour *arg3 = 0 ; | |
12204 | int arg4 = (int) 0 ; | |
12205 | bool result; | |
12206 | void *argp1 = 0 ; | |
12207 | int res1 = 0 ; | |
12208 | void *argp2 = 0 ; | |
12209 | int res2 = 0 ; | |
12210 | wxColour temp3 ; | |
12211 | int val4 ; | |
12212 | int ecode4 = 0 ; | |
12213 | PyObject * obj0 = 0 ; | |
12214 | PyObject * obj1 = 0 ; | |
12215 | PyObject * obj2 = 0 ; | |
12216 | PyObject * obj3 = 0 ; | |
12217 | char * kwnames[] = { | |
12218 | (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL | |
12219 | }; | |
12220 | ||
12221 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
12222 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 ); | |
12223 | if (!SWIG_IsOK(res1)) { | |
12224 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'"); | |
12225 | } | |
12226 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12227 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
12228 | if (!SWIG_IsOK(res2)) { | |
12229 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
12230 | } | |
12231 | if (!argp2) { | |
12232 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
12233 | } | |
12234 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
12235 | { | |
12236 | arg3 = &temp3; | |
12237 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
12238 | } | |
12239 | if (obj3) { | |
12240 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
12241 | if (!SWIG_IsOK(ecode4)) { | |
12242 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'"); | |
12243 | } | |
12244 | arg4 = static_cast< int >(val4); | |
12245 | } | |
12246 | { | |
12247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12248 | result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4); | |
12249 | wxPyEndAllowThreads(__tstate); | |
12250 | if (PyErr_Occurred()) SWIG_fail; | |
12251 | } | |
12252 | { | |
12253 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12254 | } | |
12255 | return resultobj; | |
12256 | fail: | |
12257 | return NULL; | |
d55e5bfc RD |
12258 | } |
12259 | ||
12260 | ||
554f62e9 RD |
12261 | SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12262 | PyObject *obj; | |
12263 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12264 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj)); | |
12265 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12266 | } |
12267 | ||
554f62e9 RD |
12268 | SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12269 | return SWIG_Python_InitShadowInstance(args); | |
12270 | } | |
d55e5bfc | 12271 | |
554f62e9 RD |
12272 | SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
12273 | PyObject *resultobj = 0; | |
12274 | wxRegion *arg1 = 0 ; | |
12275 | wxRegionIterator *result = 0 ; | |
12276 | void *argp1 = 0 ; | |
12277 | int res1 = 0 ; | |
12278 | PyObject * obj0 = 0 ; | |
12279 | char * kwnames[] = { | |
12280 | (char *) "region", NULL | |
12281 | }; | |
12282 | ||
12283 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail; | |
12284 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0); | |
12285 | if (!SWIG_IsOK(res1)) { | |
12286 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
12287 | } | |
12288 | if (!argp1) { | |
12289 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'"); | |
12290 | } | |
12291 | arg1 = reinterpret_cast< wxRegion * >(argp1); | |
12292 | { | |
12293 | if (!wxPyCheckForApp()) SWIG_fail; | |
12294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12295 | result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1); | |
12296 | wxPyEndAllowThreads(__tstate); | |
12297 | if (PyErr_Occurred()) SWIG_fail; | |
12298 | } | |
12299 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 ); | |
12300 | return resultobj; | |
12301 | fail: | |
12302 | return NULL; | |
d55e5bfc RD |
12303 | } |
12304 | ||
12305 | ||
554f62e9 RD |
12306 | SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12307 | PyObject *resultobj = 0; | |
12308 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12309 | void *argp1 = 0 ; | |
12310 | int res1 = 0 ; | |
12311 | PyObject *swig_obj[1] ; | |
12312 | ||
12313 | if (!args) SWIG_fail; | |
12314 | swig_obj[0] = args; | |
12315 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 ); | |
12316 | if (!SWIG_IsOK(res1)) { | |
12317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12318 | } | |
12319 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12320 | { | |
12321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12322 | delete arg1; | |
d55e5bfc | 12323 | |
554f62e9 RD |
12324 | wxPyEndAllowThreads(__tstate); |
12325 | if (PyErr_Occurred()) SWIG_fail; | |
12326 | } | |
12327 | resultobj = SWIG_Py_Void(); | |
12328 | return resultobj; | |
12329 | fail: | |
12330 | return NULL; | |
d55e5bfc RD |
12331 | } |
12332 | ||
12333 | ||
554f62e9 RD |
12334 | SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12335 | PyObject *resultobj = 0; | |
12336 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12337 | int result; | |
12338 | void *argp1 = 0 ; | |
12339 | int res1 = 0 ; | |
12340 | PyObject *swig_obj[1] ; | |
12341 | ||
12342 | if (!args) SWIG_fail; | |
12343 | swig_obj[0] = args; | |
12344 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12345 | if (!SWIG_IsOK(res1)) { | |
12346 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12347 | } | |
12348 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12349 | { | |
12350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12351 | result = (int)(arg1)->GetX(); | |
12352 | wxPyEndAllowThreads(__tstate); | |
12353 | if (PyErr_Occurred()) SWIG_fail; | |
12354 | } | |
12355 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12356 | return resultobj; | |
12357 | fail: | |
12358 | return NULL; | |
d55e5bfc RD |
12359 | } |
12360 | ||
12361 | ||
554f62e9 RD |
12362 | SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12363 | PyObject *resultobj = 0; | |
12364 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12365 | int result; | |
12366 | void *argp1 = 0 ; | |
12367 | int res1 = 0 ; | |
12368 | PyObject *swig_obj[1] ; | |
12369 | ||
12370 | if (!args) SWIG_fail; | |
12371 | swig_obj[0] = args; | |
12372 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12373 | if (!SWIG_IsOK(res1)) { | |
12374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12375 | } | |
12376 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12377 | { | |
12378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12379 | result = (int)(arg1)->GetY(); | |
12380 | wxPyEndAllowThreads(__tstate); | |
12381 | if (PyErr_Occurred()) SWIG_fail; | |
12382 | } | |
12383 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12384 | return resultobj; | |
12385 | fail: | |
12386 | return NULL; | |
d55e5bfc RD |
12387 | } |
12388 | ||
12389 | ||
554f62e9 RD |
12390 | SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12391 | PyObject *resultobj = 0; | |
12392 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12393 | int result; | |
12394 | void *argp1 = 0 ; | |
12395 | int res1 = 0 ; | |
12396 | PyObject *swig_obj[1] ; | |
12397 | ||
12398 | if (!args) SWIG_fail; | |
12399 | swig_obj[0] = args; | |
12400 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12401 | if (!SWIG_IsOK(res1)) { | |
12402 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12403 | } | |
12404 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12405 | { | |
12406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12407 | result = (int)(arg1)->GetW(); | |
12408 | wxPyEndAllowThreads(__tstate); | |
12409 | if (PyErr_Occurred()) SWIG_fail; | |
12410 | } | |
12411 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12412 | return resultobj; | |
12413 | fail: | |
12414 | return NULL; | |
d55e5bfc RD |
12415 | } |
12416 | ||
12417 | ||
554f62e9 RD |
12418 | SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12419 | PyObject *resultobj = 0; | |
12420 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12421 | int result; | |
12422 | void *argp1 = 0 ; | |
12423 | int res1 = 0 ; | |
12424 | PyObject *swig_obj[1] ; | |
12425 | ||
12426 | if (!args) SWIG_fail; | |
12427 | swig_obj[0] = args; | |
12428 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12429 | if (!SWIG_IsOK(res1)) { | |
12430 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12431 | } | |
12432 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12433 | { | |
12434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12435 | result = (int)(arg1)->GetWidth(); | |
12436 | wxPyEndAllowThreads(__tstate); | |
12437 | if (PyErr_Occurred()) SWIG_fail; | |
12438 | } | |
12439 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12440 | return resultobj; | |
12441 | fail: | |
12442 | return NULL; | |
d55e5bfc RD |
12443 | } |
12444 | ||
12445 | ||
554f62e9 RD |
12446 | SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12447 | PyObject *resultobj = 0; | |
12448 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12449 | int result; | |
12450 | void *argp1 = 0 ; | |
12451 | int res1 = 0 ; | |
12452 | PyObject *swig_obj[1] ; | |
12453 | ||
12454 | if (!args) SWIG_fail; | |
12455 | swig_obj[0] = args; | |
12456 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12457 | if (!SWIG_IsOK(res1)) { | |
12458 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12459 | } | |
12460 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12461 | { | |
12462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12463 | result = (int)(arg1)->GetH(); | |
12464 | wxPyEndAllowThreads(__tstate); | |
12465 | if (PyErr_Occurred()) SWIG_fail; | |
12466 | } | |
12467 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12468 | return resultobj; | |
12469 | fail: | |
12470 | return NULL; | |
d55e5bfc RD |
12471 | } |
12472 | ||
12473 | ||
554f62e9 RD |
12474 | SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12475 | PyObject *resultobj = 0; | |
12476 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12477 | int result; | |
12478 | void *argp1 = 0 ; | |
12479 | int res1 = 0 ; | |
12480 | PyObject *swig_obj[1] ; | |
12481 | ||
12482 | if (!args) SWIG_fail; | |
12483 | swig_obj[0] = args; | |
12484 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12485 | if (!SWIG_IsOK(res1)) { | |
12486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12487 | } | |
12488 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12489 | { | |
12490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12491 | result = (int)(arg1)->GetHeight(); | |
12492 | wxPyEndAllowThreads(__tstate); | |
12493 | if (PyErr_Occurred()) SWIG_fail; | |
12494 | } | |
12495 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12496 | return resultobj; | |
12497 | fail: | |
12498 | return NULL; | |
d55e5bfc RD |
12499 | } |
12500 | ||
12501 | ||
554f62e9 RD |
12502 | SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12503 | PyObject *resultobj = 0; | |
12504 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12505 | wxRect result; | |
12506 | void *argp1 = 0 ; | |
12507 | int res1 = 0 ; | |
12508 | PyObject *swig_obj[1] ; | |
12509 | ||
12510 | if (!args) SWIG_fail; | |
12511 | swig_obj[0] = args; | |
12512 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12513 | if (!SWIG_IsOK(res1)) { | |
12514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12515 | } | |
12516 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12517 | { | |
12518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12519 | result = (arg1)->GetRect(); | |
12520 | wxPyEndAllowThreads(__tstate); | |
12521 | if (PyErr_Occurred()) SWIG_fail; | |
12522 | } | |
12523 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
12524 | return resultobj; | |
12525 | fail: | |
12526 | return NULL; | |
d55e5bfc RD |
12527 | } |
12528 | ||
12529 | ||
554f62e9 RD |
12530 | SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12531 | PyObject *resultobj = 0; | |
12532 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12533 | bool result; | |
12534 | void *argp1 = 0 ; | |
12535 | int res1 = 0 ; | |
12536 | PyObject *swig_obj[1] ; | |
12537 | ||
12538 | if (!args) SWIG_fail; | |
12539 | swig_obj[0] = args; | |
12540 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12541 | if (!SWIG_IsOK(res1)) { | |
12542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12543 | } | |
12544 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12545 | { | |
12546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12547 | result = (bool)(arg1)->HaveRects(); | |
12548 | wxPyEndAllowThreads(__tstate); | |
12549 | if (PyErr_Occurred()) SWIG_fail; | |
12550 | } | |
12551 | { | |
12552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12553 | } | |
12554 | return resultobj; | |
12555 | fail: | |
12556 | return NULL; | |
d55e5bfc RD |
12557 | } |
12558 | ||
12559 | ||
554f62e9 RD |
12560 | SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12561 | PyObject *resultobj = 0; | |
12562 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12563 | void *argp1 = 0 ; | |
12564 | int res1 = 0 ; | |
12565 | PyObject *swig_obj[1] ; | |
12566 | ||
12567 | if (!args) SWIG_fail; | |
12568 | swig_obj[0] = args; | |
12569 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12570 | if (!SWIG_IsOK(res1)) { | |
12571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12572 | } | |
12573 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12574 | { | |
12575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12576 | (arg1)->Reset(); | |
12577 | wxPyEndAllowThreads(__tstate); | |
12578 | if (PyErr_Occurred()) SWIG_fail; | |
12579 | } | |
12580 | resultobj = SWIG_Py_Void(); | |
12581 | return resultobj; | |
12582 | fail: | |
12583 | return NULL; | |
d55e5bfc RD |
12584 | } |
12585 | ||
12586 | ||
554f62e9 RD |
12587 | SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12588 | PyObject *resultobj = 0; | |
12589 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12590 | void *argp1 = 0 ; | |
12591 | int res1 = 0 ; | |
12592 | PyObject *swig_obj[1] ; | |
12593 | ||
12594 | if (!args) SWIG_fail; | |
12595 | swig_obj[0] = args; | |
12596 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12597 | if (!SWIG_IsOK(res1)) { | |
12598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12599 | } | |
12600 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12601 | { | |
12602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12603 | wxRegionIterator_Next(arg1); | |
12604 | wxPyEndAllowThreads(__tstate); | |
12605 | if (PyErr_Occurred()) SWIG_fail; | |
12606 | } | |
12607 | resultobj = SWIG_Py_Void(); | |
12608 | return resultobj; | |
12609 | fail: | |
12610 | return NULL; | |
d55e5bfc RD |
12611 | } |
12612 | ||
12613 | ||
554f62e9 RD |
12614 | SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12615 | PyObject *resultobj = 0; | |
12616 | wxRegionIterator *arg1 = (wxRegionIterator *) 0 ; | |
12617 | bool result; | |
12618 | void *argp1 = 0 ; | |
12619 | int res1 = 0 ; | |
12620 | PyObject *swig_obj[1] ; | |
12621 | ||
12622 | if (!args) SWIG_fail; | |
12623 | swig_obj[0] = args; | |
12624 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 ); | |
12625 | if (!SWIG_IsOK(res1)) { | |
12626 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'"); | |
12627 | } | |
12628 | arg1 = reinterpret_cast< wxRegionIterator * >(argp1); | |
12629 | { | |
12630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12631 | result = (bool)wxRegionIterator___nonzero__(arg1); | |
12632 | wxPyEndAllowThreads(__tstate); | |
12633 | if (PyErr_Occurred()) SWIG_fail; | |
12634 | } | |
12635 | { | |
12636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12637 | } | |
12638 | return resultobj; | |
12639 | fail: | |
12640 | return NULL; | |
d55e5bfc RD |
12641 | } |
12642 | ||
12643 | ||
554f62e9 RD |
12644 | SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12645 | PyObject *obj; | |
12646 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
12647 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj)); | |
12648 | return SWIG_Py_Void(); | |
d55e5bfc RD |
12649 | } |
12650 | ||
554f62e9 RD |
12651 | SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12652 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
12653 | } |
12654 | ||
554f62e9 RD |
12655 | SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12656 | PyObject *resultobj = 0; | |
12657 | wxNativeFontInfo *result = 0 ; | |
12658 | ||
12659 | if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail; | |
12660 | { | |
12661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12662 | result = (wxNativeFontInfo *)new wxNativeFontInfo(); | |
12663 | wxPyEndAllowThreads(__tstate); | |
12664 | if (PyErr_Occurred()) SWIG_fail; | |
12665 | } | |
12666 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 ); | |
12667 | return resultobj; | |
12668 | fail: | |
12669 | return NULL; | |
d55e5bfc RD |
12670 | } |
12671 | ||
12672 | ||
554f62e9 RD |
12673 | SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12674 | PyObject *resultobj = 0; | |
12675 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12676 | void *argp1 = 0 ; | |
12677 | int res1 = 0 ; | |
12678 | PyObject *swig_obj[1] ; | |
12679 | ||
12680 | if (!args) SWIG_fail; | |
12681 | swig_obj[0] = args; | |
12682 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 ); | |
12683 | if (!SWIG_IsOK(res1)) { | |
12684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12685 | } | |
12686 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12687 | { | |
12688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12689 | delete arg1; | |
d55e5bfc | 12690 | |
554f62e9 RD |
12691 | wxPyEndAllowThreads(__tstate); |
12692 | if (PyErr_Occurred()) SWIG_fail; | |
12693 | } | |
12694 | resultobj = SWIG_Py_Void(); | |
12695 | return resultobj; | |
12696 | fail: | |
12697 | return NULL; | |
d55e5bfc RD |
12698 | } |
12699 | ||
12700 | ||
554f62e9 RD |
12701 | SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12702 | PyObject *resultobj = 0; | |
12703 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12704 | void *argp1 = 0 ; | |
12705 | int res1 = 0 ; | |
12706 | PyObject *swig_obj[1] ; | |
12707 | ||
12708 | if (!args) SWIG_fail; | |
12709 | swig_obj[0] = args; | |
12710 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12711 | if (!SWIG_IsOK(res1)) { | |
12712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12713 | } | |
12714 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12715 | { | |
12716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12717 | (arg1)->Init(); | |
12718 | wxPyEndAllowThreads(__tstate); | |
12719 | if (PyErr_Occurred()) SWIG_fail; | |
12720 | } | |
12721 | resultobj = SWIG_Py_Void(); | |
12722 | return resultobj; | |
12723 | fail: | |
12724 | return NULL; | |
12725 | } | |
12726 | ||
12727 | ||
12728 | SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
12729 | PyObject *resultobj = 0; | |
12730 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12731 | wxFont *arg2 = 0 ; | |
12732 | void *argp1 = 0 ; | |
12733 | int res1 = 0 ; | |
12734 | void *argp2 = 0 ; | |
12735 | int res2 = 0 ; | |
12736 | PyObject * obj0 = 0 ; | |
12737 | PyObject * obj1 = 0 ; | |
12738 | char * kwnames[] = { | |
12739 | (char *) "self",(char *) "font", NULL | |
12740 | }; | |
12741 | ||
12742 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
12743 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12744 | if (!SWIG_IsOK(res1)) { | |
12745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
12746 | } | |
12747 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12748 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
12749 | if (!SWIG_IsOK(res2)) { | |
12750 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12751 | } | |
12752 | if (!argp2) { | |
12753 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
12754 | } | |
12755 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
12756 | { | |
12757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12758 | (arg1)->InitFromFont((wxFont const &)*arg2); | |
12759 | wxPyEndAllowThreads(__tstate); | |
12760 | if (PyErr_Occurred()) SWIG_fail; | |
12761 | } | |
12762 | resultobj = SWIG_Py_Void(); | |
12763 | return resultobj; | |
12764 | fail: | |
12765 | return NULL; | |
d55e5bfc RD |
12766 | } |
12767 | ||
12768 | ||
554f62e9 RD |
12769 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12770 | PyObject *resultobj = 0; | |
12771 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12772 | int result; | |
12773 | void *argp1 = 0 ; | |
12774 | int res1 = 0 ; | |
12775 | PyObject *swig_obj[1] ; | |
12776 | ||
12777 | if (!args) SWIG_fail; | |
12778 | swig_obj[0] = args; | |
12779 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12780 | if (!SWIG_IsOK(res1)) { | |
12781 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12782 | } | |
12783 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12784 | { | |
12785 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12786 | result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize(); | |
12787 | wxPyEndAllowThreads(__tstate); | |
12788 | if (PyErr_Occurred()) SWIG_fail; | |
12789 | } | |
12790 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12791 | return resultobj; | |
12792 | fail: | |
12793 | return NULL; | |
d55e5bfc RD |
12794 | } |
12795 | ||
12796 | ||
554f62e9 RD |
12797 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12798 | PyObject *resultobj = 0; | |
12799 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12800 | wxSize result; | |
12801 | void *argp1 = 0 ; | |
12802 | int res1 = 0 ; | |
12803 | PyObject *swig_obj[1] ; | |
12804 | ||
12805 | if (!args) SWIG_fail; | |
12806 | swig_obj[0] = args; | |
12807 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12808 | if (!SWIG_IsOK(res1)) { | |
12809 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12810 | } | |
12811 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12812 | { | |
12813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12814 | result = ((wxNativeFontInfo const *)arg1)->GetPixelSize(); | |
12815 | wxPyEndAllowThreads(__tstate); | |
12816 | if (PyErr_Occurred()) SWIG_fail; | |
12817 | } | |
12818 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
12819 | return resultobj; | |
12820 | fail: | |
12821 | return NULL; | |
d55e5bfc RD |
12822 | } |
12823 | ||
12824 | ||
554f62e9 RD |
12825 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12826 | PyObject *resultobj = 0; | |
12827 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12828 | wxFontStyle result; | |
12829 | void *argp1 = 0 ; | |
12830 | int res1 = 0 ; | |
12831 | PyObject *swig_obj[1] ; | |
12832 | ||
12833 | if (!args) SWIG_fail; | |
12834 | swig_obj[0] = args; | |
12835 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12836 | if (!SWIG_IsOK(res1)) { | |
12837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12838 | } | |
12839 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12840 | { | |
12841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12842 | result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle(); | |
12843 | wxPyEndAllowThreads(__tstate); | |
12844 | if (PyErr_Occurred()) SWIG_fail; | |
12845 | } | |
12846 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12847 | return resultobj; | |
12848 | fail: | |
12849 | return NULL; | |
d55e5bfc RD |
12850 | } |
12851 | ||
12852 | ||
554f62e9 RD |
12853 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12854 | PyObject *resultobj = 0; | |
12855 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12856 | wxFontWeight result; | |
12857 | void *argp1 = 0 ; | |
12858 | int res1 = 0 ; | |
12859 | PyObject *swig_obj[1] ; | |
12860 | ||
12861 | if (!args) SWIG_fail; | |
12862 | swig_obj[0] = args; | |
12863 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12864 | if (!SWIG_IsOK(res1)) { | |
12865 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12866 | } | |
12867 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12868 | { | |
12869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12870 | result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight(); | |
12871 | wxPyEndAllowThreads(__tstate); | |
12872 | if (PyErr_Occurred()) SWIG_fail; | |
12873 | } | |
12874 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12875 | return resultobj; | |
12876 | fail: | |
12877 | return NULL; | |
d55e5bfc RD |
12878 | } |
12879 | ||
12880 | ||
554f62e9 RD |
12881 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12882 | PyObject *resultobj = 0; | |
12883 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12884 | bool result; | |
12885 | void *argp1 = 0 ; | |
12886 | int res1 = 0 ; | |
12887 | PyObject *swig_obj[1] ; | |
12888 | ||
12889 | if (!args) SWIG_fail; | |
12890 | swig_obj[0] = args; | |
12891 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12892 | if (!SWIG_IsOK(res1)) { | |
12893 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12894 | } | |
12895 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12896 | { | |
12897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12898 | result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined(); | |
12899 | wxPyEndAllowThreads(__tstate); | |
12900 | if (PyErr_Occurred()) SWIG_fail; | |
12901 | } | |
12902 | { | |
12903 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12904 | } | |
12905 | return resultobj; | |
12906 | fail: | |
12907 | return NULL; | |
d55e5bfc RD |
12908 | } |
12909 | ||
12910 | ||
554f62e9 RD |
12911 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12912 | PyObject *resultobj = 0; | |
12913 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12914 | wxString result; | |
12915 | void *argp1 = 0 ; | |
12916 | int res1 = 0 ; | |
12917 | PyObject *swig_obj[1] ; | |
12918 | ||
12919 | if (!args) SWIG_fail; | |
12920 | swig_obj[0] = args; | |
12921 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12922 | if (!SWIG_IsOK(res1)) { | |
12923 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12924 | } | |
12925 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12926 | { | |
12927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12928 | result = ((wxNativeFontInfo const *)arg1)->GetFaceName(); | |
12929 | wxPyEndAllowThreads(__tstate); | |
12930 | if (PyErr_Occurred()) SWIG_fail; | |
12931 | } | |
12932 | { | |
093d3ff1 | 12933 | #if wxUSE_UNICODE |
554f62e9 | 12934 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 12935 | #else |
554f62e9 | 12936 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 12937 | #endif |
554f62e9 RD |
12938 | } |
12939 | return resultobj; | |
12940 | fail: | |
12941 | return NULL; | |
d55e5bfc RD |
12942 | } |
12943 | ||
12944 | ||
554f62e9 RD |
12945 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12946 | PyObject *resultobj = 0; | |
12947 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12948 | wxFontFamily result; | |
12949 | void *argp1 = 0 ; | |
12950 | int res1 = 0 ; | |
12951 | PyObject *swig_obj[1] ; | |
12952 | ||
12953 | if (!args) SWIG_fail; | |
12954 | swig_obj[0] = args; | |
12955 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12956 | if (!SWIG_IsOK(res1)) { | |
12957 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12958 | } | |
12959 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12960 | { | |
12961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12962 | result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily(); | |
12963 | wxPyEndAllowThreads(__tstate); | |
12964 | if (PyErr_Occurred()) SWIG_fail; | |
12965 | } | |
12966 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12967 | return resultobj; | |
12968 | fail: | |
12969 | return NULL; | |
d55e5bfc RD |
12970 | } |
12971 | ||
12972 | ||
554f62e9 RD |
12973 | SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
12974 | PyObject *resultobj = 0; | |
12975 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
12976 | wxFontEncoding result; | |
12977 | void *argp1 = 0 ; | |
12978 | int res1 = 0 ; | |
12979 | PyObject *swig_obj[1] ; | |
12980 | ||
12981 | if (!args) SWIG_fail; | |
12982 | swig_obj[0] = args; | |
12983 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
12984 | if (!SWIG_IsOK(res1)) { | |
12985 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
12986 | } | |
12987 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
12988 | { | |
12989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12990 | result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding(); | |
12991 | wxPyEndAllowThreads(__tstate); | |
12992 | if (PyErr_Occurred()) SWIG_fail; | |
12993 | } | |
12994 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
12995 | return resultobj; | |
12996 | fail: | |
12997 | return NULL; | |
12998 | } | |
12999 | ||
13000 | ||
13001 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13002 | PyObject *resultobj = 0; | |
13003 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13004 | int arg2 ; | |
13005 | void *argp1 = 0 ; | |
13006 | int res1 = 0 ; | |
13007 | int val2 ; | |
13008 | int ecode2 = 0 ; | |
13009 | PyObject * obj0 = 0 ; | |
13010 | PyObject * obj1 = 0 ; | |
13011 | char * kwnames[] = { | |
13012 | (char *) "self",(char *) "pointsize", NULL | |
13013 | }; | |
13014 | ||
13015 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
13016 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13017 | if (!SWIG_IsOK(res1)) { | |
13018 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13019 | } | |
13020 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13021 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13022 | if (!SWIG_IsOK(ecode2)) { | |
13023 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
13024 | } | |
13025 | arg2 = static_cast< int >(val2); | |
13026 | { | |
13027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13028 | (arg1)->SetPointSize(arg2); | |
13029 | wxPyEndAllowThreads(__tstate); | |
13030 | if (PyErr_Occurred()) SWIG_fail; | |
13031 | } | |
13032 | resultobj = SWIG_Py_Void(); | |
13033 | return resultobj; | |
13034 | fail: | |
13035 | return NULL; | |
13036 | } | |
13037 | ||
13038 | ||
13039 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13040 | PyObject *resultobj = 0; | |
13041 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13042 | wxSize *arg2 = 0 ; | |
13043 | void *argp1 = 0 ; | |
13044 | int res1 = 0 ; | |
13045 | wxSize temp2 ; | |
13046 | PyObject * obj0 = 0 ; | |
13047 | PyObject * obj1 = 0 ; | |
13048 | char * kwnames[] = { | |
13049 | (char *) "self",(char *) "pixelSize", NULL | |
13050 | }; | |
13051 | ||
13052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
13053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13054 | if (!SWIG_IsOK(res1)) { | |
13055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13056 | } | |
13057 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13058 | { | |
13059 | arg2 = &temp2; | |
13060 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13061 | } | |
13062 | { | |
13063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13064 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
13065 | wxPyEndAllowThreads(__tstate); | |
13066 | if (PyErr_Occurred()) SWIG_fail; | |
13067 | } | |
13068 | resultobj = SWIG_Py_Void(); | |
13069 | return resultobj; | |
13070 | fail: | |
13071 | return NULL; | |
13072 | } | |
13073 | ||
13074 | ||
13075 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13076 | PyObject *resultobj = 0; | |
13077 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13078 | wxFontStyle arg2 ; | |
13079 | void *argp1 = 0 ; | |
13080 | int res1 = 0 ; | |
13081 | int val2 ; | |
13082 | int ecode2 = 0 ; | |
13083 | PyObject * obj0 = 0 ; | |
13084 | PyObject * obj1 = 0 ; | |
13085 | char * kwnames[] = { | |
13086 | (char *) "self",(char *) "style", NULL | |
13087 | }; | |
13088 | ||
13089 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
13090 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13091 | if (!SWIG_IsOK(res1)) { | |
13092 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13093 | } | |
13094 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13095 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13096 | if (!SWIG_IsOK(ecode2)) { | |
13097 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'"); | |
13098 | } | |
13099 | arg2 = static_cast< wxFontStyle >(val2); | |
13100 | { | |
13101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13102 | (arg1)->SetStyle(arg2); | |
13103 | wxPyEndAllowThreads(__tstate); | |
13104 | if (PyErr_Occurred()) SWIG_fail; | |
13105 | } | |
13106 | resultobj = SWIG_Py_Void(); | |
13107 | return resultobj; | |
13108 | fail: | |
13109 | return NULL; | |
13110 | } | |
13111 | ||
13112 | ||
13113 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13114 | PyObject *resultobj = 0; | |
13115 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13116 | wxFontWeight arg2 ; | |
13117 | void *argp1 = 0 ; | |
13118 | int res1 = 0 ; | |
13119 | int val2 ; | |
13120 | int ecode2 = 0 ; | |
13121 | PyObject * obj0 = 0 ; | |
13122 | PyObject * obj1 = 0 ; | |
13123 | char * kwnames[] = { | |
13124 | (char *) "self",(char *) "weight", NULL | |
13125 | }; | |
13126 | ||
13127 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
13128 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13129 | if (!SWIG_IsOK(res1)) { | |
13130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13131 | } | |
13132 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13133 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13134 | if (!SWIG_IsOK(ecode2)) { | |
13135 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'"); | |
13136 | } | |
13137 | arg2 = static_cast< wxFontWeight >(val2); | |
13138 | { | |
13139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13140 | (arg1)->SetWeight(arg2); | |
13141 | wxPyEndAllowThreads(__tstate); | |
13142 | if (PyErr_Occurred()) SWIG_fail; | |
13143 | } | |
13144 | resultobj = SWIG_Py_Void(); | |
13145 | return resultobj; | |
13146 | fail: | |
13147 | return NULL; | |
13148 | } | |
13149 | ||
13150 | ||
13151 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13152 | PyObject *resultobj = 0; | |
13153 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13154 | bool arg2 ; | |
13155 | void *argp1 = 0 ; | |
13156 | int res1 = 0 ; | |
13157 | bool val2 ; | |
13158 | int ecode2 = 0 ; | |
13159 | PyObject * obj0 = 0 ; | |
13160 | PyObject * obj1 = 0 ; | |
13161 | char * kwnames[] = { | |
13162 | (char *) "self",(char *) "underlined", NULL | |
13163 | }; | |
13164 | ||
13165 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
13166 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13167 | if (!SWIG_IsOK(res1)) { | |
13168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13169 | } | |
13170 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13171 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
13172 | if (!SWIG_IsOK(ecode2)) { | |
13173 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
13174 | } | |
13175 | arg2 = static_cast< bool >(val2); | |
13176 | { | |
13177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13178 | (arg1)->SetUnderlined(arg2); | |
13179 | wxPyEndAllowThreads(__tstate); | |
13180 | if (PyErr_Occurred()) SWIG_fail; | |
13181 | } | |
13182 | resultobj = SWIG_Py_Void(); | |
13183 | return resultobj; | |
13184 | fail: | |
13185 | return NULL; | |
13186 | } | |
13187 | ||
13188 | ||
13189 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13190 | PyObject *resultobj = 0; | |
13191 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13192 | wxString arg2 ; | |
704eda0c | 13193 | bool result; |
554f62e9 RD |
13194 | void *argp1 = 0 ; |
13195 | int res1 = 0 ; | |
13196 | PyObject * obj0 = 0 ; | |
13197 | PyObject * obj1 = 0 ; | |
13198 | char * kwnames[] = { | |
13199 | (char *) "self",(char *) "facename", NULL | |
13200 | }; | |
13201 | ||
13202 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
13203 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13204 | if (!SWIG_IsOK(res1)) { | |
13205 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13206 | } | |
13207 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13208 | { | |
13209 | wxString* sptr = wxString_in_helper(obj1); | |
13210 | if (sptr == NULL) SWIG_fail; | |
13211 | arg2 = *sptr; | |
13212 | delete sptr; | |
13213 | } | |
13214 | { | |
13215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 13216 | result = (bool)(arg1)->SetFaceName(arg2); |
554f62e9 RD |
13217 | wxPyEndAllowThreads(__tstate); |
13218 | if (PyErr_Occurred()) SWIG_fail; | |
13219 | } | |
704eda0c RD |
13220 | { |
13221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13222 | } | |
554f62e9 RD |
13223 | return resultobj; |
13224 | fail: | |
13225 | return NULL; | |
13226 | } | |
13227 | ||
13228 | ||
13229 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13230 | PyObject *resultobj = 0; | |
13231 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13232 | wxFontFamily arg2 ; | |
13233 | void *argp1 = 0 ; | |
13234 | int res1 = 0 ; | |
13235 | int val2 ; | |
13236 | int ecode2 = 0 ; | |
13237 | PyObject * obj0 = 0 ; | |
13238 | PyObject * obj1 = 0 ; | |
13239 | char * kwnames[] = { | |
13240 | (char *) "self",(char *) "family", NULL | |
13241 | }; | |
13242 | ||
13243 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
13244 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13245 | if (!SWIG_IsOK(res1)) { | |
13246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13247 | } | |
13248 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13249 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13250 | if (!SWIG_IsOK(ecode2)) { | |
13251 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
13252 | } | |
13253 | arg2 = static_cast< wxFontFamily >(val2); | |
13254 | { | |
13255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13256 | (arg1)->SetFamily(arg2); | |
13257 | wxPyEndAllowThreads(__tstate); | |
13258 | if (PyErr_Occurred()) SWIG_fail; | |
13259 | } | |
13260 | resultobj = SWIG_Py_Void(); | |
13261 | return resultobj; | |
13262 | fail: | |
13263 | return NULL; | |
13264 | } | |
13265 | ||
13266 | ||
13267 | SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13268 | PyObject *resultobj = 0; | |
13269 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13270 | wxFontEncoding arg2 ; | |
13271 | void *argp1 = 0 ; | |
13272 | int res1 = 0 ; | |
13273 | int val2 ; | |
13274 | int ecode2 = 0 ; | |
13275 | PyObject * obj0 = 0 ; | |
13276 | PyObject * obj1 = 0 ; | |
13277 | char * kwnames[] = { | |
13278 | (char *) "self",(char *) "encoding", NULL | |
13279 | }; | |
13280 | ||
13281 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
13282 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13283 | if (!SWIG_IsOK(res1)) { | |
13284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13285 | } | |
13286 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13287 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
13288 | if (!SWIG_IsOK(ecode2)) { | |
13289 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13290 | } | |
13291 | arg2 = static_cast< wxFontEncoding >(val2); | |
13292 | { | |
13293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13294 | (arg1)->SetEncoding(arg2); | |
13295 | wxPyEndAllowThreads(__tstate); | |
13296 | if (PyErr_Occurred()) SWIG_fail; | |
13297 | } | |
13298 | resultobj = SWIG_Py_Void(); | |
13299 | return resultobj; | |
13300 | fail: | |
13301 | return NULL; | |
13302 | } | |
13303 | ||
13304 | ||
13305 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13306 | PyObject *resultobj = 0; | |
13307 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13308 | wxString *arg2 = 0 ; | |
13309 | bool result; | |
13310 | void *argp1 = 0 ; | |
13311 | int res1 = 0 ; | |
13312 | bool temp2 = false ; | |
13313 | PyObject * obj0 = 0 ; | |
13314 | PyObject * obj1 = 0 ; | |
13315 | char * kwnames[] = { | |
13316 | (char *) "self",(char *) "s", NULL | |
13317 | }; | |
13318 | ||
13319 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13320 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13321 | if (!SWIG_IsOK(res1)) { | |
13322 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13323 | } | |
13324 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13325 | { | |
13326 | arg2 = wxString_in_helper(obj1); | |
13327 | if (arg2 == NULL) SWIG_fail; | |
13328 | temp2 = true; | |
13329 | } | |
13330 | { | |
13331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13332 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
13333 | wxPyEndAllowThreads(__tstate); | |
13334 | if (PyErr_Occurred()) SWIG_fail; | |
13335 | } | |
13336 | { | |
13337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13338 | } | |
13339 | { | |
13340 | if (temp2) | |
13341 | delete arg2; | |
13342 | } | |
13343 | return resultobj; | |
13344 | fail: | |
13345 | { | |
13346 | if (temp2) | |
13347 | delete arg2; | |
13348 | } | |
13349 | return NULL; | |
d55e5bfc RD |
13350 | } |
13351 | ||
13352 | ||
554f62e9 RD |
13353 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13354 | PyObject *resultobj = 0; | |
13355 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13356 | wxString result; | |
13357 | void *argp1 = 0 ; | |
13358 | int res1 = 0 ; | |
13359 | PyObject *swig_obj[1] ; | |
13360 | ||
13361 | if (!args) SWIG_fail; | |
13362 | swig_obj[0] = args; | |
13363 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13364 | if (!SWIG_IsOK(res1)) { | |
13365 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
13366 | } | |
13367 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13368 | { | |
13369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13370 | result = ((wxNativeFontInfo const *)arg1)->ToString(); | |
13371 | wxPyEndAllowThreads(__tstate); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | } | |
13374 | { | |
13375 | #if wxUSE_UNICODE | |
13376 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13377 | #else | |
13378 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13379 | #endif | |
13380 | } | |
13381 | return resultobj; | |
13382 | fail: | |
13383 | return NULL; | |
d55e5bfc RD |
13384 | } |
13385 | ||
13386 | ||
554f62e9 RD |
13387 | SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13388 | PyObject *resultobj = 0; | |
13389 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13390 | wxString result; | |
13391 | void *argp1 = 0 ; | |
13392 | int res1 = 0 ; | |
13393 | PyObject *swig_obj[1] ; | |
13394 | ||
13395 | if (!args) SWIG_fail; | |
13396 | swig_obj[0] = args; | |
13397 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13398 | if (!SWIG_IsOK(res1)) { | |
13399 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13400 | } | |
13401 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13402 | { | |
13403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13404 | result = wxNativeFontInfo___str__(arg1); | |
13405 | wxPyEndAllowThreads(__tstate); | |
13406 | if (PyErr_Occurred()) SWIG_fail; | |
13407 | } | |
13408 | { | |
13409 | #if wxUSE_UNICODE | |
13410 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13411 | #else | |
13412 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13413 | #endif | |
13414 | } | |
13415 | return resultobj; | |
13416 | fail: | |
13417 | return NULL; | |
13418 | } | |
13419 | ||
13420 | ||
13421 | SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13422 | PyObject *resultobj = 0; | |
13423 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13424 | wxString *arg2 = 0 ; | |
13425 | bool result; | |
13426 | void *argp1 = 0 ; | |
13427 | int res1 = 0 ; | |
13428 | bool temp2 = false ; | |
13429 | PyObject * obj0 = 0 ; | |
13430 | PyObject * obj1 = 0 ; | |
13431 | char * kwnames[] = { | |
13432 | (char *) "self",(char *) "s", NULL | |
13433 | }; | |
13434 | ||
13435 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13436 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13437 | if (!SWIG_IsOK(res1)) { | |
13438 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'"); | |
13439 | } | |
13440 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13441 | { | |
13442 | arg2 = wxString_in_helper(obj1); | |
13443 | if (arg2 == NULL) SWIG_fail; | |
13444 | temp2 = true; | |
13445 | } | |
13446 | { | |
13447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13448 | result = (bool)(arg1)->FromUserString((wxString const &)*arg2); | |
13449 | wxPyEndAllowThreads(__tstate); | |
13450 | if (PyErr_Occurred()) SWIG_fail; | |
13451 | } | |
13452 | { | |
13453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13454 | } | |
13455 | { | |
13456 | if (temp2) | |
13457 | delete arg2; | |
13458 | } | |
13459 | return resultobj; | |
13460 | fail: | |
13461 | { | |
13462 | if (temp2) | |
13463 | delete arg2; | |
13464 | } | |
13465 | return NULL; | |
a2569024 RD |
13466 | } |
13467 | ||
13468 | ||
554f62e9 RD |
13469 | SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13470 | PyObject *resultobj = 0; | |
13471 | wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ; | |
13472 | wxString result; | |
13473 | void *argp1 = 0 ; | |
13474 | int res1 = 0 ; | |
13475 | PyObject *swig_obj[1] ; | |
13476 | ||
13477 | if (!args) SWIG_fail; | |
13478 | swig_obj[0] = args; | |
13479 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
13480 | if (!SWIG_IsOK(res1)) { | |
13481 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'"); | |
13482 | } | |
13483 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
13484 | { | |
13485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13486 | result = ((wxNativeFontInfo const *)arg1)->ToUserString(); | |
13487 | wxPyEndAllowThreads(__tstate); | |
13488 | if (PyErr_Occurred()) SWIG_fail; | |
13489 | } | |
13490 | { | |
13491 | #if wxUSE_UNICODE | |
13492 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13493 | #else | |
13494 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13495 | #endif | |
13496 | } | |
13497 | return resultobj; | |
13498 | fail: | |
13499 | return NULL; | |
d55e5bfc RD |
13500 | } |
13501 | ||
13502 | ||
554f62e9 RD |
13503 | SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13504 | PyObject *obj; | |
13505 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13506 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj)); | |
13507 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13508 | } |
13509 | ||
554f62e9 RD |
13510 | SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13511 | return SWIG_Python_InitShadowInstance(args); | |
13512 | } | |
d55e5bfc | 13513 | |
554f62e9 RD |
13514 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13515 | PyObject *resultobj = 0; | |
13516 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13517 | wxString *arg2 = (wxString *) 0 ; | |
13518 | void *argp1 = 0 ; | |
13519 | int res1 = 0 ; | |
13520 | bool temp2 = false ; | |
13521 | PyObject *swig_obj[2] ; | |
13522 | ||
13523 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail; | |
13524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13525 | if (!SWIG_IsOK(res1)) { | |
13526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13527 | } | |
13528 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13529 | { | |
13530 | arg2 = wxString_in_helper(swig_obj[1]); | |
13531 | if (arg2 == NULL) SWIG_fail; | |
13532 | temp2 = true; | |
13533 | } | |
13534 | if (arg1) (arg1)->facename = *arg2; | |
13535 | ||
13536 | resultobj = SWIG_Py_Void(); | |
13537 | { | |
13538 | if (temp2) | |
13539 | delete arg2; | |
13540 | } | |
13541 | return resultobj; | |
13542 | fail: | |
13543 | { | |
13544 | if (temp2) | |
13545 | delete arg2; | |
13546 | } | |
13547 | return NULL; | |
d55e5bfc RD |
13548 | } |
13549 | ||
13550 | ||
554f62e9 RD |
13551 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13552 | PyObject *resultobj = 0; | |
13553 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13554 | wxString *result = 0 ; | |
13555 | void *argp1 = 0 ; | |
13556 | int res1 = 0 ; | |
13557 | PyObject *swig_obj[1] ; | |
13558 | ||
13559 | if (!args) SWIG_fail; | |
13560 | swig_obj[0] = args; | |
13561 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13562 | if (!SWIG_IsOK(res1)) { | |
13563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13564 | } | |
13565 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13566 | result = (wxString *)& ((arg1)->facename); | |
13567 | { | |
13568 | #if wxUSE_UNICODE | |
13569 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
13570 | #else | |
13571 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
13572 | #endif | |
13573 | } | |
13574 | return resultobj; | |
13575 | fail: | |
13576 | return NULL; | |
d55e5bfc RD |
13577 | } |
13578 | ||
13579 | ||
554f62e9 RD |
13580 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13581 | PyObject *resultobj = 0; | |
13582 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13583 | wxFontEncoding arg2 ; | |
13584 | void *argp1 = 0 ; | |
13585 | int res1 = 0 ; | |
13586 | int val2 ; | |
13587 | int ecode2 = 0 ; | |
13588 | PyObject *swig_obj[2] ; | |
13589 | ||
13590 | if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail; | |
13591 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13592 | if (!SWIG_IsOK(res1)) { | |
13593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13594 | } | |
13595 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13596 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
13597 | if (!SWIG_IsOK(ecode2)) { | |
13598 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
13599 | } | |
13600 | arg2 = static_cast< wxFontEncoding >(val2); | |
13601 | if (arg1) (arg1)->encoding = arg2; | |
13602 | ||
13603 | resultobj = SWIG_Py_Void(); | |
13604 | return resultobj; | |
13605 | fail: | |
13606 | return NULL; | |
d55e5bfc RD |
13607 | } |
13608 | ||
13609 | ||
554f62e9 RD |
13610 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13611 | PyObject *resultobj = 0; | |
13612 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13613 | wxFontEncoding result; | |
13614 | void *argp1 = 0 ; | |
13615 | int res1 = 0 ; | |
13616 | PyObject *swig_obj[1] ; | |
13617 | ||
13618 | if (!args) SWIG_fail; | |
13619 | swig_obj[0] = args; | |
13620 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13621 | if (!SWIG_IsOK(res1)) { | |
13622 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13623 | } | |
13624 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13625 | result = (wxFontEncoding) ((arg1)->encoding); | |
13626 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13627 | return resultobj; | |
13628 | fail: | |
13629 | return NULL; | |
d55e5bfc RD |
13630 | } |
13631 | ||
13632 | ||
554f62e9 RD |
13633 | SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13634 | PyObject *resultobj = 0; | |
13635 | wxNativeEncodingInfo *result = 0 ; | |
13636 | ||
13637 | if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail; | |
13638 | { | |
13639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13640 | result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo(); | |
13641 | wxPyEndAllowThreads(__tstate); | |
13642 | if (PyErr_Occurred()) SWIG_fail; | |
13643 | } | |
13644 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 ); | |
13645 | return resultobj; | |
13646 | fail: | |
13647 | return NULL; | |
d55e5bfc RD |
13648 | } |
13649 | ||
13650 | ||
554f62e9 RD |
13651 | SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13652 | PyObject *resultobj = 0; | |
13653 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13654 | void *argp1 = 0 ; | |
13655 | int res1 = 0 ; | |
13656 | PyObject *swig_obj[1] ; | |
13657 | ||
13658 | if (!args) SWIG_fail; | |
13659 | swig_obj[0] = args; | |
13660 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 ); | |
13661 | if (!SWIG_IsOK(res1)) { | |
13662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13663 | } | |
13664 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13665 | { | |
13666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13667 | delete arg1; | |
d55e5bfc | 13668 | |
554f62e9 RD |
13669 | wxPyEndAllowThreads(__tstate); |
13670 | if (PyErr_Occurred()) SWIG_fail; | |
13671 | } | |
13672 | resultobj = SWIG_Py_Void(); | |
13673 | return resultobj; | |
13674 | fail: | |
13675 | return NULL; | |
13676 | } | |
13677 | ||
13678 | ||
13679 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13680 | PyObject *resultobj = 0; | |
13681 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13682 | wxString *arg2 = 0 ; | |
13683 | bool result; | |
13684 | void *argp1 = 0 ; | |
13685 | int res1 = 0 ; | |
13686 | bool temp2 = false ; | |
13687 | PyObject * obj0 = 0 ; | |
13688 | PyObject * obj1 = 0 ; | |
13689 | char * kwnames[] = { | |
13690 | (char *) "self",(char *) "s", NULL | |
13691 | }; | |
13692 | ||
13693 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
13694 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13695 | if (!SWIG_IsOK(res1)) { | |
13696 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'"); | |
13697 | } | |
13698 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13699 | { | |
13700 | arg2 = wxString_in_helper(obj1); | |
13701 | if (arg2 == NULL) SWIG_fail; | |
13702 | temp2 = true; | |
13703 | } | |
13704 | { | |
13705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13706 | result = (bool)(arg1)->FromString((wxString const &)*arg2); | |
13707 | wxPyEndAllowThreads(__tstate); | |
13708 | if (PyErr_Occurred()) SWIG_fail; | |
13709 | } | |
13710 | { | |
13711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13712 | } | |
13713 | { | |
13714 | if (temp2) | |
13715 | delete arg2; | |
13716 | } | |
13717 | return resultobj; | |
13718 | fail: | |
13719 | { | |
13720 | if (temp2) | |
13721 | delete arg2; | |
13722 | } | |
13723 | return NULL; | |
d55e5bfc RD |
13724 | } |
13725 | ||
13726 | ||
554f62e9 RD |
13727 | SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13728 | PyObject *resultobj = 0; | |
13729 | wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ; | |
13730 | wxString result; | |
13731 | void *argp1 = 0 ; | |
13732 | int res1 = 0 ; | |
13733 | PyObject *swig_obj[1] ; | |
13734 | ||
13735 | if (!args) SWIG_fail; | |
13736 | swig_obj[0] = args; | |
13737 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13738 | if (!SWIG_IsOK(res1)) { | |
13739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'"); | |
13740 | } | |
13741 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13742 | { | |
13743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13744 | result = ((wxNativeEncodingInfo const *)arg1)->ToString(); | |
13745 | wxPyEndAllowThreads(__tstate); | |
13746 | if (PyErr_Occurred()) SWIG_fail; | |
13747 | } | |
13748 | { | |
13749 | #if wxUSE_UNICODE | |
13750 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13751 | #else | |
13752 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13753 | #endif | |
13754 | } | |
13755 | return resultobj; | |
13756 | fail: | |
13757 | return NULL; | |
d55e5bfc RD |
13758 | } |
13759 | ||
13760 | ||
554f62e9 RD |
13761 | SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13762 | PyObject *obj; | |
13763 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
13764 | SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj)); | |
13765 | return SWIG_Py_Void(); | |
d55e5bfc RD |
13766 | } |
13767 | ||
554f62e9 RD |
13768 | SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13769 | return SWIG_Python_InitShadowInstance(args); | |
13770 | } | |
d55e5bfc | 13771 | |
554f62e9 RD |
13772 | SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
13773 | PyObject *resultobj = 0; | |
13774 | wxFontEncoding arg1 ; | |
13775 | wxNativeEncodingInfo *result = 0 ; | |
13776 | int val1 ; | |
13777 | int ecode1 = 0 ; | |
13778 | PyObject * obj0 = 0 ; | |
13779 | char * kwnames[] = { | |
13780 | (char *) "encoding", NULL | |
13781 | }; | |
13782 | ||
13783 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13784 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
13785 | if (!SWIG_IsOK(ecode1)) { | |
13786 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
13787 | } | |
13788 | arg1 = static_cast< wxFontEncoding >(val1); | |
13789 | { | |
13790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13791 | result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1); | |
13792 | wxPyEndAllowThreads(__tstate); | |
13793 | if (PyErr_Occurred()) SWIG_fail; | |
13794 | } | |
13795 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 ); | |
13796 | return resultobj; | |
13797 | fail: | |
13798 | return NULL; | |
13799 | } | |
13800 | ||
13801 | ||
13802 | SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13803 | PyObject *resultobj = 0; | |
13804 | wxNativeEncodingInfo *arg1 = 0 ; | |
13805 | bool result; | |
13806 | void *argp1 = 0 ; | |
13807 | int res1 = 0 ; | |
13808 | PyObject * obj0 = 0 ; | |
13809 | char * kwnames[] = { | |
13810 | (char *) "info", NULL | |
13811 | }; | |
13812 | ||
13813 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail; | |
13814 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0); | |
13815 | if (!SWIG_IsOK(res1)) { | |
13816 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13817 | } | |
13818 | if (!argp1) { | |
13819 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'"); | |
13820 | } | |
13821 | arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1); | |
13822 | { | |
13823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13824 | result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1); | |
13825 | wxPyEndAllowThreads(__tstate); | |
13826 | if (PyErr_Occurred()) SWIG_fail; | |
13827 | } | |
13828 | { | |
13829 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13830 | } | |
13831 | return resultobj; | |
13832 | fail: | |
13833 | return NULL; | |
d55e5bfc RD |
13834 | } |
13835 | ||
13836 | ||
554f62e9 RD |
13837 | SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13838 | PyObject *resultobj = 0; | |
13839 | wxFontMapper *result = 0 ; | |
13840 | ||
13841 | if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail; | |
13842 | { | |
13843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13844 | result = (wxFontMapper *)new wxFontMapper(); | |
13845 | wxPyEndAllowThreads(__tstate); | |
13846 | if (PyErr_Occurred()) SWIG_fail; | |
13847 | } | |
13848 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 ); | |
13849 | return resultobj; | |
13850 | fail: | |
13851 | return NULL; | |
d55e5bfc RD |
13852 | } |
13853 | ||
13854 | ||
554f62e9 RD |
13855 | SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13856 | PyObject *resultobj = 0; | |
13857 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13858 | void *argp1 = 0 ; | |
13859 | int res1 = 0 ; | |
13860 | PyObject *swig_obj[1] ; | |
13861 | ||
13862 | if (!args) SWIG_fail; | |
13863 | swig_obj[0] = args; | |
13864 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 ); | |
13865 | if (!SWIG_IsOK(res1)) { | |
13866 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13867 | } | |
13868 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13869 | { | |
13870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13871 | delete arg1; | |
d55e5bfc | 13872 | |
554f62e9 RD |
13873 | wxPyEndAllowThreads(__tstate); |
13874 | if (PyErr_Occurred()) SWIG_fail; | |
13875 | } | |
13876 | resultobj = SWIG_Py_Void(); | |
13877 | return resultobj; | |
13878 | fail: | |
13879 | return NULL; | |
d55e5bfc RD |
13880 | } |
13881 | ||
13882 | ||
554f62e9 RD |
13883 | SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13884 | PyObject *resultobj = 0; | |
13885 | wxFontMapper *result = 0 ; | |
13886 | ||
13887 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail; | |
13888 | { | |
13889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13890 | result = (wxFontMapper *)wxFontMapper::Get(); | |
13891 | wxPyEndAllowThreads(__tstate); | |
13892 | if (PyErr_Occurred()) SWIG_fail; | |
13893 | } | |
13894 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13895 | return resultobj; | |
13896 | fail: | |
13897 | return NULL; | |
13898 | } | |
13899 | ||
13900 | ||
13901 | SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13902 | PyObject *resultobj = 0; | |
13903 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13904 | wxFontMapper *result = 0 ; | |
13905 | void *argp1 = 0 ; | |
13906 | int res1 = 0 ; | |
13907 | PyObject * obj0 = 0 ; | |
13908 | char * kwnames[] = { | |
13909 | (char *) "mapper", NULL | |
13910 | }; | |
13911 | ||
13912 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail; | |
13913 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13914 | if (!SWIG_IsOK(res1)) { | |
13915 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13916 | } | |
13917 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13918 | { | |
13919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13920 | result = (wxFontMapper *)wxFontMapper::Set(arg1); | |
13921 | wxPyEndAllowThreads(__tstate); | |
13922 | if (PyErr_Occurred()) SWIG_fail; | |
13923 | } | |
13924 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13925 | return resultobj; | |
13926 | fail: | |
13927 | return NULL; | |
13928 | } | |
13929 | ||
13930 | ||
13931 | SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
13932 | PyObject *resultobj = 0; | |
13933 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
13934 | wxString *arg2 = 0 ; | |
13935 | bool arg3 = (bool) true ; | |
13936 | wxFontEncoding result; | |
13937 | void *argp1 = 0 ; | |
13938 | int res1 = 0 ; | |
13939 | bool temp2 = false ; | |
13940 | bool val3 ; | |
13941 | int ecode3 = 0 ; | |
13942 | PyObject * obj0 = 0 ; | |
13943 | PyObject * obj1 = 0 ; | |
13944 | PyObject * obj2 = 0 ; | |
13945 | char * kwnames[] = { | |
13946 | (char *) "self",(char *) "charset",(char *) "interactive", NULL | |
13947 | }; | |
13948 | ||
13949 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
13950 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
13951 | if (!SWIG_IsOK(res1)) { | |
13952 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
13953 | } | |
13954 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
13955 | { | |
13956 | arg2 = wxString_in_helper(obj1); | |
13957 | if (arg2 == NULL) SWIG_fail; | |
13958 | temp2 = true; | |
13959 | } | |
13960 | if (obj2) { | |
13961 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
13962 | if (!SWIG_IsOK(ecode3)) { | |
13963 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'"); | |
13964 | } | |
13965 | arg3 = static_cast< bool >(val3); | |
13966 | } | |
13967 | { | |
13968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13969 | result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3); | |
13970 | wxPyEndAllowThreads(__tstate); | |
13971 | if (PyErr_Occurred()) SWIG_fail; | |
13972 | } | |
13973 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
13974 | { | |
13975 | if (temp2) | |
13976 | delete arg2; | |
13977 | } | |
13978 | return resultobj; | |
13979 | fail: | |
13980 | { | |
13981 | if (temp2) | |
13982 | delete arg2; | |
13983 | } | |
13984 | return NULL; | |
d55e5bfc RD |
13985 | } |
13986 | ||
13987 | ||
554f62e9 RD |
13988 | SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
13989 | PyObject *resultobj = 0; | |
13990 | size_t result; | |
13991 | ||
13992 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail; | |
13993 | { | |
13994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13995 | result = (size_t)wxFontMapper::GetSupportedEncodingsCount(); | |
13996 | wxPyEndAllowThreads(__tstate); | |
13997 | if (PyErr_Occurred()) SWIG_fail; | |
13998 | } | |
13999 | resultobj = SWIG_From_size_t(static_cast< size_t >(result)); | |
14000 | return resultobj; | |
14001 | fail: | |
14002 | return NULL; | |
14003 | } | |
14004 | ||
14005 | ||
14006 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14007 | PyObject *resultobj = 0; | |
14008 | size_t arg1 ; | |
14009 | wxFontEncoding result; | |
14010 | size_t val1 ; | |
14011 | int ecode1 = 0 ; | |
14012 | PyObject * obj0 = 0 ; | |
14013 | char * kwnames[] = { | |
14014 | (char *) "n", NULL | |
14015 | }; | |
14016 | ||
14017 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail; | |
14018 | ecode1 = SWIG_AsVal_size_t(obj0, &val1); | |
14019 | if (!SWIG_IsOK(ecode1)) { | |
14020 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'"); | |
14021 | } | |
14022 | arg1 = static_cast< size_t >(val1); | |
14023 | { | |
14024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14025 | result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1); | |
14026 | wxPyEndAllowThreads(__tstate); | |
14027 | if (PyErr_Occurred()) SWIG_fail; | |
14028 | } | |
14029 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14030 | return resultobj; | |
14031 | fail: | |
14032 | return NULL; | |
14033 | } | |
14034 | ||
14035 | ||
14036 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14037 | PyObject *resultobj = 0; | |
14038 | wxFontEncoding arg1 ; | |
14039 | wxString result; | |
14040 | int val1 ; | |
14041 | int ecode1 = 0 ; | |
14042 | PyObject * obj0 = 0 ; | |
14043 | char * kwnames[] = { | |
14044 | (char *) "encoding", NULL | |
14045 | }; | |
14046 | ||
14047 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail; | |
14048 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14049 | if (!SWIG_IsOK(ecode1)) { | |
14050 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
14051 | } | |
14052 | arg1 = static_cast< wxFontEncoding >(val1); | |
14053 | { | |
14054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14055 | result = wxFontMapper::GetEncodingName(arg1); | |
14056 | wxPyEndAllowThreads(__tstate); | |
14057 | if (PyErr_Occurred()) SWIG_fail; | |
14058 | } | |
14059 | { | |
14060 | #if wxUSE_UNICODE | |
14061 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14062 | #else | |
14063 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14064 | #endif | |
14065 | } | |
14066 | return resultobj; | |
14067 | fail: | |
14068 | return NULL; | |
d55e5bfc RD |
14069 | } |
14070 | ||
14071 | ||
554f62e9 RD |
14072 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14073 | PyObject *resultobj = 0; | |
14074 | wxFontEncoding arg1 ; | |
14075 | wxString result; | |
14076 | int val1 ; | |
14077 | int ecode1 = 0 ; | |
14078 | PyObject * obj0 = 0 ; | |
14079 | char * kwnames[] = { | |
14080 | (char *) "encoding", NULL | |
14081 | }; | |
14082 | ||
14083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail; | |
14084 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14085 | if (!SWIG_IsOK(ecode1)) { | |
14086 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
14087 | } | |
14088 | arg1 = static_cast< wxFontEncoding >(val1); | |
14089 | { | |
14090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14091 | result = wxFontMapper::GetEncodingDescription(arg1); | |
14092 | wxPyEndAllowThreads(__tstate); | |
14093 | if (PyErr_Occurred()) SWIG_fail; | |
14094 | } | |
14095 | { | |
14096 | #if wxUSE_UNICODE | |
14097 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14098 | #else | |
14099 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14100 | #endif | |
14101 | } | |
14102 | return resultobj; | |
14103 | fail: | |
14104 | return NULL; | |
d55e5bfc RD |
14105 | } |
14106 | ||
14107 | ||
554f62e9 RD |
14108 | SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14109 | PyObject *resultobj = 0; | |
14110 | wxString *arg1 = 0 ; | |
14111 | wxFontEncoding result; | |
14112 | bool temp1 = false ; | |
14113 | PyObject * obj0 = 0 ; | |
14114 | char * kwnames[] = { | |
14115 | (char *) "name", NULL | |
14116 | }; | |
14117 | ||
14118 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail; | |
14119 | { | |
14120 | arg1 = wxString_in_helper(obj0); | |
14121 | if (arg1 == NULL) SWIG_fail; | |
14122 | temp1 = true; | |
14123 | } | |
14124 | { | |
14125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14126 | result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1); | |
14127 | wxPyEndAllowThreads(__tstate); | |
14128 | if (PyErr_Occurred()) SWIG_fail; | |
14129 | } | |
14130 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
14131 | { | |
14132 | if (temp1) | |
14133 | delete arg1; | |
14134 | } | |
14135 | return resultobj; | |
14136 | fail: | |
14137 | { | |
14138 | if (temp1) | |
14139 | delete arg1; | |
14140 | } | |
14141 | return NULL; | |
d55e5bfc RD |
14142 | } |
14143 | ||
14144 | ||
554f62e9 RD |
14145 | SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14146 | PyObject *resultobj = 0; | |
14147 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14148 | wxString *arg2 = 0 ; | |
14149 | void *argp1 = 0 ; | |
14150 | int res1 = 0 ; | |
14151 | bool temp2 = false ; | |
14152 | PyObject * obj0 = 0 ; | |
14153 | PyObject * obj1 = 0 ; | |
14154 | char * kwnames[] = { | |
14155 | (char *) "self",(char *) "prefix", NULL | |
14156 | }; | |
14157 | ||
14158 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail; | |
14159 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14160 | if (!SWIG_IsOK(res1)) { | |
14161 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14162 | } | |
14163 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14164 | { | |
14165 | arg2 = wxString_in_helper(obj1); | |
14166 | if (arg2 == NULL) SWIG_fail; | |
14167 | temp2 = true; | |
14168 | } | |
14169 | { | |
14170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14171 | (arg1)->SetConfigPath((wxString const &)*arg2); | |
14172 | wxPyEndAllowThreads(__tstate); | |
14173 | if (PyErr_Occurred()) SWIG_fail; | |
14174 | } | |
14175 | resultobj = SWIG_Py_Void(); | |
14176 | { | |
14177 | if (temp2) | |
14178 | delete arg2; | |
14179 | } | |
14180 | return resultobj; | |
14181 | fail: | |
14182 | { | |
14183 | if (temp2) | |
14184 | delete arg2; | |
14185 | } | |
14186 | return NULL; | |
d55e5bfc RD |
14187 | } |
14188 | ||
14189 | ||
554f62e9 RD |
14190 | SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14191 | PyObject *resultobj = 0; | |
14192 | wxString result; | |
14193 | ||
14194 | if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail; | |
14195 | { | |
14196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14197 | result = wxFontMapper::GetDefaultConfigPath(); | |
14198 | wxPyEndAllowThreads(__tstate); | |
14199 | if (PyErr_Occurred()) SWIG_fail; | |
14200 | } | |
14201 | { | |
14202 | #if wxUSE_UNICODE | |
14203 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14204 | #else | |
14205 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14206 | #endif | |
14207 | } | |
14208 | return resultobj; | |
14209 | fail: | |
14210 | return NULL; | |
14211 | } | |
14212 | ||
14213 | ||
14214 | SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14215 | PyObject *resultobj = 0; | |
14216 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14217 | wxFontEncoding arg2 ; | |
14218 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14219 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14220 | bool arg4 = (bool) true ; | |
14221 | PyObject *result = 0 ; | |
14222 | void *argp1 = 0 ; | |
14223 | int res1 = 0 ; | |
14224 | int val2 ; | |
14225 | int ecode2 = 0 ; | |
14226 | bool temp3 = false ; | |
14227 | bool val4 ; | |
14228 | int ecode4 = 0 ; | |
14229 | PyObject * obj0 = 0 ; | |
14230 | PyObject * obj1 = 0 ; | |
14231 | PyObject * obj2 = 0 ; | |
14232 | PyObject * obj3 = 0 ; | |
14233 | char * kwnames[] = { | |
14234 | (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL | |
14235 | }; | |
14236 | ||
14237 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
14238 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14239 | if (!SWIG_IsOK(res1)) { | |
14240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14241 | } | |
14242 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14243 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14244 | if (!SWIG_IsOK(ecode2)) { | |
14245 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14246 | } | |
14247 | arg2 = static_cast< wxFontEncoding >(val2); | |
14248 | if (obj2) { | |
d55e5bfc | 14249 | { |
554f62e9 RD |
14250 | arg3 = wxString_in_helper(obj2); |
14251 | if (arg3 == NULL) SWIG_fail; | |
14252 | temp3 = true; | |
d55e5bfc | 14253 | } |
554f62e9 RD |
14254 | } |
14255 | if (obj3) { | |
14256 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
14257 | if (!SWIG_IsOK(ecode4)) { | |
14258 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'"); | |
14259 | } | |
14260 | arg4 = static_cast< bool >(val4); | |
14261 | } | |
14262 | { | |
14263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14264 | result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4); | |
14265 | wxPyEndAllowThreads(__tstate); | |
14266 | if (PyErr_Occurred()) SWIG_fail; | |
14267 | } | |
14268 | resultobj = result; | |
14269 | { | |
14270 | if (temp3) | |
14271 | delete arg3; | |
14272 | } | |
14273 | return resultobj; | |
14274 | fail: | |
14275 | { | |
14276 | if (temp3) | |
14277 | delete arg3; | |
14278 | } | |
14279 | return NULL; | |
14280 | } | |
14281 | ||
14282 | ||
14283 | SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14284 | PyObject *resultobj = 0; | |
14285 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14286 | wxFontEncoding arg2 ; | |
14287 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
14288 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
14289 | bool result; | |
14290 | void *argp1 = 0 ; | |
14291 | int res1 = 0 ; | |
14292 | int val2 ; | |
14293 | int ecode2 = 0 ; | |
14294 | bool temp3 = false ; | |
14295 | PyObject * obj0 = 0 ; | |
14296 | PyObject * obj1 = 0 ; | |
14297 | PyObject * obj2 = 0 ; | |
14298 | char * kwnames[] = { | |
14299 | (char *) "self",(char *) "encoding",(char *) "facename", NULL | |
14300 | }; | |
14301 | ||
14302 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
14303 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14304 | if (!SWIG_IsOK(res1)) { | |
14305 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14306 | } | |
14307 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14308 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14309 | if (!SWIG_IsOK(ecode2)) { | |
14310 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
14311 | } | |
14312 | arg2 = static_cast< wxFontEncoding >(val2); | |
14313 | if (obj2) { | |
093d3ff1 | 14314 | { |
554f62e9 RD |
14315 | arg3 = wxString_in_helper(obj2); |
14316 | if (arg3 == NULL) SWIG_fail; | |
14317 | temp3 = true; | |
d55e5bfc | 14318 | } |
554f62e9 RD |
14319 | } |
14320 | { | |
14321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14322 | result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3); | |
14323 | wxPyEndAllowThreads(__tstate); | |
14324 | if (PyErr_Occurred()) SWIG_fail; | |
14325 | } | |
14326 | { | |
14327 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14328 | } | |
14329 | { | |
14330 | if (temp3) | |
14331 | delete arg3; | |
14332 | } | |
14333 | return resultobj; | |
14334 | fail: | |
14335 | { | |
14336 | if (temp3) | |
14337 | delete arg3; | |
14338 | } | |
14339 | return NULL; | |
14340 | } | |
14341 | ||
14342 | ||
14343 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14344 | PyObject *resultobj = 0; | |
14345 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14346 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14347 | void *argp1 = 0 ; | |
14348 | int res1 = 0 ; | |
14349 | void *argp2 = 0 ; | |
14350 | int res2 = 0 ; | |
14351 | PyObject * obj0 = 0 ; | |
14352 | PyObject * obj1 = 0 ; | |
14353 | char * kwnames[] = { | |
14354 | (char *) "self",(char *) "parent", NULL | |
14355 | }; | |
14356 | ||
14357 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail; | |
14358 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14359 | if (!SWIG_IsOK(res1)) { | |
14360 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14361 | } | |
14362 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14363 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
14364 | if (!SWIG_IsOK(res2)) { | |
14365 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
14366 | } | |
14367 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
14368 | { | |
14369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14370 | (arg1)->SetDialogParent(arg2); | |
14371 | wxPyEndAllowThreads(__tstate); | |
14372 | if (PyErr_Occurred()) SWIG_fail; | |
14373 | } | |
14374 | resultobj = SWIG_Py_Void(); | |
14375 | return resultobj; | |
14376 | fail: | |
14377 | return NULL; | |
14378 | } | |
14379 | ||
14380 | ||
14381 | SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14382 | PyObject *resultobj = 0; | |
14383 | wxFontMapper *arg1 = (wxFontMapper *) 0 ; | |
14384 | wxString *arg2 = 0 ; | |
14385 | void *argp1 = 0 ; | |
14386 | int res1 = 0 ; | |
14387 | bool temp2 = false ; | |
14388 | PyObject * obj0 = 0 ; | |
14389 | PyObject * obj1 = 0 ; | |
14390 | char * kwnames[] = { | |
14391 | (char *) "self",(char *) "title", NULL | |
14392 | }; | |
14393 | ||
14394 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail; | |
14395 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 ); | |
14396 | if (!SWIG_IsOK(res1)) { | |
14397 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'"); | |
14398 | } | |
14399 | arg1 = reinterpret_cast< wxFontMapper * >(argp1); | |
14400 | { | |
14401 | arg2 = wxString_in_helper(obj1); | |
14402 | if (arg2 == NULL) SWIG_fail; | |
14403 | temp2 = true; | |
14404 | } | |
14405 | { | |
14406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14407 | (arg1)->SetDialogTitle((wxString const &)*arg2); | |
14408 | wxPyEndAllowThreads(__tstate); | |
14409 | if (PyErr_Occurred()) SWIG_fail; | |
14410 | } | |
14411 | resultobj = SWIG_Py_Void(); | |
14412 | { | |
14413 | if (temp2) | |
14414 | delete arg2; | |
14415 | } | |
14416 | return resultobj; | |
14417 | fail: | |
14418 | { | |
14419 | if (temp2) | |
14420 | delete arg2; | |
14421 | } | |
14422 | return NULL; | |
14423 | } | |
14424 | ||
14425 | ||
14426 | SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14427 | PyObject *obj; | |
14428 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
14429 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj)); | |
14430 | return SWIG_Py_Void(); | |
14431 | } | |
14432 | ||
14433 | SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
14434 | return SWIG_Python_InitShadowInstance(args); | |
14435 | } | |
14436 | ||
14437 | SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14438 | PyObject *resultobj = 0; | |
14439 | int arg1 ; | |
14440 | int arg2 ; | |
14441 | int arg3 ; | |
14442 | int arg4 ; | |
14443 | bool arg5 = (bool) false ; | |
14444 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14445 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14446 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14447 | wxFont *result = 0 ; | |
14448 | int val1 ; | |
14449 | int ecode1 = 0 ; | |
14450 | int val2 ; | |
14451 | int ecode2 = 0 ; | |
14452 | int val3 ; | |
14453 | int ecode3 = 0 ; | |
14454 | int val4 ; | |
14455 | int ecode4 = 0 ; | |
14456 | bool val5 ; | |
14457 | int ecode5 = 0 ; | |
14458 | bool temp6 = false ; | |
14459 | int val7 ; | |
14460 | int ecode7 = 0 ; | |
14461 | PyObject * obj0 = 0 ; | |
14462 | PyObject * obj1 = 0 ; | |
14463 | PyObject * obj2 = 0 ; | |
14464 | PyObject * obj3 = 0 ; | |
14465 | PyObject * obj4 = 0 ; | |
14466 | PyObject * obj5 = 0 ; | |
14467 | PyObject * obj6 = 0 ; | |
14468 | char * kwnames[] = { | |
14469 | (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL | |
14470 | }; | |
14471 | ||
14472 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14473 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14474 | if (!SWIG_IsOK(ecode1)) { | |
14475 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'"); | |
14476 | } | |
14477 | arg1 = static_cast< int >(val1); | |
14478 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14479 | if (!SWIG_IsOK(ecode2)) { | |
14480 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'"); | |
14481 | } | |
14482 | arg2 = static_cast< int >(val2); | |
14483 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14484 | if (!SWIG_IsOK(ecode3)) { | |
14485 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'"); | |
14486 | } | |
14487 | arg3 = static_cast< int >(val3); | |
14488 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14489 | if (!SWIG_IsOK(ecode4)) { | |
14490 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'"); | |
14491 | } | |
14492 | arg4 = static_cast< int >(val4); | |
14493 | if (obj4) { | |
14494 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14495 | if (!SWIG_IsOK(ecode5)) { | |
14496 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'"); | |
14497 | } | |
14498 | arg5 = static_cast< bool >(val5); | |
14499 | } | |
14500 | if (obj5) { | |
d55e5bfc | 14501 | { |
554f62e9 RD |
14502 | arg6 = wxString_in_helper(obj5); |
14503 | if (arg6 == NULL) SWIG_fail; | |
14504 | temp6 = true; | |
d55e5bfc | 14505 | } |
554f62e9 RD |
14506 | } |
14507 | if (obj6) { | |
14508 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14509 | if (!SWIG_IsOK(ecode7)) { | |
14510 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14511 | } | |
14512 | arg7 = static_cast< wxFontEncoding >(val7); | |
14513 | } | |
14514 | { | |
14515 | if (!wxPyCheckForApp()) SWIG_fail; | |
14516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14517 | result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14518 | wxPyEndAllowThreads(__tstate); | |
14519 | if (PyErr_Occurred()) SWIG_fail; | |
14520 | } | |
14521 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 ); | |
14522 | { | |
14523 | if (temp6) | |
14524 | delete arg6; | |
14525 | } | |
14526 | return resultobj; | |
14527 | fail: | |
14528 | { | |
14529 | if (temp6) | |
14530 | delete arg6; | |
14531 | } | |
14532 | return NULL; | |
d55e5bfc RD |
14533 | } |
14534 | ||
14535 | ||
554f62e9 RD |
14536 | SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
14537 | PyObject *resultobj = 0; | |
14538 | wxFont *arg1 = (wxFont *) 0 ; | |
14539 | void *argp1 = 0 ; | |
14540 | int res1 = 0 ; | |
14541 | PyObject *swig_obj[1] ; | |
14542 | ||
14543 | if (!args) SWIG_fail; | |
14544 | swig_obj[0] = args; | |
14545 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 ); | |
14546 | if (!SWIG_IsOK(res1)) { | |
14547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14548 | } | |
14549 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14550 | { | |
14551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14552 | delete arg1; | |
d55e5bfc | 14553 | |
554f62e9 RD |
14554 | wxPyEndAllowThreads(__tstate); |
14555 | if (PyErr_Occurred()) SWIG_fail; | |
14556 | } | |
14557 | resultobj = SWIG_Py_Void(); | |
14558 | return resultobj; | |
14559 | fail: | |
14560 | return NULL; | |
14561 | } | |
14562 | ||
14563 | ||
14564 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14565 | PyObject *resultobj = 0; | |
14566 | wxNativeFontInfo *arg1 = 0 ; | |
14567 | wxFont *result = 0 ; | |
14568 | void *argp1 = 0 ; | |
14569 | int res1 = 0 ; | |
14570 | PyObject * obj0 = 0 ; | |
14571 | char * kwnames[] = { | |
14572 | (char *) "info", NULL | |
14573 | }; | |
14574 | ||
14575 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail; | |
14576 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
14577 | if (!SWIG_IsOK(res1)) { | |
14578 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
14579 | } | |
14580 | if (!argp1) { | |
14581 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'"); | |
14582 | } | |
14583 | arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1); | |
14584 | { | |
14585 | if (!wxPyCheckForApp()) SWIG_fail; | |
14586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14587 | result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1); | |
14588 | wxPyEndAllowThreads(__tstate); | |
14589 | if (PyErr_Occurred()) SWIG_fail; | |
14590 | } | |
14591 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14592 | return resultobj; | |
14593 | fail: | |
14594 | return NULL; | |
d55e5bfc RD |
14595 | } |
14596 | ||
14597 | ||
554f62e9 RD |
14598 | SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
14599 | PyObject *resultobj = 0; | |
14600 | wxString *arg1 = 0 ; | |
14601 | wxFont *result = 0 ; | |
14602 | bool temp1 = false ; | |
14603 | PyObject * obj0 = 0 ; | |
14604 | char * kwnames[] = { | |
14605 | (char *) "info", NULL | |
14606 | }; | |
14607 | ||
14608 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail; | |
14609 | { | |
14610 | arg1 = wxString_in_helper(obj0); | |
14611 | if (arg1 == NULL) SWIG_fail; | |
14612 | temp1 = true; | |
14613 | } | |
14614 | { | |
14615 | if (!wxPyCheckForApp()) SWIG_fail; | |
14616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14617 | result = (wxFont *)new_wxFont((wxString const &)*arg1); | |
14618 | wxPyEndAllowThreads(__tstate); | |
14619 | if (PyErr_Occurred()) SWIG_fail; | |
14620 | } | |
14621 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14622 | { | |
14623 | if (temp1) | |
14624 | delete arg1; | |
14625 | } | |
14626 | return resultobj; | |
14627 | fail: | |
14628 | { | |
14629 | if (temp1) | |
14630 | delete arg1; | |
14631 | } | |
14632 | return NULL; | |
14633 | } | |
14634 | ||
14635 | ||
14636 | SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14637 | PyObject *resultobj = 0; | |
14638 | int arg1 ; | |
14639 | wxFontFamily arg2 ; | |
14640 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14641 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
14642 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14643 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14644 | wxFont *result = 0 ; | |
14645 | int val1 ; | |
14646 | int ecode1 = 0 ; | |
14647 | int val2 ; | |
14648 | int ecode2 = 0 ; | |
14649 | int val3 ; | |
14650 | int ecode3 = 0 ; | |
14651 | bool temp4 = false ; | |
14652 | int val5 ; | |
14653 | int ecode5 = 0 ; | |
14654 | PyObject * obj0 = 0 ; | |
14655 | PyObject * obj1 = 0 ; | |
14656 | PyObject * obj2 = 0 ; | |
14657 | PyObject * obj3 = 0 ; | |
14658 | PyObject * obj4 = 0 ; | |
14659 | char * kwnames[] = { | |
14660 | (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14661 | }; | |
14662 | ||
14663 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14664 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
14665 | if (!SWIG_IsOK(ecode1)) { | |
14666 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'"); | |
14667 | } | |
14668 | arg1 = static_cast< int >(val1); | |
14669 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14670 | if (!SWIG_IsOK(ecode2)) { | |
14671 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14672 | } | |
14673 | arg2 = static_cast< wxFontFamily >(val2); | |
14674 | if (obj2) { | |
14675 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14676 | if (!SWIG_IsOK(ecode3)) { | |
14677 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'"); | |
14678 | } | |
14679 | arg3 = static_cast< int >(val3); | |
14680 | } | |
14681 | if (obj3) { | |
d55e5bfc | 14682 | { |
554f62e9 RD |
14683 | arg4 = wxString_in_helper(obj3); |
14684 | if (arg4 == NULL) SWIG_fail; | |
14685 | temp4 = true; | |
d55e5bfc | 14686 | } |
554f62e9 RD |
14687 | } |
14688 | if (obj4) { | |
14689 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14690 | if (!SWIG_IsOK(ecode5)) { | |
14691 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14692 | } | |
14693 | arg5 = static_cast< wxFontEncoding >(val5); | |
14694 | } | |
14695 | { | |
14696 | if (!wxPyCheckForApp()) SWIG_fail; | |
14697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14698 | result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14699 | wxPyEndAllowThreads(__tstate); | |
14700 | if (PyErr_Occurred()) SWIG_fail; | |
14701 | } | |
14702 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14703 | { | |
14704 | if (temp4) | |
14705 | delete arg4; | |
14706 | } | |
14707 | return resultobj; | |
14708 | fail: | |
14709 | { | |
14710 | if (temp4) | |
14711 | delete arg4; | |
14712 | } | |
14713 | return NULL; | |
14714 | } | |
14715 | ||
14716 | ||
14717 | SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14718 | PyObject *resultobj = 0; | |
14719 | wxSize *arg1 = 0 ; | |
14720 | int arg2 ; | |
14721 | int arg3 ; | |
14722 | int arg4 ; | |
14723 | bool arg5 = (bool) false ; | |
14724 | wxString const &arg6_defvalue = wxEmptyString ; | |
14725 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14726 | wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14727 | wxFont *result = 0 ; | |
14728 | wxSize temp1 ; | |
14729 | int val2 ; | |
14730 | int ecode2 = 0 ; | |
14731 | int val3 ; | |
14732 | int ecode3 = 0 ; | |
14733 | int val4 ; | |
14734 | int ecode4 = 0 ; | |
14735 | bool val5 ; | |
14736 | int ecode5 = 0 ; | |
14737 | bool temp6 = false ; | |
14738 | int val7 ; | |
14739 | int ecode7 = 0 ; | |
14740 | PyObject * obj0 = 0 ; | |
14741 | PyObject * obj1 = 0 ; | |
14742 | PyObject * obj2 = 0 ; | |
14743 | PyObject * obj3 = 0 ; | |
14744 | PyObject * obj4 = 0 ; | |
14745 | PyObject * obj5 = 0 ; | |
14746 | PyObject * obj6 = 0 ; | |
14747 | char * kwnames[] = { | |
14748 | (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL | |
14749 | }; | |
14750 | ||
14751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
14752 | { | |
14753 | arg1 = &temp1; | |
14754 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14755 | } | |
14756 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14757 | if (!SWIG_IsOK(ecode2)) { | |
14758 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'"); | |
14759 | } | |
14760 | arg2 = static_cast< int >(val2); | |
14761 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14762 | if (!SWIG_IsOK(ecode3)) { | |
14763 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14764 | } | |
14765 | arg3 = static_cast< int >(val3); | |
14766 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
14767 | if (!SWIG_IsOK(ecode4)) { | |
14768 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'"); | |
14769 | } | |
14770 | arg4 = static_cast< int >(val4); | |
14771 | if (obj4) { | |
14772 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
14773 | if (!SWIG_IsOK(ecode5)) { | |
14774 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'"); | |
14775 | } | |
14776 | arg5 = static_cast< bool >(val5); | |
14777 | } | |
14778 | if (obj5) { | |
d55e5bfc | 14779 | { |
554f62e9 RD |
14780 | arg6 = wxString_in_helper(obj5); |
14781 | if (arg6 == NULL) SWIG_fail; | |
14782 | temp6 = true; | |
d55e5bfc | 14783 | } |
554f62e9 RD |
14784 | } |
14785 | if (obj6) { | |
14786 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
14787 | if (!SWIG_IsOK(ecode7)) { | |
14788 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'"); | |
14789 | } | |
14790 | arg7 = static_cast< wxFontEncoding >(val7); | |
14791 | } | |
14792 | { | |
14793 | if (!wxPyCheckForApp()) SWIG_fail; | |
14794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14795 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7); | |
14796 | wxPyEndAllowThreads(__tstate); | |
14797 | if (PyErr_Occurred()) SWIG_fail; | |
14798 | } | |
14799 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14800 | { | |
14801 | if (temp6) | |
14802 | delete arg6; | |
14803 | } | |
14804 | return resultobj; | |
14805 | fail: | |
14806 | { | |
14807 | if (temp6) | |
14808 | delete arg6; | |
14809 | } | |
14810 | return NULL; | |
14811 | } | |
14812 | ||
14813 | ||
14814 | SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14815 | PyObject *resultobj = 0; | |
14816 | wxSize *arg1 = 0 ; | |
14817 | wxFontFamily arg2 ; | |
14818 | int arg3 = (int) wxFONTFLAG_DEFAULT ; | |
14819 | wxString const &arg4_defvalue = wxEmptyString ; | |
14820 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
14821 | wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
14822 | wxFont *result = 0 ; | |
14823 | wxSize temp1 ; | |
14824 | int val2 ; | |
14825 | int ecode2 = 0 ; | |
14826 | int val3 ; | |
14827 | int ecode3 = 0 ; | |
14828 | bool temp4 = false ; | |
14829 | int val5 ; | |
14830 | int ecode5 = 0 ; | |
14831 | PyObject * obj0 = 0 ; | |
14832 | PyObject * obj1 = 0 ; | |
14833 | PyObject * obj2 = 0 ; | |
14834 | PyObject * obj3 = 0 ; | |
14835 | PyObject * obj4 = 0 ; | |
14836 | char * kwnames[] = { | |
14837 | (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL | |
14838 | }; | |
14839 | ||
14840 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
14841 | { | |
14842 | arg1 = &temp1; | |
14843 | if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail; | |
14844 | } | |
14845 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
14846 | if (!SWIG_IsOK(ecode2)) { | |
14847 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'"); | |
14848 | } | |
14849 | arg2 = static_cast< wxFontFamily >(val2); | |
14850 | if (obj2) { | |
14851 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
14852 | if (!SWIG_IsOK(ecode3)) { | |
14853 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'"); | |
14854 | } | |
14855 | arg3 = static_cast< int >(val3); | |
14856 | } | |
14857 | if (obj3) { | |
d55e5bfc | 14858 | { |
554f62e9 RD |
14859 | arg4 = wxString_in_helper(obj3); |
14860 | if (arg4 == NULL) SWIG_fail; | |
14861 | temp4 = true; | |
d55e5bfc | 14862 | } |
554f62e9 RD |
14863 | } |
14864 | if (obj4) { | |
14865 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
14866 | if (!SWIG_IsOK(ecode5)) { | |
14867 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'"); | |
14868 | } | |
14869 | arg5 = static_cast< wxFontEncoding >(val5); | |
14870 | } | |
14871 | { | |
14872 | if (!wxPyCheckForApp()) SWIG_fail; | |
14873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14874 | result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5); | |
14875 | wxPyEndAllowThreads(__tstate); | |
14876 | if (PyErr_Occurred()) SWIG_fail; | |
14877 | } | |
14878 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 ); | |
14879 | { | |
14880 | if (temp4) | |
14881 | delete arg4; | |
14882 | } | |
14883 | return resultobj; | |
14884 | fail: | |
14885 | { | |
14886 | if (temp4) | |
14887 | delete arg4; | |
14888 | } | |
14889 | return NULL; | |
d55e5bfc RD |
14890 | } |
14891 | ||
14892 | ||
b39fe951 | 14893 | SWIGINTERN PyObject *_wrap_Font_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
14894 | PyObject *resultobj = 0; |
14895 | wxFont *arg1 = (wxFont *) 0 ; | |
14896 | bool result; | |
14897 | void *argp1 = 0 ; | |
14898 | int res1 = 0 ; | |
14899 | PyObject *swig_obj[1] ; | |
14900 | ||
14901 | if (!args) SWIG_fail; | |
14902 | swig_obj[0] = args; | |
14903 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14904 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 14905 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsOk" "', expected argument " "1"" of type '" "wxFont const *""'"); |
554f62e9 RD |
14906 | } |
14907 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14908 | { | |
14909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 14910 | result = (bool)((wxFont const *)arg1)->IsOk(); |
554f62e9 RD |
14911 | wxPyEndAllowThreads(__tstate); |
14912 | if (PyErr_Occurred()) SWIG_fail; | |
14913 | } | |
14914 | { | |
14915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14916 | } | |
14917 | return resultobj; | |
14918 | fail: | |
14919 | return NULL; | |
14920 | } | |
14921 | ||
14922 | ||
14923 | SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14924 | PyObject *resultobj = 0; | |
14925 | wxFont *arg1 = (wxFont *) 0 ; | |
14926 | wxFont *arg2 = (wxFont *) 0 ; | |
14927 | bool result; | |
14928 | void *argp1 = 0 ; | |
14929 | int res1 = 0 ; | |
14930 | void *argp2 = 0 ; | |
14931 | int res2 = 0 ; | |
14932 | PyObject * obj0 = 0 ; | |
14933 | PyObject * obj1 = 0 ; | |
14934 | char * kwnames[] = { | |
14935 | (char *) "self",(char *) "other", NULL | |
14936 | }; | |
14937 | ||
14938 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14939 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14940 | if (!SWIG_IsOK(res1)) { | |
14941 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14942 | } | |
14943 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14944 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14945 | if (!SWIG_IsOK(res2)) { | |
14946 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14947 | } | |
14948 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14949 | { | |
14950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14951 | result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2); | |
14952 | wxPyEndAllowThreads(__tstate); | |
14953 | if (PyErr_Occurred()) SWIG_fail; | |
14954 | } | |
14955 | { | |
14956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14957 | } | |
14958 | return resultobj; | |
14959 | fail: | |
14960 | return NULL; | |
14961 | } | |
14962 | ||
14963 | ||
14964 | SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
14965 | PyObject *resultobj = 0; | |
14966 | wxFont *arg1 = (wxFont *) 0 ; | |
14967 | wxFont *arg2 = (wxFont *) 0 ; | |
14968 | bool result; | |
14969 | void *argp1 = 0 ; | |
14970 | int res1 = 0 ; | |
14971 | void *argp2 = 0 ; | |
14972 | int res2 = 0 ; | |
14973 | PyObject * obj0 = 0 ; | |
14974 | PyObject * obj1 = 0 ; | |
14975 | char * kwnames[] = { | |
14976 | (char *) "self",(char *) "other", NULL | |
14977 | }; | |
14978 | ||
14979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail; | |
14980 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14981 | if (!SWIG_IsOK(res1)) { | |
14982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'"); | |
14983 | } | |
14984 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
14985 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
14986 | if (!SWIG_IsOK(res2)) { | |
14987 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'"); | |
14988 | } | |
14989 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
14990 | { | |
14991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14992 | result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2); | |
14993 | wxPyEndAllowThreads(__tstate); | |
14994 | if (PyErr_Occurred()) SWIG_fail; | |
14995 | } | |
14996 | { | |
14997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14998 | } | |
14999 | return resultobj; | |
15000 | fail: | |
15001 | return NULL; | |
a2569024 RD |
15002 | } |
15003 | ||
15004 | ||
554f62e9 RD |
15005 | SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15006 | PyObject *resultobj = 0; | |
15007 | wxFont *arg1 = (wxFont *) 0 ; | |
15008 | int result; | |
15009 | void *argp1 = 0 ; | |
15010 | int res1 = 0 ; | |
15011 | PyObject *swig_obj[1] ; | |
15012 | ||
15013 | if (!args) SWIG_fail; | |
15014 | swig_obj[0] = args; | |
15015 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15016 | if (!SWIG_IsOK(res1)) { | |
15017 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15018 | } | |
15019 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15020 | { | |
15021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15022 | result = (int)((wxFont const *)arg1)->GetPointSize(); | |
15023 | wxPyEndAllowThreads(__tstate); | |
15024 | if (PyErr_Occurred()) SWIG_fail; | |
15025 | } | |
15026 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15027 | return resultobj; | |
15028 | fail: | |
15029 | return NULL; | |
d55e5bfc RD |
15030 | } |
15031 | ||
15032 | ||
554f62e9 RD |
15033 | SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15034 | PyObject *resultobj = 0; | |
15035 | wxFont *arg1 = (wxFont *) 0 ; | |
15036 | wxSize result; | |
15037 | void *argp1 = 0 ; | |
15038 | int res1 = 0 ; | |
15039 | PyObject *swig_obj[1] ; | |
15040 | ||
15041 | if (!args) SWIG_fail; | |
15042 | swig_obj[0] = args; | |
15043 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15044 | if (!SWIG_IsOK(res1)) { | |
15045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15046 | } | |
15047 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15048 | { | |
15049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15050 | result = ((wxFont const *)arg1)->GetPixelSize(); | |
15051 | wxPyEndAllowThreads(__tstate); | |
15052 | if (PyErr_Occurred()) SWIG_fail; | |
15053 | } | |
15054 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
15055 | return resultobj; | |
15056 | fail: | |
15057 | return NULL; | |
d55e5bfc RD |
15058 | } |
15059 | ||
15060 | ||
554f62e9 RD |
15061 | SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15062 | PyObject *resultobj = 0; | |
15063 | wxFont *arg1 = (wxFont *) 0 ; | |
15064 | bool result; | |
15065 | void *argp1 = 0 ; | |
15066 | int res1 = 0 ; | |
15067 | PyObject *swig_obj[1] ; | |
15068 | ||
15069 | if (!args) SWIG_fail; | |
15070 | swig_obj[0] = args; | |
15071 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15072 | if (!SWIG_IsOK(res1)) { | |
15073 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15074 | } | |
15075 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15076 | { | |
15077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15078 | result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels(); | |
15079 | wxPyEndAllowThreads(__tstate); | |
15080 | if (PyErr_Occurred()) SWIG_fail; | |
15081 | } | |
15082 | { | |
15083 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15084 | } | |
15085 | return resultobj; | |
15086 | fail: | |
15087 | return NULL; | |
d55e5bfc RD |
15088 | } |
15089 | ||
15090 | ||
554f62e9 RD |
15091 | SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15092 | PyObject *resultobj = 0; | |
15093 | wxFont *arg1 = (wxFont *) 0 ; | |
15094 | int result; | |
15095 | void *argp1 = 0 ; | |
15096 | int res1 = 0 ; | |
15097 | PyObject *swig_obj[1] ; | |
15098 | ||
15099 | if (!args) SWIG_fail; | |
15100 | swig_obj[0] = args; | |
15101 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15102 | if (!SWIG_IsOK(res1)) { | |
15103 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15104 | } | |
15105 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15106 | { | |
15107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15108 | result = (int)((wxFont const *)arg1)->GetFamily(); | |
15109 | wxPyEndAllowThreads(__tstate); | |
15110 | if (PyErr_Occurred()) SWIG_fail; | |
15111 | } | |
15112 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15113 | return resultobj; | |
15114 | fail: | |
15115 | return NULL; | |
d55e5bfc RD |
15116 | } |
15117 | ||
15118 | ||
554f62e9 RD |
15119 | SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15120 | PyObject *resultobj = 0; | |
15121 | wxFont *arg1 = (wxFont *) 0 ; | |
15122 | int result; | |
15123 | void *argp1 = 0 ; | |
15124 | int res1 = 0 ; | |
15125 | PyObject *swig_obj[1] ; | |
15126 | ||
15127 | if (!args) SWIG_fail; | |
15128 | swig_obj[0] = args; | |
15129 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15130 | if (!SWIG_IsOK(res1)) { | |
15131 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15132 | } | |
15133 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15134 | { | |
15135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15136 | result = (int)((wxFont const *)arg1)->GetStyle(); | |
15137 | wxPyEndAllowThreads(__tstate); | |
15138 | if (PyErr_Occurred()) SWIG_fail; | |
15139 | } | |
15140 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15141 | return resultobj; | |
15142 | fail: | |
15143 | return NULL; | |
d55e5bfc RD |
15144 | } |
15145 | ||
15146 | ||
554f62e9 RD |
15147 | SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15148 | PyObject *resultobj = 0; | |
15149 | wxFont *arg1 = (wxFont *) 0 ; | |
15150 | int result; | |
15151 | void *argp1 = 0 ; | |
15152 | int res1 = 0 ; | |
15153 | PyObject *swig_obj[1] ; | |
15154 | ||
15155 | if (!args) SWIG_fail; | |
15156 | swig_obj[0] = args; | |
15157 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15158 | if (!SWIG_IsOK(res1)) { | |
15159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15160 | } | |
15161 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15162 | { | |
15163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15164 | result = (int)((wxFont const *)arg1)->GetWeight(); | |
15165 | wxPyEndAllowThreads(__tstate); | |
15166 | if (PyErr_Occurred()) SWIG_fail; | |
15167 | } | |
15168 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15169 | return resultobj; | |
15170 | fail: | |
15171 | return NULL; | |
d55e5bfc RD |
15172 | } |
15173 | ||
15174 | ||
554f62e9 RD |
15175 | SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15176 | PyObject *resultobj = 0; | |
15177 | wxFont *arg1 = (wxFont *) 0 ; | |
15178 | bool result; | |
15179 | void *argp1 = 0 ; | |
15180 | int res1 = 0 ; | |
15181 | PyObject *swig_obj[1] ; | |
15182 | ||
15183 | if (!args) SWIG_fail; | |
15184 | swig_obj[0] = args; | |
15185 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15186 | if (!SWIG_IsOK(res1)) { | |
15187 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15188 | } | |
15189 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15190 | { | |
15191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15192 | result = (bool)((wxFont const *)arg1)->GetUnderlined(); | |
15193 | wxPyEndAllowThreads(__tstate); | |
15194 | if (PyErr_Occurred()) SWIG_fail; | |
15195 | } | |
15196 | { | |
15197 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15198 | } | |
15199 | return resultobj; | |
15200 | fail: | |
15201 | return NULL; | |
d55e5bfc RD |
15202 | } |
15203 | ||
15204 | ||
554f62e9 RD |
15205 | SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15206 | PyObject *resultobj = 0; | |
15207 | wxFont *arg1 = (wxFont *) 0 ; | |
15208 | wxString result; | |
15209 | void *argp1 = 0 ; | |
15210 | int res1 = 0 ; | |
15211 | PyObject *swig_obj[1] ; | |
15212 | ||
15213 | if (!args) SWIG_fail; | |
15214 | swig_obj[0] = args; | |
15215 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15216 | if (!SWIG_IsOK(res1)) { | |
15217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15218 | } | |
15219 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15220 | { | |
15221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15222 | result = ((wxFont const *)arg1)->GetFaceName(); | |
15223 | wxPyEndAllowThreads(__tstate); | |
15224 | if (PyErr_Occurred()) SWIG_fail; | |
15225 | } | |
15226 | { | |
15227 | #if wxUSE_UNICODE | |
15228 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15229 | #else | |
15230 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15231 | #endif | |
15232 | } | |
15233 | return resultobj; | |
15234 | fail: | |
15235 | return NULL; | |
d55e5bfc RD |
15236 | } |
15237 | ||
15238 | ||
554f62e9 RD |
15239 | SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15240 | PyObject *resultobj = 0; | |
15241 | wxFont *arg1 = (wxFont *) 0 ; | |
15242 | wxFontEncoding result; | |
15243 | void *argp1 = 0 ; | |
15244 | int res1 = 0 ; | |
15245 | PyObject *swig_obj[1] ; | |
15246 | ||
15247 | if (!args) SWIG_fail; | |
15248 | swig_obj[0] = args; | |
15249 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15250 | if (!SWIG_IsOK(res1)) { | |
15251 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15252 | } | |
15253 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15254 | { | |
15255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15256 | result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding(); | |
15257 | wxPyEndAllowThreads(__tstate); | |
15258 | if (PyErr_Occurred()) SWIG_fail; | |
15259 | } | |
15260 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
15261 | return resultobj; | |
15262 | fail: | |
15263 | return NULL; | |
d55e5bfc RD |
15264 | } |
15265 | ||
15266 | ||
554f62e9 RD |
15267 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15268 | PyObject *resultobj = 0; | |
15269 | wxFont *arg1 = (wxFont *) 0 ; | |
15270 | wxNativeFontInfo *result = 0 ; | |
15271 | void *argp1 = 0 ; | |
15272 | int res1 = 0 ; | |
15273 | PyObject *swig_obj[1] ; | |
15274 | ||
15275 | if (!args) SWIG_fail; | |
15276 | swig_obj[0] = args; | |
15277 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15278 | if (!SWIG_IsOK(res1)) { | |
15279 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15280 | } | |
15281 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15282 | { | |
15283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15284 | result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo(); | |
15285 | wxPyEndAllowThreads(__tstate); | |
15286 | if (PyErr_Occurred()) SWIG_fail; | |
15287 | } | |
15288 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 ); | |
15289 | return resultobj; | |
15290 | fail: | |
15291 | return NULL; | |
d55e5bfc RD |
15292 | } |
15293 | ||
15294 | ||
554f62e9 RD |
15295 | SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15296 | PyObject *resultobj = 0; | |
15297 | wxFont *arg1 = (wxFont *) 0 ; | |
15298 | bool result; | |
15299 | void *argp1 = 0 ; | |
15300 | int res1 = 0 ; | |
15301 | PyObject *swig_obj[1] ; | |
15302 | ||
15303 | if (!args) SWIG_fail; | |
15304 | swig_obj[0] = args; | |
15305 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15306 | if (!SWIG_IsOK(res1)) { | |
15307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15308 | } | |
15309 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15310 | { | |
15311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15312 | result = (bool)((wxFont const *)arg1)->IsFixedWidth(); | |
15313 | wxPyEndAllowThreads(__tstate); | |
15314 | if (PyErr_Occurred()) SWIG_fail; | |
15315 | } | |
15316 | { | |
15317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15318 | } | |
15319 | return resultobj; | |
15320 | fail: | |
15321 | return NULL; | |
d55e5bfc RD |
15322 | } |
15323 | ||
15324 | ||
554f62e9 RD |
15325 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15326 | PyObject *resultobj = 0; | |
15327 | wxFont *arg1 = (wxFont *) 0 ; | |
15328 | wxString result; | |
15329 | void *argp1 = 0 ; | |
15330 | int res1 = 0 ; | |
15331 | PyObject *swig_obj[1] ; | |
15332 | ||
15333 | if (!args) SWIG_fail; | |
15334 | swig_obj[0] = args; | |
15335 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15336 | if (!SWIG_IsOK(res1)) { | |
15337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15338 | } | |
15339 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15340 | { | |
15341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15342 | result = ((wxFont const *)arg1)->GetNativeFontInfoDesc(); | |
15343 | wxPyEndAllowThreads(__tstate); | |
15344 | if (PyErr_Occurred()) SWIG_fail; | |
15345 | } | |
15346 | { | |
15347 | #if wxUSE_UNICODE | |
15348 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15349 | #else | |
15350 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15351 | #endif | |
15352 | } | |
15353 | return resultobj; | |
15354 | fail: | |
15355 | return NULL; | |
d55e5bfc RD |
15356 | } |
15357 | ||
15358 | ||
554f62e9 RD |
15359 | SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15360 | PyObject *resultobj = 0; | |
15361 | wxFont *arg1 = (wxFont *) 0 ; | |
15362 | wxString result; | |
15363 | void *argp1 = 0 ; | |
15364 | int res1 = 0 ; | |
15365 | PyObject *swig_obj[1] ; | |
15366 | ||
15367 | if (!args) SWIG_fail; | |
15368 | swig_obj[0] = args; | |
15369 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15370 | if (!SWIG_IsOK(res1)) { | |
15371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15372 | } | |
15373 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15374 | { | |
15375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15376 | result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc(); | |
15377 | wxPyEndAllowThreads(__tstate); | |
15378 | if (PyErr_Occurred()) SWIG_fail; | |
15379 | } | |
15380 | { | |
15381 | #if wxUSE_UNICODE | |
15382 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15383 | #else | |
15384 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15385 | #endif | |
15386 | } | |
15387 | return resultobj; | |
15388 | fail: | |
15389 | return NULL; | |
15390 | } | |
15391 | ||
15392 | ||
15393 | SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15394 | PyObject *resultobj = 0; | |
15395 | wxFont *arg1 = (wxFont *) 0 ; | |
15396 | int arg2 ; | |
15397 | void *argp1 = 0 ; | |
15398 | int res1 = 0 ; | |
15399 | int val2 ; | |
15400 | int ecode2 = 0 ; | |
15401 | PyObject * obj0 = 0 ; | |
15402 | PyObject * obj1 = 0 ; | |
15403 | char * kwnames[] = { | |
15404 | (char *) "self",(char *) "pointSize", NULL | |
15405 | }; | |
15406 | ||
15407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
15408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15409 | if (!SWIG_IsOK(res1)) { | |
15410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15411 | } | |
15412 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15413 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15414 | if (!SWIG_IsOK(ecode2)) { | |
15415 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'"); | |
15416 | } | |
15417 | arg2 = static_cast< int >(val2); | |
15418 | { | |
15419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15420 | (arg1)->SetPointSize(arg2); | |
15421 | wxPyEndAllowThreads(__tstate); | |
15422 | if (PyErr_Occurred()) SWIG_fail; | |
15423 | } | |
15424 | resultobj = SWIG_Py_Void(); | |
15425 | return resultobj; | |
15426 | fail: | |
15427 | return NULL; | |
15428 | } | |
15429 | ||
15430 | ||
15431 | SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15432 | PyObject *resultobj = 0; | |
15433 | wxFont *arg1 = (wxFont *) 0 ; | |
15434 | wxSize *arg2 = 0 ; | |
15435 | void *argp1 = 0 ; | |
15436 | int res1 = 0 ; | |
15437 | wxSize temp2 ; | |
15438 | PyObject * obj0 = 0 ; | |
15439 | PyObject * obj1 = 0 ; | |
15440 | char * kwnames[] = { | |
15441 | (char *) "self",(char *) "pixelSize", NULL | |
15442 | }; | |
15443 | ||
15444 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
15445 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15446 | if (!SWIG_IsOK(res1)) { | |
15447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15448 | } | |
15449 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15450 | { | |
15451 | arg2 = &temp2; | |
15452 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15453 | } | |
15454 | { | |
15455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15456 | (arg1)->SetPixelSize((wxSize const &)*arg2); | |
15457 | wxPyEndAllowThreads(__tstate); | |
15458 | if (PyErr_Occurred()) SWIG_fail; | |
15459 | } | |
15460 | resultobj = SWIG_Py_Void(); | |
15461 | return resultobj; | |
15462 | fail: | |
15463 | return NULL; | |
15464 | } | |
15465 | ||
15466 | ||
15467 | SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15468 | PyObject *resultobj = 0; | |
15469 | wxFont *arg1 = (wxFont *) 0 ; | |
15470 | int arg2 ; | |
15471 | void *argp1 = 0 ; | |
15472 | int res1 = 0 ; | |
15473 | int val2 ; | |
15474 | int ecode2 = 0 ; | |
15475 | PyObject * obj0 = 0 ; | |
15476 | PyObject * obj1 = 0 ; | |
15477 | char * kwnames[] = { | |
15478 | (char *) "self",(char *) "family", NULL | |
15479 | }; | |
15480 | ||
15481 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail; | |
15482 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15483 | if (!SWIG_IsOK(res1)) { | |
15484 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15485 | } | |
15486 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15487 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15488 | if (!SWIG_IsOK(ecode2)) { | |
15489 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'"); | |
15490 | } | |
15491 | arg2 = static_cast< int >(val2); | |
15492 | { | |
15493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15494 | (arg1)->SetFamily(arg2); | |
15495 | wxPyEndAllowThreads(__tstate); | |
15496 | if (PyErr_Occurred()) SWIG_fail; | |
15497 | } | |
15498 | resultobj = SWIG_Py_Void(); | |
15499 | return resultobj; | |
15500 | fail: | |
15501 | return NULL; | |
15502 | } | |
15503 | ||
15504 | ||
15505 | SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15506 | PyObject *resultobj = 0; | |
15507 | wxFont *arg1 = (wxFont *) 0 ; | |
15508 | int arg2 ; | |
15509 | void *argp1 = 0 ; | |
15510 | int res1 = 0 ; | |
15511 | int val2 ; | |
15512 | int ecode2 = 0 ; | |
15513 | PyObject * obj0 = 0 ; | |
15514 | PyObject * obj1 = 0 ; | |
15515 | char * kwnames[] = { | |
15516 | (char *) "self",(char *) "style", NULL | |
15517 | }; | |
15518 | ||
15519 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
15520 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15521 | if (!SWIG_IsOK(res1)) { | |
15522 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15523 | } | |
15524 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15525 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15526 | if (!SWIG_IsOK(ecode2)) { | |
15527 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
15528 | } | |
15529 | arg2 = static_cast< int >(val2); | |
15530 | { | |
15531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15532 | (arg1)->SetStyle(arg2); | |
15533 | wxPyEndAllowThreads(__tstate); | |
15534 | if (PyErr_Occurred()) SWIG_fail; | |
15535 | } | |
15536 | resultobj = SWIG_Py_Void(); | |
15537 | return resultobj; | |
15538 | fail: | |
15539 | return NULL; | |
15540 | } | |
15541 | ||
15542 | ||
15543 | SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15544 | PyObject *resultobj = 0; | |
15545 | wxFont *arg1 = (wxFont *) 0 ; | |
15546 | int arg2 ; | |
15547 | void *argp1 = 0 ; | |
15548 | int res1 = 0 ; | |
15549 | int val2 ; | |
15550 | int ecode2 = 0 ; | |
15551 | PyObject * obj0 = 0 ; | |
15552 | PyObject * obj1 = 0 ; | |
15553 | char * kwnames[] = { | |
15554 | (char *) "self",(char *) "weight", NULL | |
15555 | }; | |
15556 | ||
15557 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
15558 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15559 | if (!SWIG_IsOK(res1)) { | |
15560 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15561 | } | |
15562 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15563 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15564 | if (!SWIG_IsOK(ecode2)) { | |
15565 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'"); | |
15566 | } | |
15567 | arg2 = static_cast< int >(val2); | |
15568 | { | |
15569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15570 | (arg1)->SetWeight(arg2); | |
15571 | wxPyEndAllowThreads(__tstate); | |
15572 | if (PyErr_Occurred()) SWIG_fail; | |
15573 | } | |
15574 | resultobj = SWIG_Py_Void(); | |
15575 | return resultobj; | |
15576 | fail: | |
15577 | return NULL; | |
15578 | } | |
15579 | ||
15580 | ||
15581 | SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15582 | PyObject *resultobj = 0; | |
15583 | wxFont *arg1 = (wxFont *) 0 ; | |
15584 | wxString *arg2 = 0 ; | |
704eda0c | 15585 | bool result; |
554f62e9 RD |
15586 | void *argp1 = 0 ; |
15587 | int res1 = 0 ; | |
15588 | bool temp2 = false ; | |
15589 | PyObject * obj0 = 0 ; | |
15590 | PyObject * obj1 = 0 ; | |
15591 | char * kwnames[] = { | |
15592 | (char *) "self",(char *) "faceName", NULL | |
15593 | }; | |
15594 | ||
15595 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail; | |
15596 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15597 | if (!SWIG_IsOK(res1)) { | |
15598 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15599 | } | |
15600 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15601 | { | |
15602 | arg2 = wxString_in_helper(obj1); | |
15603 | if (arg2 == NULL) SWIG_fail; | |
15604 | temp2 = true; | |
15605 | } | |
15606 | { | |
15607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15608 | result = (bool)(arg1)->SetFaceName((wxString const &)*arg2); |
554f62e9 RD |
15609 | wxPyEndAllowThreads(__tstate); |
15610 | if (PyErr_Occurred()) SWIG_fail; | |
15611 | } | |
704eda0c RD |
15612 | { |
15613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15614 | } | |
554f62e9 RD |
15615 | { |
15616 | if (temp2) | |
15617 | delete arg2; | |
15618 | } | |
15619 | return resultobj; | |
15620 | fail: | |
15621 | { | |
15622 | if (temp2) | |
15623 | delete arg2; | |
15624 | } | |
15625 | return NULL; | |
15626 | } | |
15627 | ||
15628 | ||
15629 | SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15630 | PyObject *resultobj = 0; | |
15631 | wxFont *arg1 = (wxFont *) 0 ; | |
15632 | bool arg2 ; | |
15633 | void *argp1 = 0 ; | |
15634 | int res1 = 0 ; | |
15635 | bool val2 ; | |
15636 | int ecode2 = 0 ; | |
15637 | PyObject * obj0 = 0 ; | |
15638 | PyObject * obj1 = 0 ; | |
15639 | char * kwnames[] = { | |
15640 | (char *) "self",(char *) "underlined", NULL | |
15641 | }; | |
15642 | ||
15643 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail; | |
15644 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15645 | if (!SWIG_IsOK(res1)) { | |
15646 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15647 | } | |
15648 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15649 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15650 | if (!SWIG_IsOK(ecode2)) { | |
15651 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'"); | |
15652 | } | |
15653 | arg2 = static_cast< bool >(val2); | |
15654 | { | |
15655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15656 | (arg1)->SetUnderlined(arg2); | |
15657 | wxPyEndAllowThreads(__tstate); | |
15658 | if (PyErr_Occurred()) SWIG_fail; | |
15659 | } | |
15660 | resultobj = SWIG_Py_Void(); | |
15661 | return resultobj; | |
15662 | fail: | |
15663 | return NULL; | |
15664 | } | |
15665 | ||
15666 | ||
15667 | SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15668 | PyObject *resultobj = 0; | |
15669 | wxFont *arg1 = (wxFont *) 0 ; | |
15670 | wxFontEncoding arg2 ; | |
15671 | void *argp1 = 0 ; | |
15672 | int res1 = 0 ; | |
15673 | int val2 ; | |
15674 | int ecode2 = 0 ; | |
15675 | PyObject * obj0 = 0 ; | |
15676 | PyObject * obj1 = 0 ; | |
15677 | char * kwnames[] = { | |
15678 | (char *) "self",(char *) "encoding", NULL | |
15679 | }; | |
15680 | ||
15681 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail; | |
15682 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15683 | if (!SWIG_IsOK(res1)) { | |
15684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15685 | } | |
15686 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15687 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
15688 | if (!SWIG_IsOK(ecode2)) { | |
15689 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
15690 | } | |
15691 | arg2 = static_cast< wxFontEncoding >(val2); | |
15692 | { | |
15693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15694 | (arg1)->SetEncoding(arg2); | |
15695 | wxPyEndAllowThreads(__tstate); | |
15696 | if (PyErr_Occurred()) SWIG_fail; | |
15697 | } | |
15698 | resultobj = SWIG_Py_Void(); | |
15699 | return resultobj; | |
15700 | fail: | |
15701 | return NULL; | |
15702 | } | |
15703 | ||
15704 | ||
15705 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15706 | PyObject *resultobj = 0; | |
15707 | wxFont *arg1 = (wxFont *) 0 ; | |
15708 | wxNativeFontInfo *arg2 = 0 ; | |
15709 | void *argp1 = 0 ; | |
15710 | int res1 = 0 ; | |
15711 | void *argp2 = 0 ; | |
15712 | int res2 = 0 ; | |
15713 | PyObject * obj0 = 0 ; | |
15714 | PyObject * obj1 = 0 ; | |
15715 | char * kwnames[] = { | |
15716 | (char *) "self",(char *) "info", NULL | |
15717 | }; | |
15718 | ||
15719 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail; | |
15720 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15721 | if (!SWIG_IsOK(res1)) { | |
15722 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15723 | } | |
15724 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15725 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0); | |
15726 | if (!SWIG_IsOK(res2)) { | |
15727 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15728 | } | |
15729 | if (!argp2) { | |
15730 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'"); | |
15731 | } | |
15732 | arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2); | |
15733 | { | |
15734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15735 | (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2); | |
15736 | wxPyEndAllowThreads(__tstate); | |
15737 | if (PyErr_Occurred()) SWIG_fail; | |
15738 | } | |
15739 | resultobj = SWIG_Py_Void(); | |
15740 | return resultobj; | |
15741 | fail: | |
15742 | return NULL; | |
15743 | } | |
15744 | ||
15745 | ||
15746 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15747 | PyObject *resultobj = 0; | |
15748 | wxFont *arg1 = (wxFont *) 0 ; | |
15749 | wxString *arg2 = 0 ; | |
704eda0c | 15750 | bool result; |
554f62e9 RD |
15751 | void *argp1 = 0 ; |
15752 | int res1 = 0 ; | |
15753 | bool temp2 = false ; | |
15754 | PyObject * obj0 = 0 ; | |
15755 | PyObject * obj1 = 0 ; | |
15756 | char * kwnames[] = { | |
15757 | (char *) "self",(char *) "info", NULL | |
15758 | }; | |
15759 | ||
15760 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail; | |
15761 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15762 | if (!SWIG_IsOK(res1)) { | |
15763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15764 | } | |
15765 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15766 | { | |
15767 | arg2 = wxString_in_helper(obj1); | |
15768 | if (arg2 == NULL) SWIG_fail; | |
15769 | temp2 = true; | |
15770 | } | |
15771 | { | |
15772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15773 | result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2); |
554f62e9 RD |
15774 | wxPyEndAllowThreads(__tstate); |
15775 | if (PyErr_Occurred()) SWIG_fail; | |
15776 | } | |
704eda0c RD |
15777 | { |
15778 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15779 | } | |
554f62e9 RD |
15780 | { |
15781 | if (temp2) | |
15782 | delete arg2; | |
15783 | } | |
15784 | return resultobj; | |
15785 | fail: | |
15786 | { | |
15787 | if (temp2) | |
15788 | delete arg2; | |
15789 | } | |
15790 | return NULL; | |
d55e5bfc RD |
15791 | } |
15792 | ||
15793 | ||
554f62e9 RD |
15794 | SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
15795 | PyObject *resultobj = 0; | |
15796 | wxFont *arg1 = (wxFont *) 0 ; | |
15797 | wxString *arg2 = 0 ; | |
704eda0c | 15798 | bool result; |
554f62e9 RD |
15799 | void *argp1 = 0 ; |
15800 | int res1 = 0 ; | |
15801 | bool temp2 = false ; | |
15802 | PyObject * obj0 = 0 ; | |
15803 | PyObject * obj1 = 0 ; | |
15804 | char * kwnames[] = { | |
15805 | (char *) "self",(char *) "info", NULL | |
15806 | }; | |
15807 | ||
15808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail; | |
15809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15810 | if (!SWIG_IsOK(res1)) { | |
15811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15812 | } | |
15813 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15814 | { | |
15815 | arg2 = wxString_in_helper(obj1); | |
15816 | if (arg2 == NULL) SWIG_fail; | |
15817 | temp2 = true; | |
15818 | } | |
15819 | { | |
15820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 15821 | result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2); |
554f62e9 RD |
15822 | wxPyEndAllowThreads(__tstate); |
15823 | if (PyErr_Occurred()) SWIG_fail; | |
15824 | } | |
704eda0c RD |
15825 | { |
15826 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15827 | } | |
554f62e9 RD |
15828 | { |
15829 | if (temp2) | |
15830 | delete arg2; | |
15831 | } | |
15832 | return resultobj; | |
15833 | fail: | |
15834 | { | |
15835 | if (temp2) | |
15836 | delete arg2; | |
15837 | } | |
15838 | return NULL; | |
d55e5bfc RD |
15839 | } |
15840 | ||
15841 | ||
554f62e9 RD |
15842 | SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15843 | PyObject *resultobj = 0; | |
15844 | wxFont *arg1 = (wxFont *) 0 ; | |
15845 | wxString result; | |
15846 | void *argp1 = 0 ; | |
15847 | int res1 = 0 ; | |
15848 | PyObject *swig_obj[1] ; | |
15849 | ||
15850 | if (!args) SWIG_fail; | |
15851 | swig_obj[0] = args; | |
15852 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15853 | if (!SWIG_IsOK(res1)) { | |
15854 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15855 | } | |
15856 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15857 | { | |
15858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15859 | result = ((wxFont const *)arg1)->GetFamilyString(); | |
15860 | wxPyEndAllowThreads(__tstate); | |
15861 | if (PyErr_Occurred()) SWIG_fail; | |
15862 | } | |
15863 | { | |
15864 | #if wxUSE_UNICODE | |
15865 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15866 | #else | |
15867 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15868 | #endif | |
15869 | } | |
15870 | return resultobj; | |
15871 | fail: | |
15872 | return NULL; | |
d55e5bfc RD |
15873 | } |
15874 | ||
15875 | ||
554f62e9 RD |
15876 | SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15877 | PyObject *resultobj = 0; | |
15878 | wxFont *arg1 = (wxFont *) 0 ; | |
15879 | wxString result; | |
15880 | void *argp1 = 0 ; | |
15881 | int res1 = 0 ; | |
15882 | PyObject *swig_obj[1] ; | |
15883 | ||
15884 | if (!args) SWIG_fail; | |
15885 | swig_obj[0] = args; | |
15886 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15887 | if (!SWIG_IsOK(res1)) { | |
15888 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15889 | } | |
15890 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15891 | { | |
15892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15893 | result = ((wxFont const *)arg1)->GetStyleString(); | |
15894 | wxPyEndAllowThreads(__tstate); | |
15895 | if (PyErr_Occurred()) SWIG_fail; | |
15896 | } | |
15897 | { | |
15898 | #if wxUSE_UNICODE | |
15899 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15900 | #else | |
15901 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15902 | #endif | |
15903 | } | |
15904 | return resultobj; | |
15905 | fail: | |
15906 | return NULL; | |
d55e5bfc RD |
15907 | } |
15908 | ||
15909 | ||
554f62e9 RD |
15910 | SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15911 | PyObject *resultobj = 0; | |
15912 | wxFont *arg1 = (wxFont *) 0 ; | |
15913 | wxString result; | |
15914 | void *argp1 = 0 ; | |
15915 | int res1 = 0 ; | |
15916 | PyObject *swig_obj[1] ; | |
15917 | ||
15918 | if (!args) SWIG_fail; | |
15919 | swig_obj[0] = args; | |
15920 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15921 | if (!SWIG_IsOK(res1)) { | |
15922 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15923 | } | |
15924 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15925 | { | |
15926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15927 | result = ((wxFont const *)arg1)->GetWeightString(); | |
15928 | wxPyEndAllowThreads(__tstate); | |
15929 | if (PyErr_Occurred()) SWIG_fail; | |
15930 | } | |
15931 | { | |
15932 | #if wxUSE_UNICODE | |
15933 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15934 | #else | |
15935 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15936 | #endif | |
15937 | } | |
15938 | return resultobj; | |
15939 | fail: | |
15940 | return NULL; | |
15941 | } | |
15942 | ||
15943 | ||
15944 | SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
15945 | PyObject *resultobj = 0; | |
15946 | wxFont *arg1 = (wxFont *) 0 ; | |
15947 | bool arg2 = (bool) true ; | |
15948 | void *argp1 = 0 ; | |
15949 | int res1 = 0 ; | |
15950 | bool val2 ; | |
15951 | int ecode2 = 0 ; | |
15952 | PyObject * obj0 = 0 ; | |
15953 | PyObject * obj1 = 0 ; | |
15954 | char * kwnames[] = { | |
15955 | (char *) "self",(char *) "no", NULL | |
15956 | }; | |
15957 | ||
15958 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail; | |
15959 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15960 | if (!SWIG_IsOK(res1)) { | |
15961 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'"); | |
15962 | } | |
15963 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15964 | if (obj1) { | |
15965 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
15966 | if (!SWIG_IsOK(ecode2)) { | |
15967 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'"); | |
15968 | } | |
15969 | arg2 = static_cast< bool >(val2); | |
15970 | } | |
15971 | { | |
15972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15973 | (arg1)->SetNoAntiAliasing(arg2); | |
15974 | wxPyEndAllowThreads(__tstate); | |
15975 | if (PyErr_Occurred()) SWIG_fail; | |
15976 | } | |
15977 | resultobj = SWIG_Py_Void(); | |
15978 | return resultobj; | |
15979 | fail: | |
15980 | return NULL; | |
d55e5bfc RD |
15981 | } |
15982 | ||
15983 | ||
554f62e9 RD |
15984 | SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
15985 | PyObject *resultobj = 0; | |
15986 | wxFont *arg1 = (wxFont *) 0 ; | |
15987 | bool result; | |
15988 | void *argp1 = 0 ; | |
15989 | int res1 = 0 ; | |
15990 | PyObject *swig_obj[1] ; | |
15991 | ||
15992 | if (!args) SWIG_fail; | |
15993 | swig_obj[0] = args; | |
15994 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 ); | |
15995 | if (!SWIG_IsOK(res1)) { | |
15996 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'"); | |
15997 | } | |
15998 | arg1 = reinterpret_cast< wxFont * >(argp1); | |
15999 | { | |
16000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16001 | result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing(); | |
16002 | wxPyEndAllowThreads(__tstate); | |
16003 | if (PyErr_Occurred()) SWIG_fail; | |
16004 | } | |
16005 | { | |
16006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16007 | } | |
16008 | return resultobj; | |
16009 | fail: | |
16010 | return NULL; | |
d55e5bfc RD |
16011 | } |
16012 | ||
16013 | ||
554f62e9 RD |
16014 | SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16015 | PyObject *resultobj = 0; | |
16016 | wxFontEncoding result; | |
16017 | ||
16018 | if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail; | |
16019 | { | |
16020 | if (!wxPyCheckForApp()) SWIG_fail; | |
16021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16022 | result = (wxFontEncoding)wxFont::GetDefaultEncoding(); | |
16023 | wxPyEndAllowThreads(__tstate); | |
16024 | if (PyErr_Occurred()) SWIG_fail; | |
16025 | } | |
16026 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16027 | return resultobj; | |
16028 | fail: | |
16029 | return NULL; | |
d55e5bfc RD |
16030 | } |
16031 | ||
16032 | ||
554f62e9 RD |
16033 | SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16034 | PyObject *resultobj = 0; | |
16035 | wxFontEncoding arg1 ; | |
16036 | int val1 ; | |
16037 | int ecode1 = 0 ; | |
16038 | PyObject * obj0 = 0 ; | |
16039 | char * kwnames[] = { | |
16040 | (char *) "encoding", NULL | |
16041 | }; | |
16042 | ||
16043 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail; | |
16044 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16045 | if (!SWIG_IsOK(ecode1)) { | |
16046 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
16047 | } | |
16048 | arg1 = static_cast< wxFontEncoding >(val1); | |
16049 | { | |
16050 | if (!wxPyCheckForApp()) SWIG_fail; | |
16051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16052 | wxFont::SetDefaultEncoding(arg1); | |
16053 | wxPyEndAllowThreads(__tstate); | |
16054 | if (PyErr_Occurred()) SWIG_fail; | |
16055 | } | |
16056 | resultobj = SWIG_Py_Void(); | |
16057 | return resultobj; | |
16058 | fail: | |
16059 | return NULL; | |
5e483524 RD |
16060 | } |
16061 | ||
16062 | ||
554f62e9 RD |
16063 | SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16064 | PyObject *obj; | |
16065 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16066 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj)); | |
16067 | return SWIG_Py_Void(); | |
d55e5bfc RD |
16068 | } |
16069 | ||
554f62e9 RD |
16070 | SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16071 | return SWIG_Python_InitShadowInstance(args); | |
d55e5bfc RD |
16072 | } |
16073 | ||
554f62e9 RD |
16074 | SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16075 | PyObject *resultobj = 0; | |
16076 | wxPyFontEnumerator *result = 0 ; | |
16077 | ||
16078 | if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail; | |
16079 | { | |
16080 | if (!wxPyCheckForApp()) SWIG_fail; | |
16081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16082 | result = (wxPyFontEnumerator *)new wxPyFontEnumerator(); | |
16083 | wxPyEndAllowThreads(__tstate); | |
16084 | if (PyErr_Occurred()) SWIG_fail; | |
16085 | } | |
16086 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 ); | |
16087 | return resultobj; | |
16088 | fail: | |
16089 | return NULL; | |
d55e5bfc RD |
16090 | } |
16091 | ||
16092 | ||
554f62e9 RD |
16093 | SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16094 | PyObject *resultobj = 0; | |
16095 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
16096 | void *argp1 = 0 ; | |
16097 | int res1 = 0 ; | |
16098 | PyObject *swig_obj[1] ; | |
16099 | ||
16100 | if (!args) SWIG_fail; | |
16101 | swig_obj[0] = args; | |
16102 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 ); | |
16103 | if (!SWIG_IsOK(res1)) { | |
16104 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
16105 | } | |
16106 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
16107 | { | |
16108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16109 | delete arg1; | |
d55e5bfc | 16110 | |
554f62e9 RD |
16111 | wxPyEndAllowThreads(__tstate); |
16112 | if (PyErr_Occurred()) SWIG_fail; | |
16113 | } | |
16114 | resultobj = SWIG_Py_Void(); | |
16115 | return resultobj; | |
16116 | fail: | |
16117 | return NULL; | |
16118 | } | |
16119 | ||
16120 | ||
16121 | SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16122 | PyObject *resultobj = 0; | |
16123 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
16124 | PyObject *arg2 = (PyObject *) 0 ; | |
16125 | PyObject *arg3 = (PyObject *) 0 ; | |
c25f90f6 | 16126 | int arg4 = (int) 0 ; |
554f62e9 RD |
16127 | void *argp1 = 0 ; |
16128 | int res1 = 0 ; | |
c25f90f6 | 16129 | int val4 ; |
554f62e9 RD |
16130 | int ecode4 = 0 ; |
16131 | PyObject * obj0 = 0 ; | |
16132 | PyObject * obj1 = 0 ; | |
16133 | PyObject * obj2 = 0 ; | |
16134 | PyObject * obj3 = 0 ; | |
16135 | char * kwnames[] = { | |
16136 | (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL | |
16137 | }; | |
16138 | ||
c25f90f6 | 16139 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
554f62e9 RD |
16140 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); |
16141 | if (!SWIG_IsOK(res1)) { | |
16142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
16143 | } | |
16144 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
16145 | arg2 = obj1; | |
16146 | arg3 = obj2; | |
c25f90f6 RD |
16147 | if (obj3) { |
16148 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
16149 | if (!SWIG_IsOK(ecode4)) { | |
16150 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "int""'"); | |
16151 | } | |
16152 | arg4 = static_cast< int >(val4); | |
16153 | } | |
554f62e9 RD |
16154 | { |
16155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16156 | (arg1)->_setCallbackInfo(arg2,arg3,arg4); | |
16157 | wxPyEndAllowThreads(__tstate); | |
16158 | if (PyErr_Occurred()) SWIG_fail; | |
16159 | } | |
16160 | resultobj = SWIG_Py_Void(); | |
16161 | return resultobj; | |
16162 | fail: | |
16163 | return NULL; | |
16164 | } | |
16165 | ||
16166 | ||
16167 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16168 | PyObject *resultobj = 0; | |
16169 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
16170 | wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ; | |
16171 | bool arg3 = (bool) false ; | |
16172 | bool result; | |
16173 | void *argp1 = 0 ; | |
16174 | int res1 = 0 ; | |
16175 | int val2 ; | |
16176 | int ecode2 = 0 ; | |
16177 | bool val3 ; | |
16178 | int ecode3 = 0 ; | |
16179 | PyObject * obj0 = 0 ; | |
16180 | PyObject * obj1 = 0 ; | |
16181 | PyObject * obj2 = 0 ; | |
16182 | char * kwnames[] = { | |
16183 | (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL | |
16184 | }; | |
16185 | ||
16186 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16187 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
16188 | if (!SWIG_IsOK(res1)) { | |
16189 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
16190 | } | |
16191 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
16192 | if (obj1) { | |
16193 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16194 | if (!SWIG_IsOK(ecode2)) { | |
16195 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
16196 | } | |
16197 | arg2 = static_cast< wxFontEncoding >(val2); | |
16198 | } | |
16199 | if (obj2) { | |
16200 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
16201 | if (!SWIG_IsOK(ecode3)) { | |
16202 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'"); | |
16203 | } | |
16204 | arg3 = static_cast< bool >(val3); | |
16205 | } | |
16206 | { | |
16207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16208 | result = (bool)(arg1)->EnumerateFacenames(arg2,arg3); | |
16209 | wxPyEndAllowThreads(__tstate); | |
16210 | if (PyErr_Occurred()) SWIG_fail; | |
16211 | } | |
16212 | { | |
16213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16214 | } | |
16215 | return resultobj; | |
16216 | fail: | |
16217 | return NULL; | |
16218 | } | |
16219 | ||
16220 | ||
16221 | SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16222 | PyObject *resultobj = 0; | |
16223 | wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ; | |
16224 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
16225 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
16226 | bool result; | |
16227 | void *argp1 = 0 ; | |
16228 | int res1 = 0 ; | |
16229 | bool temp2 = false ; | |
16230 | PyObject * obj0 = 0 ; | |
16231 | PyObject * obj1 = 0 ; | |
16232 | char * kwnames[] = { | |
16233 | (char *) "self",(char *) "facename", NULL | |
16234 | }; | |
16235 | ||
16236 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail; | |
16237 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 ); | |
16238 | if (!SWIG_IsOK(res1)) { | |
16239 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'"); | |
16240 | } | |
16241 | arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1); | |
16242 | if (obj1) { | |
093d3ff1 | 16243 | { |
554f62e9 RD |
16244 | arg2 = wxString_in_helper(obj1); |
16245 | if (arg2 == NULL) SWIG_fail; | |
16246 | temp2 = true; | |
093d3ff1 | 16247 | } |
554f62e9 RD |
16248 | } |
16249 | { | |
16250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16251 | result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2); | |
16252 | wxPyEndAllowThreads(__tstate); | |
16253 | if (PyErr_Occurred()) SWIG_fail; | |
16254 | } | |
16255 | { | |
16256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16257 | } | |
16258 | { | |
16259 | if (temp2) | |
16260 | delete arg2; | |
16261 | } | |
16262 | return resultobj; | |
16263 | fail: | |
16264 | { | |
16265 | if (temp2) | |
16266 | delete arg2; | |
16267 | } | |
16268 | return NULL; | |
d55e5bfc RD |
16269 | } |
16270 | ||
16271 | ||
554f62e9 RD |
16272 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16273 | PyObject *resultobj = 0; | |
554f62e9 | 16274 | PyObject *result = 0 ; |
554f62e9 | 16275 | |
704eda0c | 16276 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail; |
554f62e9 RD |
16277 | { |
16278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 16279 | result = (PyObject *)wxPyFontEnumerator_GetEncodings(); |
554f62e9 RD |
16280 | wxPyEndAllowThreads(__tstate); |
16281 | if (PyErr_Occurred()) SWIG_fail; | |
16282 | } | |
16283 | resultobj = result; | |
16284 | return resultobj; | |
16285 | fail: | |
16286 | return NULL; | |
d55e5bfc RD |
16287 | } |
16288 | ||
16289 | ||
554f62e9 RD |
16290 | SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16291 | PyObject *resultobj = 0; | |
554f62e9 | 16292 | PyObject *result = 0 ; |
554f62e9 | 16293 | |
704eda0c | 16294 | if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail; |
554f62e9 RD |
16295 | { |
16296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
704eda0c | 16297 | result = (PyObject *)wxPyFontEnumerator_GetFacenames(); |
554f62e9 RD |
16298 | wxPyEndAllowThreads(__tstate); |
16299 | if (PyErr_Occurred()) SWIG_fail; | |
16300 | } | |
16301 | resultobj = result; | |
16302 | return resultobj; | |
16303 | fail: | |
16304 | return NULL; | |
d55e5bfc RD |
16305 | } |
16306 | ||
16307 | ||
704eda0c RD |
16308 | SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
16309 | PyObject *resultobj = 0; | |
16310 | wxString *arg1 = 0 ; | |
16311 | bool result; | |
16312 | bool temp1 = false ; | |
16313 | PyObject * obj0 = 0 ; | |
16314 | char * kwnames[] = { | |
16315 | (char *) "str", NULL | |
16316 | }; | |
16317 | ||
16318 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail; | |
16319 | { | |
16320 | arg1 = wxString_in_helper(obj0); | |
16321 | if (arg1 == NULL) SWIG_fail; | |
16322 | temp1 = true; | |
16323 | } | |
16324 | { | |
16325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16326 | result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1); | |
16327 | wxPyEndAllowThreads(__tstate); | |
16328 | if (PyErr_Occurred()) SWIG_fail; | |
16329 | } | |
16330 | { | |
16331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16332 | } | |
16333 | { | |
16334 | if (temp1) | |
16335 | delete arg1; | |
16336 | } | |
16337 | return resultobj; | |
16338 | fail: | |
16339 | { | |
16340 | if (temp1) | |
16341 | delete arg1; | |
16342 | } | |
16343 | return NULL; | |
16344 | } | |
16345 | ||
16346 | ||
554f62e9 RD |
16347 | SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16348 | PyObject *obj; | |
16349 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16350 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj)); | |
16351 | return SWIG_Py_Void(); | |
5e483524 RD |
16352 | } |
16353 | ||
554f62e9 RD |
16354 | SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16355 | return SWIG_Python_InitShadowInstance(args); | |
16356 | } | |
5e483524 | 16357 | |
554f62e9 RD |
16358 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16359 | PyObject *resultobj = 0; | |
16360 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16361 | int arg2 ; | |
16362 | void *argp1 = 0 ; | |
16363 | int res1 = 0 ; | |
16364 | int val2 ; | |
16365 | int ecode2 = 0 ; | |
16366 | PyObject *swig_obj[2] ; | |
16367 | ||
16368 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail; | |
16369 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16370 | if (!SWIG_IsOK(res1)) { | |
16371 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16372 | } | |
16373 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16374 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
16375 | if (!SWIG_IsOK(ecode2)) { | |
16376 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'"); | |
16377 | } | |
16378 | arg2 = static_cast< int >(val2); | |
16379 | if (arg1) (arg1)->Language = arg2; | |
16380 | ||
16381 | resultobj = SWIG_Py_Void(); | |
16382 | return resultobj; | |
16383 | fail: | |
16384 | return NULL; | |
d55e5bfc RD |
16385 | } |
16386 | ||
16387 | ||
554f62e9 RD |
16388 | SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16389 | PyObject *resultobj = 0; | |
16390 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16391 | int result; | |
16392 | void *argp1 = 0 ; | |
16393 | int res1 = 0 ; | |
16394 | PyObject *swig_obj[1] ; | |
16395 | ||
16396 | if (!args) SWIG_fail; | |
16397 | swig_obj[0] = args; | |
16398 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16399 | if (!SWIG_IsOK(res1)) { | |
16400 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16401 | } | |
16402 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16403 | result = (int) ((arg1)->Language); | |
16404 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16405 | return resultobj; | |
16406 | fail: | |
16407 | return NULL; | |
16408 | } | |
16409 | ||
16410 | ||
16411 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16412 | PyObject *resultobj = 0; | |
16413 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16414 | wxString *arg2 = (wxString *) 0 ; | |
16415 | void *argp1 = 0 ; | |
16416 | int res1 = 0 ; | |
16417 | bool temp2 = false ; | |
16418 | PyObject *swig_obj[2] ; | |
16419 | ||
16420 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail; | |
16421 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16422 | if (!SWIG_IsOK(res1)) { | |
16423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16424 | } | |
16425 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16426 | { | |
16427 | arg2 = wxString_in_helper(swig_obj[1]); | |
16428 | if (arg2 == NULL) SWIG_fail; | |
16429 | temp2 = true; | |
16430 | } | |
16431 | if (arg1) (arg1)->CanonicalName = *arg2; | |
16432 | ||
16433 | resultobj = SWIG_Py_Void(); | |
16434 | { | |
16435 | if (temp2) | |
16436 | delete arg2; | |
16437 | } | |
16438 | return resultobj; | |
16439 | fail: | |
16440 | { | |
16441 | if (temp2) | |
16442 | delete arg2; | |
16443 | } | |
16444 | return NULL; | |
d55e5bfc RD |
16445 | } |
16446 | ||
16447 | ||
554f62e9 RD |
16448 | SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16449 | PyObject *resultobj = 0; | |
16450 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16451 | wxString *result = 0 ; | |
16452 | void *argp1 = 0 ; | |
16453 | int res1 = 0 ; | |
16454 | PyObject *swig_obj[1] ; | |
16455 | ||
16456 | if (!args) SWIG_fail; | |
16457 | swig_obj[0] = args; | |
16458 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16459 | if (!SWIG_IsOK(res1)) { | |
16460 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16461 | } | |
16462 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16463 | result = (wxString *)& ((arg1)->CanonicalName); | |
16464 | { | |
16465 | #if wxUSE_UNICODE | |
16466 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16467 | #else | |
16468 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16469 | #endif | |
16470 | } | |
16471 | return resultobj; | |
16472 | fail: | |
16473 | return NULL; | |
d55e5bfc RD |
16474 | } |
16475 | ||
16476 | ||
554f62e9 RD |
16477 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16478 | PyObject *resultobj = 0; | |
16479 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16480 | wxString *arg2 = (wxString *) 0 ; | |
16481 | void *argp1 = 0 ; | |
16482 | int res1 = 0 ; | |
16483 | bool temp2 = false ; | |
16484 | PyObject *swig_obj[2] ; | |
16485 | ||
16486 | if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail; | |
16487 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16488 | if (!SWIG_IsOK(res1)) { | |
16489 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16490 | } | |
16491 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16492 | { | |
16493 | arg2 = wxString_in_helper(swig_obj[1]); | |
16494 | if (arg2 == NULL) SWIG_fail; | |
16495 | temp2 = true; | |
16496 | } | |
16497 | if (arg1) (arg1)->Description = *arg2; | |
16498 | ||
16499 | resultobj = SWIG_Py_Void(); | |
16500 | { | |
16501 | if (temp2) | |
16502 | delete arg2; | |
16503 | } | |
16504 | return resultobj; | |
16505 | fail: | |
16506 | { | |
16507 | if (temp2) | |
16508 | delete arg2; | |
16509 | } | |
16510 | return NULL; | |
d55e5bfc RD |
16511 | } |
16512 | ||
16513 | ||
554f62e9 RD |
16514 | SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16515 | PyObject *resultobj = 0; | |
16516 | wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ; | |
16517 | wxString *result = 0 ; | |
16518 | void *argp1 = 0 ; | |
16519 | int res1 = 0 ; | |
16520 | PyObject *swig_obj[1] ; | |
16521 | ||
16522 | if (!args) SWIG_fail; | |
16523 | swig_obj[0] = args; | |
16524 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
16525 | if (!SWIG_IsOK(res1)) { | |
16526 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'"); | |
16527 | } | |
16528 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
16529 | result = (wxString *)& ((arg1)->Description); | |
16530 | { | |
16531 | #if wxUSE_UNICODE | |
16532 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
16533 | #else | |
16534 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
16535 | #endif | |
16536 | } | |
16537 | return resultobj; | |
16538 | fail: | |
16539 | return NULL; | |
16540 | } | |
16541 | ||
16542 | ||
16543 | SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
16544 | PyObject *obj; | |
16545 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
16546 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj)); | |
16547 | return SWIG_Py_Void(); | |
16548 | } | |
16549 | ||
16550 | SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16551 | PyObject *resultobj = 0; | |
16552 | int arg1 = (int) -1 ; | |
16553 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16554 | wxLocale *result = 0 ; | |
16555 | int val1 ; | |
16556 | int ecode1 = 0 ; | |
16557 | int val2 ; | |
16558 | int ecode2 = 0 ; | |
16559 | PyObject * obj0 = 0 ; | |
16560 | PyObject * obj1 = 0 ; | |
16561 | char * kwnames[] = { | |
16562 | (char *) "language",(char *) "flags", NULL | |
16563 | }; | |
16564 | ||
16565 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail; | |
16566 | if (obj0) { | |
16567 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
16568 | if (!SWIG_IsOK(ecode1)) { | |
16569 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'"); | |
16570 | } | |
16571 | arg1 = static_cast< int >(val1); | |
16572 | } | |
16573 | if (obj1) { | |
16574 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16575 | if (!SWIG_IsOK(ecode2)) { | |
16576 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'"); | |
16577 | } | |
16578 | arg2 = static_cast< int >(val2); | |
16579 | } | |
16580 | { | |
16581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16582 | result = (wxLocale *)new_wxLocale(arg1,arg2); | |
16583 | wxPyEndAllowThreads(__tstate); | |
16584 | if (PyErr_Occurred()) SWIG_fail; | |
16585 | } | |
16586 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 ); | |
16587 | return resultobj; | |
16588 | fail: | |
16589 | return NULL; | |
d55e5bfc RD |
16590 | } |
16591 | ||
16592 | ||
554f62e9 RD |
16593 | SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16594 | PyObject *resultobj = 0; | |
16595 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16596 | void *argp1 = 0 ; | |
16597 | int res1 = 0 ; | |
16598 | PyObject *swig_obj[1] ; | |
16599 | ||
16600 | if (!args) SWIG_fail; | |
16601 | swig_obj[0] = args; | |
16602 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 ); | |
16603 | if (!SWIG_IsOK(res1)) { | |
16604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16605 | } | |
16606 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16607 | { | |
16608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16609 | delete arg1; | |
d55e5bfc | 16610 | |
554f62e9 RD |
16611 | wxPyEndAllowThreads(__tstate); |
16612 | if (PyErr_Occurred()) SWIG_fail; | |
16613 | } | |
16614 | resultobj = SWIG_Py_Void(); | |
16615 | return resultobj; | |
16616 | fail: | |
16617 | return NULL; | |
16618 | } | |
16619 | ||
16620 | ||
16621 | SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16622 | PyObject *resultobj = 0; | |
16623 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16624 | wxString *arg2 = 0 ; | |
16625 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
16626 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
16627 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
16628 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
16629 | bool arg5 = (bool) true ; | |
16630 | bool arg6 = (bool) false ; | |
16631 | bool result; | |
16632 | void *argp1 = 0 ; | |
16633 | int res1 = 0 ; | |
16634 | bool temp2 = false ; | |
16635 | bool temp3 = false ; | |
16636 | bool temp4 = false ; | |
16637 | bool val5 ; | |
16638 | int ecode5 = 0 ; | |
16639 | bool val6 ; | |
16640 | int ecode6 = 0 ; | |
16641 | PyObject * obj0 = 0 ; | |
16642 | PyObject * obj1 = 0 ; | |
16643 | PyObject * obj2 = 0 ; | |
16644 | PyObject * obj3 = 0 ; | |
16645 | PyObject * obj4 = 0 ; | |
16646 | PyObject * obj5 = 0 ; | |
16647 | char * kwnames[] = { | |
16648 | (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL | |
16649 | }; | |
16650 | ||
16651 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
16652 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16653 | if (!SWIG_IsOK(res1)) { | |
16654 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16655 | } | |
16656 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16657 | { | |
16658 | arg2 = wxString_in_helper(obj1); | |
16659 | if (arg2 == NULL) SWIG_fail; | |
16660 | temp2 = true; | |
16661 | } | |
16662 | if (obj2) { | |
093d3ff1 | 16663 | { |
554f62e9 RD |
16664 | arg3 = wxString_in_helper(obj2); |
16665 | if (arg3 == NULL) SWIG_fail; | |
16666 | temp3 = true; | |
093d3ff1 | 16667 | } |
554f62e9 RD |
16668 | } |
16669 | if (obj3) { | |
d55e5bfc | 16670 | { |
554f62e9 RD |
16671 | arg4 = wxString_in_helper(obj3); |
16672 | if (arg4 == NULL) SWIG_fail; | |
16673 | temp4 = true; | |
d55e5bfc | 16674 | } |
554f62e9 RD |
16675 | } |
16676 | if (obj4) { | |
16677 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
16678 | if (!SWIG_IsOK(ecode5)) { | |
16679 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'"); | |
16680 | } | |
16681 | arg5 = static_cast< bool >(val5); | |
16682 | } | |
16683 | if (obj5) { | |
16684 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
16685 | if (!SWIG_IsOK(ecode6)) { | |
16686 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'"); | |
16687 | } | |
16688 | arg6 = static_cast< bool >(val6); | |
16689 | } | |
16690 | { | |
16691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16692 | result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6); | |
16693 | wxPyEndAllowThreads(__tstate); | |
16694 | if (PyErr_Occurred()) SWIG_fail; | |
16695 | } | |
16696 | { | |
16697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16698 | } | |
16699 | { | |
16700 | if (temp2) | |
16701 | delete arg2; | |
16702 | } | |
16703 | { | |
16704 | if (temp3) | |
16705 | delete arg3; | |
16706 | } | |
16707 | { | |
16708 | if (temp4) | |
16709 | delete arg4; | |
16710 | } | |
16711 | return resultobj; | |
16712 | fail: | |
16713 | { | |
16714 | if (temp2) | |
16715 | delete arg2; | |
16716 | } | |
16717 | { | |
16718 | if (temp3) | |
16719 | delete arg3; | |
16720 | } | |
16721 | { | |
16722 | if (temp4) | |
16723 | delete arg4; | |
16724 | } | |
16725 | return NULL; | |
16726 | } | |
16727 | ||
16728 | ||
16729 | SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
16730 | PyObject *resultobj = 0; | |
16731 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16732 | int arg2 = (int) wxLANGUAGE_DEFAULT ; | |
16733 | int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
16734 | bool result; | |
16735 | void *argp1 = 0 ; | |
16736 | int res1 = 0 ; | |
16737 | int val2 ; | |
16738 | int ecode2 = 0 ; | |
16739 | int val3 ; | |
16740 | int ecode3 = 0 ; | |
16741 | PyObject * obj0 = 0 ; | |
16742 | PyObject * obj1 = 0 ; | |
16743 | PyObject * obj2 = 0 ; | |
16744 | char * kwnames[] = { | |
16745 | (char *) "self",(char *) "language",(char *) "flags", NULL | |
16746 | }; | |
16747 | ||
16748 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
16749 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16750 | if (!SWIG_IsOK(res1)) { | |
16751 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
16752 | } | |
16753 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16754 | if (obj1) { | |
16755 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
16756 | if (!SWIG_IsOK(ecode2)) { | |
16757 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'"); | |
16758 | } | |
16759 | arg2 = static_cast< int >(val2); | |
16760 | } | |
16761 | if (obj2) { | |
16762 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
16763 | if (!SWIG_IsOK(ecode3)) { | |
16764 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'"); | |
16765 | } | |
16766 | arg3 = static_cast< int >(val3); | |
16767 | } | |
16768 | { | |
16769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16770 | result = (bool)wxLocale_Init2(arg1,arg2,arg3); | |
16771 | wxPyEndAllowThreads(__tstate); | |
16772 | if (PyErr_Occurred()) SWIG_fail; | |
16773 | } | |
16774 | { | |
16775 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16776 | } | |
16777 | return resultobj; | |
16778 | fail: | |
16779 | return NULL; | |
d55e5bfc RD |
16780 | } |
16781 | ||
16782 | ||
554f62e9 RD |
16783 | SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16784 | PyObject *resultobj = 0; | |
16785 | int result; | |
16786 | ||
16787 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail; | |
16788 | { | |
16789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16790 | result = (int)wxLocale::GetSystemLanguage(); | |
16791 | wxPyEndAllowThreads(__tstate); | |
16792 | if (PyErr_Occurred()) SWIG_fail; | |
16793 | } | |
16794 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16795 | return resultobj; | |
16796 | fail: | |
16797 | return NULL; | |
d55e5bfc RD |
16798 | } |
16799 | ||
16800 | ||
554f62e9 RD |
16801 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16802 | PyObject *resultobj = 0; | |
16803 | wxFontEncoding result; | |
16804 | ||
16805 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail; | |
16806 | { | |
16807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16808 | result = (wxFontEncoding)wxLocale::GetSystemEncoding(); | |
16809 | wxPyEndAllowThreads(__tstate); | |
16810 | if (PyErr_Occurred()) SWIG_fail; | |
16811 | } | |
16812 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16813 | return resultobj; | |
16814 | fail: | |
16815 | return NULL; | |
d55e5bfc RD |
16816 | } |
16817 | ||
16818 | ||
554f62e9 RD |
16819 | SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16820 | PyObject *resultobj = 0; | |
16821 | wxString result; | |
16822 | ||
16823 | if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail; | |
16824 | { | |
16825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16826 | result = wxLocale::GetSystemEncodingName(); | |
16827 | wxPyEndAllowThreads(__tstate); | |
16828 | if (PyErr_Occurred()) SWIG_fail; | |
16829 | } | |
16830 | { | |
16831 | #if wxUSE_UNICODE | |
16832 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16833 | #else | |
16834 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16835 | #endif | |
16836 | } | |
16837 | return resultobj; | |
16838 | fail: | |
16839 | return NULL; | |
d55e5bfc RD |
16840 | } |
16841 | ||
16842 | ||
554f62e9 RD |
16843 | SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16844 | PyObject *resultobj = 0; | |
16845 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16846 | bool result; | |
16847 | void *argp1 = 0 ; | |
16848 | int res1 = 0 ; | |
16849 | PyObject *swig_obj[1] ; | |
16850 | ||
16851 | if (!args) SWIG_fail; | |
16852 | swig_obj[0] = args; | |
16853 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16854 | if (!SWIG_IsOK(res1)) { | |
16855 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16856 | } | |
16857 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16858 | { | |
16859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16860 | result = (bool)((wxLocale const *)arg1)->IsOk(); | |
16861 | wxPyEndAllowThreads(__tstate); | |
16862 | if (PyErr_Occurred()) SWIG_fail; | |
16863 | } | |
16864 | { | |
16865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16866 | } | |
16867 | return resultobj; | |
16868 | fail: | |
16869 | return NULL; | |
d55e5bfc RD |
16870 | } |
16871 | ||
16872 | ||
554f62e9 RD |
16873 | SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16874 | PyObject *resultobj = 0; | |
16875 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16876 | wxString result; | |
16877 | void *argp1 = 0 ; | |
16878 | int res1 = 0 ; | |
16879 | PyObject *swig_obj[1] ; | |
16880 | ||
16881 | if (!args) SWIG_fail; | |
16882 | swig_obj[0] = args; | |
16883 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16884 | if (!SWIG_IsOK(res1)) { | |
16885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16886 | } | |
16887 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16888 | { | |
16889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16890 | result = ((wxLocale const *)arg1)->GetLocale(); | |
16891 | wxPyEndAllowThreads(__tstate); | |
16892 | if (PyErr_Occurred()) SWIG_fail; | |
16893 | } | |
16894 | { | |
16895 | #if wxUSE_UNICODE | |
16896 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16897 | #else | |
16898 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16899 | #endif | |
16900 | } | |
16901 | return resultobj; | |
16902 | fail: | |
16903 | return NULL; | |
d55e5bfc RD |
16904 | } |
16905 | ||
16906 | ||
554f62e9 RD |
16907 | SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16908 | PyObject *resultobj = 0; | |
16909 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16910 | int result; | |
16911 | void *argp1 = 0 ; | |
16912 | int res1 = 0 ; | |
16913 | PyObject *swig_obj[1] ; | |
16914 | ||
16915 | if (!args) SWIG_fail; | |
16916 | swig_obj[0] = args; | |
16917 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16918 | if (!SWIG_IsOK(res1)) { | |
16919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16920 | } | |
16921 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16922 | { | |
16923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16924 | result = (int)((wxLocale const *)arg1)->GetLanguage(); | |
16925 | wxPyEndAllowThreads(__tstate); | |
16926 | if (PyErr_Occurred()) SWIG_fail; | |
16927 | } | |
16928 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
16929 | return resultobj; | |
16930 | fail: | |
16931 | return NULL; | |
d55e5bfc RD |
16932 | } |
16933 | ||
16934 | ||
554f62e9 RD |
16935 | SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16936 | PyObject *resultobj = 0; | |
16937 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16938 | wxString result; | |
16939 | void *argp1 = 0 ; | |
16940 | int res1 = 0 ; | |
16941 | PyObject *swig_obj[1] ; | |
16942 | ||
16943 | if (!args) SWIG_fail; | |
16944 | swig_obj[0] = args; | |
16945 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16946 | if (!SWIG_IsOK(res1)) { | |
16947 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16948 | } | |
16949 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16950 | { | |
16951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16952 | result = ((wxLocale const *)arg1)->GetSysName(); | |
16953 | wxPyEndAllowThreads(__tstate); | |
16954 | if (PyErr_Occurred()) SWIG_fail; | |
16955 | } | |
16956 | { | |
16957 | #if wxUSE_UNICODE | |
16958 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16959 | #else | |
16960 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16961 | #endif | |
16962 | } | |
16963 | return resultobj; | |
16964 | fail: | |
16965 | return NULL; | |
d55e5bfc RD |
16966 | } |
16967 | ||
16968 | ||
554f62e9 RD |
16969 | SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
16970 | PyObject *resultobj = 0; | |
16971 | wxLocale *arg1 = (wxLocale *) 0 ; | |
16972 | wxString result; | |
16973 | void *argp1 = 0 ; | |
16974 | int res1 = 0 ; | |
16975 | PyObject *swig_obj[1] ; | |
16976 | ||
16977 | if (!args) SWIG_fail; | |
16978 | swig_obj[0] = args; | |
16979 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
16980 | if (!SWIG_IsOK(res1)) { | |
16981 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
16982 | } | |
16983 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
16984 | { | |
16985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16986 | result = ((wxLocale const *)arg1)->GetCanonicalName(); | |
16987 | wxPyEndAllowThreads(__tstate); | |
16988 | if (PyErr_Occurred()) SWIG_fail; | |
16989 | } | |
16990 | { | |
093d3ff1 | 16991 | #if wxUSE_UNICODE |
554f62e9 | 16992 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16993 | #else |
554f62e9 | 16994 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 16995 | #endif |
554f62e9 RD |
16996 | } |
16997 | return resultobj; | |
16998 | fail: | |
16999 | return NULL; | |
d55e5bfc RD |
17000 | } |
17001 | ||
17002 | ||
554f62e9 RD |
17003 | SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17004 | PyObject *resultobj = 0; | |
17005 | wxString *arg1 = 0 ; | |
17006 | bool temp1 = false ; | |
17007 | PyObject * obj0 = 0 ; | |
17008 | char * kwnames[] = { | |
17009 | (char *) "prefix", NULL | |
17010 | }; | |
17011 | ||
17012 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail; | |
17013 | { | |
17014 | arg1 = wxString_in_helper(obj0); | |
17015 | if (arg1 == NULL) SWIG_fail; | |
17016 | temp1 = true; | |
17017 | } | |
17018 | { | |
17019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17020 | wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1); | |
17021 | wxPyEndAllowThreads(__tstate); | |
17022 | if (PyErr_Occurred()) SWIG_fail; | |
17023 | } | |
17024 | resultobj = SWIG_Py_Void(); | |
17025 | { | |
17026 | if (temp1) | |
17027 | delete arg1; | |
17028 | } | |
17029 | return resultobj; | |
17030 | fail: | |
17031 | { | |
17032 | if (temp1) | |
17033 | delete arg1; | |
17034 | } | |
17035 | return NULL; | |
17036 | } | |
17037 | ||
17038 | ||
17039 | SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17040 | PyObject *resultobj = 0; | |
17041 | wxLocale *arg1 = (wxLocale *) 0 ; | |
17042 | wxString *arg2 = 0 ; | |
17043 | bool result; | |
17044 | void *argp1 = 0 ; | |
17045 | int res1 = 0 ; | |
17046 | bool temp2 = false ; | |
17047 | PyObject * obj0 = 0 ; | |
17048 | PyObject * obj1 = 0 ; | |
17049 | char * kwnames[] = { | |
17050 | (char *) "self",(char *) "szDomain", NULL | |
17051 | }; | |
17052 | ||
17053 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail; | |
17054 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17055 | if (!SWIG_IsOK(res1)) { | |
17056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'"); | |
17057 | } | |
17058 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
17059 | { | |
17060 | arg2 = wxString_in_helper(obj1); | |
17061 | if (arg2 == NULL) SWIG_fail; | |
17062 | temp2 = true; | |
17063 | } | |
17064 | { | |
17065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17066 | result = (bool)(arg1)->AddCatalog((wxString const &)*arg2); | |
17067 | wxPyEndAllowThreads(__tstate); | |
17068 | if (PyErr_Occurred()) SWIG_fail; | |
17069 | } | |
17070 | { | |
17071 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17072 | } | |
17073 | { | |
17074 | if (temp2) | |
17075 | delete arg2; | |
17076 | } | |
17077 | return resultobj; | |
17078 | fail: | |
17079 | { | |
17080 | if (temp2) | |
17081 | delete arg2; | |
17082 | } | |
17083 | return NULL; | |
17084 | } | |
17085 | ||
17086 | ||
33d6fd3b RD |
17087 | SWIGINTERN PyObject *_wrap_Locale_IsAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17088 | PyObject *resultobj = 0; | |
17089 | int arg1 ; | |
17090 | bool result; | |
17091 | int val1 ; | |
17092 | int ecode1 = 0 ; | |
17093 | PyObject * obj0 = 0 ; | |
17094 | char * kwnames[] = { | |
17095 | (char *) "lang", NULL | |
17096 | }; | |
17097 | ||
17098 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_IsAvailable",kwnames,&obj0)) SWIG_fail; | |
17099 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17100 | if (!SWIG_IsOK(ecode1)) { | |
17101 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_IsAvailable" "', expected argument " "1"" of type '" "int""'"); | |
17102 | } | |
17103 | arg1 = static_cast< int >(val1); | |
17104 | { | |
17105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17106 | result = (bool)wxLocale::IsAvailable(arg1); | |
17107 | wxPyEndAllowThreads(__tstate); | |
17108 | if (PyErr_Occurred()) SWIG_fail; | |
17109 | } | |
17110 | { | |
17111 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17112 | } | |
17113 | return resultobj; | |
17114 | fail: | |
17115 | return NULL; | |
17116 | } | |
17117 | ||
17118 | ||
554f62e9 RD |
17119 | SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17120 | PyObject *resultobj = 0; | |
17121 | wxLocale *arg1 = (wxLocale *) 0 ; | |
17122 | wxString *arg2 = 0 ; | |
17123 | bool result; | |
17124 | void *argp1 = 0 ; | |
17125 | int res1 = 0 ; | |
17126 | bool temp2 = false ; | |
17127 | PyObject * obj0 = 0 ; | |
17128 | PyObject * obj1 = 0 ; | |
17129 | char * kwnames[] = { | |
17130 | (char *) "self",(char *) "szDomain", NULL | |
17131 | }; | |
17132 | ||
17133 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail; | |
17134 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17135 | if (!SWIG_IsOK(res1)) { | |
17136 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
17137 | } | |
17138 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
17139 | { | |
17140 | arg2 = wxString_in_helper(obj1); | |
17141 | if (arg2 == NULL) SWIG_fail; | |
17142 | temp2 = true; | |
17143 | } | |
17144 | { | |
17145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17146 | result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2); | |
17147 | wxPyEndAllowThreads(__tstate); | |
17148 | if (PyErr_Occurred()) SWIG_fail; | |
17149 | } | |
17150 | { | |
17151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17152 | } | |
17153 | { | |
17154 | if (temp2) | |
17155 | delete arg2; | |
17156 | } | |
17157 | return resultobj; | |
17158 | fail: | |
17159 | { | |
17160 | if (temp2) | |
17161 | delete arg2; | |
17162 | } | |
17163 | return NULL; | |
d55e5bfc RD |
17164 | } |
17165 | ||
17166 | ||
554f62e9 RD |
17167 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17168 | PyObject *resultobj = 0; | |
17169 | int arg1 ; | |
17170 | wxLanguageInfo *result = 0 ; | |
17171 | int val1 ; | |
17172 | int ecode1 = 0 ; | |
17173 | PyObject * obj0 = 0 ; | |
17174 | char * kwnames[] = { | |
17175 | (char *) "lang", NULL | |
17176 | }; | |
17177 | ||
17178 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
17179 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17180 | if (!SWIG_IsOK(ecode1)) { | |
17181 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'"); | |
17182 | } | |
17183 | arg1 = static_cast< int >(val1); | |
17184 | { | |
17185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17186 | result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1); | |
17187 | wxPyEndAllowThreads(__tstate); | |
17188 | if (PyErr_Occurred()) SWIG_fail; | |
17189 | } | |
17190 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
17191 | return resultobj; | |
17192 | fail: | |
17193 | return NULL; | |
17194 | } | |
17195 | ||
17196 | ||
17197 | SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17198 | PyObject *resultobj = 0; | |
17199 | int arg1 ; | |
17200 | wxString result; | |
17201 | int val1 ; | |
17202 | int ecode1 = 0 ; | |
17203 | PyObject * obj0 = 0 ; | |
17204 | char * kwnames[] = { | |
17205 | (char *) "lang", NULL | |
17206 | }; | |
17207 | ||
17208 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail; | |
17209 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17210 | if (!SWIG_IsOK(ecode1)) { | |
17211 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'"); | |
17212 | } | |
17213 | arg1 = static_cast< int >(val1); | |
17214 | { | |
17215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17216 | result = wxLocale::GetLanguageName(arg1); | |
17217 | wxPyEndAllowThreads(__tstate); | |
17218 | if (PyErr_Occurred()) SWIG_fail; | |
17219 | } | |
17220 | { | |
17221 | #if wxUSE_UNICODE | |
17222 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17223 | #else | |
17224 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17225 | #endif | |
17226 | } | |
17227 | return resultobj; | |
17228 | fail: | |
17229 | return NULL; | |
093d3ff1 RD |
17230 | } |
17231 | ||
17232 | ||
554f62e9 RD |
17233 | SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
17234 | PyObject *resultobj = 0; | |
17235 | wxString *arg1 = 0 ; | |
17236 | wxLanguageInfo *result = 0 ; | |
17237 | bool temp1 = false ; | |
17238 | PyObject * obj0 = 0 ; | |
17239 | char * kwnames[] = { | |
17240 | (char *) "locale", NULL | |
17241 | }; | |
17242 | ||
17243 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail; | |
17244 | { | |
17245 | arg1 = wxString_in_helper(obj0); | |
17246 | if (arg1 == NULL) SWIG_fail; | |
17247 | temp1 = true; | |
17248 | } | |
17249 | { | |
17250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 RD |
17251 | result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1); |
17252 | wxPyEndAllowThreads(__tstate); | |
17253 | if (PyErr_Occurred()) SWIG_fail; | |
17254 | } | |
17255 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 ); | |
17256 | { | |
17257 | if (temp1) | |
17258 | delete arg1; | |
17259 | } | |
17260 | return resultobj; | |
17261 | fail: | |
17262 | { | |
17263 | if (temp1) | |
17264 | delete arg1; | |
17265 | } | |
17266 | return NULL; | |
17267 | } | |
17268 | ||
17269 | ||
17270 | SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17271 | PyObject *resultobj = 0; | |
17272 | wxLanguageInfo *arg1 = 0 ; | |
17273 | void *argp1 = 0 ; | |
17274 | int res1 = 0 ; | |
17275 | PyObject * obj0 = 0 ; | |
17276 | char * kwnames[] = { | |
17277 | (char *) "info", NULL | |
17278 | }; | |
17279 | ||
17280 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail; | |
17281 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0); | |
17282 | if (!SWIG_IsOK(res1)) { | |
17283 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
17284 | } | |
17285 | if (!argp1) { | |
17286 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'"); | |
17287 | } | |
17288 | arg1 = reinterpret_cast< wxLanguageInfo * >(argp1); | |
17289 | { | |
17290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17291 | wxLocale::AddLanguage((wxLanguageInfo const &)*arg1); | |
17292 | wxPyEndAllowThreads(__tstate); | |
17293 | if (PyErr_Occurred()) SWIG_fail; | |
17294 | } | |
17295 | resultobj = SWIG_Py_Void(); | |
17296 | return resultobj; | |
17297 | fail: | |
17298 | return NULL; | |
17299 | } | |
17300 | ||
17301 | ||
17302 | SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17303 | PyObject *resultobj = 0; | |
17304 | wxLocale *arg1 = (wxLocale *) 0 ; | |
17305 | wxString *arg2 = 0 ; | |
17306 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
17307 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
17308 | wxString result; | |
17309 | void *argp1 = 0 ; | |
17310 | int res1 = 0 ; | |
17311 | bool temp2 = false ; | |
17312 | bool temp3 = false ; | |
17313 | PyObject * obj0 = 0 ; | |
17314 | PyObject * obj1 = 0 ; | |
17315 | PyObject * obj2 = 0 ; | |
17316 | char * kwnames[] = { | |
17317 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
17318 | }; | |
17319 | ||
17320 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
17321 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17322 | if (!SWIG_IsOK(res1)) { | |
17323 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
17324 | } | |
17325 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
17326 | { | |
17327 | arg2 = wxString_in_helper(obj1); | |
17328 | if (arg2 == NULL) SWIG_fail; | |
17329 | temp2 = true; | |
17330 | } | |
17331 | if (obj2) { | |
17332 | { | |
17333 | arg3 = wxString_in_helper(obj2); | |
17334 | if (arg3 == NULL) SWIG_fail; | |
17335 | temp3 = true; | |
17336 | } | |
17337 | } | |
17338 | { | |
17339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17340 | result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3); | |
17341 | wxPyEndAllowThreads(__tstate); | |
17342 | if (PyErr_Occurred()) SWIG_fail; | |
17343 | } | |
17344 | { | |
17345 | #if wxUSE_UNICODE | |
17346 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17347 | #else | |
17348 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17349 | #endif | |
17350 | } | |
17351 | { | |
17352 | if (temp2) | |
17353 | delete arg2; | |
17354 | } | |
17355 | { | |
17356 | if (temp3) | |
17357 | delete arg3; | |
17358 | } | |
17359 | return resultobj; | |
17360 | fail: | |
17361 | { | |
17362 | if (temp2) | |
17363 | delete arg2; | |
17364 | } | |
17365 | { | |
17366 | if (temp3) | |
17367 | delete arg3; | |
17368 | } | |
17369 | return NULL; | |
17370 | } | |
17371 | ||
17372 | ||
17373 | SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17374 | PyObject *resultobj = 0; | |
17375 | wxLocale *arg1 = (wxLocale *) 0 ; | |
17376 | wxString *result = 0 ; | |
17377 | void *argp1 = 0 ; | |
17378 | int res1 = 0 ; | |
17379 | PyObject *swig_obj[1] ; | |
17380 | ||
17381 | if (!args) SWIG_fail; | |
17382 | swig_obj[0] = args; | |
17383 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17384 | if (!SWIG_IsOK(res1)) { | |
17385 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'"); | |
17386 | } | |
17387 | arg1 = reinterpret_cast< wxLocale * >(argp1); | |
17388 | { | |
17389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17390 | { | |
17391 | wxString const &_result_ref = ((wxLocale const *)arg1)->GetName(); | |
17392 | result = (wxString *) &_result_ref; | |
17393 | } | |
17394 | wxPyEndAllowThreads(__tstate); | |
17395 | if (PyErr_Occurred()) SWIG_fail; | |
17396 | } | |
17397 | { | |
17398 | #if wxUSE_UNICODE | |
17399 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
17400 | #else | |
17401 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
17402 | #endif | |
17403 | } | |
17404 | return resultobj; | |
17405 | fail: | |
17406 | return NULL; | |
17407 | } | |
17408 | ||
17409 | ||
17410 | SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17411 | PyObject *obj; | |
17412 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
17413 | SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj)); | |
17414 | return SWIG_Py_Void(); | |
17415 | } | |
17416 | ||
17417 | SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17418 | return SWIG_Python_InitShadowInstance(args); | |
17419 | } | |
17420 | ||
17421 | SWIGINTERN PyObject *_wrap_new_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17422 | PyObject *resultobj = 0; | |
17423 | int arg1 = (int) -1 ; | |
17424 | int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ; | |
17425 | wxPyLocale *result = 0 ; | |
17426 | int val1 ; | |
17427 | int ecode1 = 0 ; | |
17428 | int val2 ; | |
17429 | int ecode2 = 0 ; | |
17430 | PyObject * obj0 = 0 ; | |
17431 | PyObject * obj1 = 0 ; | |
17432 | char * kwnames[] = { | |
17433 | (char *) "language",(char *) "flags", NULL | |
17434 | }; | |
17435 | ||
17436 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_PyLocale",kwnames,&obj0,&obj1)) SWIG_fail; | |
17437 | if (obj0) { | |
17438 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
17439 | if (!SWIG_IsOK(ecode1)) { | |
17440 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_PyLocale" "', expected argument " "1"" of type '" "int""'"); | |
17441 | } | |
17442 | arg1 = static_cast< int >(val1); | |
17443 | } | |
17444 | if (obj1) { | |
17445 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
17446 | if (!SWIG_IsOK(ecode2)) { | |
17447 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_PyLocale" "', expected argument " "2"" of type '" "int""'"); | |
17448 | } | |
17449 | arg2 = static_cast< int >(val2); | |
17450 | } | |
17451 | { | |
17452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17453 | result = (wxPyLocale *)new_wxPyLocale(arg1,arg2); | |
17454 | wxPyEndAllowThreads(__tstate); | |
17455 | if (PyErr_Occurred()) SWIG_fail; | |
17456 | } | |
17457 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyLocale, SWIG_POINTER_NEW | 0 ); | |
17458 | return resultobj; | |
17459 | fail: | |
17460 | return NULL; | |
17461 | } | |
17462 | ||
17463 | ||
17464 | SWIGINTERN PyObject *_wrap_delete_PyLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
17465 | PyObject *resultobj = 0; | |
17466 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; | |
17467 | void *argp1 = 0 ; | |
17468 | int res1 = 0 ; | |
17469 | PyObject *swig_obj[1] ; | |
17470 | ||
17471 | if (!args) SWIG_fail; | |
17472 | swig_obj[0] = args; | |
17473 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyLocale, SWIG_POINTER_DISOWN | 0 ); | |
17474 | if (!SWIG_IsOK(res1)) { | |
17475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PyLocale" "', expected argument " "1"" of type '" "wxPyLocale *""'"); | |
17476 | } | |
17477 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
17478 | { | |
17479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17480 | delete arg1; | |
17481 | ||
554f62e9 RD |
17482 | wxPyEndAllowThreads(__tstate); |
17483 | if (PyErr_Occurred()) SWIG_fail; | |
17484 | } | |
fc46b7f3 | 17485 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
17486 | return resultobj; |
17487 | fail: | |
554f62e9 | 17488 | return NULL; |
d55e5bfc RD |
17489 | } |
17490 | ||
17491 | ||
fc46b7f3 | 17492 | SWIGINTERN PyObject *_wrap_PyLocale__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 17493 | PyObject *resultobj = 0; |
fc46b7f3 RD |
17494 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
17495 | PyObject *arg2 = (PyObject *) 0 ; | |
17496 | PyObject *arg3 = (PyObject *) 0 ; | |
554f62e9 RD |
17497 | void *argp1 = 0 ; |
17498 | int res1 = 0 ; | |
17499 | PyObject * obj0 = 0 ; | |
fc46b7f3 RD |
17500 | PyObject * obj1 = 0 ; |
17501 | PyObject * obj2 = 0 ; | |
554f62e9 | 17502 | char * kwnames[] = { |
fc46b7f3 | 17503 | (char *) "self",(char *) "self",(char *) "_class", NULL |
554f62e9 RD |
17504 | }; |
17505 | ||
fc46b7f3 RD |
17506 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyLocale__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
17507 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
554f62e9 | 17508 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 17509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyLocale *""'"); |
554f62e9 | 17510 | } |
fc46b7f3 RD |
17511 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
17512 | arg2 = obj1; | |
17513 | arg3 = obj2; | |
554f62e9 RD |
17514 | { |
17515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 17516 | (arg1)->_setCallbackInfo(arg2,arg3); |
554f62e9 RD |
17517 | wxPyEndAllowThreads(__tstate); |
17518 | if (PyErr_Occurred()) SWIG_fail; | |
17519 | } | |
17520 | resultobj = SWIG_Py_Void(); | |
17521 | return resultobj; | |
17522 | fail: | |
17523 | return NULL; | |
17524 | } | |
17525 | ||
17526 | ||
fc46b7f3 | 17527 | SWIGINTERN PyObject *_wrap_PyLocale_GetSingularString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 17528 | PyObject *resultobj = 0; |
fc46b7f3 RD |
17529 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
17530 | wxChar *arg2 = (wxChar *) 0 ; | |
17531 | wxChar *arg3 = (wxChar *) NULL ; | |
17532 | wxChar *result = 0 ; | |
554f62e9 RD |
17533 | void *argp1 = 0 ; |
17534 | int res1 = 0 ; | |
fc46b7f3 RD |
17535 | void *argp2 = 0 ; |
17536 | int res2 = 0 ; | |
17537 | void *argp3 = 0 ; | |
17538 | int res3 = 0 ; | |
554f62e9 RD |
17539 | PyObject * obj0 = 0 ; |
17540 | PyObject * obj1 = 0 ; | |
17541 | PyObject * obj2 = 0 ; | |
17542 | char * kwnames[] = { | |
17543 | (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL | |
17544 | }; | |
17545 | ||
fc46b7f3 RD |
17546 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PyLocale_GetSingularString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
17547 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
554f62e9 | 17548 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 | 17549 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetSingularString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
554f62e9 | 17550 | } |
fc46b7f3 RD |
17551 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); |
17552 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17553 | if (!SWIG_IsOK(res2)) { | |
17554 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetSingularString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
554f62e9 | 17555 | } |
fc46b7f3 | 17556 | arg2 = reinterpret_cast< wxChar * >(argp2); |
554f62e9 | 17557 | if (obj2) { |
fc46b7f3 RD |
17558 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); |
17559 | if (!SWIG_IsOK(res3)) { | |
17560 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetSingularString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
d55e5bfc | 17561 | } |
fc46b7f3 | 17562 | arg3 = reinterpret_cast< wxChar * >(argp3); |
554f62e9 RD |
17563 | } |
17564 | { | |
17565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 17566 | result = (wxChar *)((wxPyLocale const *)arg1)->GetSingularString((wxChar const *)arg2,(wxChar const *)arg3); |
554f62e9 RD |
17567 | wxPyEndAllowThreads(__tstate); |
17568 | if (PyErr_Occurred()) SWIG_fail; | |
17569 | } | |
fc46b7f3 | 17570 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
554f62e9 RD |
17571 | return resultobj; |
17572 | fail: | |
554f62e9 | 17573 | return NULL; |
d55e5bfc RD |
17574 | } |
17575 | ||
17576 | ||
fc46b7f3 | 17577 | SWIGINTERN PyObject *_wrap_PyLocale_GetPluralString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 17578 | PyObject *resultobj = 0; |
fc46b7f3 RD |
17579 | wxPyLocale *arg1 = (wxPyLocale *) 0 ; |
17580 | wxChar *arg2 = (wxChar *) 0 ; | |
17581 | wxChar *arg3 = (wxChar *) 0 ; | |
17582 | size_t arg4 ; | |
17583 | wxChar *arg5 = (wxChar *) NULL ; | |
17584 | wxChar *result = 0 ; | |
554f62e9 RD |
17585 | void *argp1 = 0 ; |
17586 | int res1 = 0 ; | |
fc46b7f3 RD |
17587 | void *argp2 = 0 ; |
17588 | int res2 = 0 ; | |
17589 | void *argp3 = 0 ; | |
17590 | int res3 = 0 ; | |
17591 | size_t val4 ; | |
17592 | int ecode4 = 0 ; | |
17593 | void *argp5 = 0 ; | |
17594 | int res5 = 0 ; | |
17595 | PyObject * obj0 = 0 ; | |
17596 | PyObject * obj1 = 0 ; | |
17597 | PyObject * obj2 = 0 ; | |
17598 | PyObject * obj3 = 0 ; | |
17599 | PyObject * obj4 = 0 ; | |
17600 | char * kwnames[] = { | |
17601 | (char *) "self",(char *) "szOrigString",(char *) "szOrigString2",(char *) "n",(char *) "szDomain", NULL | |
17602 | }; | |
554f62e9 | 17603 | |
fc46b7f3 RD |
17604 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PyLocale_GetPluralString",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
17605 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyLocale, 0 | 0 ); | |
554f62e9 | 17606 | if (!SWIG_IsOK(res1)) { |
fc46b7f3 RD |
17607 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PyLocale_GetPluralString" "', expected argument " "1"" of type '" "wxPyLocale const *""'"); |
17608 | } | |
17609 | arg1 = reinterpret_cast< wxPyLocale * >(argp1); | |
17610 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17611 | if (!SWIG_IsOK(res2)) { | |
17612 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PyLocale_GetPluralString" "', expected argument " "2"" of type '" "wxChar const *""'"); | |
17613 | } | |
17614 | arg2 = reinterpret_cast< wxChar * >(argp2); | |
17615 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17616 | if (!SWIG_IsOK(res3)) { | |
17617 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PyLocale_GetPluralString" "', expected argument " "3"" of type '" "wxChar const *""'"); | |
17618 | } | |
17619 | arg3 = reinterpret_cast< wxChar * >(argp3); | |
17620 | ecode4 = SWIG_AsVal_size_t(obj3, &val4); | |
17621 | if (!SWIG_IsOK(ecode4)) { | |
17622 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PyLocale_GetPluralString" "', expected argument " "4"" of type '" "size_t""'"); | |
17623 | } | |
17624 | arg4 = static_cast< size_t >(val4); | |
17625 | if (obj4) { | |
17626 | res5 = SWIG_ConvertPtr(obj4, &argp5,SWIGTYPE_p_wxChar, 0 | 0 ); | |
17627 | if (!SWIG_IsOK(res5)) { | |
17628 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PyLocale_GetPluralString" "', expected argument " "5"" of type '" "wxChar const *""'"); | |
17629 | } | |
17630 | arg5 = reinterpret_cast< wxChar * >(argp5); | |
554f62e9 | 17631 | } |
554f62e9 RD |
17632 | { |
17633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
fc46b7f3 | 17634 | result = (wxChar *)((wxPyLocale const *)arg1)->GetPluralString((wxChar const *)arg2,(wxChar const *)arg3,arg4,(wxChar const *)arg5); |
554f62e9 RD |
17635 | wxPyEndAllowThreads(__tstate); |
17636 | if (PyErr_Occurred()) SWIG_fail; | |
17637 | } | |
fc46b7f3 | 17638 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxChar, 0 | 0 ); |
554f62e9 RD |
17639 | return resultobj; |
17640 | fail: | |
17641 | return NULL; | |
d55e5bfc RD |
17642 | } |
17643 | ||
17644 | ||
fc46b7f3 | 17645 | SWIGINTERN PyObject *PyLocale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
17646 | PyObject *obj; |
17647 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
fc46b7f3 | 17648 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPyLocale, SWIG_NewClientData(obj)); |
554f62e9 | 17649 | return SWIG_Py_Void(); |
d55e5bfc RD |
17650 | } |
17651 | ||
fc46b7f3 | 17652 | SWIGINTERN PyObject *PyLocale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 17653 | return SWIG_Python_InitShadowInstance(args); |
d55e5bfc RD |
17654 | } |
17655 | ||
554f62e9 RD |
17656 | SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17657 | PyObject *resultobj = 0; | |
17658 | wxLocale *result = 0 ; | |
17659 | ||
17660 | if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail; | |
17661 | { | |
17662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17663 | result = (wxLocale *)wxGetLocale(); | |
17664 | wxPyEndAllowThreads(__tstate); | |
17665 | if (PyErr_Occurred()) SWIG_fail; | |
17666 | } | |
17667 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 ); | |
17668 | return resultobj; | |
17669 | fail: | |
17670 | return NULL; | |
d55e5bfc RD |
17671 | } |
17672 | ||
17673 | ||
554f62e9 RD |
17674 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17675 | PyObject *resultobj = 0; | |
17676 | wxString *arg1 = 0 ; | |
17677 | wxString result; | |
17678 | bool temp1 = false ; | |
17679 | ||
17680 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
17681 | { | |
17682 | arg1 = wxString_in_helper(swig_obj[0]); | |
17683 | if (arg1 == NULL) SWIG_fail; | |
17684 | temp1 = true; | |
17685 | } | |
17686 | { | |
17687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17688 | result = wxGetTranslation((wxString const &)*arg1); | |
17689 | wxPyEndAllowThreads(__tstate); | |
17690 | if (PyErr_Occurred()) SWIG_fail; | |
17691 | } | |
17692 | { | |
093d3ff1 | 17693 | #if wxUSE_UNICODE |
554f62e9 | 17694 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17695 | #else |
554f62e9 | 17696 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17697 | #endif |
554f62e9 RD |
17698 | } |
17699 | { | |
17700 | if (temp1) | |
17701 | delete arg1; | |
17702 | } | |
17703 | return resultobj; | |
17704 | fail: | |
17705 | { | |
17706 | if (temp1) | |
17707 | delete arg1; | |
17708 | } | |
17709 | return NULL; | |
d55e5bfc RD |
17710 | } |
17711 | ||
17712 | ||
554f62e9 | 17713 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
fc46b7f3 RD |
17714 | PyObject *resultobj = 0; |
17715 | wxString *arg1 = 0 ; | |
17716 | wxString *arg2 = 0 ; | |
17717 | wxString result; | |
17718 | bool temp1 = false ; | |
17719 | bool temp2 = false ; | |
17720 | ||
17721 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
17722 | { | |
17723 | arg1 = wxString_in_helper(swig_obj[0]); | |
17724 | if (arg1 == NULL) SWIG_fail; | |
17725 | temp1 = true; | |
17726 | } | |
17727 | { | |
17728 | arg2 = wxString_in_helper(swig_obj[1]); | |
17729 | if (arg2 == NULL) SWIG_fail; | |
17730 | temp2 = true; | |
17731 | } | |
17732 | { | |
17733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17734 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2); | |
17735 | wxPyEndAllowThreads(__tstate); | |
17736 | if (PyErr_Occurred()) SWIG_fail; | |
17737 | } | |
17738 | { | |
17739 | #if wxUSE_UNICODE | |
17740 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17741 | #else | |
17742 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17743 | #endif | |
17744 | } | |
17745 | { | |
17746 | if (temp1) | |
17747 | delete arg1; | |
17748 | } | |
17749 | { | |
17750 | if (temp2) | |
17751 | delete arg2; | |
17752 | } | |
17753 | return resultobj; | |
17754 | fail: | |
17755 | { | |
17756 | if (temp1) | |
17757 | delete arg1; | |
17758 | } | |
17759 | { | |
17760 | if (temp2) | |
17761 | delete arg2; | |
17762 | } | |
17763 | return NULL; | |
17764 | } | |
17765 | ||
17766 | ||
17767 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
554f62e9 RD |
17768 | PyObject *resultobj = 0; |
17769 | wxString *arg1 = 0 ; | |
17770 | wxString *arg2 = 0 ; | |
17771 | size_t arg3 ; | |
17772 | wxString result; | |
17773 | bool temp1 = false ; | |
17774 | bool temp2 = false ; | |
17775 | size_t val3 ; | |
17776 | int ecode3 = 0 ; | |
17777 | ||
17778 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; | |
17779 | { | |
17780 | arg1 = wxString_in_helper(swig_obj[0]); | |
17781 | if (arg1 == NULL) SWIG_fail; | |
17782 | temp1 = true; | |
17783 | } | |
17784 | { | |
17785 | arg2 = wxString_in_helper(swig_obj[1]); | |
17786 | if (arg2 == NULL) SWIG_fail; | |
17787 | temp2 = true; | |
17788 | } | |
17789 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17790 | if (!SWIG_IsOK(ecode3)) { | |
17791 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17792 | } | |
17793 | arg3 = static_cast< size_t >(val3); | |
17794 | { | |
17795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17796 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3); | |
17797 | wxPyEndAllowThreads(__tstate); | |
17798 | if (PyErr_Occurred()) SWIG_fail; | |
17799 | } | |
17800 | { | |
093d3ff1 | 17801 | #if wxUSE_UNICODE |
554f62e9 | 17802 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17803 | #else |
554f62e9 | 17804 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
093d3ff1 | 17805 | #endif |
554f62e9 RD |
17806 | } |
17807 | { | |
17808 | if (temp1) | |
17809 | delete arg1; | |
17810 | } | |
17811 | { | |
17812 | if (temp2) | |
17813 | delete arg2; | |
17814 | } | |
17815 | return resultobj; | |
17816 | fail: | |
17817 | { | |
17818 | if (temp1) | |
17819 | delete arg1; | |
17820 | } | |
17821 | { | |
17822 | if (temp2) | |
17823 | delete arg2; | |
17824 | } | |
17825 | return NULL; | |
d55e5bfc RD |
17826 | } |
17827 | ||
17828 | ||
fc46b7f3 RD |
17829 | SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_3(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
17830 | PyObject *resultobj = 0; | |
17831 | wxString *arg1 = 0 ; | |
17832 | wxString *arg2 = 0 ; | |
17833 | size_t arg3 ; | |
17834 | wxString *arg4 = 0 ; | |
17835 | wxString result; | |
17836 | bool temp1 = false ; | |
17837 | bool temp2 = false ; | |
17838 | size_t val3 ; | |
17839 | int ecode3 = 0 ; | |
17840 | bool temp4 = false ; | |
17841 | ||
17842 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; | |
17843 | { | |
17844 | arg1 = wxString_in_helper(swig_obj[0]); | |
17845 | if (arg1 == NULL) SWIG_fail; | |
17846 | temp1 = true; | |
17847 | } | |
17848 | { | |
17849 | arg2 = wxString_in_helper(swig_obj[1]); | |
17850 | if (arg2 == NULL) SWIG_fail; | |
17851 | temp2 = true; | |
17852 | } | |
17853 | ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3); | |
17854 | if (!SWIG_IsOK(ecode3)) { | |
17855 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'"); | |
17856 | } | |
17857 | arg3 = static_cast< size_t >(val3); | |
17858 | { | |
17859 | arg4 = wxString_in_helper(swig_obj[3]); | |
17860 | if (arg4 == NULL) SWIG_fail; | |
17861 | temp4 = true; | |
17862 | } | |
17863 | { | |
17864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17865 | result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3,(wxString const &)*arg4); | |
17866 | wxPyEndAllowThreads(__tstate); | |
17867 | if (PyErr_Occurred()) SWIG_fail; | |
17868 | } | |
17869 | { | |
17870 | #if wxUSE_UNICODE | |
17871 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17872 | #else | |
17873 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17874 | #endif | |
17875 | } | |
17876 | { | |
17877 | if (temp1) | |
17878 | delete arg1; | |
17879 | } | |
17880 | { | |
17881 | if (temp2) | |
17882 | delete arg2; | |
17883 | } | |
17884 | { | |
17885 | if (temp4) | |
17886 | delete arg4; | |
17887 | } | |
17888 | return resultobj; | |
17889 | fail: | |
17890 | { | |
17891 | if (temp1) | |
17892 | delete arg1; | |
17893 | } | |
17894 | { | |
17895 | if (temp2) | |
17896 | delete arg2; | |
17897 | } | |
17898 | { | |
17899 | if (temp4) | |
17900 | delete arg4; | |
17901 | } | |
17902 | return NULL; | |
17903 | } | |
17904 | ||
17905 | ||
554f62e9 RD |
17906 | SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) { |
17907 | int argc; | |
fc46b7f3 | 17908 | PyObject *argv[5]; |
554f62e9 | 17909 | |
fc46b7f3 | 17910 | if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,4,argv))) SWIG_fail; |
554f62e9 RD |
17911 | --argc; |
17912 | if (argc == 1) { | |
17913 | return _wrap_GetTranslation__SWIG_0(self, argc, argv); | |
17914 | } | |
fc46b7f3 | 17915 | if (argc == 2) { |
554f62e9 RD |
17916 | return _wrap_GetTranslation__SWIG_1(self, argc, argv); |
17917 | } | |
fc46b7f3 RD |
17918 | if (argc == 3) { |
17919 | return _wrap_GetTranslation__SWIG_2(self, argc, argv); | |
17920 | } | |
17921 | if (argc == 4) { | |
17922 | return _wrap_GetTranslation__SWIG_3(self, argc, argv); | |
17923 | } | |
554f62e9 RD |
17924 | |
17925 | fail: | |
17926 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'"); | |
17927 | return NULL; | |
d55e5bfc RD |
17928 | } |
17929 | ||
17930 | ||
554f62e9 RD |
17931 | SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17932 | PyObject *resultobj = 0; | |
17933 | wxEncodingConverter *result = 0 ; | |
17934 | ||
17935 | if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail; | |
17936 | { | |
17937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17938 | result = (wxEncodingConverter *)new wxEncodingConverter(); | |
17939 | wxPyEndAllowThreads(__tstate); | |
17940 | if (PyErr_Occurred()) SWIG_fail; | |
17941 | } | |
17942 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 ); | |
17943 | return resultobj; | |
17944 | fail: | |
17945 | return NULL; | |
d55e5bfc RD |
17946 | } |
17947 | ||
17948 | ||
554f62e9 RD |
17949 | SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
17950 | PyObject *resultobj = 0; | |
17951 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17952 | void *argp1 = 0 ; | |
17953 | int res1 = 0 ; | |
17954 | PyObject *swig_obj[1] ; | |
17955 | ||
17956 | if (!args) SWIG_fail; | |
17957 | swig_obj[0] = args; | |
17958 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 ); | |
17959 | if (!SWIG_IsOK(res1)) { | |
17960 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
17961 | } | |
17962 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
17963 | { | |
17964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17965 | delete arg1; | |
d55e5bfc | 17966 | |
554f62e9 RD |
17967 | wxPyEndAllowThreads(__tstate); |
17968 | if (PyErr_Occurred()) SWIG_fail; | |
17969 | } | |
17970 | resultobj = SWIG_Py_Void(); | |
17971 | return resultobj; | |
17972 | fail: | |
17973 | return NULL; | |
17974 | } | |
17975 | ||
17976 | ||
17977 | SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
17978 | PyObject *resultobj = 0; | |
17979 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
17980 | wxFontEncoding arg2 ; | |
17981 | wxFontEncoding arg3 ; | |
17982 | int arg4 = (int) wxCONVERT_STRICT ; | |
17983 | bool result; | |
17984 | void *argp1 = 0 ; | |
17985 | int res1 = 0 ; | |
17986 | int val2 ; | |
17987 | int ecode2 = 0 ; | |
17988 | int val3 ; | |
17989 | int ecode3 = 0 ; | |
17990 | int val4 ; | |
17991 | int ecode4 = 0 ; | |
17992 | PyObject * obj0 = 0 ; | |
17993 | PyObject * obj1 = 0 ; | |
17994 | PyObject * obj2 = 0 ; | |
17995 | PyObject * obj3 = 0 ; | |
17996 | char * kwnames[] = { | |
17997 | (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL | |
17998 | }; | |
17999 | ||
18000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
18002 | if (!SWIG_IsOK(res1)) { | |
18003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
18004 | } | |
18005 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
18006 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18007 | if (!SWIG_IsOK(ecode2)) { | |
18008 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
18009 | } | |
18010 | arg2 = static_cast< wxFontEncoding >(val2); | |
18011 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18012 | if (!SWIG_IsOK(ecode3)) { | |
18013 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'"); | |
18014 | } | |
18015 | arg3 = static_cast< wxFontEncoding >(val3); | |
18016 | if (obj3) { | |
18017 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18018 | if (!SWIG_IsOK(ecode4)) { | |
18019 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'"); | |
18020 | } | |
18021 | arg4 = static_cast< int >(val4); | |
18022 | } | |
18023 | { | |
18024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18025 | result = (bool)(arg1)->Init(arg2,arg3,arg4); | |
18026 | wxPyEndAllowThreads(__tstate); | |
18027 | if (PyErr_Occurred()) SWIG_fail; | |
18028 | } | |
18029 | { | |
18030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18031 | } | |
18032 | return resultobj; | |
18033 | fail: | |
18034 | return NULL; | |
18035 | } | |
18036 | ||
18037 | ||
18038 | SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18039 | PyObject *resultobj = 0; | |
18040 | wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ; | |
18041 | wxString *arg2 = 0 ; | |
18042 | wxString result; | |
18043 | void *argp1 = 0 ; | |
18044 | int res1 = 0 ; | |
18045 | bool temp2 = false ; | |
18046 | PyObject * obj0 = 0 ; | |
18047 | PyObject * obj1 = 0 ; | |
18048 | char * kwnames[] = { | |
18049 | (char *) "self",(char *) "input", NULL | |
18050 | }; | |
18051 | ||
18052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail; | |
18053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 ); | |
18054 | if (!SWIG_IsOK(res1)) { | |
18055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'"); | |
18056 | } | |
18057 | arg1 = reinterpret_cast< wxEncodingConverter * >(argp1); | |
18058 | { | |
18059 | arg2 = wxString_in_helper(obj1); | |
18060 | if (arg2 == NULL) SWIG_fail; | |
18061 | temp2 = true; | |
18062 | } | |
18063 | { | |
18064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18065 | result = (arg1)->Convert((wxString const &)*arg2); | |
18066 | wxPyEndAllowThreads(__tstate); | |
18067 | if (PyErr_Occurred()) SWIG_fail; | |
18068 | } | |
18069 | { | |
d55e5bfc | 18070 | #if wxUSE_UNICODE |
554f62e9 | 18071 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 18072 | #else |
554f62e9 | 18073 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); |
d55e5bfc | 18074 | #endif |
554f62e9 RD |
18075 | } |
18076 | { | |
18077 | if (temp2) | |
18078 | delete arg2; | |
18079 | } | |
18080 | return resultobj; | |
18081 | fail: | |
18082 | { | |
18083 | if (temp2) | |
18084 | delete arg2; | |
18085 | } | |
18086 | return NULL; | |
18087 | } | |
18088 | ||
18089 | ||
18090 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18091 | PyObject *resultobj = 0; | |
18092 | wxFontEncoding arg1 ; | |
18093 | int arg2 = (int) wxPLATFORM_CURRENT ; | |
18094 | wxFontEncodingArray result; | |
18095 | int val1 ; | |
18096 | int ecode1 = 0 ; | |
18097 | int val2 ; | |
18098 | int ecode2 = 0 ; | |
18099 | PyObject * obj0 = 0 ; | |
18100 | PyObject * obj1 = 0 ; | |
18101 | char * kwnames[] = { | |
18102 | (char *) "enc",(char *) "platform", NULL | |
18103 | }; | |
18104 | ||
18105 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail; | |
18106 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18107 | if (!SWIG_IsOK(ecode1)) { | |
18108 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
18109 | } | |
18110 | arg1 = static_cast< wxFontEncoding >(val1); | |
18111 | if (obj1) { | |
18112 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18113 | if (!SWIG_IsOK(ecode2)) { | |
18114 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'"); | |
18115 | } | |
18116 | arg2 = static_cast< int >(val2); | |
18117 | } | |
18118 | { | |
18119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18120 | result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2); | |
18121 | wxPyEndAllowThreads(__tstate); | |
18122 | if (PyErr_Occurred()) SWIG_fail; | |
18123 | } | |
18124 | { | |
18125 | resultobj = PyList_New(0); | |
18126 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
18127 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
18128 | PyList_Append(resultobj, number); | |
18129 | Py_DECREF(number); | |
d55e5bfc | 18130 | } |
554f62e9 RD |
18131 | } |
18132 | return resultobj; | |
18133 | fail: | |
18134 | return NULL; | |
d55e5bfc RD |
18135 | } |
18136 | ||
18137 | ||
554f62e9 RD |
18138 | SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
18139 | PyObject *resultobj = 0; | |
18140 | wxFontEncoding arg1 ; | |
18141 | wxFontEncodingArray result; | |
18142 | int val1 ; | |
18143 | int ecode1 = 0 ; | |
18144 | PyObject * obj0 = 0 ; | |
18145 | char * kwnames[] = { | |
18146 | (char *) "enc", NULL | |
18147 | }; | |
18148 | ||
18149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail; | |
18150 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18151 | if (!SWIG_IsOK(ecode1)) { | |
18152 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
18153 | } | |
18154 | arg1 = static_cast< wxFontEncoding >(val1); | |
18155 | { | |
18156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18157 | result = wxEncodingConverter::GetAllEquivalents(arg1); | |
18158 | wxPyEndAllowThreads(__tstate); | |
18159 | if (PyErr_Occurred()) SWIG_fail; | |
18160 | } | |
18161 | { | |
18162 | resultobj = PyList_New(0); | |
18163 | for (size_t i=0; i < (&result)->GetCount(); i++) { | |
18164 | PyObject* number = PyInt_FromLong((&result)->Item(i)); | |
18165 | PyList_Append(resultobj, number); | |
18166 | Py_DECREF(number); | |
d55e5bfc | 18167 | } |
554f62e9 RD |
18168 | } |
18169 | return resultobj; | |
18170 | fail: | |
18171 | return NULL; | |
18172 | } | |
18173 | ||
18174 | ||
18175 | SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18176 | PyObject *resultobj = 0; | |
18177 | wxFontEncoding arg1 ; | |
18178 | wxFontEncoding arg2 ; | |
18179 | bool result; | |
18180 | int val1 ; | |
18181 | int ecode1 = 0 ; | |
18182 | int val2 ; | |
18183 | int ecode2 = 0 ; | |
18184 | PyObject * obj0 = 0 ; | |
18185 | PyObject * obj1 = 0 ; | |
18186 | char * kwnames[] = { | |
18187 | (char *) "encIn",(char *) "encOut", NULL | |
18188 | }; | |
18189 | ||
18190 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail; | |
18191 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
18192 | if (!SWIG_IsOK(ecode1)) { | |
18193 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'"); | |
18194 | } | |
18195 | arg1 = static_cast< wxFontEncoding >(val1); | |
18196 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18197 | if (!SWIG_IsOK(ecode2)) { | |
18198 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'"); | |
18199 | } | |
18200 | arg2 = static_cast< wxFontEncoding >(val2); | |
18201 | { | |
18202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18203 | result = (bool)wxEncodingConverter::CanConvert(arg1,arg2); | |
18204 | wxPyEndAllowThreads(__tstate); | |
18205 | if (PyErr_Occurred()) SWIG_fail; | |
18206 | } | |
18207 | { | |
18208 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18209 | } | |
18210 | return resultobj; | |
18211 | fail: | |
18212 | return NULL; | |
d55e5bfc RD |
18213 | } |
18214 | ||
18215 | ||
554f62e9 RD |
18216 | SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18217 | PyObject *obj; | |
18218 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
18219 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj)); | |
18220 | return SWIG_Py_Void(); | |
d55e5bfc RD |
18221 | } |
18222 | ||
554f62e9 RD |
18223 | SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18224 | return SWIG_Python_InitShadowInstance(args); | |
5e483524 RD |
18225 | } |
18226 | ||
554f62e9 RD |
18227 | SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
18228 | PyObject *resultobj = 0; | |
18229 | wxDC *arg1 = (wxDC *) 0 ; | |
18230 | void *argp1 = 0 ; | |
18231 | int res1 = 0 ; | |
18232 | PyObject *swig_obj[1] ; | |
18233 | ||
18234 | if (!args) SWIG_fail; | |
18235 | swig_obj[0] = args; | |
18236 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 ); | |
18237 | if (!SWIG_IsOK(res1)) { | |
18238 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18239 | } | |
18240 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18241 | { | |
18242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18243 | delete arg1; | |
d55e5bfc | 18244 | |
554f62e9 RD |
18245 | wxPyEndAllowThreads(__tstate); |
18246 | if (PyErr_Occurred()) SWIG_fail; | |
18247 | } | |
18248 | resultobj = SWIG_Py_Void(); | |
18249 | return resultobj; | |
18250 | fail: | |
18251 | return NULL; | |
18252 | } | |
18253 | ||
18254 | ||
18255 | SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18256 | PyObject *resultobj = 0; | |
18257 | wxDC *arg1 = (wxDC *) 0 ; | |
18258 | int arg2 ; | |
18259 | int arg3 ; | |
18260 | wxColour *arg4 = 0 ; | |
18261 | int arg5 = (int) wxFLOOD_SURFACE ; | |
18262 | bool result; | |
18263 | void *argp1 = 0 ; | |
18264 | int res1 = 0 ; | |
18265 | int val2 ; | |
18266 | int ecode2 = 0 ; | |
18267 | int val3 ; | |
18268 | int ecode3 = 0 ; | |
18269 | wxColour temp4 ; | |
18270 | int val5 ; | |
18271 | int ecode5 = 0 ; | |
18272 | PyObject * obj0 = 0 ; | |
18273 | PyObject * obj1 = 0 ; | |
18274 | PyObject * obj2 = 0 ; | |
18275 | PyObject * obj3 = 0 ; | |
18276 | PyObject * obj4 = 0 ; | |
18277 | char * kwnames[] = { | |
18278 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
18279 | }; | |
18280 | ||
18281 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18282 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18283 | if (!SWIG_IsOK(res1)) { | |
18284 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18285 | } | |
18286 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18287 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18288 | if (!SWIG_IsOK(ecode2)) { | |
18289 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
18290 | } | |
18291 | arg2 = static_cast< int >(val2); | |
18292 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18293 | if (!SWIG_IsOK(ecode3)) { | |
18294 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
18295 | } | |
18296 | arg3 = static_cast< int >(val3); | |
18297 | { | |
18298 | arg4 = &temp4; | |
18299 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18300 | } | |
18301 | if (obj4) { | |
18302 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18303 | if (!SWIG_IsOK(ecode5)) { | |
18304 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
18305 | } | |
18306 | arg5 = static_cast< int >(val5); | |
18307 | } | |
18308 | { | |
18309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18310 | result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
18311 | wxPyEndAllowThreads(__tstate); | |
18312 | if (PyErr_Occurred()) SWIG_fail; | |
18313 | } | |
18314 | { | |
18315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18316 | } | |
18317 | return resultobj; | |
18318 | fail: | |
18319 | return NULL; | |
18320 | } | |
18321 | ||
18322 | ||
18323 | SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18324 | PyObject *resultobj = 0; | |
18325 | wxDC *arg1 = (wxDC *) 0 ; | |
18326 | wxPoint *arg2 = 0 ; | |
18327 | wxColour *arg3 = 0 ; | |
18328 | int arg4 = (int) wxFLOOD_SURFACE ; | |
18329 | bool result; | |
18330 | void *argp1 = 0 ; | |
18331 | int res1 = 0 ; | |
18332 | wxPoint temp2 ; | |
18333 | wxColour temp3 ; | |
18334 | int val4 ; | |
18335 | int ecode4 = 0 ; | |
18336 | PyObject * obj0 = 0 ; | |
18337 | PyObject * obj1 = 0 ; | |
18338 | PyObject * obj2 = 0 ; | |
18339 | PyObject * obj3 = 0 ; | |
18340 | char * kwnames[] = { | |
18341 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
18342 | }; | |
18343 | ||
18344 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18345 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18346 | if (!SWIG_IsOK(res1)) { | |
18347 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18348 | } | |
18349 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18350 | { | |
18351 | arg2 = &temp2; | |
18352 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18353 | } | |
18354 | { | |
18355 | arg3 = &temp3; | |
18356 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18357 | } | |
18358 | if (obj3) { | |
18359 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18360 | if (!SWIG_IsOK(ecode4)) { | |
18361 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
18362 | } | |
18363 | arg4 = static_cast< int >(val4); | |
18364 | } | |
18365 | { | |
18366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18367 | result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
18368 | wxPyEndAllowThreads(__tstate); | |
18369 | if (PyErr_Occurred()) SWIG_fail; | |
18370 | } | |
18371 | { | |
18372 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18373 | } | |
18374 | return resultobj; | |
18375 | fail: | |
18376 | return NULL; | |
18377 | } | |
18378 | ||
18379 | ||
18380 | SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18381 | PyObject *resultobj = 0; | |
18382 | wxDC *arg1 = (wxDC *) 0 ; | |
18383 | wxRect *arg2 = 0 ; | |
18384 | wxColour *arg3 = 0 ; | |
18385 | wxColour *arg4 = 0 ; | |
18386 | wxPoint *arg5 = 0 ; | |
18387 | void *argp1 = 0 ; | |
18388 | int res1 = 0 ; | |
18389 | wxRect temp2 ; | |
18390 | wxColour temp3 ; | |
18391 | wxColour temp4 ; | |
18392 | wxPoint temp5 ; | |
18393 | PyObject * obj0 = 0 ; | |
18394 | PyObject * obj1 = 0 ; | |
18395 | PyObject * obj2 = 0 ; | |
18396 | PyObject * obj3 = 0 ; | |
18397 | PyObject * obj4 = 0 ; | |
18398 | char * kwnames[] = { | |
18399 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL | |
18400 | }; | |
18401 | ||
18402 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18403 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18404 | if (!SWIG_IsOK(res1)) { | |
18405 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18406 | } | |
18407 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18408 | { | |
18409 | arg2 = &temp2; | |
18410 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18411 | } | |
18412 | { | |
18413 | arg3 = &temp3; | |
18414 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18415 | } | |
18416 | { | |
18417 | arg4 = &temp4; | |
18418 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18419 | } | |
18420 | { | |
18421 | arg5 = &temp5; | |
18422 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
18423 | } | |
18424 | { | |
18425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18426 | (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5); | |
18427 | wxPyEndAllowThreads(__tstate); | |
18428 | if (PyErr_Occurred()) SWIG_fail; | |
18429 | } | |
18430 | resultobj = SWIG_Py_Void(); | |
18431 | return resultobj; | |
18432 | fail: | |
18433 | return NULL; | |
18434 | } | |
18435 | ||
18436 | ||
18437 | SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18438 | PyObject *resultobj = 0; | |
18439 | wxDC *arg1 = (wxDC *) 0 ; | |
18440 | wxRect *arg2 = 0 ; | |
18441 | wxColour *arg3 = 0 ; | |
18442 | wxColour *arg4 = 0 ; | |
18443 | wxDirection arg5 = (wxDirection) wxEAST ; | |
18444 | void *argp1 = 0 ; | |
18445 | int res1 = 0 ; | |
18446 | wxRect temp2 ; | |
18447 | wxColour temp3 ; | |
18448 | wxColour temp4 ; | |
18449 | int val5 ; | |
18450 | int ecode5 = 0 ; | |
18451 | PyObject * obj0 = 0 ; | |
18452 | PyObject * obj1 = 0 ; | |
18453 | PyObject * obj2 = 0 ; | |
18454 | PyObject * obj3 = 0 ; | |
18455 | PyObject * obj4 = 0 ; | |
18456 | char * kwnames[] = { | |
18457 | (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL | |
18458 | }; | |
18459 | ||
18460 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18461 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18462 | if (!SWIG_IsOK(res1)) { | |
18463 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18464 | } | |
18465 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18466 | { | |
18467 | arg2 = &temp2; | |
18468 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18469 | } | |
18470 | { | |
18471 | arg3 = &temp3; | |
18472 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
18473 | } | |
18474 | { | |
18475 | arg4 = &temp4; | |
18476 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
18477 | } | |
18478 | if (obj4) { | |
18479 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18480 | if (!SWIG_IsOK(ecode5)) { | |
18481 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'"); | |
18482 | } | |
18483 | arg5 = static_cast< wxDirection >(val5); | |
18484 | } | |
18485 | { | |
18486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18487 | (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5); | |
18488 | wxPyEndAllowThreads(__tstate); | |
18489 | if (PyErr_Occurred()) SWIG_fail; | |
18490 | } | |
18491 | resultobj = SWIG_Py_Void(); | |
18492 | return resultobj; | |
18493 | fail: | |
18494 | return NULL; | |
18495 | } | |
18496 | ||
18497 | ||
18498 | SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18499 | PyObject *resultobj = 0; | |
18500 | wxDC *arg1 = (wxDC *) 0 ; | |
18501 | int arg2 ; | |
18502 | int arg3 ; | |
18503 | wxColour result; | |
18504 | void *argp1 = 0 ; | |
18505 | int res1 = 0 ; | |
18506 | int val2 ; | |
18507 | int ecode2 = 0 ; | |
18508 | int val3 ; | |
18509 | int ecode3 = 0 ; | |
18510 | PyObject * obj0 = 0 ; | |
18511 | PyObject * obj1 = 0 ; | |
18512 | PyObject * obj2 = 0 ; | |
18513 | char * kwnames[] = { | |
18514 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18515 | }; | |
18516 | ||
18517 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18518 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18519 | if (!SWIG_IsOK(res1)) { | |
18520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18521 | } | |
18522 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18523 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18524 | if (!SWIG_IsOK(ecode2)) { | |
18525 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'"); | |
18526 | } | |
18527 | arg2 = static_cast< int >(val2); | |
18528 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18529 | if (!SWIG_IsOK(ecode3)) { | |
18530 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'"); | |
18531 | } | |
18532 | arg3 = static_cast< int >(val3); | |
18533 | { | |
18534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18535 | result = wxDC_GetPixel(arg1,arg2,arg3); | |
18536 | wxPyEndAllowThreads(__tstate); | |
18537 | if (PyErr_Occurred()) SWIG_fail; | |
18538 | } | |
18539 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18540 | return resultobj; | |
18541 | fail: | |
18542 | return NULL; | |
18543 | } | |
18544 | ||
18545 | ||
18546 | SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18547 | PyObject *resultobj = 0; | |
18548 | wxDC *arg1 = (wxDC *) 0 ; | |
18549 | wxPoint *arg2 = 0 ; | |
18550 | wxColour result; | |
18551 | void *argp1 = 0 ; | |
18552 | int res1 = 0 ; | |
18553 | wxPoint temp2 ; | |
18554 | PyObject * obj0 = 0 ; | |
18555 | PyObject * obj1 = 0 ; | |
18556 | char * kwnames[] = { | |
18557 | (char *) "self",(char *) "pt", NULL | |
18558 | }; | |
18559 | ||
18560 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18561 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18562 | if (!SWIG_IsOK(res1)) { | |
18563 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18564 | } | |
18565 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18566 | { | |
18567 | arg2 = &temp2; | |
18568 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18569 | } | |
18570 | { | |
18571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18572 | result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2); | |
18573 | wxPyEndAllowThreads(__tstate); | |
18574 | if (PyErr_Occurred()) SWIG_fail; | |
18575 | } | |
18576 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
18577 | return resultobj; | |
18578 | fail: | |
18579 | return NULL; | |
18580 | } | |
18581 | ||
18582 | ||
18583 | SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18584 | PyObject *resultobj = 0; | |
18585 | wxDC *arg1 = (wxDC *) 0 ; | |
18586 | int arg2 ; | |
18587 | int arg3 ; | |
18588 | int arg4 ; | |
18589 | int arg5 ; | |
18590 | void *argp1 = 0 ; | |
18591 | int res1 = 0 ; | |
18592 | int val2 ; | |
18593 | int ecode2 = 0 ; | |
18594 | int val3 ; | |
18595 | int ecode3 = 0 ; | |
18596 | int val4 ; | |
18597 | int ecode4 = 0 ; | |
18598 | int val5 ; | |
18599 | int ecode5 = 0 ; | |
18600 | PyObject * obj0 = 0 ; | |
18601 | PyObject * obj1 = 0 ; | |
18602 | PyObject * obj2 = 0 ; | |
18603 | PyObject * obj3 = 0 ; | |
18604 | PyObject * obj4 = 0 ; | |
18605 | char * kwnames[] = { | |
18606 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
18607 | }; | |
18608 | ||
18609 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18610 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18611 | if (!SWIG_IsOK(res1)) { | |
18612 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18613 | } | |
18614 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18615 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18616 | if (!SWIG_IsOK(ecode2)) { | |
18617 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
18618 | } | |
18619 | arg2 = static_cast< int >(val2); | |
18620 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18621 | if (!SWIG_IsOK(ecode3)) { | |
18622 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
18623 | } | |
18624 | arg3 = static_cast< int >(val3); | |
18625 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18626 | if (!SWIG_IsOK(ecode4)) { | |
18627 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
18628 | } | |
18629 | arg4 = static_cast< int >(val4); | |
18630 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18631 | if (!SWIG_IsOK(ecode5)) { | |
18632 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
18633 | } | |
18634 | arg5 = static_cast< int >(val5); | |
18635 | { | |
18636 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18637 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
18638 | wxPyEndAllowThreads(__tstate); | |
18639 | if (PyErr_Occurred()) SWIG_fail; | |
18640 | } | |
18641 | resultobj = SWIG_Py_Void(); | |
18642 | return resultobj; | |
18643 | fail: | |
18644 | return NULL; | |
18645 | } | |
18646 | ||
18647 | ||
18648 | SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18649 | PyObject *resultobj = 0; | |
18650 | wxDC *arg1 = (wxDC *) 0 ; | |
18651 | wxPoint *arg2 = 0 ; | |
18652 | wxPoint *arg3 = 0 ; | |
18653 | void *argp1 = 0 ; | |
18654 | int res1 = 0 ; | |
18655 | wxPoint temp2 ; | |
18656 | wxPoint temp3 ; | |
18657 | PyObject * obj0 = 0 ; | |
18658 | PyObject * obj1 = 0 ; | |
18659 | PyObject * obj2 = 0 ; | |
18660 | char * kwnames[] = { | |
18661 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
18662 | }; | |
18663 | ||
18664 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18665 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18666 | if (!SWIG_IsOK(res1)) { | |
18667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18668 | } | |
18669 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18670 | { | |
18671 | arg2 = &temp2; | |
18672 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18673 | } | |
18674 | { | |
18675 | arg3 = &temp3; | |
18676 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18677 | } | |
18678 | { | |
18679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18680 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
18681 | wxPyEndAllowThreads(__tstate); | |
18682 | if (PyErr_Occurred()) SWIG_fail; | |
18683 | } | |
18684 | resultobj = SWIG_Py_Void(); | |
18685 | return resultobj; | |
18686 | fail: | |
18687 | return NULL; | |
18688 | } | |
18689 | ||
18690 | ||
18691 | SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18692 | PyObject *resultobj = 0; | |
18693 | wxDC *arg1 = (wxDC *) 0 ; | |
18694 | int arg2 ; | |
18695 | int arg3 ; | |
18696 | void *argp1 = 0 ; | |
18697 | int res1 = 0 ; | |
18698 | int val2 ; | |
18699 | int ecode2 = 0 ; | |
18700 | int val3 ; | |
18701 | int ecode3 = 0 ; | |
18702 | PyObject * obj0 = 0 ; | |
18703 | PyObject * obj1 = 0 ; | |
18704 | PyObject * obj2 = 0 ; | |
18705 | char * kwnames[] = { | |
18706 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18707 | }; | |
18708 | ||
18709 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
18710 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18711 | if (!SWIG_IsOK(res1)) { | |
18712 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18713 | } | |
18714 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18715 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18716 | if (!SWIG_IsOK(ecode2)) { | |
18717 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
18718 | } | |
18719 | arg2 = static_cast< int >(val2); | |
18720 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18721 | if (!SWIG_IsOK(ecode3)) { | |
18722 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
18723 | } | |
18724 | arg3 = static_cast< int >(val3); | |
18725 | { | |
18726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18727 | (arg1)->CrossHair(arg2,arg3); | |
18728 | wxPyEndAllowThreads(__tstate); | |
18729 | if (PyErr_Occurred()) SWIG_fail; | |
18730 | } | |
18731 | resultobj = SWIG_Py_Void(); | |
18732 | return resultobj; | |
18733 | fail: | |
18734 | return NULL; | |
18735 | } | |
18736 | ||
18737 | ||
18738 | SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18739 | PyObject *resultobj = 0; | |
18740 | wxDC *arg1 = (wxDC *) 0 ; | |
18741 | wxPoint *arg2 = 0 ; | |
18742 | void *argp1 = 0 ; | |
18743 | int res1 = 0 ; | |
18744 | wxPoint temp2 ; | |
18745 | PyObject * obj0 = 0 ; | |
18746 | PyObject * obj1 = 0 ; | |
18747 | char * kwnames[] = { | |
18748 | (char *) "self",(char *) "pt", NULL | |
18749 | }; | |
18750 | ||
18751 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
18752 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18753 | if (!SWIG_IsOK(res1)) { | |
18754 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18755 | } | |
18756 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18757 | { | |
18758 | arg2 = &temp2; | |
18759 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18760 | } | |
18761 | { | |
18762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18763 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
18764 | wxPyEndAllowThreads(__tstate); | |
18765 | if (PyErr_Occurred()) SWIG_fail; | |
18766 | } | |
18767 | resultobj = SWIG_Py_Void(); | |
18768 | return resultobj; | |
18769 | fail: | |
18770 | return NULL; | |
18771 | } | |
18772 | ||
18773 | ||
18774 | SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18775 | PyObject *resultobj = 0; | |
18776 | wxDC *arg1 = (wxDC *) 0 ; | |
18777 | int arg2 ; | |
18778 | int arg3 ; | |
18779 | int arg4 ; | |
18780 | int arg5 ; | |
18781 | int arg6 ; | |
18782 | int arg7 ; | |
18783 | void *argp1 = 0 ; | |
18784 | int res1 = 0 ; | |
18785 | int val2 ; | |
18786 | int ecode2 = 0 ; | |
18787 | int val3 ; | |
18788 | int ecode3 = 0 ; | |
18789 | int val4 ; | |
18790 | int ecode4 = 0 ; | |
18791 | int val5 ; | |
18792 | int ecode5 = 0 ; | |
18793 | int val6 ; | |
18794 | int ecode6 = 0 ; | |
18795 | int val7 ; | |
18796 | int ecode7 = 0 ; | |
18797 | PyObject * obj0 = 0 ; | |
18798 | PyObject * obj1 = 0 ; | |
18799 | PyObject * obj2 = 0 ; | |
18800 | PyObject * obj3 = 0 ; | |
18801 | PyObject * obj4 = 0 ; | |
18802 | PyObject * obj5 = 0 ; | |
18803 | PyObject * obj6 = 0 ; | |
18804 | char * kwnames[] = { | |
18805 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
18806 | }; | |
18807 | ||
18808 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
18809 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18810 | if (!SWIG_IsOK(res1)) { | |
18811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18812 | } | |
18813 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18814 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18815 | if (!SWIG_IsOK(ecode2)) { | |
18816 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
18817 | } | |
18818 | arg2 = static_cast< int >(val2); | |
18819 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18820 | if (!SWIG_IsOK(ecode3)) { | |
18821 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
18822 | } | |
18823 | arg3 = static_cast< int >(val3); | |
18824 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18825 | if (!SWIG_IsOK(ecode4)) { | |
18826 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
18827 | } | |
18828 | arg4 = static_cast< int >(val4); | |
18829 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18830 | if (!SWIG_IsOK(ecode5)) { | |
18831 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
18832 | } | |
18833 | arg5 = static_cast< int >(val5); | |
18834 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
18835 | if (!SWIG_IsOK(ecode6)) { | |
18836 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
18837 | } | |
18838 | arg6 = static_cast< int >(val6); | |
18839 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
18840 | if (!SWIG_IsOK(ecode7)) { | |
18841 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
18842 | } | |
18843 | arg7 = static_cast< int >(val7); | |
18844 | { | |
18845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18846 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
18847 | wxPyEndAllowThreads(__tstate); | |
18848 | if (PyErr_Occurred()) SWIG_fail; | |
18849 | } | |
18850 | resultobj = SWIG_Py_Void(); | |
18851 | return resultobj; | |
18852 | fail: | |
18853 | return NULL; | |
18854 | } | |
18855 | ||
18856 | ||
18857 | SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18858 | PyObject *resultobj = 0; | |
18859 | wxDC *arg1 = (wxDC *) 0 ; | |
18860 | wxPoint *arg2 = 0 ; | |
18861 | wxPoint *arg3 = 0 ; | |
18862 | wxPoint *arg4 = 0 ; | |
18863 | void *argp1 = 0 ; | |
18864 | int res1 = 0 ; | |
18865 | wxPoint temp2 ; | |
18866 | wxPoint temp3 ; | |
18867 | wxPoint temp4 ; | |
18868 | PyObject * obj0 = 0 ; | |
18869 | PyObject * obj1 = 0 ; | |
18870 | PyObject * obj2 = 0 ; | |
18871 | PyObject * obj3 = 0 ; | |
18872 | char * kwnames[] = { | |
18873 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
18874 | }; | |
18875 | ||
18876 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
18877 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18878 | if (!SWIG_IsOK(res1)) { | |
18879 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18880 | } | |
18881 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18882 | { | |
18883 | arg2 = &temp2; | |
18884 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
18885 | } | |
18886 | { | |
18887 | arg3 = &temp3; | |
18888 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18889 | } | |
18890 | { | |
18891 | arg4 = &temp4; | |
18892 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18893 | } | |
18894 | { | |
18895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18896 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
18897 | wxPyEndAllowThreads(__tstate); | |
18898 | if (PyErr_Occurred()) SWIG_fail; | |
18899 | } | |
18900 | resultobj = SWIG_Py_Void(); | |
18901 | return resultobj; | |
18902 | fail: | |
18903 | return NULL; | |
18904 | } | |
18905 | ||
18906 | ||
18907 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18908 | PyObject *resultobj = 0; | |
18909 | wxDC *arg1 = (wxDC *) 0 ; | |
18910 | int arg2 ; | |
18911 | int arg3 ; | |
18912 | int arg4 ; | |
18913 | int arg5 ; | |
18914 | void *argp1 = 0 ; | |
18915 | int res1 = 0 ; | |
18916 | int val2 ; | |
18917 | int ecode2 = 0 ; | |
18918 | int val3 ; | |
18919 | int ecode3 = 0 ; | |
18920 | int val4 ; | |
18921 | int ecode4 = 0 ; | |
18922 | int val5 ; | |
18923 | int ecode5 = 0 ; | |
18924 | PyObject * obj0 = 0 ; | |
18925 | PyObject * obj1 = 0 ; | |
18926 | PyObject * obj2 = 0 ; | |
18927 | PyObject * obj3 = 0 ; | |
18928 | PyObject * obj4 = 0 ; | |
18929 | char * kwnames[] = { | |
18930 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
18931 | }; | |
18932 | ||
18933 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
18934 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18935 | if (!SWIG_IsOK(res1)) { | |
18936 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18937 | } | |
18938 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18939 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
18940 | if (!SWIG_IsOK(ecode2)) { | |
18941 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
18942 | } | |
18943 | arg2 = static_cast< int >(val2); | |
18944 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
18945 | if (!SWIG_IsOK(ecode3)) { | |
18946 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
18947 | } | |
18948 | arg3 = static_cast< int >(val3); | |
18949 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
18950 | if (!SWIG_IsOK(ecode4)) { | |
18951 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
18952 | } | |
18953 | arg4 = static_cast< int >(val4); | |
18954 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
18955 | if (!SWIG_IsOK(ecode5)) { | |
18956 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
18957 | } | |
18958 | arg5 = static_cast< int >(val5); | |
18959 | { | |
18960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18961 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
18962 | wxPyEndAllowThreads(__tstate); | |
18963 | if (PyErr_Occurred()) SWIG_fail; | |
18964 | } | |
18965 | resultobj = SWIG_Py_Void(); | |
18966 | return resultobj; | |
18967 | fail: | |
18968 | return NULL; | |
18969 | } | |
18970 | ||
18971 | ||
18972 | SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
18973 | PyObject *resultobj = 0; | |
18974 | wxDC *arg1 = (wxDC *) 0 ; | |
18975 | wxRect *arg2 = 0 ; | |
18976 | void *argp1 = 0 ; | |
18977 | int res1 = 0 ; | |
18978 | wxRect temp2 ; | |
18979 | PyObject * obj0 = 0 ; | |
18980 | PyObject * obj1 = 0 ; | |
18981 | char * kwnames[] = { | |
18982 | (char *) "self",(char *) "rect", NULL | |
18983 | }; | |
18984 | ||
18985 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
18986 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
18987 | if (!SWIG_IsOK(res1)) { | |
18988 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
18989 | } | |
18990 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
18991 | { | |
18992 | arg2 = &temp2; | |
18993 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
18994 | } | |
18995 | { | |
18996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18997 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
18998 | wxPyEndAllowThreads(__tstate); | |
18999 | if (PyErr_Occurred()) SWIG_fail; | |
19000 | } | |
19001 | resultobj = SWIG_Py_Void(); | |
19002 | return resultobj; | |
19003 | fail: | |
19004 | return NULL; | |
19005 | } | |
19006 | ||
19007 | ||
19008 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19009 | PyObject *resultobj = 0; | |
19010 | wxDC *arg1 = (wxDC *) 0 ; | |
19011 | int arg2 ; | |
19012 | int arg3 ; | |
19013 | int arg4 ; | |
19014 | int arg5 ; | |
19015 | double arg6 ; | |
19016 | double arg7 ; | |
19017 | void *argp1 = 0 ; | |
19018 | int res1 = 0 ; | |
19019 | int val2 ; | |
19020 | int ecode2 = 0 ; | |
19021 | int val3 ; | |
19022 | int ecode3 = 0 ; | |
19023 | int val4 ; | |
19024 | int ecode4 = 0 ; | |
19025 | int val5 ; | |
19026 | int ecode5 = 0 ; | |
19027 | double val6 ; | |
19028 | int ecode6 = 0 ; | |
19029 | double val7 ; | |
19030 | int ecode7 = 0 ; | |
19031 | PyObject * obj0 = 0 ; | |
19032 | PyObject * obj1 = 0 ; | |
19033 | PyObject * obj2 = 0 ; | |
19034 | PyObject * obj3 = 0 ; | |
19035 | PyObject * obj4 = 0 ; | |
19036 | PyObject * obj5 = 0 ; | |
19037 | PyObject * obj6 = 0 ; | |
19038 | char * kwnames[] = { | |
19039 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
19040 | }; | |
19041 | ||
19042 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
19043 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19044 | if (!SWIG_IsOK(res1)) { | |
19045 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19046 | } | |
19047 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19048 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19049 | if (!SWIG_IsOK(ecode2)) { | |
19050 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
19051 | } | |
19052 | arg2 = static_cast< int >(val2); | |
19053 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19054 | if (!SWIG_IsOK(ecode3)) { | |
19055 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
19056 | } | |
19057 | arg3 = static_cast< int >(val3); | |
19058 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19059 | if (!SWIG_IsOK(ecode4)) { | |
19060 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
19061 | } | |
19062 | arg4 = static_cast< int >(val4); | |
19063 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19064 | if (!SWIG_IsOK(ecode5)) { | |
19065 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
19066 | } | |
19067 | arg5 = static_cast< int >(val5); | |
19068 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
19069 | if (!SWIG_IsOK(ecode6)) { | |
19070 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
19071 | } | |
19072 | arg6 = static_cast< double >(val6); | |
19073 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
19074 | if (!SWIG_IsOK(ecode7)) { | |
19075 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
19076 | } | |
19077 | arg7 = static_cast< double >(val7); | |
19078 | { | |
19079 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19080 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
19081 | wxPyEndAllowThreads(__tstate); | |
19082 | if (PyErr_Occurred()) SWIG_fail; | |
19083 | } | |
19084 | resultobj = SWIG_Py_Void(); | |
19085 | return resultobj; | |
19086 | fail: | |
19087 | return NULL; | |
19088 | } | |
19089 | ||
19090 | ||
19091 | SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19092 | PyObject *resultobj = 0; | |
19093 | wxDC *arg1 = (wxDC *) 0 ; | |
19094 | wxPoint *arg2 = 0 ; | |
19095 | wxSize *arg3 = 0 ; | |
19096 | double arg4 ; | |
19097 | double arg5 ; | |
19098 | void *argp1 = 0 ; | |
19099 | int res1 = 0 ; | |
19100 | wxPoint temp2 ; | |
19101 | wxSize temp3 ; | |
19102 | double val4 ; | |
19103 | int ecode4 = 0 ; | |
19104 | double val5 ; | |
19105 | int ecode5 = 0 ; | |
19106 | PyObject * obj0 = 0 ; | |
19107 | PyObject * obj1 = 0 ; | |
19108 | PyObject * obj2 = 0 ; | |
19109 | PyObject * obj3 = 0 ; | |
19110 | PyObject * obj4 = 0 ; | |
19111 | char * kwnames[] = { | |
19112 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
19113 | }; | |
19114 | ||
19115 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19116 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19117 | if (!SWIG_IsOK(res1)) { | |
19118 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19119 | } | |
19120 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19121 | { | |
19122 | arg2 = &temp2; | |
19123 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19124 | } | |
19125 | { | |
19126 | arg3 = &temp3; | |
19127 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19128 | } | |
19129 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19130 | if (!SWIG_IsOK(ecode4)) { | |
19131 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
19132 | } | |
19133 | arg4 = static_cast< double >(val4); | |
19134 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
19135 | if (!SWIG_IsOK(ecode5)) { | |
19136 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
19137 | } | |
19138 | arg5 = static_cast< double >(val5); | |
19139 | { | |
19140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19141 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
19142 | wxPyEndAllowThreads(__tstate); | |
19143 | if (PyErr_Occurred()) SWIG_fail; | |
19144 | } | |
19145 | resultobj = SWIG_Py_Void(); | |
19146 | return resultobj; | |
19147 | fail: | |
19148 | return NULL; | |
19149 | } | |
19150 | ||
19151 | ||
19152 | SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19153 | PyObject *resultobj = 0; | |
19154 | wxDC *arg1 = (wxDC *) 0 ; | |
19155 | int arg2 ; | |
19156 | int arg3 ; | |
19157 | void *argp1 = 0 ; | |
19158 | int res1 = 0 ; | |
19159 | int val2 ; | |
19160 | int ecode2 = 0 ; | |
19161 | int val3 ; | |
19162 | int ecode3 = 0 ; | |
19163 | PyObject * obj0 = 0 ; | |
19164 | PyObject * obj1 = 0 ; | |
19165 | PyObject * obj2 = 0 ; | |
19166 | char * kwnames[] = { | |
19167 | (char *) "self",(char *) "x",(char *) "y", NULL | |
19168 | }; | |
19169 | ||
19170 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19171 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19172 | if (!SWIG_IsOK(res1)) { | |
19173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19174 | } | |
19175 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19176 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19177 | if (!SWIG_IsOK(ecode2)) { | |
19178 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
19179 | } | |
19180 | arg2 = static_cast< int >(val2); | |
19181 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19182 | if (!SWIG_IsOK(ecode3)) { | |
19183 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
19184 | } | |
19185 | arg3 = static_cast< int >(val3); | |
19186 | { | |
19187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19188 | (arg1)->DrawPoint(arg2,arg3); | |
19189 | wxPyEndAllowThreads(__tstate); | |
19190 | if (PyErr_Occurred()) SWIG_fail; | |
19191 | } | |
19192 | resultobj = SWIG_Py_Void(); | |
19193 | return resultobj; | |
19194 | fail: | |
19195 | return NULL; | |
19196 | } | |
19197 | ||
19198 | ||
19199 | SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19200 | PyObject *resultobj = 0; | |
19201 | wxDC *arg1 = (wxDC *) 0 ; | |
19202 | wxPoint *arg2 = 0 ; | |
19203 | void *argp1 = 0 ; | |
19204 | int res1 = 0 ; | |
19205 | wxPoint temp2 ; | |
19206 | PyObject * obj0 = 0 ; | |
19207 | PyObject * obj1 = 0 ; | |
19208 | char * kwnames[] = { | |
19209 | (char *) "self",(char *) "pt", NULL | |
19210 | }; | |
19211 | ||
19212 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
19213 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19214 | if (!SWIG_IsOK(res1)) { | |
19215 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19216 | } | |
19217 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19218 | { | |
19219 | arg2 = &temp2; | |
19220 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19221 | } | |
19222 | { | |
19223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19224 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
19225 | wxPyEndAllowThreads(__tstate); | |
19226 | if (PyErr_Occurred()) SWIG_fail; | |
19227 | } | |
19228 | resultobj = SWIG_Py_Void(); | |
19229 | return resultobj; | |
19230 | fail: | |
19231 | return NULL; | |
19232 | } | |
19233 | ||
19234 | ||
19235 | SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19236 | PyObject *resultobj = 0; | |
19237 | wxDC *arg1 = (wxDC *) 0 ; | |
19238 | int arg2 ; | |
19239 | int arg3 ; | |
19240 | int arg4 ; | |
19241 | int arg5 ; | |
19242 | void *argp1 = 0 ; | |
19243 | int res1 = 0 ; | |
19244 | int val2 ; | |
19245 | int ecode2 = 0 ; | |
19246 | int val3 ; | |
19247 | int ecode3 = 0 ; | |
19248 | int val4 ; | |
19249 | int ecode4 = 0 ; | |
19250 | int val5 ; | |
19251 | int ecode5 = 0 ; | |
19252 | PyObject * obj0 = 0 ; | |
19253 | PyObject * obj1 = 0 ; | |
19254 | PyObject * obj2 = 0 ; | |
19255 | PyObject * obj3 = 0 ; | |
19256 | PyObject * obj4 = 0 ; | |
19257 | char * kwnames[] = { | |
19258 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19259 | }; | |
19260 | ||
19261 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19262 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19263 | if (!SWIG_IsOK(res1)) { | |
19264 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19265 | } | |
19266 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19267 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19268 | if (!SWIG_IsOK(ecode2)) { | |
19269 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
19270 | } | |
19271 | arg2 = static_cast< int >(val2); | |
19272 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19273 | if (!SWIG_IsOK(ecode3)) { | |
19274 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
19275 | } | |
19276 | arg3 = static_cast< int >(val3); | |
19277 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19278 | if (!SWIG_IsOK(ecode4)) { | |
19279 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
19280 | } | |
19281 | arg4 = static_cast< int >(val4); | |
19282 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19283 | if (!SWIG_IsOK(ecode5)) { | |
19284 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
19285 | } | |
19286 | arg5 = static_cast< int >(val5); | |
19287 | { | |
19288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19289 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
19290 | wxPyEndAllowThreads(__tstate); | |
19291 | if (PyErr_Occurred()) SWIG_fail; | |
19292 | } | |
19293 | resultobj = SWIG_Py_Void(); | |
19294 | return resultobj; | |
19295 | fail: | |
19296 | return NULL; | |
19297 | } | |
19298 | ||
19299 | ||
19300 | SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19301 | PyObject *resultobj = 0; | |
19302 | wxDC *arg1 = (wxDC *) 0 ; | |
19303 | wxRect *arg2 = 0 ; | |
19304 | void *argp1 = 0 ; | |
19305 | int res1 = 0 ; | |
19306 | wxRect temp2 ; | |
19307 | PyObject * obj0 = 0 ; | |
19308 | PyObject * obj1 = 0 ; | |
19309 | char * kwnames[] = { | |
19310 | (char *) "self",(char *) "rect", NULL | |
19311 | }; | |
19312 | ||
19313 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19314 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19315 | if (!SWIG_IsOK(res1)) { | |
19316 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19317 | } | |
19318 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19319 | { | |
19320 | arg2 = &temp2; | |
19321 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19322 | } | |
19323 | { | |
19324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19325 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
19326 | wxPyEndAllowThreads(__tstate); | |
19327 | if (PyErr_Occurred()) SWIG_fail; | |
19328 | } | |
19329 | resultobj = SWIG_Py_Void(); | |
19330 | return resultobj; | |
19331 | fail: | |
19332 | return NULL; | |
19333 | } | |
19334 | ||
19335 | ||
19336 | SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19337 | PyObject *resultobj = 0; | |
19338 | wxDC *arg1 = (wxDC *) 0 ; | |
19339 | wxPoint *arg2 = 0 ; | |
19340 | wxSize *arg3 = 0 ; | |
19341 | void *argp1 = 0 ; | |
19342 | int res1 = 0 ; | |
19343 | wxPoint temp2 ; | |
19344 | wxSize temp3 ; | |
19345 | PyObject * obj0 = 0 ; | |
19346 | PyObject * obj1 = 0 ; | |
19347 | PyObject * obj2 = 0 ; | |
19348 | char * kwnames[] = { | |
19349 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19350 | }; | |
19351 | ||
19352 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19353 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19354 | if (!SWIG_IsOK(res1)) { | |
19355 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19356 | } | |
19357 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19358 | { | |
19359 | arg2 = &temp2; | |
19360 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19361 | } | |
19362 | { | |
19363 | arg3 = &temp3; | |
19364 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19365 | } | |
19366 | { | |
19367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19368 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19369 | wxPyEndAllowThreads(__tstate); | |
19370 | if (PyErr_Occurred()) SWIG_fail; | |
19371 | } | |
19372 | resultobj = SWIG_Py_Void(); | |
19373 | return resultobj; | |
19374 | fail: | |
19375 | return NULL; | |
19376 | } | |
19377 | ||
19378 | ||
19379 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19380 | PyObject *resultobj = 0; | |
19381 | wxDC *arg1 = (wxDC *) 0 ; | |
19382 | int arg2 ; | |
19383 | int arg3 ; | |
19384 | int arg4 ; | |
19385 | int arg5 ; | |
19386 | double arg6 ; | |
19387 | void *argp1 = 0 ; | |
19388 | int res1 = 0 ; | |
19389 | int val2 ; | |
19390 | int ecode2 = 0 ; | |
19391 | int val3 ; | |
19392 | int ecode3 = 0 ; | |
19393 | int val4 ; | |
19394 | int ecode4 = 0 ; | |
19395 | int val5 ; | |
19396 | int ecode5 = 0 ; | |
19397 | double val6 ; | |
19398 | int ecode6 = 0 ; | |
19399 | PyObject * obj0 = 0 ; | |
19400 | PyObject * obj1 = 0 ; | |
19401 | PyObject * obj2 = 0 ; | |
19402 | PyObject * obj3 = 0 ; | |
19403 | PyObject * obj4 = 0 ; | |
19404 | PyObject * obj5 = 0 ; | |
19405 | char * kwnames[] = { | |
19406 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
19407 | }; | |
19408 | ||
19409 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
19410 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19411 | if (!SWIG_IsOK(res1)) { | |
19412 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19413 | } | |
19414 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19415 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19416 | if (!SWIG_IsOK(ecode2)) { | |
19417 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
19418 | } | |
19419 | arg2 = static_cast< int >(val2); | |
19420 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19421 | if (!SWIG_IsOK(ecode3)) { | |
19422 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
19423 | } | |
19424 | arg3 = static_cast< int >(val3); | |
19425 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19426 | if (!SWIG_IsOK(ecode4)) { | |
19427 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
19428 | } | |
19429 | arg4 = static_cast< int >(val4); | |
19430 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19431 | if (!SWIG_IsOK(ecode5)) { | |
19432 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
19433 | } | |
19434 | arg5 = static_cast< int >(val5); | |
19435 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
19436 | if (!SWIG_IsOK(ecode6)) { | |
19437 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
19438 | } | |
19439 | arg6 = static_cast< double >(val6); | |
19440 | { | |
19441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19442 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
19443 | wxPyEndAllowThreads(__tstate); | |
19444 | if (PyErr_Occurred()) SWIG_fail; | |
19445 | } | |
19446 | resultobj = SWIG_Py_Void(); | |
19447 | return resultobj; | |
19448 | fail: | |
19449 | return NULL; | |
19450 | } | |
19451 | ||
19452 | ||
19453 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19454 | PyObject *resultobj = 0; | |
19455 | wxDC *arg1 = (wxDC *) 0 ; | |
19456 | wxRect *arg2 = 0 ; | |
19457 | double arg3 ; | |
19458 | void *argp1 = 0 ; | |
19459 | int res1 = 0 ; | |
19460 | wxRect temp2 ; | |
19461 | double val3 ; | |
19462 | int ecode3 = 0 ; | |
19463 | PyObject * obj0 = 0 ; | |
19464 | PyObject * obj1 = 0 ; | |
19465 | PyObject * obj2 = 0 ; | |
19466 | char * kwnames[] = { | |
19467 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
19468 | }; | |
19469 | ||
19470 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19471 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19472 | if (!SWIG_IsOK(res1)) { | |
19473 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19474 | } | |
19475 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19476 | { | |
19477 | arg2 = &temp2; | |
19478 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19479 | } | |
19480 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
19481 | if (!SWIG_IsOK(ecode3)) { | |
19482 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
19483 | } | |
19484 | arg3 = static_cast< double >(val3); | |
19485 | { | |
19486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19487 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
19488 | wxPyEndAllowThreads(__tstate); | |
19489 | if (PyErr_Occurred()) SWIG_fail; | |
19490 | } | |
19491 | resultobj = SWIG_Py_Void(); | |
19492 | return resultobj; | |
19493 | fail: | |
19494 | return NULL; | |
19495 | } | |
19496 | ||
19497 | ||
19498 | SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19499 | PyObject *resultobj = 0; | |
19500 | wxDC *arg1 = (wxDC *) 0 ; | |
19501 | wxPoint *arg2 = 0 ; | |
19502 | wxSize *arg3 = 0 ; | |
19503 | double arg4 ; | |
19504 | void *argp1 = 0 ; | |
19505 | int res1 = 0 ; | |
19506 | wxPoint temp2 ; | |
19507 | wxSize temp3 ; | |
19508 | double val4 ; | |
19509 | int ecode4 = 0 ; | |
19510 | PyObject * obj0 = 0 ; | |
19511 | PyObject * obj1 = 0 ; | |
19512 | PyObject * obj2 = 0 ; | |
19513 | PyObject * obj3 = 0 ; | |
19514 | char * kwnames[] = { | |
19515 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
19516 | }; | |
19517 | ||
19518 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19519 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19520 | if (!SWIG_IsOK(res1)) { | |
19521 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19522 | } | |
19523 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19524 | { | |
19525 | arg2 = &temp2; | |
19526 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19527 | } | |
19528 | { | |
19529 | arg3 = &temp3; | |
19530 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19531 | } | |
19532 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
19533 | if (!SWIG_IsOK(ecode4)) { | |
19534 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
19535 | } | |
19536 | arg4 = static_cast< double >(val4); | |
19537 | { | |
19538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19539 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
19540 | wxPyEndAllowThreads(__tstate); | |
19541 | if (PyErr_Occurred()) SWIG_fail; | |
19542 | } | |
19543 | resultobj = SWIG_Py_Void(); | |
19544 | return resultobj; | |
19545 | fail: | |
19546 | return NULL; | |
19547 | } | |
19548 | ||
19549 | ||
19550 | SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19551 | PyObject *resultobj = 0; | |
19552 | wxDC *arg1 = (wxDC *) 0 ; | |
19553 | int arg2 ; | |
19554 | int arg3 ; | |
19555 | int arg4 ; | |
19556 | void *argp1 = 0 ; | |
19557 | int res1 = 0 ; | |
19558 | int val2 ; | |
19559 | int ecode2 = 0 ; | |
19560 | int val3 ; | |
19561 | int ecode3 = 0 ; | |
19562 | int val4 ; | |
19563 | int ecode4 = 0 ; | |
19564 | PyObject * obj0 = 0 ; | |
19565 | PyObject * obj1 = 0 ; | |
19566 | PyObject * obj2 = 0 ; | |
19567 | PyObject * obj3 = 0 ; | |
19568 | char * kwnames[] = { | |
19569 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
19570 | }; | |
19571 | ||
19572 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19573 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19574 | if (!SWIG_IsOK(res1)) { | |
19575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19576 | } | |
19577 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19578 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19579 | if (!SWIG_IsOK(ecode2)) { | |
19580 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
19581 | } | |
19582 | arg2 = static_cast< int >(val2); | |
19583 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19584 | if (!SWIG_IsOK(ecode3)) { | |
19585 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
19586 | } | |
19587 | arg3 = static_cast< int >(val3); | |
19588 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19589 | if (!SWIG_IsOK(ecode4)) { | |
19590 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
19591 | } | |
19592 | arg4 = static_cast< int >(val4); | |
19593 | { | |
19594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19595 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
19596 | wxPyEndAllowThreads(__tstate); | |
19597 | if (PyErr_Occurred()) SWIG_fail; | |
19598 | } | |
19599 | resultobj = SWIG_Py_Void(); | |
19600 | return resultobj; | |
19601 | fail: | |
19602 | return NULL; | |
19603 | } | |
19604 | ||
19605 | ||
19606 | SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19607 | PyObject *resultobj = 0; | |
19608 | wxDC *arg1 = (wxDC *) 0 ; | |
19609 | wxPoint *arg2 = 0 ; | |
19610 | int arg3 ; | |
19611 | void *argp1 = 0 ; | |
19612 | int res1 = 0 ; | |
19613 | wxPoint temp2 ; | |
19614 | int val3 ; | |
19615 | int ecode3 = 0 ; | |
19616 | PyObject * obj0 = 0 ; | |
19617 | PyObject * obj1 = 0 ; | |
19618 | PyObject * obj2 = 0 ; | |
19619 | char * kwnames[] = { | |
19620 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
19621 | }; | |
19622 | ||
19623 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19624 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19625 | if (!SWIG_IsOK(res1)) { | |
19626 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19627 | } | |
19628 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19629 | { | |
19630 | arg2 = &temp2; | |
19631 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19632 | } | |
19633 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19634 | if (!SWIG_IsOK(ecode3)) { | |
19635 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
19636 | } | |
19637 | arg3 = static_cast< int >(val3); | |
19638 | { | |
19639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19640 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
19641 | wxPyEndAllowThreads(__tstate); | |
19642 | if (PyErr_Occurred()) SWIG_fail; | |
19643 | } | |
19644 | resultobj = SWIG_Py_Void(); | |
19645 | return resultobj; | |
19646 | fail: | |
19647 | return NULL; | |
19648 | } | |
19649 | ||
19650 | ||
19651 | SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19652 | PyObject *resultobj = 0; | |
19653 | wxDC *arg1 = (wxDC *) 0 ; | |
19654 | int arg2 ; | |
19655 | int arg3 ; | |
19656 | int arg4 ; | |
19657 | int arg5 ; | |
19658 | void *argp1 = 0 ; | |
19659 | int res1 = 0 ; | |
19660 | int val2 ; | |
19661 | int ecode2 = 0 ; | |
19662 | int val3 ; | |
19663 | int ecode3 = 0 ; | |
19664 | int val4 ; | |
19665 | int ecode4 = 0 ; | |
19666 | int val5 ; | |
19667 | int ecode5 = 0 ; | |
19668 | PyObject * obj0 = 0 ; | |
19669 | PyObject * obj1 = 0 ; | |
19670 | PyObject * obj2 = 0 ; | |
19671 | PyObject * obj3 = 0 ; | |
19672 | PyObject * obj4 = 0 ; | |
19673 | char * kwnames[] = { | |
19674 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
19675 | }; | |
19676 | ||
19677 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19678 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19679 | if (!SWIG_IsOK(res1)) { | |
19680 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19681 | } | |
19682 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19683 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
19684 | if (!SWIG_IsOK(ecode2)) { | |
19685 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
19686 | } | |
19687 | arg2 = static_cast< int >(val2); | |
19688 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19689 | if (!SWIG_IsOK(ecode3)) { | |
19690 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
19691 | } | |
19692 | arg3 = static_cast< int >(val3); | |
19693 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19694 | if (!SWIG_IsOK(ecode4)) { | |
19695 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
19696 | } | |
19697 | arg4 = static_cast< int >(val4); | |
19698 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
19699 | if (!SWIG_IsOK(ecode5)) { | |
19700 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
19701 | } | |
19702 | arg5 = static_cast< int >(val5); | |
19703 | { | |
19704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19705 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
19706 | wxPyEndAllowThreads(__tstate); | |
19707 | if (PyErr_Occurred()) SWIG_fail; | |
19708 | } | |
19709 | resultobj = SWIG_Py_Void(); | |
19710 | return resultobj; | |
19711 | fail: | |
19712 | return NULL; | |
19713 | } | |
19714 | ||
19715 | ||
19716 | SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19717 | PyObject *resultobj = 0; | |
19718 | wxDC *arg1 = (wxDC *) 0 ; | |
19719 | wxRect *arg2 = 0 ; | |
19720 | void *argp1 = 0 ; | |
19721 | int res1 = 0 ; | |
19722 | wxRect temp2 ; | |
19723 | PyObject * obj0 = 0 ; | |
19724 | PyObject * obj1 = 0 ; | |
19725 | char * kwnames[] = { | |
19726 | (char *) "self",(char *) "rect", NULL | |
19727 | }; | |
19728 | ||
19729 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
19730 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19731 | if (!SWIG_IsOK(res1)) { | |
19732 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19733 | } | |
19734 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19735 | { | |
19736 | arg2 = &temp2; | |
19737 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
19738 | } | |
19739 | { | |
19740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19741 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
19742 | wxPyEndAllowThreads(__tstate); | |
19743 | if (PyErr_Occurred()) SWIG_fail; | |
19744 | } | |
19745 | resultobj = SWIG_Py_Void(); | |
19746 | return resultobj; | |
19747 | fail: | |
19748 | return NULL; | |
19749 | } | |
19750 | ||
19751 | ||
19752 | SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19753 | PyObject *resultobj = 0; | |
19754 | wxDC *arg1 = (wxDC *) 0 ; | |
19755 | wxPoint *arg2 = 0 ; | |
19756 | wxSize *arg3 = 0 ; | |
19757 | void *argp1 = 0 ; | |
19758 | int res1 = 0 ; | |
19759 | wxPoint temp2 ; | |
19760 | wxSize temp3 ; | |
19761 | PyObject * obj0 = 0 ; | |
19762 | PyObject * obj1 = 0 ; | |
19763 | PyObject * obj2 = 0 ; | |
19764 | char * kwnames[] = { | |
19765 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
19766 | }; | |
19767 | ||
19768 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19769 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19770 | if (!SWIG_IsOK(res1)) { | |
19771 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19772 | } | |
19773 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19774 | { | |
19775 | arg2 = &temp2; | |
19776 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
19777 | } | |
19778 | { | |
19779 | arg3 = &temp3; | |
19780 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
19781 | } | |
19782 | { | |
19783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19784 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
19785 | wxPyEndAllowThreads(__tstate); | |
19786 | if (PyErr_Occurred()) SWIG_fail; | |
19787 | } | |
19788 | resultobj = SWIG_Py_Void(); | |
19789 | return resultobj; | |
19790 | fail: | |
19791 | return NULL; | |
19792 | } | |
19793 | ||
19794 | ||
19795 | SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19796 | PyObject *resultobj = 0; | |
19797 | wxDC *arg1 = (wxDC *) 0 ; | |
19798 | wxIcon *arg2 = 0 ; | |
19799 | int arg3 ; | |
19800 | int arg4 ; | |
19801 | void *argp1 = 0 ; | |
19802 | int res1 = 0 ; | |
19803 | void *argp2 = 0 ; | |
19804 | int res2 = 0 ; | |
19805 | int val3 ; | |
19806 | int ecode3 = 0 ; | |
19807 | int val4 ; | |
19808 | int ecode4 = 0 ; | |
19809 | PyObject * obj0 = 0 ; | |
19810 | PyObject * obj1 = 0 ; | |
19811 | PyObject * obj2 = 0 ; | |
19812 | PyObject * obj3 = 0 ; | |
19813 | char * kwnames[] = { | |
19814 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
19815 | }; | |
19816 | ||
19817 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19818 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19819 | if (!SWIG_IsOK(res1)) { | |
19820 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19821 | } | |
19822 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19823 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19824 | if (!SWIG_IsOK(res2)) { | |
19825 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19826 | } | |
19827 | if (!argp2) { | |
19828 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19829 | } | |
19830 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19831 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19832 | if (!SWIG_IsOK(ecode3)) { | |
19833 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
19834 | } | |
19835 | arg3 = static_cast< int >(val3); | |
19836 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19837 | if (!SWIG_IsOK(ecode4)) { | |
19838 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
19839 | } | |
19840 | arg4 = static_cast< int >(val4); | |
19841 | { | |
19842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19843 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
19844 | wxPyEndAllowThreads(__tstate); | |
19845 | if (PyErr_Occurred()) SWIG_fail; | |
19846 | } | |
19847 | resultobj = SWIG_Py_Void(); | |
19848 | return resultobj; | |
19849 | fail: | |
19850 | return NULL; | |
19851 | } | |
19852 | ||
19853 | ||
19854 | SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19855 | PyObject *resultobj = 0; | |
19856 | wxDC *arg1 = (wxDC *) 0 ; | |
19857 | wxIcon *arg2 = 0 ; | |
19858 | wxPoint *arg3 = 0 ; | |
19859 | void *argp1 = 0 ; | |
19860 | int res1 = 0 ; | |
19861 | void *argp2 = 0 ; | |
19862 | int res2 = 0 ; | |
19863 | wxPoint temp3 ; | |
19864 | PyObject * obj0 = 0 ; | |
19865 | PyObject * obj1 = 0 ; | |
19866 | PyObject * obj2 = 0 ; | |
19867 | char * kwnames[] = { | |
19868 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
19869 | }; | |
19870 | ||
19871 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
19872 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19873 | if (!SWIG_IsOK(res1)) { | |
19874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19875 | } | |
19876 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19877 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
19878 | if (!SWIG_IsOK(res2)) { | |
19879 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19880 | } | |
19881 | if (!argp2) { | |
19882 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
19883 | } | |
19884 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
19885 | { | |
19886 | arg3 = &temp3; | |
19887 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
19888 | } | |
19889 | { | |
19890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19891 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
19892 | wxPyEndAllowThreads(__tstate); | |
19893 | if (PyErr_Occurred()) SWIG_fail; | |
19894 | } | |
19895 | resultobj = SWIG_Py_Void(); | |
19896 | return resultobj; | |
19897 | fail: | |
19898 | return NULL; | |
19899 | } | |
19900 | ||
19901 | ||
19902 | SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19903 | PyObject *resultobj = 0; | |
19904 | wxDC *arg1 = (wxDC *) 0 ; | |
19905 | wxBitmap *arg2 = 0 ; | |
19906 | int arg3 ; | |
19907 | int arg4 ; | |
19908 | bool arg5 = (bool) false ; | |
19909 | void *argp1 = 0 ; | |
19910 | int res1 = 0 ; | |
19911 | void *argp2 = 0 ; | |
19912 | int res2 = 0 ; | |
19913 | int val3 ; | |
19914 | int ecode3 = 0 ; | |
19915 | int val4 ; | |
19916 | int ecode4 = 0 ; | |
19917 | bool val5 ; | |
19918 | int ecode5 = 0 ; | |
19919 | PyObject * obj0 = 0 ; | |
19920 | PyObject * obj1 = 0 ; | |
19921 | PyObject * obj2 = 0 ; | |
19922 | PyObject * obj3 = 0 ; | |
19923 | PyObject * obj4 = 0 ; | |
19924 | char * kwnames[] = { | |
19925 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
19926 | }; | |
19927 | ||
19928 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
19929 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19930 | if (!SWIG_IsOK(res1)) { | |
19931 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19932 | } | |
19933 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19934 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
19935 | if (!SWIG_IsOK(res2)) { | |
19936 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19937 | } | |
19938 | if (!argp2) { | |
19939 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
19940 | } | |
19941 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
19942 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
19943 | if (!SWIG_IsOK(ecode3)) { | |
19944 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
19945 | } | |
19946 | arg3 = static_cast< int >(val3); | |
19947 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
19948 | if (!SWIG_IsOK(ecode4)) { | |
19949 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
19950 | } | |
19951 | arg4 = static_cast< int >(val4); | |
19952 | if (obj4) { | |
19953 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
19954 | if (!SWIG_IsOK(ecode5)) { | |
19955 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
19956 | } | |
19957 | arg5 = static_cast< bool >(val5); | |
19958 | } | |
19959 | { | |
19960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19961 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
19962 | wxPyEndAllowThreads(__tstate); | |
19963 | if (PyErr_Occurred()) SWIG_fail; | |
19964 | } | |
19965 | resultobj = SWIG_Py_Void(); | |
19966 | return resultobj; | |
19967 | fail: | |
19968 | return NULL; | |
19969 | } | |
19970 | ||
19971 | ||
19972 | SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
19973 | PyObject *resultobj = 0; | |
19974 | wxDC *arg1 = (wxDC *) 0 ; | |
19975 | wxBitmap *arg2 = 0 ; | |
19976 | wxPoint *arg3 = 0 ; | |
19977 | bool arg4 = (bool) false ; | |
19978 | void *argp1 = 0 ; | |
19979 | int res1 = 0 ; | |
19980 | void *argp2 = 0 ; | |
19981 | int res2 = 0 ; | |
19982 | wxPoint temp3 ; | |
19983 | bool val4 ; | |
19984 | int ecode4 = 0 ; | |
19985 | PyObject * obj0 = 0 ; | |
19986 | PyObject * obj1 = 0 ; | |
19987 | PyObject * obj2 = 0 ; | |
19988 | PyObject * obj3 = 0 ; | |
19989 | char * kwnames[] = { | |
19990 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
19991 | }; | |
19992 | ||
19993 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
19994 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
19995 | if (!SWIG_IsOK(res1)) { | |
19996 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
19997 | } | |
19998 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
19999 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20000 | if (!SWIG_IsOK(res2)) { | |
20001 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
20002 | } | |
20003 | if (!argp2) { | |
20004 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
20005 | } | |
20006 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
20007 | { | |
20008 | arg3 = &temp3; | |
20009 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20010 | } | |
20011 | if (obj3) { | |
20012 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
20013 | if (!SWIG_IsOK(ecode4)) { | |
20014 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
20015 | } | |
20016 | arg4 = static_cast< bool >(val4); | |
20017 | } | |
20018 | { | |
20019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20020 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
20021 | wxPyEndAllowThreads(__tstate); | |
20022 | if (PyErr_Occurred()) SWIG_fail; | |
20023 | } | |
20024 | resultobj = SWIG_Py_Void(); | |
20025 | return resultobj; | |
20026 | fail: | |
20027 | return NULL; | |
20028 | } | |
20029 | ||
20030 | ||
20031 | SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20032 | PyObject *resultobj = 0; | |
20033 | wxDC *arg1 = (wxDC *) 0 ; | |
20034 | wxString *arg2 = 0 ; | |
20035 | int arg3 ; | |
20036 | int arg4 ; | |
20037 | void *argp1 = 0 ; | |
20038 | int res1 = 0 ; | |
20039 | bool temp2 = false ; | |
20040 | int val3 ; | |
20041 | int ecode3 = 0 ; | |
20042 | int val4 ; | |
20043 | int ecode4 = 0 ; | |
20044 | PyObject * obj0 = 0 ; | |
20045 | PyObject * obj1 = 0 ; | |
20046 | PyObject * obj2 = 0 ; | |
20047 | PyObject * obj3 = 0 ; | |
20048 | char * kwnames[] = { | |
20049 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
20050 | }; | |
20051 | ||
20052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20054 | if (!SWIG_IsOK(res1)) { | |
20055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20056 | } | |
20057 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20058 | { | |
20059 | arg2 = wxString_in_helper(obj1); | |
20060 | if (arg2 == NULL) SWIG_fail; | |
20061 | temp2 = true; | |
20062 | } | |
20063 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20064 | if (!SWIG_IsOK(ecode3)) { | |
20065 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
20066 | } | |
20067 | arg3 = static_cast< int >(val3); | |
20068 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20069 | if (!SWIG_IsOK(ecode4)) { | |
20070 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
20071 | } | |
20072 | arg4 = static_cast< int >(val4); | |
20073 | { | |
20074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20075 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
20076 | wxPyEndAllowThreads(__tstate); | |
20077 | if (PyErr_Occurred()) SWIG_fail; | |
20078 | } | |
20079 | resultobj = SWIG_Py_Void(); | |
20080 | { | |
20081 | if (temp2) | |
20082 | delete arg2; | |
20083 | } | |
20084 | return resultobj; | |
20085 | fail: | |
20086 | { | |
20087 | if (temp2) | |
20088 | delete arg2; | |
20089 | } | |
20090 | return NULL; | |
20091 | } | |
20092 | ||
20093 | ||
20094 | SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20095 | PyObject *resultobj = 0; | |
20096 | wxDC *arg1 = (wxDC *) 0 ; | |
20097 | wxString *arg2 = 0 ; | |
20098 | wxPoint *arg3 = 0 ; | |
20099 | void *argp1 = 0 ; | |
20100 | int res1 = 0 ; | |
20101 | bool temp2 = false ; | |
20102 | wxPoint temp3 ; | |
20103 | PyObject * obj0 = 0 ; | |
20104 | PyObject * obj1 = 0 ; | |
20105 | PyObject * obj2 = 0 ; | |
20106 | char * kwnames[] = { | |
20107 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
20108 | }; | |
20109 | ||
20110 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20111 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20112 | if (!SWIG_IsOK(res1)) { | |
20113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20114 | } | |
20115 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20116 | { | |
20117 | arg2 = wxString_in_helper(obj1); | |
20118 | if (arg2 == NULL) SWIG_fail; | |
20119 | temp2 = true; | |
20120 | } | |
20121 | { | |
20122 | arg3 = &temp3; | |
20123 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20124 | } | |
20125 | { | |
20126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20127 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
20128 | wxPyEndAllowThreads(__tstate); | |
20129 | if (PyErr_Occurred()) SWIG_fail; | |
20130 | } | |
20131 | resultobj = SWIG_Py_Void(); | |
20132 | { | |
20133 | if (temp2) | |
20134 | delete arg2; | |
20135 | } | |
20136 | return resultobj; | |
20137 | fail: | |
20138 | { | |
20139 | if (temp2) | |
20140 | delete arg2; | |
20141 | } | |
20142 | return NULL; | |
20143 | } | |
20144 | ||
20145 | ||
20146 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20147 | PyObject *resultobj = 0; | |
20148 | wxDC *arg1 = (wxDC *) 0 ; | |
20149 | wxString *arg2 = 0 ; | |
20150 | int arg3 ; | |
20151 | int arg4 ; | |
20152 | double arg5 ; | |
20153 | void *argp1 = 0 ; | |
20154 | int res1 = 0 ; | |
20155 | bool temp2 = false ; | |
20156 | int val3 ; | |
20157 | int ecode3 = 0 ; | |
20158 | int val4 ; | |
20159 | int ecode4 = 0 ; | |
20160 | double val5 ; | |
20161 | int ecode5 = 0 ; | |
20162 | PyObject * obj0 = 0 ; | |
20163 | PyObject * obj1 = 0 ; | |
20164 | PyObject * obj2 = 0 ; | |
20165 | PyObject * obj3 = 0 ; | |
20166 | PyObject * obj4 = 0 ; | |
20167 | char * kwnames[] = { | |
20168 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
20169 | }; | |
20170 | ||
20171 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20172 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20173 | if (!SWIG_IsOK(res1)) { | |
20174 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20175 | } | |
20176 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20177 | { | |
20178 | arg2 = wxString_in_helper(obj1); | |
20179 | if (arg2 == NULL) SWIG_fail; | |
20180 | temp2 = true; | |
20181 | } | |
20182 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20183 | if (!SWIG_IsOK(ecode3)) { | |
20184 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
20185 | } | |
20186 | arg3 = static_cast< int >(val3); | |
20187 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20188 | if (!SWIG_IsOK(ecode4)) { | |
20189 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
20190 | } | |
20191 | arg4 = static_cast< int >(val4); | |
20192 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
20193 | if (!SWIG_IsOK(ecode5)) { | |
20194 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
20195 | } | |
20196 | arg5 = static_cast< double >(val5); | |
20197 | { | |
20198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20199 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
20200 | wxPyEndAllowThreads(__tstate); | |
20201 | if (PyErr_Occurred()) SWIG_fail; | |
20202 | } | |
20203 | resultobj = SWIG_Py_Void(); | |
20204 | { | |
20205 | if (temp2) | |
20206 | delete arg2; | |
20207 | } | |
20208 | return resultobj; | |
20209 | fail: | |
20210 | { | |
20211 | if (temp2) | |
20212 | delete arg2; | |
20213 | } | |
20214 | return NULL; | |
20215 | } | |
20216 | ||
20217 | ||
20218 | SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20219 | PyObject *resultobj = 0; | |
20220 | wxDC *arg1 = (wxDC *) 0 ; | |
20221 | wxString *arg2 = 0 ; | |
20222 | wxPoint *arg3 = 0 ; | |
20223 | double arg4 ; | |
20224 | void *argp1 = 0 ; | |
20225 | int res1 = 0 ; | |
20226 | bool temp2 = false ; | |
20227 | wxPoint temp3 ; | |
20228 | double val4 ; | |
20229 | int ecode4 = 0 ; | |
20230 | PyObject * obj0 = 0 ; | |
20231 | PyObject * obj1 = 0 ; | |
20232 | PyObject * obj2 = 0 ; | |
20233 | PyObject * obj3 = 0 ; | |
20234 | char * kwnames[] = { | |
20235 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
20236 | }; | |
20237 | ||
20238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20240 | if (!SWIG_IsOK(res1)) { | |
20241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20242 | } | |
20243 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20244 | { | |
20245 | arg2 = wxString_in_helper(obj1); | |
20246 | if (arg2 == NULL) SWIG_fail; | |
20247 | temp2 = true; | |
20248 | } | |
20249 | { | |
20250 | arg3 = &temp3; | |
20251 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20252 | } | |
20253 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
20254 | if (!SWIG_IsOK(ecode4)) { | |
20255 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
20256 | } | |
20257 | arg4 = static_cast< double >(val4); | |
20258 | { | |
20259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20260 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
20261 | wxPyEndAllowThreads(__tstate); | |
20262 | if (PyErr_Occurred()) SWIG_fail; | |
20263 | } | |
20264 | resultobj = SWIG_Py_Void(); | |
20265 | { | |
20266 | if (temp2) | |
20267 | delete arg2; | |
20268 | } | |
20269 | return resultobj; | |
20270 | fail: | |
20271 | { | |
20272 | if (temp2) | |
20273 | delete arg2; | |
20274 | } | |
20275 | return NULL; | |
20276 | } | |
20277 | ||
20278 | ||
20279 | SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20280 | PyObject *resultobj = 0; | |
20281 | wxDC *arg1 = (wxDC *) 0 ; | |
20282 | int arg2 ; | |
20283 | int arg3 ; | |
20284 | int arg4 ; | |
20285 | int arg5 ; | |
20286 | wxDC *arg6 = (wxDC *) 0 ; | |
20287 | int arg7 ; | |
20288 | int arg8 ; | |
20289 | int arg9 = (int) wxCOPY ; | |
20290 | bool arg10 = (bool) false ; | |
20291 | int arg11 = (int) -1 ; | |
20292 | int arg12 = (int) -1 ; | |
20293 | bool result; | |
20294 | void *argp1 = 0 ; | |
20295 | int res1 = 0 ; | |
20296 | int val2 ; | |
20297 | int ecode2 = 0 ; | |
20298 | int val3 ; | |
20299 | int ecode3 = 0 ; | |
20300 | int val4 ; | |
20301 | int ecode4 = 0 ; | |
20302 | int val5 ; | |
20303 | int ecode5 = 0 ; | |
20304 | void *argp6 = 0 ; | |
20305 | int res6 = 0 ; | |
20306 | int val7 ; | |
20307 | int ecode7 = 0 ; | |
20308 | int val8 ; | |
20309 | int ecode8 = 0 ; | |
20310 | int val9 ; | |
20311 | int ecode9 = 0 ; | |
20312 | bool val10 ; | |
20313 | int ecode10 = 0 ; | |
20314 | int val11 ; | |
20315 | int ecode11 = 0 ; | |
20316 | int val12 ; | |
20317 | int ecode12 = 0 ; | |
20318 | PyObject * obj0 = 0 ; | |
20319 | PyObject * obj1 = 0 ; | |
20320 | PyObject * obj2 = 0 ; | |
20321 | PyObject * obj3 = 0 ; | |
20322 | PyObject * obj4 = 0 ; | |
20323 | PyObject * obj5 = 0 ; | |
20324 | PyObject * obj6 = 0 ; | |
20325 | PyObject * obj7 = 0 ; | |
20326 | PyObject * obj8 = 0 ; | |
20327 | PyObject * obj9 = 0 ; | |
20328 | PyObject * obj10 = 0 ; | |
20329 | PyObject * obj11 = 0 ; | |
20330 | char * kwnames[] = { | |
20331 | (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 | |
20332 | }; | |
20333 | ||
20334 | 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; | |
20335 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20336 | if (!SWIG_IsOK(res1)) { | |
20337 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20338 | } | |
20339 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20340 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20341 | if (!SWIG_IsOK(ecode2)) { | |
20342 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'"); | |
20343 | } | |
20344 | arg2 = static_cast< int >(val2); | |
20345 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20346 | if (!SWIG_IsOK(ecode3)) { | |
20347 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'"); | |
20348 | } | |
20349 | arg3 = static_cast< int >(val3); | |
20350 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20351 | if (!SWIG_IsOK(ecode4)) { | |
20352 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'"); | |
20353 | } | |
20354 | arg4 = static_cast< int >(val4); | |
20355 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20356 | if (!SWIG_IsOK(ecode5)) { | |
20357 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'"); | |
20358 | } | |
20359 | arg5 = static_cast< int >(val5); | |
20360 | res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20361 | if (!SWIG_IsOK(res6)) { | |
20362 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'"); | |
20363 | } | |
20364 | arg6 = reinterpret_cast< wxDC * >(argp6); | |
20365 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
20366 | if (!SWIG_IsOK(ecode7)) { | |
20367 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'"); | |
20368 | } | |
20369 | arg7 = static_cast< int >(val7); | |
20370 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
20371 | if (!SWIG_IsOK(ecode8)) { | |
20372 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'"); | |
20373 | } | |
20374 | arg8 = static_cast< int >(val8); | |
20375 | if (obj8) { | |
20376 | ecode9 = SWIG_AsVal_int(obj8, &val9); | |
20377 | if (!SWIG_IsOK(ecode9)) { | |
20378 | SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'"); | |
20379 | } | |
20380 | arg9 = static_cast< int >(val9); | |
20381 | } | |
20382 | if (obj9) { | |
20383 | ecode10 = SWIG_AsVal_bool(obj9, &val10); | |
20384 | if (!SWIG_IsOK(ecode10)) { | |
20385 | SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'"); | |
20386 | } | |
20387 | arg10 = static_cast< bool >(val10); | |
20388 | } | |
20389 | if (obj10) { | |
20390 | ecode11 = SWIG_AsVal_int(obj10, &val11); | |
20391 | if (!SWIG_IsOK(ecode11)) { | |
20392 | SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'"); | |
20393 | } | |
20394 | arg11 = static_cast< int >(val11); | |
20395 | } | |
20396 | if (obj11) { | |
20397 | ecode12 = SWIG_AsVal_int(obj11, &val12); | |
20398 | if (!SWIG_IsOK(ecode12)) { | |
20399 | SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'"); | |
20400 | } | |
20401 | arg12 = static_cast< int >(val12); | |
20402 | } | |
20403 | { | |
20404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20405 | result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12); | |
20406 | wxPyEndAllowThreads(__tstate); | |
20407 | if (PyErr_Occurred()) SWIG_fail; | |
20408 | } | |
20409 | { | |
20410 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20411 | } | |
20412 | return resultobj; | |
20413 | fail: | |
20414 | return NULL; | |
20415 | } | |
20416 | ||
20417 | ||
20418 | SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20419 | PyObject *resultobj = 0; | |
20420 | wxDC *arg1 = (wxDC *) 0 ; | |
20421 | wxPoint *arg2 = 0 ; | |
20422 | wxSize *arg3 = 0 ; | |
20423 | wxDC *arg4 = (wxDC *) 0 ; | |
20424 | wxPoint *arg5 = 0 ; | |
20425 | int arg6 = (int) wxCOPY ; | |
20426 | bool arg7 = (bool) false ; | |
20427 | wxPoint const &arg8_defvalue = wxDefaultPosition ; | |
20428 | wxPoint *arg8 = (wxPoint *) &arg8_defvalue ; | |
20429 | bool result; | |
20430 | void *argp1 = 0 ; | |
20431 | int res1 = 0 ; | |
20432 | wxPoint temp2 ; | |
20433 | wxSize temp3 ; | |
20434 | void *argp4 = 0 ; | |
20435 | int res4 = 0 ; | |
20436 | wxPoint temp5 ; | |
20437 | int val6 ; | |
20438 | int ecode6 = 0 ; | |
20439 | bool val7 ; | |
20440 | int ecode7 = 0 ; | |
20441 | wxPoint temp8 ; | |
20442 | PyObject * obj0 = 0 ; | |
20443 | PyObject * obj1 = 0 ; | |
20444 | PyObject * obj2 = 0 ; | |
20445 | PyObject * obj3 = 0 ; | |
20446 | PyObject * obj4 = 0 ; | |
20447 | PyObject * obj5 = 0 ; | |
20448 | PyObject * obj6 = 0 ; | |
20449 | PyObject * obj7 = 0 ; | |
20450 | char * kwnames[] = { | |
20451 | (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL | |
20452 | }; | |
20453 | ||
20454 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; | |
20455 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20456 | if (!SWIG_IsOK(res1)) { | |
20457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20458 | } | |
20459 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20460 | { | |
20461 | arg2 = &temp2; | |
20462 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20463 | } | |
20464 | { | |
20465 | arg3 = &temp3; | |
20466 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
20467 | } | |
20468 | res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20469 | if (!SWIG_IsOK(res4)) { | |
20470 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'"); | |
20471 | } | |
20472 | arg4 = reinterpret_cast< wxDC * >(argp4); | |
20473 | { | |
20474 | arg5 = &temp5; | |
20475 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
20476 | } | |
20477 | if (obj5) { | |
20478 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
20479 | if (!SWIG_IsOK(ecode6)) { | |
20480 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'"); | |
20481 | } | |
20482 | arg6 = static_cast< int >(val6); | |
20483 | } | |
20484 | if (obj6) { | |
20485 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
20486 | if (!SWIG_IsOK(ecode7)) { | |
20487 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'"); | |
20488 | } | |
20489 | arg7 = static_cast< bool >(val7); | |
20490 | } | |
20491 | if (obj7) { | |
093d3ff1 | 20492 | { |
554f62e9 RD |
20493 | arg8 = &temp8; |
20494 | if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail; | |
093d3ff1 | 20495 | } |
554f62e9 RD |
20496 | } |
20497 | { | |
20498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20499 | result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8); | |
20500 | wxPyEndAllowThreads(__tstate); | |
20501 | if (PyErr_Occurred()) SWIG_fail; | |
20502 | } | |
20503 | { | |
20504 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20505 | } | |
20506 | return resultobj; | |
20507 | fail: | |
20508 | return NULL; | |
20509 | } | |
20510 | ||
20511 | ||
8f514ab4 RD |
20512 | SWIGINTERN PyObject *_wrap_DC_GetAsBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20513 | PyObject *resultobj = 0; | |
20514 | wxDC *arg1 = (wxDC *) 0 ; | |
20515 | wxRect *arg2 = (wxRect *) NULL ; | |
20516 | SwigValueWrapper<wxBitmap > result; | |
20517 | void *argp1 = 0 ; | |
20518 | int res1 = 0 ; | |
20519 | void *argp2 = 0 ; | |
20520 | int res2 = 0 ; | |
20521 | PyObject * obj0 = 0 ; | |
20522 | PyObject * obj1 = 0 ; | |
20523 | char * kwnames[] = { | |
20524 | (char *) "self",(char *) "subrect", NULL | |
20525 | }; | |
20526 | ||
20527 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:DC_GetAsBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
20528 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20529 | if (!SWIG_IsOK(res1)) { | |
20530 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetAsBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
20531 | } | |
20532 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20533 | if (obj1) { | |
20534 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
20535 | if (!SWIG_IsOK(res2)) { | |
20536 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_GetAsBitmap" "', expected argument " "2"" of type '" "wxRect const *""'"); | |
20537 | } | |
20538 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
20539 | } | |
20540 | { | |
20541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20542 | result = ((wxDC const *)arg1)->GetAsBitmap((wxRect const *)arg2); | |
20543 | wxPyEndAllowThreads(__tstate); | |
20544 | if (PyErr_Occurred()) SWIG_fail; | |
20545 | } | |
20546 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
20547 | return resultobj; | |
20548 | fail: | |
20549 | return NULL; | |
20550 | } | |
20551 | ||
20552 | ||
554f62e9 RD |
20553 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
20554 | PyObject *resultobj = 0; | |
20555 | wxDC *arg1 = (wxDC *) 0 ; | |
20556 | int arg2 ; | |
20557 | int arg3 ; | |
20558 | int arg4 ; | |
20559 | int arg5 ; | |
20560 | void *argp1 = 0 ; | |
20561 | int res1 = 0 ; | |
20562 | int val2 ; | |
20563 | int ecode2 = 0 ; | |
20564 | int val3 ; | |
20565 | int ecode3 = 0 ; | |
20566 | int val4 ; | |
20567 | int ecode4 = 0 ; | |
20568 | int val5 ; | |
20569 | int ecode5 = 0 ; | |
20570 | PyObject * obj0 = 0 ; | |
20571 | PyObject * obj1 = 0 ; | |
20572 | PyObject * obj2 = 0 ; | |
20573 | PyObject * obj3 = 0 ; | |
20574 | PyObject * obj4 = 0 ; | |
20575 | char * kwnames[] = { | |
20576 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
20577 | }; | |
20578 | ||
20579 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20580 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20581 | if (!SWIG_IsOK(res1)) { | |
20582 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20583 | } | |
20584 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20585 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
20586 | if (!SWIG_IsOK(ecode2)) { | |
20587 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'"); | |
20588 | } | |
20589 | arg2 = static_cast< int >(val2); | |
20590 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
20591 | if (!SWIG_IsOK(ecode3)) { | |
20592 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'"); | |
20593 | } | |
20594 | arg3 = static_cast< int >(val3); | |
20595 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20596 | if (!SWIG_IsOK(ecode4)) { | |
20597 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'"); | |
20598 | } | |
20599 | arg4 = static_cast< int >(val4); | |
20600 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20601 | if (!SWIG_IsOK(ecode5)) { | |
20602 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'"); | |
20603 | } | |
20604 | arg5 = static_cast< int >(val5); | |
20605 | { | |
20606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20607 | (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5); | |
20608 | wxPyEndAllowThreads(__tstate); | |
20609 | if (PyErr_Occurred()) SWIG_fail; | |
20610 | } | |
20611 | resultobj = SWIG_Py_Void(); | |
20612 | return resultobj; | |
20613 | fail: | |
20614 | return NULL; | |
20615 | } | |
20616 | ||
20617 | ||
20618 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20619 | PyObject *resultobj = 0; | |
20620 | wxDC *arg1 = (wxDC *) 0 ; | |
20621 | wxPoint *arg2 = 0 ; | |
20622 | wxSize *arg3 = 0 ; | |
20623 | void *argp1 = 0 ; | |
20624 | int res1 = 0 ; | |
20625 | wxPoint temp2 ; | |
20626 | wxSize temp3 ; | |
20627 | PyObject * obj0 = 0 ; | |
20628 | PyObject * obj1 = 0 ; | |
20629 | PyObject * obj2 = 0 ; | |
20630 | char * kwnames[] = { | |
20631 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
20632 | }; | |
20633 | ||
20634 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
20635 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20636 | if (!SWIG_IsOK(res1)) { | |
20637 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20638 | } | |
20639 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20640 | { | |
20641 | arg2 = &temp2; | |
20642 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
20643 | } | |
20644 | { | |
20645 | arg3 = &temp3; | |
20646 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
20647 | } | |
20648 | { | |
20649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20650 | (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
20651 | wxPyEndAllowThreads(__tstate); | |
20652 | if (PyErr_Occurred()) SWIG_fail; | |
20653 | } | |
20654 | resultobj = SWIG_Py_Void(); | |
20655 | return resultobj; | |
20656 | fail: | |
20657 | return NULL; | |
20658 | } | |
20659 | ||
20660 | ||
20661 | SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20662 | PyObject *resultobj = 0; | |
20663 | wxDC *arg1 = (wxDC *) 0 ; | |
20664 | wxRegion *arg2 = 0 ; | |
20665 | void *argp1 = 0 ; | |
20666 | int res1 = 0 ; | |
20667 | void *argp2 = 0 ; | |
20668 | int res2 = 0 ; | |
20669 | PyObject * obj0 = 0 ; | |
20670 | PyObject * obj1 = 0 ; | |
20671 | char * kwnames[] = { | |
20672 | (char *) "self",(char *) "region", NULL | |
20673 | }; | |
20674 | ||
20675 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail; | |
20676 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20677 | if (!SWIG_IsOK(res1)) { | |
20678 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20679 | } | |
20680 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20681 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
20682 | if (!SWIG_IsOK(res2)) { | |
20683 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20684 | } | |
20685 | if (!argp2) { | |
20686 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
20687 | } | |
20688 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
20689 | { | |
20690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20691 | (arg1)->SetClippingRegion((wxRegion const &)*arg2); | |
20692 | wxPyEndAllowThreads(__tstate); | |
20693 | if (PyErr_Occurred()) SWIG_fail; | |
20694 | } | |
20695 | resultobj = SWIG_Py_Void(); | |
20696 | return resultobj; | |
20697 | fail: | |
20698 | return NULL; | |
20699 | } | |
20700 | ||
20701 | ||
20702 | SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20703 | PyObject *resultobj = 0; | |
20704 | wxDC *arg1 = (wxDC *) 0 ; | |
20705 | wxRect *arg2 = 0 ; | |
20706 | void *argp1 = 0 ; | |
20707 | int res1 = 0 ; | |
20708 | wxRect temp2 ; | |
20709 | PyObject * obj0 = 0 ; | |
20710 | PyObject * obj1 = 0 ; | |
20711 | char * kwnames[] = { | |
20712 | (char *) "self",(char *) "rect", NULL | |
20713 | }; | |
20714 | ||
20715 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
20716 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20717 | if (!SWIG_IsOK(res1)) { | |
20718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20719 | } | |
20720 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20721 | { | |
20722 | arg2 = &temp2; | |
20723 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
20724 | } | |
20725 | { | |
20726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20727 | (arg1)->SetClippingRegion((wxRect const &)*arg2); | |
20728 | wxPyEndAllowThreads(__tstate); | |
20729 | if (PyErr_Occurred()) SWIG_fail; | |
20730 | } | |
20731 | resultobj = SWIG_Py_Void(); | |
20732 | return resultobj; | |
20733 | fail: | |
20734 | return NULL; | |
20735 | } | |
20736 | ||
20737 | ||
20738 | SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20739 | PyObject *resultobj = 0; | |
20740 | wxDC *arg1 = (wxDC *) 0 ; | |
20741 | int arg2 ; | |
20742 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20743 | int arg4 = (int) 0 ; | |
20744 | int arg5 = (int) 0 ; | |
20745 | void *argp1 = 0 ; | |
20746 | int res1 = 0 ; | |
20747 | int val4 ; | |
20748 | int ecode4 = 0 ; | |
20749 | int val5 ; | |
20750 | int ecode5 = 0 ; | |
20751 | PyObject * obj0 = 0 ; | |
20752 | PyObject * obj1 = 0 ; | |
20753 | PyObject * obj2 = 0 ; | |
20754 | PyObject * obj3 = 0 ; | |
20755 | char * kwnames[] = { | |
20756 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
20757 | }; | |
20758 | ||
20759 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
20760 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20761 | if (!SWIG_IsOK(res1)) { | |
20762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20763 | } | |
20764 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20765 | { | |
20766 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20767 | if (arg3 == NULL) SWIG_fail; | |
20768 | } | |
20769 | if (obj2) { | |
20770 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20771 | if (!SWIG_IsOK(ecode4)) { | |
20772 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
20773 | } | |
20774 | arg4 = static_cast< int >(val4); | |
20775 | } | |
20776 | if (obj3) { | |
20777 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20778 | if (!SWIG_IsOK(ecode5)) { | |
20779 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
20780 | } | |
20781 | arg5 = static_cast< int >(val5); | |
20782 | } | |
20783 | { | |
20784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20785 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
20786 | wxPyEndAllowThreads(__tstate); | |
20787 | if (PyErr_Occurred()) SWIG_fail; | |
20788 | } | |
20789 | resultobj = SWIG_Py_Void(); | |
20790 | { | |
20791 | if (arg3) delete [] arg3; | |
20792 | } | |
20793 | return resultobj; | |
20794 | fail: | |
20795 | { | |
20796 | if (arg3) delete [] arg3; | |
20797 | } | |
20798 | return NULL; | |
20799 | } | |
20800 | ||
20801 | ||
20802 | SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20803 | PyObject *resultobj = 0; | |
20804 | wxDC *arg1 = (wxDC *) 0 ; | |
20805 | int arg2 ; | |
20806 | wxPoint *arg3 = (wxPoint *) 0 ; | |
20807 | int arg4 = (int) 0 ; | |
20808 | int arg5 = (int) 0 ; | |
20809 | int arg6 = (int) wxODDEVEN_RULE ; | |
20810 | void *argp1 = 0 ; | |
20811 | int res1 = 0 ; | |
20812 | int val4 ; | |
20813 | int ecode4 = 0 ; | |
20814 | int val5 ; | |
20815 | int ecode5 = 0 ; | |
20816 | int val6 ; | |
20817 | int ecode6 = 0 ; | |
20818 | PyObject * obj0 = 0 ; | |
20819 | PyObject * obj1 = 0 ; | |
20820 | PyObject * obj2 = 0 ; | |
20821 | PyObject * obj3 = 0 ; | |
20822 | PyObject * obj4 = 0 ; | |
20823 | char * kwnames[] = { | |
20824 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
20825 | }; | |
20826 | ||
20827 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20828 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20829 | if (!SWIG_IsOK(res1)) { | |
20830 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20831 | } | |
20832 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20833 | { | |
20834 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
20835 | if (arg3 == NULL) SWIG_fail; | |
20836 | } | |
20837 | if (obj2) { | |
20838 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
20839 | if (!SWIG_IsOK(ecode4)) { | |
20840 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
20841 | } | |
20842 | arg4 = static_cast< int >(val4); | |
20843 | } | |
20844 | if (obj3) { | |
20845 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
20846 | if (!SWIG_IsOK(ecode5)) { | |
20847 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
20848 | } | |
20849 | arg5 = static_cast< int >(val5); | |
20850 | } | |
20851 | if (obj4) { | |
20852 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
20853 | if (!SWIG_IsOK(ecode6)) { | |
20854 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
20855 | } | |
20856 | arg6 = static_cast< int >(val6); | |
20857 | } | |
20858 | { | |
20859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20860 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
20861 | wxPyEndAllowThreads(__tstate); | |
20862 | if (PyErr_Occurred()) SWIG_fail; | |
20863 | } | |
20864 | resultobj = SWIG_Py_Void(); | |
20865 | { | |
20866 | if (arg3) delete [] arg3; | |
20867 | } | |
20868 | return resultobj; | |
20869 | fail: | |
20870 | { | |
20871 | if (arg3) delete [] arg3; | |
20872 | } | |
20873 | return NULL; | |
20874 | } | |
20875 | ||
20876 | ||
20877 | SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20878 | PyObject *resultobj = 0; | |
20879 | wxDC *arg1 = (wxDC *) 0 ; | |
20880 | wxString *arg2 = 0 ; | |
20881 | wxRect *arg3 = 0 ; | |
20882 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20883 | int arg5 = (int) -1 ; | |
20884 | void *argp1 = 0 ; | |
20885 | int res1 = 0 ; | |
20886 | bool temp2 = false ; | |
20887 | wxRect temp3 ; | |
20888 | int val4 ; | |
20889 | int ecode4 = 0 ; | |
20890 | int val5 ; | |
20891 | int ecode5 = 0 ; | |
20892 | PyObject * obj0 = 0 ; | |
20893 | PyObject * obj1 = 0 ; | |
20894 | PyObject * obj2 = 0 ; | |
20895 | PyObject * obj3 = 0 ; | |
20896 | PyObject * obj4 = 0 ; | |
20897 | char * kwnames[] = { | |
20898 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20899 | }; | |
20900 | ||
20901 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
20902 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20903 | if (!SWIG_IsOK(res1)) { | |
20904 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20905 | } | |
20906 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20907 | { | |
20908 | arg2 = wxString_in_helper(obj1); | |
20909 | if (arg2 == NULL) SWIG_fail; | |
20910 | temp2 = true; | |
20911 | } | |
20912 | { | |
20913 | arg3 = &temp3; | |
20914 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
20915 | } | |
20916 | if (obj3) { | |
20917 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
20918 | if (!SWIG_IsOK(ecode4)) { | |
20919 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
20920 | } | |
20921 | arg4 = static_cast< int >(val4); | |
20922 | } | |
20923 | if (obj4) { | |
20924 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
20925 | if (!SWIG_IsOK(ecode5)) { | |
20926 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
20927 | } | |
20928 | arg5 = static_cast< int >(val5); | |
20929 | } | |
20930 | { | |
20931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20932 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
20933 | wxPyEndAllowThreads(__tstate); | |
20934 | if (PyErr_Occurred()) SWIG_fail; | |
20935 | } | |
20936 | resultobj = SWIG_Py_Void(); | |
20937 | { | |
20938 | if (temp2) | |
20939 | delete arg2; | |
20940 | } | |
20941 | return resultobj; | |
20942 | fail: | |
20943 | { | |
20944 | if (temp2) | |
20945 | delete arg2; | |
20946 | } | |
20947 | return NULL; | |
20948 | } | |
20949 | ||
20950 | ||
20951 | SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
20952 | PyObject *resultobj = 0; | |
20953 | wxDC *arg1 = (wxDC *) 0 ; | |
20954 | wxString *arg2 = 0 ; | |
20955 | wxBitmap *arg3 = 0 ; | |
20956 | wxRect *arg4 = 0 ; | |
20957 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
20958 | int arg6 = (int) -1 ; | |
20959 | wxRect result; | |
20960 | void *argp1 = 0 ; | |
20961 | int res1 = 0 ; | |
20962 | bool temp2 = false ; | |
20963 | void *argp3 = 0 ; | |
20964 | int res3 = 0 ; | |
20965 | wxRect temp4 ; | |
20966 | int val5 ; | |
20967 | int ecode5 = 0 ; | |
20968 | int val6 ; | |
20969 | int ecode6 = 0 ; | |
20970 | PyObject * obj0 = 0 ; | |
20971 | PyObject * obj1 = 0 ; | |
20972 | PyObject * obj2 = 0 ; | |
20973 | PyObject * obj3 = 0 ; | |
20974 | PyObject * obj4 = 0 ; | |
20975 | PyObject * obj5 = 0 ; | |
20976 | char * kwnames[] = { | |
20977 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
20978 | }; | |
20979 | ||
20980 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
20981 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
20982 | if (!SWIG_IsOK(res1)) { | |
20983 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'"); | |
20984 | } | |
20985 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
20986 | { | |
20987 | arg2 = wxString_in_helper(obj1); | |
20988 | if (arg2 == NULL) SWIG_fail; | |
20989 | temp2 = true; | |
20990 | } | |
20991 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
20992 | if (!SWIG_IsOK(res3)) { | |
20993 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20994 | } | |
20995 | if (!argp3) { | |
20996 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
20997 | } | |
20998 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
20999 | { | |
21000 | arg4 = &temp4; | |
21001 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
21002 | } | |
21003 | if (obj4) { | |
21004 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
21005 | if (!SWIG_IsOK(ecode5)) { | |
21006 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
21007 | } | |
21008 | arg5 = static_cast< int >(val5); | |
21009 | } | |
21010 | if (obj5) { | |
21011 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
21012 | if (!SWIG_IsOK(ecode6)) { | |
21013 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
21014 | } | |
21015 | arg6 = static_cast< int >(val6); | |
21016 | } | |
21017 | { | |
21018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21019 | result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
21020 | wxPyEndAllowThreads(__tstate); | |
21021 | if (PyErr_Occurred()) SWIG_fail; | |
21022 | } | |
21023 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
21024 | { | |
21025 | if (temp2) | |
21026 | delete arg2; | |
21027 | } | |
21028 | return resultobj; | |
21029 | fail: | |
21030 | { | |
21031 | if (temp2) | |
21032 | delete arg2; | |
21033 | } | |
21034 | return NULL; | |
21035 | } | |
21036 | ||
21037 | ||
21038 | SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21039 | PyObject *resultobj = 0; | |
21040 | wxDC *arg1 = (wxDC *) 0 ; | |
21041 | int arg2 ; | |
21042 | wxPoint *arg3 = (wxPoint *) 0 ; | |
21043 | void *argp1 = 0 ; | |
21044 | int res1 = 0 ; | |
21045 | PyObject * obj0 = 0 ; | |
21046 | PyObject * obj1 = 0 ; | |
21047 | char * kwnames[] = { | |
21048 | (char *) "self",(char *) "points", NULL | |
21049 | }; | |
21050 | ||
21051 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
21052 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21053 | if (!SWIG_IsOK(res1)) { | |
21054 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21055 | } | |
21056 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21057 | { | |
21058 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
21059 | if (arg3 == NULL) SWIG_fail; | |
21060 | } | |
21061 | { | |
21062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21063 | (arg1)->DrawSpline(arg2,arg3); | |
21064 | wxPyEndAllowThreads(__tstate); | |
21065 | if (PyErr_Occurred()) SWIG_fail; | |
21066 | } | |
21067 | resultobj = SWIG_Py_Void(); | |
21068 | { | |
21069 | if (arg3) delete [] arg3; | |
21070 | } | |
21071 | return resultobj; | |
21072 | fail: | |
21073 | { | |
21074 | if (arg3) delete [] arg3; | |
21075 | } | |
21076 | return NULL; | |
21077 | } | |
21078 | ||
21079 | ||
21080 | SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21081 | PyObject *resultobj = 0; | |
21082 | wxDC *arg1 = (wxDC *) 0 ; | |
21083 | void *argp1 = 0 ; | |
21084 | int res1 = 0 ; | |
21085 | PyObject *swig_obj[1] ; | |
21086 | ||
21087 | if (!args) SWIG_fail; | |
21088 | swig_obj[0] = args; | |
21089 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21090 | if (!SWIG_IsOK(res1)) { | |
21091 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21092 | } | |
21093 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21094 | { | |
21095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21096 | (arg1)->Clear(); | |
21097 | wxPyEndAllowThreads(__tstate); | |
21098 | if (PyErr_Occurred()) SWIG_fail; | |
21099 | } | |
21100 | resultobj = SWIG_Py_Void(); | |
21101 | return resultobj; | |
21102 | fail: | |
21103 | return NULL; | |
21104 | } | |
21105 | ||
21106 | ||
21107 | SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21108 | PyObject *resultobj = 0; | |
21109 | wxDC *arg1 = (wxDC *) 0 ; | |
21110 | wxString *arg2 = 0 ; | |
21111 | bool result; | |
21112 | void *argp1 = 0 ; | |
21113 | int res1 = 0 ; | |
21114 | bool temp2 = false ; | |
21115 | PyObject * obj0 = 0 ; | |
21116 | PyObject * obj1 = 0 ; | |
21117 | char * kwnames[] = { | |
21118 | (char *) "self",(char *) "message", NULL | |
21119 | }; | |
21120 | ||
21121 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail; | |
21122 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21123 | if (!SWIG_IsOK(res1)) { | |
21124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21125 | } | |
21126 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21127 | { | |
21128 | arg2 = wxString_in_helper(obj1); | |
21129 | if (arg2 == NULL) SWIG_fail; | |
21130 | temp2 = true; | |
21131 | } | |
21132 | { | |
21133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21134 | result = (bool)(arg1)->StartDoc((wxString const &)*arg2); | |
21135 | wxPyEndAllowThreads(__tstate); | |
21136 | if (PyErr_Occurred()) SWIG_fail; | |
21137 | } | |
21138 | { | |
21139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21140 | } | |
21141 | { | |
21142 | if (temp2) | |
21143 | delete arg2; | |
21144 | } | |
21145 | return resultobj; | |
21146 | fail: | |
21147 | { | |
21148 | if (temp2) | |
21149 | delete arg2; | |
21150 | } | |
21151 | return NULL; | |
21152 | } | |
21153 | ||
21154 | ||
21155 | SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21156 | PyObject *resultobj = 0; | |
21157 | wxDC *arg1 = (wxDC *) 0 ; | |
21158 | void *argp1 = 0 ; | |
21159 | int res1 = 0 ; | |
21160 | PyObject *swig_obj[1] ; | |
21161 | ||
21162 | if (!args) SWIG_fail; | |
21163 | swig_obj[0] = args; | |
21164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21165 | if (!SWIG_IsOK(res1)) { | |
21166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21167 | } | |
21168 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21169 | { | |
21170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21171 | (arg1)->EndDoc(); | |
21172 | wxPyEndAllowThreads(__tstate); | |
21173 | if (PyErr_Occurred()) SWIG_fail; | |
21174 | } | |
21175 | resultobj = SWIG_Py_Void(); | |
21176 | return resultobj; | |
21177 | fail: | |
21178 | return NULL; | |
21179 | } | |
21180 | ||
21181 | ||
21182 | SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21183 | PyObject *resultobj = 0; | |
21184 | wxDC *arg1 = (wxDC *) 0 ; | |
21185 | void *argp1 = 0 ; | |
21186 | int res1 = 0 ; | |
21187 | PyObject *swig_obj[1] ; | |
21188 | ||
21189 | if (!args) SWIG_fail; | |
21190 | swig_obj[0] = args; | |
21191 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21192 | if (!SWIG_IsOK(res1)) { | |
21193 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21194 | } | |
21195 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21196 | { | |
21197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21198 | (arg1)->StartPage(); | |
21199 | wxPyEndAllowThreads(__tstate); | |
21200 | if (PyErr_Occurred()) SWIG_fail; | |
21201 | } | |
21202 | resultobj = SWIG_Py_Void(); | |
21203 | return resultobj; | |
21204 | fail: | |
21205 | return NULL; | |
21206 | } | |
21207 | ||
21208 | ||
21209 | SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21210 | PyObject *resultobj = 0; | |
21211 | wxDC *arg1 = (wxDC *) 0 ; | |
21212 | void *argp1 = 0 ; | |
21213 | int res1 = 0 ; | |
21214 | PyObject *swig_obj[1] ; | |
21215 | ||
21216 | if (!args) SWIG_fail; | |
21217 | swig_obj[0] = args; | |
21218 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21219 | if (!SWIG_IsOK(res1)) { | |
21220 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21221 | } | |
21222 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21223 | { | |
21224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21225 | (arg1)->EndPage(); | |
21226 | wxPyEndAllowThreads(__tstate); | |
21227 | if (PyErr_Occurred()) SWIG_fail; | |
21228 | } | |
21229 | resultobj = SWIG_Py_Void(); | |
21230 | return resultobj; | |
21231 | fail: | |
21232 | return NULL; | |
21233 | } | |
21234 | ||
21235 | ||
21236 | SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21237 | PyObject *resultobj = 0; | |
21238 | wxDC *arg1 = (wxDC *) 0 ; | |
21239 | wxFont *arg2 = 0 ; | |
21240 | void *argp1 = 0 ; | |
21241 | int res1 = 0 ; | |
21242 | void *argp2 = 0 ; | |
21243 | int res2 = 0 ; | |
21244 | PyObject * obj0 = 0 ; | |
21245 | PyObject * obj1 = 0 ; | |
21246 | char * kwnames[] = { | |
21247 | (char *) "self",(char *) "font", NULL | |
21248 | }; | |
21249 | ||
21250 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
21251 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21252 | if (!SWIG_IsOK(res1)) { | |
21253 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21254 | } | |
21255 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21256 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
21257 | if (!SWIG_IsOK(res2)) { | |
21258 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
21259 | } | |
21260 | if (!argp2) { | |
21261 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
21262 | } | |
21263 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
21264 | { | |
21265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21266 | (arg1)->SetFont((wxFont const &)*arg2); | |
21267 | wxPyEndAllowThreads(__tstate); | |
21268 | if (PyErr_Occurred()) SWIG_fail; | |
21269 | } | |
21270 | resultobj = SWIG_Py_Void(); | |
21271 | return resultobj; | |
21272 | fail: | |
21273 | return NULL; | |
21274 | } | |
21275 | ||
21276 | ||
21277 | SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21278 | PyObject *resultobj = 0; | |
21279 | wxDC *arg1 = (wxDC *) 0 ; | |
21280 | wxPen *arg2 = 0 ; | |
21281 | void *argp1 = 0 ; | |
21282 | int res1 = 0 ; | |
21283 | void *argp2 = 0 ; | |
21284 | int res2 = 0 ; | |
21285 | PyObject * obj0 = 0 ; | |
21286 | PyObject * obj1 = 0 ; | |
21287 | char * kwnames[] = { | |
21288 | (char *) "self",(char *) "pen", NULL | |
21289 | }; | |
21290 | ||
21291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
21292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21293 | if (!SWIG_IsOK(res1)) { | |
21294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21295 | } | |
21296 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21297 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
21298 | if (!SWIG_IsOK(res2)) { | |
21299 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
21300 | } | |
21301 | if (!argp2) { | |
21302 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
21303 | } | |
21304 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
21305 | { | |
21306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21307 | (arg1)->SetPen((wxPen const &)*arg2); | |
21308 | wxPyEndAllowThreads(__tstate); | |
21309 | if (PyErr_Occurred()) SWIG_fail; | |
21310 | } | |
21311 | resultobj = SWIG_Py_Void(); | |
21312 | return resultobj; | |
21313 | fail: | |
21314 | return NULL; | |
21315 | } | |
21316 | ||
21317 | ||
21318 | SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21319 | PyObject *resultobj = 0; | |
21320 | wxDC *arg1 = (wxDC *) 0 ; | |
21321 | wxBrush *arg2 = 0 ; | |
21322 | void *argp1 = 0 ; | |
21323 | int res1 = 0 ; | |
21324 | void *argp2 = 0 ; | |
21325 | int res2 = 0 ; | |
21326 | PyObject * obj0 = 0 ; | |
21327 | PyObject * obj1 = 0 ; | |
21328 | char * kwnames[] = { | |
21329 | (char *) "self",(char *) "brush", NULL | |
21330 | }; | |
21331 | ||
21332 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
21333 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21334 | if (!SWIG_IsOK(res1)) { | |
21335 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21336 | } | |
21337 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21338 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
21339 | if (!SWIG_IsOK(res2)) { | |
21340 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21341 | } | |
21342 | if (!argp2) { | |
21343 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21344 | } | |
21345 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
21346 | { | |
21347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21348 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
21349 | wxPyEndAllowThreads(__tstate); | |
21350 | if (PyErr_Occurred()) SWIG_fail; | |
21351 | } | |
21352 | resultobj = SWIG_Py_Void(); | |
21353 | return resultobj; | |
21354 | fail: | |
21355 | return NULL; | |
21356 | } | |
21357 | ||
21358 | ||
21359 | SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21360 | PyObject *resultobj = 0; | |
21361 | wxDC *arg1 = (wxDC *) 0 ; | |
21362 | wxBrush *arg2 = 0 ; | |
21363 | void *argp1 = 0 ; | |
21364 | int res1 = 0 ; | |
21365 | void *argp2 = 0 ; | |
21366 | int res2 = 0 ; | |
21367 | PyObject * obj0 = 0 ; | |
21368 | PyObject * obj1 = 0 ; | |
21369 | char * kwnames[] = { | |
21370 | (char *) "self",(char *) "brush", NULL | |
21371 | }; | |
21372 | ||
21373 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
21374 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21375 | if (!SWIG_IsOK(res1)) { | |
21376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21377 | } | |
21378 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21379 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
21380 | if (!SWIG_IsOK(res2)) { | |
21381 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21382 | } | |
21383 | if (!argp2) { | |
21384 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
21385 | } | |
21386 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
21387 | { | |
21388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21389 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
21390 | wxPyEndAllowThreads(__tstate); | |
21391 | if (PyErr_Occurred()) SWIG_fail; | |
21392 | } | |
21393 | resultobj = SWIG_Py_Void(); | |
21394 | return resultobj; | |
21395 | fail: | |
21396 | return NULL; | |
21397 | } | |
21398 | ||
21399 | ||
21400 | SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21401 | PyObject *resultobj = 0; | |
21402 | wxDC *arg1 = (wxDC *) 0 ; | |
21403 | int arg2 ; | |
21404 | void *argp1 = 0 ; | |
21405 | int res1 = 0 ; | |
21406 | int val2 ; | |
21407 | int ecode2 = 0 ; | |
21408 | PyObject * obj0 = 0 ; | |
21409 | PyObject * obj1 = 0 ; | |
21410 | char * kwnames[] = { | |
21411 | (char *) "self",(char *) "mode", NULL | |
21412 | }; | |
21413 | ||
21414 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
21415 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21416 | if (!SWIG_IsOK(res1)) { | |
21417 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21418 | } | |
21419 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21420 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
21421 | if (!SWIG_IsOK(ecode2)) { | |
21422 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
21423 | } | |
21424 | arg2 = static_cast< int >(val2); | |
21425 | { | |
21426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21427 | (arg1)->SetBackgroundMode(arg2); | |
21428 | wxPyEndAllowThreads(__tstate); | |
21429 | if (PyErr_Occurred()) SWIG_fail; | |
21430 | } | |
21431 | resultobj = SWIG_Py_Void(); | |
21432 | return resultobj; | |
21433 | fail: | |
21434 | return NULL; | |
21435 | } | |
21436 | ||
21437 | ||
21438 | SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21439 | PyObject *resultobj = 0; | |
21440 | wxDC *arg1 = (wxDC *) 0 ; | |
21441 | wxPalette *arg2 = 0 ; | |
21442 | void *argp1 = 0 ; | |
21443 | int res1 = 0 ; | |
21444 | void *argp2 = 0 ; | |
21445 | int res2 = 0 ; | |
21446 | PyObject * obj0 = 0 ; | |
21447 | PyObject * obj1 = 0 ; | |
21448 | char * kwnames[] = { | |
21449 | (char *) "self",(char *) "palette", NULL | |
21450 | }; | |
21451 | ||
21452 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
21453 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21454 | if (!SWIG_IsOK(res1)) { | |
21455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21456 | } | |
21457 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21458 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
21459 | if (!SWIG_IsOK(res2)) { | |
21460 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
21461 | } | |
21462 | if (!argp2) { | |
21463 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
21464 | } | |
21465 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
21466 | { | |
21467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21468 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
21469 | wxPyEndAllowThreads(__tstate); | |
21470 | if (PyErr_Occurred()) SWIG_fail; | |
21471 | } | |
21472 | resultobj = SWIG_Py_Void(); | |
21473 | return resultobj; | |
21474 | fail: | |
21475 | return NULL; | |
21476 | } | |
21477 | ||
21478 | ||
21479 | SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21480 | PyObject *resultobj = 0; | |
21481 | wxDC *arg1 = (wxDC *) 0 ; | |
21482 | void *argp1 = 0 ; | |
21483 | int res1 = 0 ; | |
21484 | PyObject *swig_obj[1] ; | |
21485 | ||
21486 | if (!args) SWIG_fail; | |
21487 | swig_obj[0] = args; | |
21488 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21489 | if (!SWIG_IsOK(res1)) { | |
21490 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21491 | } | |
21492 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21493 | { | |
21494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21495 | (arg1)->DestroyClippingRegion(); | |
21496 | wxPyEndAllowThreads(__tstate); | |
21497 | if (PyErr_Occurred()) SWIG_fail; | |
21498 | } | |
21499 | resultobj = SWIG_Py_Void(); | |
21500 | return resultobj; | |
21501 | fail: | |
21502 | return NULL; | |
21503 | } | |
21504 | ||
21505 | ||
21506 | SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21507 | PyObject *resultobj = 0; | |
21508 | wxDC *arg1 = (wxDC *) 0 ; | |
21509 | int *arg2 = (int *) 0 ; | |
21510 | int *arg3 = (int *) 0 ; | |
21511 | int *arg4 = (int *) 0 ; | |
21512 | int *arg5 = (int *) 0 ; | |
21513 | void *argp1 = 0 ; | |
21514 | int res1 = 0 ; | |
21515 | int temp2 ; | |
21516 | int res2 = SWIG_TMPOBJ ; | |
21517 | int temp3 ; | |
21518 | int res3 = SWIG_TMPOBJ ; | |
21519 | int temp4 ; | |
21520 | int res4 = SWIG_TMPOBJ ; | |
21521 | int temp5 ; | |
21522 | int res5 = SWIG_TMPOBJ ; | |
21523 | PyObject *swig_obj[1] ; | |
21524 | ||
21525 | arg2 = &temp2; | |
21526 | arg3 = &temp3; | |
21527 | arg4 = &temp4; | |
21528 | arg5 = &temp5; | |
21529 | if (!args) SWIG_fail; | |
21530 | swig_obj[0] = args; | |
21531 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21532 | if (!SWIG_IsOK(res1)) { | |
21533 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21534 | } | |
21535 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21536 | { | |
21537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21538 | ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5); | |
21539 | wxPyEndAllowThreads(__tstate); | |
21540 | if (PyErr_Occurred()) SWIG_fail; | |
21541 | } | |
21542 | resultobj = SWIG_Py_Void(); | |
21543 | if (SWIG_IsTmpObj(res2)) { | |
21544 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
21545 | } else { | |
21546 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21547 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
21548 | } | |
21549 | if (SWIG_IsTmpObj(res3)) { | |
21550 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21551 | } else { | |
21552 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21553 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21554 | } | |
21555 | if (SWIG_IsTmpObj(res4)) { | |
21556 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21557 | } else { | |
21558 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21559 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21560 | } | |
21561 | if (SWIG_IsTmpObj(res5)) { | |
21562 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21563 | } else { | |
21564 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21565 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21566 | } | |
21567 | return resultobj; | |
21568 | fail: | |
21569 | return NULL; | |
21570 | } | |
21571 | ||
21572 | ||
21573 | SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21574 | PyObject *resultobj = 0; | |
21575 | wxDC *arg1 = (wxDC *) 0 ; | |
21576 | wxRect result; | |
21577 | void *argp1 = 0 ; | |
21578 | int res1 = 0 ; | |
21579 | PyObject *swig_obj[1] ; | |
21580 | ||
21581 | if (!args) SWIG_fail; | |
21582 | swig_obj[0] = args; | |
21583 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21584 | if (!SWIG_IsOK(res1)) { | |
21585 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21586 | } | |
21587 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21588 | { | |
21589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21590 | result = wxDC_GetClippingRect(arg1); | |
21591 | wxPyEndAllowThreads(__tstate); | |
21592 | if (PyErr_Occurred()) SWIG_fail; | |
21593 | } | |
21594 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
21595 | return resultobj; | |
21596 | fail: | |
21597 | return NULL; | |
21598 | } | |
21599 | ||
21600 | ||
21601 | SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21602 | PyObject *resultobj = 0; | |
21603 | wxDC *arg1 = (wxDC *) 0 ; | |
21604 | int result; | |
21605 | void *argp1 = 0 ; | |
21606 | int res1 = 0 ; | |
21607 | PyObject *swig_obj[1] ; | |
21608 | ||
21609 | if (!args) SWIG_fail; | |
21610 | swig_obj[0] = args; | |
21611 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21612 | if (!SWIG_IsOK(res1)) { | |
21613 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21614 | } | |
21615 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21616 | { | |
21617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21618 | result = (int)((wxDC const *)arg1)->GetCharHeight(); | |
21619 | wxPyEndAllowThreads(__tstate); | |
21620 | if (PyErr_Occurred()) SWIG_fail; | |
21621 | } | |
21622 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21623 | return resultobj; | |
21624 | fail: | |
21625 | return NULL; | |
21626 | } | |
21627 | ||
21628 | ||
21629 | SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21630 | PyObject *resultobj = 0; | |
21631 | wxDC *arg1 = (wxDC *) 0 ; | |
21632 | int result; | |
21633 | void *argp1 = 0 ; | |
21634 | int res1 = 0 ; | |
21635 | PyObject *swig_obj[1] ; | |
21636 | ||
21637 | if (!args) SWIG_fail; | |
21638 | swig_obj[0] = args; | |
21639 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21640 | if (!SWIG_IsOK(res1)) { | |
21641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
21642 | } | |
21643 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21644 | { | |
21645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21646 | result = (int)((wxDC const *)arg1)->GetCharWidth(); | |
21647 | wxPyEndAllowThreads(__tstate); | |
21648 | if (PyErr_Occurred()) SWIG_fail; | |
21649 | } | |
21650 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
21651 | return resultobj; | |
21652 | fail: | |
21653 | return NULL; | |
21654 | } | |
21655 | ||
21656 | ||
21657 | SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21658 | PyObject *resultobj = 0; | |
21659 | wxDC *arg1 = (wxDC *) 0 ; | |
21660 | wxString *arg2 = 0 ; | |
21661 | int *arg3 = (int *) 0 ; | |
21662 | int *arg4 = (int *) 0 ; | |
21663 | void *argp1 = 0 ; | |
21664 | int res1 = 0 ; | |
21665 | bool temp2 = false ; | |
21666 | int temp3 ; | |
21667 | int res3 = SWIG_TMPOBJ ; | |
21668 | int temp4 ; | |
21669 | int res4 = SWIG_TMPOBJ ; | |
21670 | PyObject * obj0 = 0 ; | |
21671 | PyObject * obj1 = 0 ; | |
21672 | char * kwnames[] = { | |
21673 | (char *) "self",(char *) "string", NULL | |
21674 | }; | |
21675 | ||
21676 | arg3 = &temp3; | |
21677 | arg4 = &temp4; | |
21678 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
21679 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21680 | if (!SWIG_IsOK(res1)) { | |
21681 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21682 | } | |
21683 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21684 | { | |
21685 | arg2 = wxString_in_helper(obj1); | |
21686 | if (arg2 == NULL) SWIG_fail; | |
21687 | temp2 = true; | |
21688 | } | |
21689 | { | |
21690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21691 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4); | |
21692 | wxPyEndAllowThreads(__tstate); | |
21693 | if (PyErr_Occurred()) SWIG_fail; | |
21694 | } | |
21695 | resultobj = SWIG_Py_Void(); | |
21696 | if (SWIG_IsTmpObj(res3)) { | |
21697 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21698 | } else { | |
21699 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21700 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21701 | } | |
21702 | if (SWIG_IsTmpObj(res4)) { | |
21703 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21704 | } else { | |
21705 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21706 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21707 | } | |
21708 | { | |
21709 | if (temp2) | |
21710 | delete arg2; | |
21711 | } | |
21712 | return resultobj; | |
21713 | fail: | |
21714 | { | |
21715 | if (temp2) | |
21716 | delete arg2; | |
21717 | } | |
21718 | return NULL; | |
21719 | } | |
21720 | ||
21721 | ||
21722 | SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21723 | PyObject *resultobj = 0; | |
21724 | wxDC *arg1 = (wxDC *) 0 ; | |
21725 | wxString *arg2 = 0 ; | |
21726 | int *arg3 = (int *) 0 ; | |
21727 | int *arg4 = (int *) 0 ; | |
21728 | int *arg5 = (int *) 0 ; | |
21729 | int *arg6 = (int *) 0 ; | |
21730 | wxFont *arg7 = (wxFont *) NULL ; | |
21731 | void *argp1 = 0 ; | |
21732 | int res1 = 0 ; | |
21733 | bool temp2 = false ; | |
21734 | int temp3 ; | |
21735 | int res3 = SWIG_TMPOBJ ; | |
21736 | int temp4 ; | |
21737 | int res4 = SWIG_TMPOBJ ; | |
21738 | int temp5 ; | |
21739 | int res5 = SWIG_TMPOBJ ; | |
21740 | int temp6 ; | |
21741 | int res6 = SWIG_TMPOBJ ; | |
21742 | void *argp7 = 0 ; | |
21743 | int res7 = 0 ; | |
21744 | PyObject * obj0 = 0 ; | |
21745 | PyObject * obj1 = 0 ; | |
21746 | PyObject * obj2 = 0 ; | |
21747 | char * kwnames[] = { | |
21748 | (char *) "self",(char *) "string",(char *) "font", NULL | |
21749 | }; | |
21750 | ||
21751 | arg3 = &temp3; | |
21752 | arg4 = &temp4; | |
21753 | arg5 = &temp5; | |
21754 | arg6 = &temp6; | |
21755 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21756 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21757 | if (!SWIG_IsOK(res1)) { | |
21758 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21759 | } | |
21760 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21761 | { | |
21762 | arg2 = wxString_in_helper(obj1); | |
21763 | if (arg2 == NULL) SWIG_fail; | |
21764 | temp2 = true; | |
21765 | } | |
21766 | if (obj2) { | |
21767 | res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21768 | if (!SWIG_IsOK(res7)) { | |
21769 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'"); | |
093d3ff1 | 21770 | } |
554f62e9 RD |
21771 | arg7 = reinterpret_cast< wxFont * >(argp7); |
21772 | } | |
21773 | { | |
21774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21775 | (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7); | |
21776 | wxPyEndAllowThreads(__tstate); | |
21777 | if (PyErr_Occurred()) SWIG_fail; | |
21778 | } | |
21779 | resultobj = SWIG_Py_Void(); | |
21780 | if (SWIG_IsTmpObj(res3)) { | |
21781 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21782 | } else { | |
21783 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21784 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21785 | } | |
21786 | if (SWIG_IsTmpObj(res4)) { | |
21787 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21788 | } else { | |
21789 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21790 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21791 | } | |
21792 | if (SWIG_IsTmpObj(res5)) { | |
21793 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21794 | } else { | |
21795 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21796 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21797 | } | |
21798 | if (SWIG_IsTmpObj(res6)) { | |
21799 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6))); | |
21800 | } else { | |
21801 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21802 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags)); | |
21803 | } | |
21804 | { | |
21805 | if (temp2) | |
21806 | delete arg2; | |
21807 | } | |
21808 | return resultobj; | |
21809 | fail: | |
21810 | { | |
21811 | if (temp2) | |
21812 | delete arg2; | |
21813 | } | |
21814 | return NULL; | |
21815 | } | |
21816 | ||
21817 | ||
21818 | SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21819 | PyObject *resultobj = 0; | |
21820 | wxDC *arg1 = (wxDC *) 0 ; | |
21821 | wxString *arg2 = 0 ; | |
21822 | int *arg3 = (int *) 0 ; | |
21823 | int *arg4 = (int *) 0 ; | |
21824 | int *arg5 = (int *) 0 ; | |
21825 | wxFont *arg6 = (wxFont *) NULL ; | |
21826 | void *argp1 = 0 ; | |
21827 | int res1 = 0 ; | |
21828 | bool temp2 = false ; | |
21829 | int temp3 ; | |
21830 | int res3 = SWIG_TMPOBJ ; | |
21831 | int temp4 ; | |
21832 | int res4 = SWIG_TMPOBJ ; | |
21833 | int temp5 ; | |
21834 | int res5 = SWIG_TMPOBJ ; | |
21835 | void *argp6 = 0 ; | |
21836 | int res6 = 0 ; | |
21837 | PyObject * obj0 = 0 ; | |
21838 | PyObject * obj1 = 0 ; | |
21839 | PyObject * obj2 = 0 ; | |
21840 | char * kwnames[] = { | |
21841 | (char *) "self",(char *) "text",(char *) "font", NULL | |
21842 | }; | |
21843 | ||
21844 | arg3 = &temp3; | |
21845 | arg4 = &temp4; | |
21846 | arg5 = &temp5; | |
21847 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
21848 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21849 | if (!SWIG_IsOK(res1)) { | |
21850 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21851 | } | |
21852 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21853 | { | |
21854 | arg2 = wxString_in_helper(obj1); | |
21855 | if (arg2 == NULL) SWIG_fail; | |
21856 | temp2 = true; | |
21857 | } | |
21858 | if (obj2) { | |
21859 | res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 ); | |
21860 | if (!SWIG_IsOK(res6)) { | |
21861 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'"); | |
093d3ff1 | 21862 | } |
554f62e9 RD |
21863 | arg6 = reinterpret_cast< wxFont * >(argp6); |
21864 | } | |
21865 | { | |
21866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21867 | (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); | |
21868 | wxPyEndAllowThreads(__tstate); | |
21869 | if (PyErr_Occurred()) SWIG_fail; | |
21870 | } | |
21871 | resultobj = SWIG_Py_Void(); | |
21872 | if (SWIG_IsTmpObj(res3)) { | |
21873 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
21874 | } else { | |
21875 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21876 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
21877 | } | |
21878 | if (SWIG_IsTmpObj(res4)) { | |
21879 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
21880 | } else { | |
21881 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21882 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
21883 | } | |
21884 | if (SWIG_IsTmpObj(res5)) { | |
21885 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
21886 | } else { | |
21887 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
21888 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
21889 | } | |
21890 | { | |
21891 | if (temp2) | |
21892 | delete arg2; | |
21893 | } | |
21894 | return resultobj; | |
21895 | fail: | |
21896 | { | |
21897 | if (temp2) | |
21898 | delete arg2; | |
21899 | } | |
21900 | return NULL; | |
21901 | } | |
21902 | ||
21903 | ||
21904 | SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
21905 | PyObject *resultobj = 0; | |
21906 | wxDC *arg1 = (wxDC *) 0 ; | |
21907 | wxString *arg2 = 0 ; | |
21908 | wxArrayInt result; | |
21909 | void *argp1 = 0 ; | |
21910 | int res1 = 0 ; | |
21911 | bool temp2 = false ; | |
21912 | PyObject * obj0 = 0 ; | |
21913 | PyObject * obj1 = 0 ; | |
21914 | char * kwnames[] = { | |
21915 | (char *) "self",(char *) "text", NULL | |
21916 | }; | |
21917 | ||
21918 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; | |
21919 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21920 | if (!SWIG_IsOK(res1)) { | |
21921 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21922 | } | |
21923 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21924 | { | |
21925 | arg2 = wxString_in_helper(obj1); | |
21926 | if (arg2 == NULL) SWIG_fail; | |
21927 | temp2 = true; | |
21928 | } | |
21929 | { | |
21930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21931 | result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2); | |
21932 | wxPyEndAllowThreads(__tstate); | |
21933 | if (PyErr_Occurred()) SWIG_fail; | |
21934 | } | |
21935 | { | |
b39fe951 | 21936 | resultobj = wxArrayInt2PyList_helper(result); |
554f62e9 RD |
21937 | } |
21938 | { | |
21939 | if (temp2) | |
21940 | delete arg2; | |
21941 | } | |
21942 | return resultobj; | |
21943 | fail: | |
21944 | { | |
21945 | if (temp2) | |
21946 | delete arg2; | |
21947 | } | |
21948 | return NULL; | |
21949 | } | |
21950 | ||
21951 | ||
21952 | SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21953 | PyObject *resultobj = 0; | |
21954 | wxDC *arg1 = (wxDC *) 0 ; | |
21955 | wxSize result; | |
21956 | void *argp1 = 0 ; | |
21957 | int res1 = 0 ; | |
21958 | PyObject *swig_obj[1] ; | |
21959 | ||
21960 | if (!args) SWIG_fail; | |
21961 | swig_obj[0] = args; | |
21962 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21963 | if (!SWIG_IsOK(res1)) { | |
21964 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'"); | |
21965 | } | |
21966 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
21967 | { | |
21968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21969 | result = (arg1)->GetSize(); | |
21970 | wxPyEndAllowThreads(__tstate); | |
21971 | if (PyErr_Occurred()) SWIG_fail; | |
21972 | } | |
21973 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
21974 | return resultobj; | |
21975 | fail: | |
21976 | return NULL; | |
21977 | } | |
21978 | ||
21979 | ||
21980 | SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
21981 | PyObject *resultobj = 0; | |
21982 | wxDC *arg1 = (wxDC *) 0 ; | |
21983 | int *arg2 = (int *) 0 ; | |
21984 | int *arg3 = (int *) 0 ; | |
21985 | void *argp1 = 0 ; | |
21986 | int res1 = 0 ; | |
21987 | int temp2 ; | |
21988 | int res2 = SWIG_TMPOBJ ; | |
21989 | int temp3 ; | |
21990 | int res3 = SWIG_TMPOBJ ; | |
21991 | PyObject *swig_obj[1] ; | |
21992 | ||
21993 | arg2 = &temp2; | |
21994 | arg3 = &temp3; | |
21995 | if (!args) SWIG_fail; | |
21996 | swig_obj[0] = args; | |
21997 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
21998 | if (!SWIG_IsOK(res1)) { | |
21999 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22000 | } | |
22001 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22002 | { | |
22003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22004 | (arg1)->GetSize(arg2,arg3); | |
22005 | wxPyEndAllowThreads(__tstate); | |
22006 | if (PyErr_Occurred()) SWIG_fail; | |
22007 | } | |
22008 | resultobj = SWIG_Py_Void(); | |
22009 | if (SWIG_IsTmpObj(res2)) { | |
22010 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22011 | } else { | |
22012 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22013 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22014 | } | |
22015 | if (SWIG_IsTmpObj(res3)) { | |
22016 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22017 | } else { | |
22018 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22019 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22020 | } | |
22021 | return resultobj; | |
22022 | fail: | |
22023 | return NULL; | |
22024 | } | |
22025 | ||
22026 | ||
22027 | SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22028 | PyObject *resultobj = 0; | |
22029 | wxDC *arg1 = (wxDC *) 0 ; | |
22030 | wxSize result; | |
22031 | void *argp1 = 0 ; | |
22032 | int res1 = 0 ; | |
22033 | PyObject *swig_obj[1] ; | |
22034 | ||
22035 | if (!args) SWIG_fail; | |
22036 | swig_obj[0] = args; | |
22037 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22038 | if (!SWIG_IsOK(res1)) { | |
22039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22040 | } | |
22041 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22042 | { | |
22043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22044 | result = ((wxDC const *)arg1)->GetSizeMM(); | |
22045 | wxPyEndAllowThreads(__tstate); | |
22046 | if (PyErr_Occurred()) SWIG_fail; | |
22047 | } | |
22048 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22049 | return resultobj; | |
22050 | fail: | |
22051 | return NULL; | |
22052 | } | |
22053 | ||
22054 | ||
22055 | SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22056 | PyObject *resultobj = 0; | |
22057 | wxDC *arg1 = (wxDC *) 0 ; | |
22058 | int *arg2 = (int *) 0 ; | |
22059 | int *arg3 = (int *) 0 ; | |
22060 | void *argp1 = 0 ; | |
22061 | int res1 = 0 ; | |
22062 | int temp2 ; | |
22063 | int res2 = SWIG_TMPOBJ ; | |
22064 | int temp3 ; | |
22065 | int res3 = SWIG_TMPOBJ ; | |
22066 | PyObject *swig_obj[1] ; | |
22067 | ||
22068 | arg2 = &temp2; | |
22069 | arg3 = &temp3; | |
22070 | if (!args) SWIG_fail; | |
22071 | swig_obj[0] = args; | |
22072 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22073 | if (!SWIG_IsOK(res1)) { | |
22074 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22075 | } | |
22076 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22077 | { | |
22078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22079 | ((wxDC const *)arg1)->GetSizeMM(arg2,arg3); | |
22080 | wxPyEndAllowThreads(__tstate); | |
22081 | if (PyErr_Occurred()) SWIG_fail; | |
22082 | } | |
22083 | resultobj = SWIG_Py_Void(); | |
22084 | if (SWIG_IsTmpObj(res2)) { | |
22085 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
22086 | } else { | |
22087 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22088 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
22089 | } | |
22090 | if (SWIG_IsTmpObj(res3)) { | |
22091 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
22092 | } else { | |
22093 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22094 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
22095 | } | |
22096 | return resultobj; | |
22097 | fail: | |
22098 | return NULL; | |
22099 | } | |
22100 | ||
22101 | ||
22102 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22103 | PyObject *resultobj = 0; | |
22104 | wxDC *arg1 = (wxDC *) 0 ; | |
22105 | int arg2 ; | |
22106 | int result; | |
22107 | void *argp1 = 0 ; | |
22108 | int res1 = 0 ; | |
22109 | int val2 ; | |
22110 | int ecode2 = 0 ; | |
22111 | PyObject * obj0 = 0 ; | |
22112 | PyObject * obj1 = 0 ; | |
22113 | char * kwnames[] = { | |
22114 | (char *) "self",(char *) "x", NULL | |
22115 | }; | |
22116 | ||
22117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail; | |
22118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22119 | if (!SWIG_IsOK(res1)) { | |
22120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22121 | } | |
22122 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22123 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22124 | if (!SWIG_IsOK(ecode2)) { | |
22125 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'"); | |
22126 | } | |
22127 | arg2 = static_cast< int >(val2); | |
22128 | { | |
22129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22130 | result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2); | |
22131 | wxPyEndAllowThreads(__tstate); | |
22132 | if (PyErr_Occurred()) SWIG_fail; | |
22133 | } | |
22134 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22135 | return resultobj; | |
22136 | fail: | |
22137 | return NULL; | |
22138 | } | |
22139 | ||
22140 | ||
22141 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22142 | PyObject *resultobj = 0; | |
22143 | wxDC *arg1 = (wxDC *) 0 ; | |
22144 | int arg2 ; | |
22145 | int result; | |
22146 | void *argp1 = 0 ; | |
22147 | int res1 = 0 ; | |
22148 | int val2 ; | |
22149 | int ecode2 = 0 ; | |
22150 | PyObject * obj0 = 0 ; | |
22151 | PyObject * obj1 = 0 ; | |
22152 | char * kwnames[] = { | |
22153 | (char *) "self",(char *) "y", NULL | |
22154 | }; | |
22155 | ||
22156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail; | |
22157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22158 | if (!SWIG_IsOK(res1)) { | |
22159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22160 | } | |
22161 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22162 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22163 | if (!SWIG_IsOK(ecode2)) { | |
22164 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'"); | |
22165 | } | |
22166 | arg2 = static_cast< int >(val2); | |
22167 | { | |
22168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22169 | result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2); | |
22170 | wxPyEndAllowThreads(__tstate); | |
22171 | if (PyErr_Occurred()) SWIG_fail; | |
22172 | } | |
22173 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22174 | return resultobj; | |
22175 | fail: | |
22176 | return NULL; | |
22177 | } | |
22178 | ||
22179 | ||
22180 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22181 | PyObject *resultobj = 0; | |
22182 | wxDC *arg1 = (wxDC *) 0 ; | |
22183 | int arg2 ; | |
22184 | int result; | |
22185 | void *argp1 = 0 ; | |
22186 | int res1 = 0 ; | |
22187 | int val2 ; | |
22188 | int ecode2 = 0 ; | |
22189 | PyObject * obj0 = 0 ; | |
22190 | PyObject * obj1 = 0 ; | |
22191 | char * kwnames[] = { | |
22192 | (char *) "self",(char *) "x", NULL | |
22193 | }; | |
22194 | ||
22195 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22196 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22197 | if (!SWIG_IsOK(res1)) { | |
22198 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22199 | } | |
22200 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22201 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22202 | if (!SWIG_IsOK(ecode2)) { | |
22203 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'"); | |
22204 | } | |
22205 | arg2 = static_cast< int >(val2); | |
22206 | { | |
22207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22208 | result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2); | |
22209 | wxPyEndAllowThreads(__tstate); | |
22210 | if (PyErr_Occurred()) SWIG_fail; | |
22211 | } | |
22212 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22213 | return resultobj; | |
22214 | fail: | |
22215 | return NULL; | |
22216 | } | |
22217 | ||
22218 | ||
22219 | SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22220 | PyObject *resultobj = 0; | |
22221 | wxDC *arg1 = (wxDC *) 0 ; | |
22222 | int arg2 ; | |
22223 | int result; | |
22224 | void *argp1 = 0 ; | |
22225 | int res1 = 0 ; | |
22226 | int val2 ; | |
22227 | int ecode2 = 0 ; | |
22228 | PyObject * obj0 = 0 ; | |
22229 | PyObject * obj1 = 0 ; | |
22230 | char * kwnames[] = { | |
22231 | (char *) "self",(char *) "y", NULL | |
22232 | }; | |
22233 | ||
22234 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22235 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22236 | if (!SWIG_IsOK(res1)) { | |
22237 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22238 | } | |
22239 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22240 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22241 | if (!SWIG_IsOK(ecode2)) { | |
22242 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'"); | |
22243 | } | |
22244 | arg2 = static_cast< int >(val2); | |
22245 | { | |
22246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22247 | result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2); | |
22248 | wxPyEndAllowThreads(__tstate); | |
22249 | if (PyErr_Occurred()) SWIG_fail; | |
22250 | } | |
22251 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22252 | return resultobj; | |
22253 | fail: | |
22254 | return NULL; | |
22255 | } | |
22256 | ||
22257 | ||
22258 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22259 | PyObject *resultobj = 0; | |
22260 | wxDC *arg1 = (wxDC *) 0 ; | |
22261 | int arg2 ; | |
22262 | int result; | |
22263 | void *argp1 = 0 ; | |
22264 | int res1 = 0 ; | |
22265 | int val2 ; | |
22266 | int ecode2 = 0 ; | |
22267 | PyObject * obj0 = 0 ; | |
22268 | PyObject * obj1 = 0 ; | |
22269 | char * kwnames[] = { | |
22270 | (char *) "self",(char *) "x", NULL | |
22271 | }; | |
22272 | ||
22273 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail; | |
22274 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22275 | if (!SWIG_IsOK(res1)) { | |
22276 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22277 | } | |
22278 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22279 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22280 | if (!SWIG_IsOK(ecode2)) { | |
22281 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'"); | |
22282 | } | |
22283 | arg2 = static_cast< int >(val2); | |
22284 | { | |
22285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22286 | result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2); | |
22287 | wxPyEndAllowThreads(__tstate); | |
22288 | if (PyErr_Occurred()) SWIG_fail; | |
22289 | } | |
22290 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22291 | return resultobj; | |
22292 | fail: | |
22293 | return NULL; | |
22294 | } | |
22295 | ||
22296 | ||
22297 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22298 | PyObject *resultobj = 0; | |
22299 | wxDC *arg1 = (wxDC *) 0 ; | |
22300 | int arg2 ; | |
22301 | int result; | |
22302 | void *argp1 = 0 ; | |
22303 | int res1 = 0 ; | |
22304 | int val2 ; | |
22305 | int ecode2 = 0 ; | |
22306 | PyObject * obj0 = 0 ; | |
22307 | PyObject * obj1 = 0 ; | |
22308 | char * kwnames[] = { | |
22309 | (char *) "self",(char *) "y", NULL | |
22310 | }; | |
22311 | ||
22312 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail; | |
22313 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22314 | if (!SWIG_IsOK(res1)) { | |
22315 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22316 | } | |
22317 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22318 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22319 | if (!SWIG_IsOK(ecode2)) { | |
22320 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'"); | |
22321 | } | |
22322 | arg2 = static_cast< int >(val2); | |
22323 | { | |
22324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22325 | result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2); | |
22326 | wxPyEndAllowThreads(__tstate); | |
22327 | if (PyErr_Occurred()) SWIG_fail; | |
22328 | } | |
22329 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22330 | return resultobj; | |
22331 | fail: | |
22332 | return NULL; | |
22333 | } | |
22334 | ||
22335 | ||
22336 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22337 | PyObject *resultobj = 0; | |
22338 | wxDC *arg1 = (wxDC *) 0 ; | |
22339 | int arg2 ; | |
22340 | int result; | |
22341 | void *argp1 = 0 ; | |
22342 | int res1 = 0 ; | |
22343 | int val2 ; | |
22344 | int ecode2 = 0 ; | |
22345 | PyObject * obj0 = 0 ; | |
22346 | PyObject * obj1 = 0 ; | |
22347 | char * kwnames[] = { | |
22348 | (char *) "self",(char *) "x", NULL | |
22349 | }; | |
22350 | ||
22351 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22352 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22353 | if (!SWIG_IsOK(res1)) { | |
22354 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22355 | } | |
22356 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22357 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22358 | if (!SWIG_IsOK(ecode2)) { | |
22359 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'"); | |
22360 | } | |
22361 | arg2 = static_cast< int >(val2); | |
22362 | { | |
22363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22364 | result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2); | |
22365 | wxPyEndAllowThreads(__tstate); | |
22366 | if (PyErr_Occurred()) SWIG_fail; | |
22367 | } | |
22368 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22369 | return resultobj; | |
22370 | fail: | |
22371 | return NULL; | |
22372 | } | |
22373 | ||
22374 | ||
22375 | SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22376 | PyObject *resultobj = 0; | |
22377 | wxDC *arg1 = (wxDC *) 0 ; | |
22378 | int arg2 ; | |
22379 | int result; | |
22380 | void *argp1 = 0 ; | |
22381 | int res1 = 0 ; | |
22382 | int val2 ; | |
22383 | int ecode2 = 0 ; | |
22384 | PyObject * obj0 = 0 ; | |
22385 | PyObject * obj1 = 0 ; | |
22386 | char * kwnames[] = { | |
22387 | (char *) "self",(char *) "y", NULL | |
22388 | }; | |
22389 | ||
22390 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail; | |
22391 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22392 | if (!SWIG_IsOK(res1)) { | |
22393 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22394 | } | |
22395 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22396 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22397 | if (!SWIG_IsOK(ecode2)) { | |
22398 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'"); | |
22399 | } | |
22400 | arg2 = static_cast< int >(val2); | |
22401 | { | |
22402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22403 | result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2); | |
22404 | wxPyEndAllowThreads(__tstate); | |
22405 | if (PyErr_Occurred()) SWIG_fail; | |
22406 | } | |
22407 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22408 | return resultobj; | |
22409 | fail: | |
22410 | return NULL; | |
22411 | } | |
22412 | ||
22413 | ||
22414 | SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22415 | PyObject *resultobj = 0; | |
22416 | wxDC *arg1 = (wxDC *) 0 ; | |
22417 | bool result; | |
22418 | void *argp1 = 0 ; | |
22419 | int res1 = 0 ; | |
22420 | PyObject *swig_obj[1] ; | |
22421 | ||
22422 | if (!args) SWIG_fail; | |
22423 | swig_obj[0] = args; | |
22424 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22425 | if (!SWIG_IsOK(res1)) { | |
22426 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22427 | } | |
22428 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22429 | { | |
22430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22431 | result = (bool)((wxDC const *)arg1)->CanDrawBitmap(); | |
22432 | wxPyEndAllowThreads(__tstate); | |
22433 | if (PyErr_Occurred()) SWIG_fail; | |
22434 | } | |
22435 | { | |
22436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22437 | } | |
22438 | return resultobj; | |
22439 | fail: | |
22440 | return NULL; | |
22441 | } | |
22442 | ||
22443 | ||
22444 | SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22445 | PyObject *resultobj = 0; | |
22446 | wxDC *arg1 = (wxDC *) 0 ; | |
22447 | bool result; | |
22448 | void *argp1 = 0 ; | |
22449 | int res1 = 0 ; | |
22450 | PyObject *swig_obj[1] ; | |
22451 | ||
22452 | if (!args) SWIG_fail; | |
22453 | swig_obj[0] = args; | |
22454 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22455 | if (!SWIG_IsOK(res1)) { | |
22456 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22457 | } | |
22458 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22459 | { | |
22460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22461 | result = (bool)((wxDC const *)arg1)->CanGetTextExtent(); | |
22462 | wxPyEndAllowThreads(__tstate); | |
22463 | if (PyErr_Occurred()) SWIG_fail; | |
22464 | } | |
22465 | { | |
22466 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22467 | } | |
22468 | return resultobj; | |
22469 | fail: | |
22470 | return NULL; | |
22471 | } | |
22472 | ||
22473 | ||
22474 | SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22475 | PyObject *resultobj = 0; | |
22476 | wxDC *arg1 = (wxDC *) 0 ; | |
22477 | int result; | |
22478 | void *argp1 = 0 ; | |
22479 | int res1 = 0 ; | |
22480 | PyObject *swig_obj[1] ; | |
22481 | ||
22482 | if (!args) SWIG_fail; | |
22483 | swig_obj[0] = args; | |
22484 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22485 | if (!SWIG_IsOK(res1)) { | |
22486 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22487 | } | |
22488 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22489 | { | |
22490 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22491 | result = (int)((wxDC const *)arg1)->GetDepth(); | |
22492 | wxPyEndAllowThreads(__tstate); | |
22493 | if (PyErr_Occurred()) SWIG_fail; | |
22494 | } | |
22495 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22496 | return resultobj; | |
22497 | fail: | |
22498 | return NULL; | |
22499 | } | |
22500 | ||
22501 | ||
22502 | SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22503 | PyObject *resultobj = 0; | |
22504 | wxDC *arg1 = (wxDC *) 0 ; | |
22505 | wxSize result; | |
22506 | void *argp1 = 0 ; | |
22507 | int res1 = 0 ; | |
22508 | PyObject *swig_obj[1] ; | |
22509 | ||
22510 | if (!args) SWIG_fail; | |
22511 | swig_obj[0] = args; | |
22512 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22513 | if (!SWIG_IsOK(res1)) { | |
22514 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22515 | } | |
22516 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22517 | { | |
22518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22519 | result = ((wxDC const *)arg1)->GetPPI(); | |
22520 | wxPyEndAllowThreads(__tstate); | |
22521 | if (PyErr_Occurred()) SWIG_fail; | |
22522 | } | |
22523 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
22524 | return resultobj; | |
22525 | fail: | |
22526 | return NULL; | |
22527 | } | |
22528 | ||
22529 | ||
b39fe951 | 22530 | SWIGINTERN PyObject *_wrap_DC_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
22531 | PyObject *resultobj = 0; |
22532 | wxDC *arg1 = (wxDC *) 0 ; | |
22533 | bool result; | |
22534 | void *argp1 = 0 ; | |
22535 | int res1 = 0 ; | |
22536 | PyObject *swig_obj[1] ; | |
22537 | ||
22538 | if (!args) SWIG_fail; | |
22539 | swig_obj[0] = args; | |
22540 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22541 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 22542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_IsOk" "', expected argument " "1"" of type '" "wxDC const *""'"); |
554f62e9 RD |
22543 | } |
22544 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22545 | { | |
22546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 22547 | result = (bool)((wxDC const *)arg1)->IsOk(); |
554f62e9 RD |
22548 | wxPyEndAllowThreads(__tstate); |
22549 | if (PyErr_Occurred()) SWIG_fail; | |
22550 | } | |
22551 | { | |
22552 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22553 | } | |
22554 | return resultobj; | |
22555 | fail: | |
22556 | return NULL; | |
22557 | } | |
22558 | ||
22559 | ||
22560 | SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22561 | PyObject *resultobj = 0; | |
22562 | wxDC *arg1 = (wxDC *) 0 ; | |
22563 | int result; | |
22564 | void *argp1 = 0 ; | |
22565 | int res1 = 0 ; | |
22566 | PyObject *swig_obj[1] ; | |
22567 | ||
22568 | if (!args) SWIG_fail; | |
22569 | swig_obj[0] = args; | |
22570 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22571 | if (!SWIG_IsOK(res1)) { | |
22572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22573 | } | |
22574 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22575 | { | |
22576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22577 | result = (int)((wxDC const *)arg1)->GetBackgroundMode(); | |
22578 | wxPyEndAllowThreads(__tstate); | |
22579 | if (PyErr_Occurred()) SWIG_fail; | |
22580 | } | |
22581 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22582 | return resultobj; | |
22583 | fail: | |
22584 | return NULL; | |
22585 | } | |
22586 | ||
22587 | ||
22588 | SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22589 | PyObject *resultobj = 0; | |
22590 | wxDC *arg1 = (wxDC *) 0 ; | |
22591 | wxBrush *result = 0 ; | |
22592 | void *argp1 = 0 ; | |
22593 | int res1 = 0 ; | |
22594 | PyObject *swig_obj[1] ; | |
22595 | ||
22596 | if (!args) SWIG_fail; | |
22597 | swig_obj[0] = args; | |
22598 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22599 | if (!SWIG_IsOK(res1)) { | |
22600 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22601 | } | |
22602 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22603 | { | |
22604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22605 | { |
554f62e9 RD |
22606 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground(); |
22607 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 22608 | } |
554f62e9 RD |
22609 | wxPyEndAllowThreads(__tstate); |
22610 | if (PyErr_Occurred()) SWIG_fail; | |
22611 | } | |
22612 | { | |
22613 | wxBrush* resultptr = new wxBrush(*result); | |
22614 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
22615 | } | |
22616 | return resultobj; | |
22617 | fail: | |
22618 | return NULL; | |
22619 | } | |
22620 | ||
22621 | ||
22622 | SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22623 | PyObject *resultobj = 0; | |
22624 | wxDC *arg1 = (wxDC *) 0 ; | |
22625 | wxBrush *result = 0 ; | |
22626 | void *argp1 = 0 ; | |
22627 | int res1 = 0 ; | |
22628 | PyObject *swig_obj[1] ; | |
22629 | ||
22630 | if (!args) SWIG_fail; | |
22631 | swig_obj[0] = args; | |
22632 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22633 | if (!SWIG_IsOK(res1)) { | |
22634 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22635 | } | |
22636 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22637 | { | |
22638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22639 | { |
554f62e9 RD |
22640 | wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush(); |
22641 | result = (wxBrush *) &_result_ref; | |
093d3ff1 | 22642 | } |
554f62e9 RD |
22643 | wxPyEndAllowThreads(__tstate); |
22644 | if (PyErr_Occurred()) SWIG_fail; | |
22645 | } | |
22646 | { | |
22647 | wxBrush* resultptr = new wxBrush(*result); | |
22648 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1); | |
22649 | } | |
22650 | return resultobj; | |
22651 | fail: | |
22652 | return NULL; | |
22653 | } | |
22654 | ||
22655 | ||
22656 | SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22657 | PyObject *resultobj = 0; | |
22658 | wxDC *arg1 = (wxDC *) 0 ; | |
22659 | wxFont *result = 0 ; | |
22660 | void *argp1 = 0 ; | |
22661 | int res1 = 0 ; | |
22662 | PyObject *swig_obj[1] ; | |
22663 | ||
22664 | if (!args) SWIG_fail; | |
22665 | swig_obj[0] = args; | |
22666 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22667 | if (!SWIG_IsOK(res1)) { | |
22668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22669 | } | |
22670 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22671 | { | |
22672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22673 | { |
554f62e9 RD |
22674 | wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont(); |
22675 | result = (wxFont *) &_result_ref; | |
093d3ff1 | 22676 | } |
554f62e9 RD |
22677 | wxPyEndAllowThreads(__tstate); |
22678 | if (PyErr_Occurred()) SWIG_fail; | |
22679 | } | |
22680 | { | |
22681 | wxFont* resultptr = new wxFont(*result); | |
22682 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
22683 | } | |
22684 | return resultobj; | |
22685 | fail: | |
22686 | return NULL; | |
22687 | } | |
22688 | ||
22689 | ||
22690 | SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22691 | PyObject *resultobj = 0; | |
22692 | wxDC *arg1 = (wxDC *) 0 ; | |
22693 | wxPen *result = 0 ; | |
22694 | void *argp1 = 0 ; | |
22695 | int res1 = 0 ; | |
22696 | PyObject *swig_obj[1] ; | |
22697 | ||
22698 | if (!args) SWIG_fail; | |
22699 | swig_obj[0] = args; | |
22700 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22701 | if (!SWIG_IsOK(res1)) { | |
22702 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22703 | } | |
22704 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22705 | { | |
22706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22707 | { |
554f62e9 RD |
22708 | wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen(); |
22709 | result = (wxPen *) &_result_ref; | |
093d3ff1 | 22710 | } |
554f62e9 RD |
22711 | wxPyEndAllowThreads(__tstate); |
22712 | if (PyErr_Occurred()) SWIG_fail; | |
22713 | } | |
22714 | { | |
22715 | wxPen* resultptr = new wxPen(*result); | |
22716 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1); | |
22717 | } | |
22718 | return resultobj; | |
22719 | fail: | |
22720 | return NULL; | |
22721 | } | |
22722 | ||
22723 | ||
22724 | SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22725 | PyObject *resultobj = 0; | |
22726 | wxDC *arg1 = (wxDC *) 0 ; | |
22727 | wxColour *result = 0 ; | |
22728 | void *argp1 = 0 ; | |
22729 | int res1 = 0 ; | |
22730 | PyObject *swig_obj[1] ; | |
22731 | ||
22732 | if (!args) SWIG_fail; | |
22733 | swig_obj[0] = args; | |
22734 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22735 | if (!SWIG_IsOK(res1)) { | |
22736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22737 | } | |
22738 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22739 | { | |
22740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22741 | { |
554f62e9 RD |
22742 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground(); |
22743 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22744 | } |
554f62e9 RD |
22745 | wxPyEndAllowThreads(__tstate); |
22746 | if (PyErr_Occurred()) SWIG_fail; | |
22747 | } | |
22748 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22749 | return resultobj; | |
22750 | fail: | |
22751 | return NULL; | |
22752 | } | |
22753 | ||
22754 | ||
22755 | SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22756 | PyObject *resultobj = 0; | |
22757 | wxDC *arg1 = (wxDC *) 0 ; | |
22758 | wxColour *result = 0 ; | |
22759 | void *argp1 = 0 ; | |
22760 | int res1 = 0 ; | |
22761 | PyObject *swig_obj[1] ; | |
22762 | ||
22763 | if (!args) SWIG_fail; | |
22764 | swig_obj[0] = args; | |
22765 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22766 | if (!SWIG_IsOK(res1)) { | |
22767 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22768 | } | |
22769 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22770 | { | |
22771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 22772 | { |
554f62e9 RD |
22773 | wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground(); |
22774 | result = (wxColour *) &_result_ref; | |
093d3ff1 | 22775 | } |
554f62e9 RD |
22776 | wxPyEndAllowThreads(__tstate); |
22777 | if (PyErr_Occurred()) SWIG_fail; | |
22778 | } | |
22779 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
22780 | return resultobj; | |
22781 | fail: | |
22782 | return NULL; | |
22783 | } | |
22784 | ||
22785 | ||
22786 | SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22787 | PyObject *resultobj = 0; | |
22788 | wxDC *arg1 = (wxDC *) 0 ; | |
22789 | wxColour *arg2 = 0 ; | |
22790 | void *argp1 = 0 ; | |
22791 | int res1 = 0 ; | |
22792 | wxColour temp2 ; | |
22793 | PyObject * obj0 = 0 ; | |
22794 | PyObject * obj1 = 0 ; | |
22795 | char * kwnames[] = { | |
22796 | (char *) "self",(char *) "colour", NULL | |
22797 | }; | |
22798 | ||
22799 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22800 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22801 | if (!SWIG_IsOK(res1)) { | |
22802 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22803 | } | |
22804 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22805 | { | |
22806 | arg2 = &temp2; | |
22807 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22808 | } | |
22809 | { | |
22810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22811 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
22812 | wxPyEndAllowThreads(__tstate); | |
22813 | if (PyErr_Occurred()) SWIG_fail; | |
22814 | } | |
22815 | resultobj = SWIG_Py_Void(); | |
22816 | return resultobj; | |
22817 | fail: | |
22818 | return NULL; | |
22819 | } | |
22820 | ||
22821 | ||
22822 | SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22823 | PyObject *resultobj = 0; | |
22824 | wxDC *arg1 = (wxDC *) 0 ; | |
22825 | wxColour *arg2 = 0 ; | |
22826 | void *argp1 = 0 ; | |
22827 | int res1 = 0 ; | |
22828 | wxColour temp2 ; | |
22829 | PyObject * obj0 = 0 ; | |
22830 | PyObject * obj1 = 0 ; | |
22831 | char * kwnames[] = { | |
22832 | (char *) "self",(char *) "colour", NULL | |
22833 | }; | |
22834 | ||
22835 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
22836 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22837 | if (!SWIG_IsOK(res1)) { | |
22838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22839 | } | |
22840 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22841 | { | |
22842 | arg2 = &temp2; | |
22843 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22844 | } | |
22845 | { | |
22846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22847 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
22848 | wxPyEndAllowThreads(__tstate); | |
22849 | if (PyErr_Occurred()) SWIG_fail; | |
22850 | } | |
22851 | resultobj = SWIG_Py_Void(); | |
22852 | return resultobj; | |
22853 | fail: | |
22854 | return NULL; | |
22855 | } | |
22856 | ||
22857 | ||
22858 | SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22859 | PyObject *resultobj = 0; | |
22860 | wxDC *arg1 = (wxDC *) 0 ; | |
22861 | int result; | |
22862 | void *argp1 = 0 ; | |
22863 | int res1 = 0 ; | |
22864 | PyObject *swig_obj[1] ; | |
22865 | ||
22866 | if (!args) SWIG_fail; | |
22867 | swig_obj[0] = args; | |
22868 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22869 | if (!SWIG_IsOK(res1)) { | |
22870 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22871 | } | |
22872 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22873 | { | |
22874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22875 | result = (int)((wxDC const *)arg1)->GetMapMode(); | |
22876 | wxPyEndAllowThreads(__tstate); | |
22877 | if (PyErr_Occurred()) SWIG_fail; | |
22878 | } | |
22879 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
22880 | return resultobj; | |
22881 | fail: | |
22882 | return NULL; | |
22883 | } | |
22884 | ||
22885 | ||
22886 | SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22887 | PyObject *resultobj = 0; | |
22888 | wxDC *arg1 = (wxDC *) 0 ; | |
22889 | int arg2 ; | |
22890 | void *argp1 = 0 ; | |
22891 | int res1 = 0 ; | |
22892 | int val2 ; | |
22893 | int ecode2 = 0 ; | |
22894 | PyObject * obj0 = 0 ; | |
22895 | PyObject * obj1 = 0 ; | |
22896 | char * kwnames[] = { | |
22897 | (char *) "self",(char *) "mode", NULL | |
22898 | }; | |
22899 | ||
22900 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
22901 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22902 | if (!SWIG_IsOK(res1)) { | |
22903 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22904 | } | |
22905 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22906 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
22907 | if (!SWIG_IsOK(ecode2)) { | |
22908 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'"); | |
22909 | } | |
22910 | arg2 = static_cast< int >(val2); | |
22911 | { | |
22912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22913 | (arg1)->SetMapMode(arg2); | |
22914 | wxPyEndAllowThreads(__tstate); | |
22915 | if (PyErr_Occurred()) SWIG_fail; | |
22916 | } | |
22917 | resultobj = SWIG_Py_Void(); | |
22918 | return resultobj; | |
22919 | fail: | |
22920 | return NULL; | |
22921 | } | |
22922 | ||
22923 | ||
22924 | SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
22925 | PyObject *resultobj = 0; | |
22926 | wxDC *arg1 = (wxDC *) 0 ; | |
22927 | double *arg2 = (double *) 0 ; | |
22928 | double *arg3 = (double *) 0 ; | |
22929 | void *argp1 = 0 ; | |
22930 | int res1 = 0 ; | |
22931 | double temp2 ; | |
22932 | int res2 = SWIG_TMPOBJ ; | |
22933 | double temp3 ; | |
22934 | int res3 = SWIG_TMPOBJ ; | |
22935 | PyObject *swig_obj[1] ; | |
22936 | ||
22937 | arg2 = &temp2; | |
22938 | arg3 = &temp3; | |
22939 | if (!args) SWIG_fail; | |
22940 | swig_obj[0] = args; | |
22941 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22942 | if (!SWIG_IsOK(res1)) { | |
22943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
22944 | } | |
22945 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22946 | { | |
22947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22948 | ((wxDC const *)arg1)->GetUserScale(arg2,arg3); | |
22949 | wxPyEndAllowThreads(__tstate); | |
22950 | if (PyErr_Occurred()) SWIG_fail; | |
22951 | } | |
22952 | resultobj = SWIG_Py_Void(); | |
22953 | if (SWIG_IsTmpObj(res2)) { | |
22954 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
22955 | } else { | |
22956 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22957 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
22958 | } | |
22959 | if (SWIG_IsTmpObj(res3)) { | |
22960 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
22961 | } else { | |
22962 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
22963 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
22964 | } | |
22965 | return resultobj; | |
22966 | fail: | |
22967 | return NULL; | |
22968 | } | |
22969 | ||
22970 | ||
22971 | SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
22972 | PyObject *resultobj = 0; | |
22973 | wxDC *arg1 = (wxDC *) 0 ; | |
22974 | double arg2 ; | |
22975 | double arg3 ; | |
22976 | void *argp1 = 0 ; | |
22977 | int res1 = 0 ; | |
22978 | double val2 ; | |
22979 | int ecode2 = 0 ; | |
22980 | double val3 ; | |
22981 | int ecode3 = 0 ; | |
22982 | PyObject * obj0 = 0 ; | |
22983 | PyObject * obj1 = 0 ; | |
22984 | PyObject * obj2 = 0 ; | |
22985 | char * kwnames[] = { | |
22986 | (char *) "self",(char *) "x",(char *) "y", NULL | |
22987 | }; | |
22988 | ||
22989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
22990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
22991 | if (!SWIG_IsOK(res1)) { | |
22992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
22993 | } | |
22994 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
22995 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
22996 | if (!SWIG_IsOK(ecode2)) { | |
22997 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'"); | |
22998 | } | |
22999 | arg2 = static_cast< double >(val2); | |
23000 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
23001 | if (!SWIG_IsOK(ecode3)) { | |
23002 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'"); | |
23003 | } | |
23004 | arg3 = static_cast< double >(val3); | |
23005 | { | |
23006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23007 | (arg1)->SetUserScale(arg2,arg3); | |
23008 | wxPyEndAllowThreads(__tstate); | |
23009 | if (PyErr_Occurred()) SWIG_fail; | |
23010 | } | |
23011 | resultobj = SWIG_Py_Void(); | |
23012 | return resultobj; | |
23013 | fail: | |
23014 | return NULL; | |
23015 | } | |
23016 | ||
23017 | ||
23018 | SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23019 | PyObject *resultobj = 0; | |
23020 | wxDC *arg1 = (wxDC *) 0 ; | |
23021 | double *arg2 = (double *) 0 ; | |
23022 | double *arg3 = (double *) 0 ; | |
23023 | void *argp1 = 0 ; | |
23024 | int res1 = 0 ; | |
23025 | double temp2 ; | |
23026 | int res2 = SWIG_TMPOBJ ; | |
23027 | double temp3 ; | |
23028 | int res3 = SWIG_TMPOBJ ; | |
23029 | PyObject *swig_obj[1] ; | |
23030 | ||
23031 | arg2 = &temp2; | |
23032 | arg3 = &temp3; | |
23033 | if (!args) SWIG_fail; | |
23034 | swig_obj[0] = args; | |
23035 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23036 | if (!SWIG_IsOK(res1)) { | |
23037 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23038 | } | |
23039 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23040 | { | |
23041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23042 | (arg1)->GetLogicalScale(arg2,arg3); | |
23043 | wxPyEndAllowThreads(__tstate); | |
23044 | if (PyErr_Occurred()) SWIG_fail; | |
23045 | } | |
23046 | resultobj = SWIG_Py_Void(); | |
23047 | if (SWIG_IsTmpObj(res2)) { | |
23048 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
23049 | } else { | |
23050 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23051 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
23052 | } | |
23053 | if (SWIG_IsTmpObj(res3)) { | |
23054 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
23055 | } else { | |
23056 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23057 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
23058 | } | |
23059 | return resultobj; | |
23060 | fail: | |
23061 | return NULL; | |
23062 | } | |
23063 | ||
23064 | ||
23065 | SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23066 | PyObject *resultobj = 0; | |
23067 | wxDC *arg1 = (wxDC *) 0 ; | |
23068 | double arg2 ; | |
23069 | double arg3 ; | |
23070 | void *argp1 = 0 ; | |
23071 | int res1 = 0 ; | |
23072 | double val2 ; | |
23073 | int ecode2 = 0 ; | |
23074 | double val3 ; | |
23075 | int ecode3 = 0 ; | |
23076 | PyObject * obj0 = 0 ; | |
23077 | PyObject * obj1 = 0 ; | |
23078 | PyObject * obj2 = 0 ; | |
23079 | char * kwnames[] = { | |
23080 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23081 | }; | |
23082 | ||
23083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23085 | if (!SWIG_IsOK(res1)) { | |
23086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23087 | } | |
23088 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23089 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
23090 | if (!SWIG_IsOK(ecode2)) { | |
23091 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'"); | |
23092 | } | |
23093 | arg2 = static_cast< double >(val2); | |
23094 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
23095 | if (!SWIG_IsOK(ecode3)) { | |
23096 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'"); | |
23097 | } | |
23098 | arg3 = static_cast< double >(val3); | |
23099 | { | |
23100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23101 | (arg1)->SetLogicalScale(arg2,arg3); | |
23102 | wxPyEndAllowThreads(__tstate); | |
23103 | if (PyErr_Occurred()) SWIG_fail; | |
23104 | } | |
23105 | resultobj = SWIG_Py_Void(); | |
23106 | return resultobj; | |
23107 | fail: | |
23108 | return NULL; | |
23109 | } | |
23110 | ||
23111 | ||
23112 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23113 | PyObject *resultobj = 0; | |
23114 | wxDC *arg1 = (wxDC *) 0 ; | |
23115 | wxPoint result; | |
23116 | void *argp1 = 0 ; | |
23117 | int res1 = 0 ; | |
23118 | PyObject *swig_obj[1] ; | |
23119 | ||
23120 | if (!args) SWIG_fail; | |
23121 | swig_obj[0] = args; | |
23122 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23123 | if (!SWIG_IsOK(res1)) { | |
23124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23125 | } | |
23126 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23127 | { | |
23128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23129 | result = ((wxDC const *)arg1)->GetLogicalOrigin(); | |
23130 | wxPyEndAllowThreads(__tstate); | |
23131 | if (PyErr_Occurred()) SWIG_fail; | |
23132 | } | |
23133 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
23134 | return resultobj; | |
23135 | fail: | |
23136 | return NULL; | |
23137 | } | |
23138 | ||
23139 | ||
23140 | SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23141 | PyObject *resultobj = 0; | |
23142 | wxDC *arg1 = (wxDC *) 0 ; | |
23143 | int *arg2 = (int *) 0 ; | |
23144 | int *arg3 = (int *) 0 ; | |
23145 | void *argp1 = 0 ; | |
23146 | int res1 = 0 ; | |
23147 | int temp2 ; | |
23148 | int res2 = SWIG_TMPOBJ ; | |
23149 | int temp3 ; | |
23150 | int res3 = SWIG_TMPOBJ ; | |
23151 | PyObject *swig_obj[1] ; | |
23152 | ||
23153 | arg2 = &temp2; | |
23154 | arg3 = &temp3; | |
23155 | if (!args) SWIG_fail; | |
23156 | swig_obj[0] = args; | |
23157 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23158 | if (!SWIG_IsOK(res1)) { | |
23159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23160 | } | |
23161 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23162 | { | |
23163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23164 | ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3); | |
23165 | wxPyEndAllowThreads(__tstate); | |
23166 | if (PyErr_Occurred()) SWIG_fail; | |
23167 | } | |
23168 | resultobj = SWIG_Py_Void(); | |
23169 | if (SWIG_IsTmpObj(res2)) { | |
23170 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23171 | } else { | |
23172 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23173 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23174 | } | |
23175 | if (SWIG_IsTmpObj(res3)) { | |
23176 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23177 | } else { | |
23178 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23179 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23180 | } | |
23181 | return resultobj; | |
23182 | fail: | |
23183 | return NULL; | |
23184 | } | |
23185 | ||
23186 | ||
23187 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23188 | PyObject *resultobj = 0; | |
23189 | wxDC *arg1 = (wxDC *) 0 ; | |
23190 | int arg2 ; | |
23191 | int arg3 ; | |
23192 | void *argp1 = 0 ; | |
23193 | int res1 = 0 ; | |
23194 | int val2 ; | |
23195 | int ecode2 = 0 ; | |
23196 | int val3 ; | |
23197 | int ecode3 = 0 ; | |
23198 | PyObject * obj0 = 0 ; | |
23199 | PyObject * obj1 = 0 ; | |
23200 | PyObject * obj2 = 0 ; | |
23201 | char * kwnames[] = { | |
23202 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23203 | }; | |
23204 | ||
23205 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23206 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23207 | if (!SWIG_IsOK(res1)) { | |
23208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23209 | } | |
23210 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23211 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23212 | if (!SWIG_IsOK(ecode2)) { | |
23213 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'"); | |
23214 | } | |
23215 | arg2 = static_cast< int >(val2); | |
23216 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23217 | if (!SWIG_IsOK(ecode3)) { | |
23218 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'"); | |
23219 | } | |
23220 | arg3 = static_cast< int >(val3); | |
23221 | { | |
23222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23223 | (arg1)->SetLogicalOrigin(arg2,arg3); | |
23224 | wxPyEndAllowThreads(__tstate); | |
23225 | if (PyErr_Occurred()) SWIG_fail; | |
23226 | } | |
23227 | resultobj = SWIG_Py_Void(); | |
23228 | return resultobj; | |
23229 | fail: | |
23230 | return NULL; | |
23231 | } | |
23232 | ||
23233 | ||
23234 | SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23235 | PyObject *resultobj = 0; | |
23236 | wxDC *arg1 = (wxDC *) 0 ; | |
23237 | wxPoint *arg2 = 0 ; | |
23238 | void *argp1 = 0 ; | |
23239 | int res1 = 0 ; | |
23240 | wxPoint temp2 ; | |
23241 | PyObject * obj0 = 0 ; | |
23242 | PyObject * obj1 = 0 ; | |
23243 | char * kwnames[] = { | |
23244 | (char *) "self",(char *) "point", NULL | |
23245 | }; | |
23246 | ||
23247 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23248 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23249 | if (!SWIG_IsOK(res1)) { | |
23250 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23251 | } | |
23252 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23253 | { | |
23254 | arg2 = &temp2; | |
23255 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23256 | } | |
23257 | { | |
23258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23259 | wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2); | |
23260 | wxPyEndAllowThreads(__tstate); | |
23261 | if (PyErr_Occurred()) SWIG_fail; | |
23262 | } | |
23263 | resultobj = SWIG_Py_Void(); | |
23264 | return resultobj; | |
23265 | fail: | |
23266 | return NULL; | |
23267 | } | |
23268 | ||
23269 | ||
23270 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23271 | PyObject *resultobj = 0; | |
23272 | wxDC *arg1 = (wxDC *) 0 ; | |
23273 | wxPoint result; | |
23274 | void *argp1 = 0 ; | |
23275 | int res1 = 0 ; | |
23276 | PyObject *swig_obj[1] ; | |
23277 | ||
23278 | if (!args) SWIG_fail; | |
23279 | swig_obj[0] = args; | |
23280 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23281 | if (!SWIG_IsOK(res1)) { | |
23282 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23283 | } | |
23284 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23285 | { | |
23286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23287 | result = ((wxDC const *)arg1)->GetDeviceOrigin(); | |
23288 | wxPyEndAllowThreads(__tstate); | |
23289 | if (PyErr_Occurred()) SWIG_fail; | |
23290 | } | |
23291 | resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 ); | |
23292 | return resultobj; | |
23293 | fail: | |
23294 | return NULL; | |
23295 | } | |
23296 | ||
23297 | ||
23298 | SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23299 | PyObject *resultobj = 0; | |
23300 | wxDC *arg1 = (wxDC *) 0 ; | |
23301 | int *arg2 = (int *) 0 ; | |
23302 | int *arg3 = (int *) 0 ; | |
23303 | void *argp1 = 0 ; | |
23304 | int res1 = 0 ; | |
23305 | int temp2 ; | |
23306 | int res2 = SWIG_TMPOBJ ; | |
23307 | int temp3 ; | |
23308 | int res3 = SWIG_TMPOBJ ; | |
23309 | PyObject *swig_obj[1] ; | |
23310 | ||
23311 | arg2 = &temp2; | |
23312 | arg3 = &temp3; | |
23313 | if (!args) SWIG_fail; | |
23314 | swig_obj[0] = args; | |
23315 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23316 | if (!SWIG_IsOK(res1)) { | |
23317 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23318 | } | |
23319 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23320 | { | |
23321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23322 | ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3); | |
23323 | wxPyEndAllowThreads(__tstate); | |
23324 | if (PyErr_Occurred()) SWIG_fail; | |
23325 | } | |
23326 | resultobj = SWIG_Py_Void(); | |
23327 | if (SWIG_IsTmpObj(res2)) { | |
23328 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23329 | } else { | |
23330 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23331 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23332 | } | |
23333 | if (SWIG_IsTmpObj(res3)) { | |
23334 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23335 | } else { | |
23336 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23337 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23338 | } | |
23339 | return resultobj; | |
23340 | fail: | |
23341 | return NULL; | |
23342 | } | |
23343 | ||
23344 | ||
23345 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23346 | PyObject *resultobj = 0; | |
23347 | wxDC *arg1 = (wxDC *) 0 ; | |
23348 | int arg2 ; | |
23349 | int arg3 ; | |
23350 | void *argp1 = 0 ; | |
23351 | int res1 = 0 ; | |
23352 | int val2 ; | |
23353 | int ecode2 = 0 ; | |
23354 | int val3 ; | |
23355 | int ecode3 = 0 ; | |
23356 | PyObject * obj0 = 0 ; | |
23357 | PyObject * obj1 = 0 ; | |
23358 | PyObject * obj2 = 0 ; | |
23359 | char * kwnames[] = { | |
23360 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23361 | }; | |
23362 | ||
23363 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23364 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23365 | if (!SWIG_IsOK(res1)) { | |
23366 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23367 | } | |
23368 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23369 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23370 | if (!SWIG_IsOK(ecode2)) { | |
23371 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'"); | |
23372 | } | |
23373 | arg2 = static_cast< int >(val2); | |
23374 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23375 | if (!SWIG_IsOK(ecode3)) { | |
23376 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'"); | |
23377 | } | |
23378 | arg3 = static_cast< int >(val3); | |
23379 | { | |
23380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23381 | (arg1)->SetDeviceOrigin(arg2,arg3); | |
23382 | wxPyEndAllowThreads(__tstate); | |
23383 | if (PyErr_Occurred()) SWIG_fail; | |
23384 | } | |
23385 | resultobj = SWIG_Py_Void(); | |
23386 | return resultobj; | |
23387 | fail: | |
23388 | return NULL; | |
23389 | } | |
23390 | ||
23391 | ||
23392 | SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23393 | PyObject *resultobj = 0; | |
23394 | wxDC *arg1 = (wxDC *) 0 ; | |
23395 | wxPoint *arg2 = 0 ; | |
23396 | void *argp1 = 0 ; | |
23397 | int res1 = 0 ; | |
23398 | wxPoint temp2 ; | |
23399 | PyObject * obj0 = 0 ; | |
23400 | PyObject * obj1 = 0 ; | |
23401 | char * kwnames[] = { | |
23402 | (char *) "self",(char *) "point", NULL | |
23403 | }; | |
23404 | ||
23405 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23406 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23407 | if (!SWIG_IsOK(res1)) { | |
23408 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23409 | } | |
23410 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23411 | { | |
23412 | arg2 = &temp2; | |
23413 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23414 | } | |
23415 | { | |
23416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23417 | wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2); | |
23418 | wxPyEndAllowThreads(__tstate); | |
23419 | if (PyErr_Occurred()) SWIG_fail; | |
23420 | } | |
23421 | resultobj = SWIG_Py_Void(); | |
23422 | return resultobj; | |
23423 | fail: | |
23424 | return NULL; | |
23425 | } | |
23426 | ||
23427 | ||
23428 | SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23429 | PyObject *resultobj = 0; | |
23430 | wxDC *arg1 = (wxDC *) 0 ; | |
23431 | bool arg2 ; | |
23432 | bool arg3 ; | |
23433 | void *argp1 = 0 ; | |
23434 | int res1 = 0 ; | |
23435 | bool val2 ; | |
23436 | int ecode2 = 0 ; | |
23437 | bool val3 ; | |
23438 | int ecode3 = 0 ; | |
23439 | PyObject * obj0 = 0 ; | |
23440 | PyObject * obj1 = 0 ; | |
23441 | PyObject * obj2 = 0 ; | |
23442 | char * kwnames[] = { | |
23443 | (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL | |
23444 | }; | |
23445 | ||
23446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23448 | if (!SWIG_IsOK(res1)) { | |
23449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23450 | } | |
23451 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23452 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
23453 | if (!SWIG_IsOK(ecode2)) { | |
23454 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'"); | |
23455 | } | |
23456 | arg2 = static_cast< bool >(val2); | |
23457 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
23458 | if (!SWIG_IsOK(ecode3)) { | |
23459 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'"); | |
23460 | } | |
23461 | arg3 = static_cast< bool >(val3); | |
23462 | { | |
23463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23464 | (arg1)->SetAxisOrientation(arg2,arg3); | |
23465 | wxPyEndAllowThreads(__tstate); | |
23466 | if (PyErr_Occurred()) SWIG_fail; | |
23467 | } | |
23468 | resultobj = SWIG_Py_Void(); | |
23469 | return resultobj; | |
23470 | fail: | |
23471 | return NULL; | |
23472 | } | |
23473 | ||
23474 | ||
23475 | SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23476 | PyObject *resultobj = 0; | |
23477 | wxDC *arg1 = (wxDC *) 0 ; | |
23478 | int result; | |
23479 | void *argp1 = 0 ; | |
23480 | int res1 = 0 ; | |
23481 | PyObject *swig_obj[1] ; | |
23482 | ||
23483 | if (!args) SWIG_fail; | |
23484 | swig_obj[0] = args; | |
23485 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23486 | if (!SWIG_IsOK(res1)) { | |
23487 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23488 | } | |
23489 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23490 | { | |
23491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23492 | result = (int)((wxDC const *)arg1)->GetLogicalFunction(); | |
23493 | wxPyEndAllowThreads(__tstate); | |
23494 | if (PyErr_Occurred()) SWIG_fail; | |
23495 | } | |
23496 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23497 | return resultobj; | |
23498 | fail: | |
23499 | return NULL; | |
23500 | } | |
23501 | ||
23502 | ||
23503 | SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23504 | PyObject *resultobj = 0; | |
23505 | wxDC *arg1 = (wxDC *) 0 ; | |
23506 | int arg2 ; | |
23507 | void *argp1 = 0 ; | |
23508 | int res1 = 0 ; | |
23509 | int val2 ; | |
23510 | int ecode2 = 0 ; | |
23511 | PyObject * obj0 = 0 ; | |
23512 | PyObject * obj1 = 0 ; | |
23513 | char * kwnames[] = { | |
23514 | (char *) "self",(char *) "function", NULL | |
23515 | }; | |
23516 | ||
23517 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
23518 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23519 | if (!SWIG_IsOK(res1)) { | |
23520 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23521 | } | |
23522 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23523 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23524 | if (!SWIG_IsOK(ecode2)) { | |
23525 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
23526 | } | |
23527 | arg2 = static_cast< int >(val2); | |
23528 | { | |
23529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23530 | (arg1)->SetLogicalFunction(arg2); | |
23531 | wxPyEndAllowThreads(__tstate); | |
23532 | if (PyErr_Occurred()) SWIG_fail; | |
23533 | } | |
23534 | resultobj = SWIG_Py_Void(); | |
23535 | return resultobj; | |
23536 | fail: | |
23537 | return NULL; | |
23538 | } | |
23539 | ||
23540 | ||
23541 | SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23542 | PyObject *resultobj = 0; | |
23543 | wxDC *arg1 = (wxDC *) 0 ; | |
23544 | void *argp1 = 0 ; | |
23545 | int res1 = 0 ; | |
23546 | PyObject *swig_obj[1] ; | |
23547 | ||
23548 | if (!args) SWIG_fail; | |
23549 | swig_obj[0] = args; | |
23550 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23551 | if (!SWIG_IsOK(res1)) { | |
23552 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23553 | } | |
23554 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23555 | { | |
23556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23557 | (arg1)->ComputeScaleAndOrigin(); | |
23558 | wxPyEndAllowThreads(__tstate); | |
23559 | if (PyErr_Occurred()) SWIG_fail; | |
23560 | } | |
23561 | resultobj = SWIG_Py_Void(); | |
23562 | return resultobj; | |
23563 | fail: | |
23564 | return NULL; | |
23565 | } | |
23566 | ||
23567 | ||
23568 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23569 | PyObject *resultobj = 0; | |
23570 | wxDC *arg1 = (wxDC *) 0 ; | |
23571 | int arg2 ; | |
23572 | int arg3 ; | |
23573 | void *argp1 = 0 ; | |
23574 | int res1 = 0 ; | |
23575 | int val2 ; | |
23576 | int ecode2 = 0 ; | |
23577 | int val3 ; | |
23578 | int ecode3 = 0 ; | |
23579 | PyObject * obj0 = 0 ; | |
23580 | PyObject * obj1 = 0 ; | |
23581 | PyObject * obj2 = 0 ; | |
23582 | char * kwnames[] = { | |
23583 | (char *) "self",(char *) "x",(char *) "y", NULL | |
23584 | }; | |
23585 | ||
23586 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
23587 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23588 | if (!SWIG_IsOK(res1)) { | |
23589 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23590 | } | |
23591 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23592 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23593 | if (!SWIG_IsOK(ecode2)) { | |
23594 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'"); | |
23595 | } | |
23596 | arg2 = static_cast< int >(val2); | |
23597 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
23598 | if (!SWIG_IsOK(ecode3)) { | |
23599 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'"); | |
23600 | } | |
23601 | arg3 = static_cast< int >(val3); | |
23602 | { | |
23603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23604 | (arg1)->CalcBoundingBox(arg2,arg3); | |
23605 | wxPyEndAllowThreads(__tstate); | |
23606 | if (PyErr_Occurred()) SWIG_fail; | |
23607 | } | |
23608 | resultobj = SWIG_Py_Void(); | |
23609 | return resultobj; | |
23610 | fail: | |
23611 | return NULL; | |
23612 | } | |
23613 | ||
23614 | ||
23615 | SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23616 | PyObject *resultobj = 0; | |
23617 | wxDC *arg1 = (wxDC *) 0 ; | |
23618 | wxPoint *arg2 = 0 ; | |
23619 | void *argp1 = 0 ; | |
23620 | int res1 = 0 ; | |
23621 | wxPoint temp2 ; | |
23622 | PyObject * obj0 = 0 ; | |
23623 | PyObject * obj1 = 0 ; | |
23624 | char * kwnames[] = { | |
23625 | (char *) "self",(char *) "point", NULL | |
23626 | }; | |
23627 | ||
23628 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
23629 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23630 | if (!SWIG_IsOK(res1)) { | |
23631 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23632 | } | |
23633 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23634 | { | |
23635 | arg2 = &temp2; | |
23636 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23637 | } | |
23638 | { | |
23639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23640 | wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2); | |
23641 | wxPyEndAllowThreads(__tstate); | |
23642 | if (PyErr_Occurred()) SWIG_fail; | |
23643 | } | |
23644 | resultobj = SWIG_Py_Void(); | |
23645 | return resultobj; | |
23646 | fail: | |
23647 | return NULL; | |
23648 | } | |
23649 | ||
23650 | ||
23651 | SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23652 | PyObject *resultobj = 0; | |
23653 | wxDC *arg1 = (wxDC *) 0 ; | |
23654 | void *argp1 = 0 ; | |
23655 | int res1 = 0 ; | |
23656 | PyObject *swig_obj[1] ; | |
23657 | ||
23658 | if (!args) SWIG_fail; | |
23659 | swig_obj[0] = args; | |
23660 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23661 | if (!SWIG_IsOK(res1)) { | |
23662 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23663 | } | |
23664 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23665 | { | |
23666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23667 | (arg1)->ResetBoundingBox(); | |
23668 | wxPyEndAllowThreads(__tstate); | |
23669 | if (PyErr_Occurred()) SWIG_fail; | |
23670 | } | |
23671 | resultobj = SWIG_Py_Void(); | |
23672 | return resultobj; | |
23673 | fail: | |
23674 | return NULL; | |
23675 | } | |
23676 | ||
23677 | ||
23678 | SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23679 | PyObject *resultobj = 0; | |
23680 | wxDC *arg1 = (wxDC *) 0 ; | |
23681 | int result; | |
23682 | void *argp1 = 0 ; | |
23683 | int res1 = 0 ; | |
23684 | PyObject *swig_obj[1] ; | |
23685 | ||
23686 | if (!args) SWIG_fail; | |
23687 | swig_obj[0] = args; | |
23688 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23689 | if (!SWIG_IsOK(res1)) { | |
23690 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23691 | } | |
23692 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23693 | { | |
23694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23695 | result = (int)((wxDC const *)arg1)->MinX(); | |
23696 | wxPyEndAllowThreads(__tstate); | |
23697 | if (PyErr_Occurred()) SWIG_fail; | |
23698 | } | |
23699 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23700 | return resultobj; | |
23701 | fail: | |
23702 | return NULL; | |
23703 | } | |
23704 | ||
23705 | ||
23706 | SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23707 | PyObject *resultobj = 0; | |
23708 | wxDC *arg1 = (wxDC *) 0 ; | |
23709 | int result; | |
23710 | void *argp1 = 0 ; | |
23711 | int res1 = 0 ; | |
23712 | PyObject *swig_obj[1] ; | |
23713 | ||
23714 | if (!args) SWIG_fail; | |
23715 | swig_obj[0] = args; | |
23716 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23717 | if (!SWIG_IsOK(res1)) { | |
23718 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23719 | } | |
23720 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23721 | { | |
23722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23723 | result = (int)((wxDC const *)arg1)->MaxX(); | |
23724 | wxPyEndAllowThreads(__tstate); | |
23725 | if (PyErr_Occurred()) SWIG_fail; | |
23726 | } | |
23727 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23728 | return resultobj; | |
23729 | fail: | |
23730 | return NULL; | |
23731 | } | |
23732 | ||
23733 | ||
23734 | SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23735 | PyObject *resultobj = 0; | |
23736 | wxDC *arg1 = (wxDC *) 0 ; | |
23737 | int result; | |
23738 | void *argp1 = 0 ; | |
23739 | int res1 = 0 ; | |
23740 | PyObject *swig_obj[1] ; | |
23741 | ||
23742 | if (!args) SWIG_fail; | |
23743 | swig_obj[0] = args; | |
23744 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23745 | if (!SWIG_IsOK(res1)) { | |
23746 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23747 | } | |
23748 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23749 | { | |
23750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23751 | result = (int)((wxDC const *)arg1)->MinY(); | |
23752 | wxPyEndAllowThreads(__tstate); | |
23753 | if (PyErr_Occurred()) SWIG_fail; | |
23754 | } | |
23755 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23756 | return resultobj; | |
23757 | fail: | |
23758 | return NULL; | |
23759 | } | |
23760 | ||
23761 | ||
23762 | SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23763 | PyObject *resultobj = 0; | |
23764 | wxDC *arg1 = (wxDC *) 0 ; | |
23765 | int result; | |
23766 | void *argp1 = 0 ; | |
23767 | int res1 = 0 ; | |
23768 | PyObject *swig_obj[1] ; | |
23769 | ||
23770 | if (!args) SWIG_fail; | |
23771 | swig_obj[0] = args; | |
23772 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23773 | if (!SWIG_IsOK(res1)) { | |
23774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23775 | } | |
23776 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23777 | { | |
23778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23779 | result = (int)((wxDC const *)arg1)->MaxY(); | |
23780 | wxPyEndAllowThreads(__tstate); | |
23781 | if (PyErr_Occurred()) SWIG_fail; | |
23782 | } | |
23783 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23784 | return resultobj; | |
23785 | fail: | |
23786 | return NULL; | |
23787 | } | |
23788 | ||
23789 | ||
23790 | SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
23791 | PyObject *resultobj = 0; | |
23792 | wxDC *arg1 = (wxDC *) 0 ; | |
23793 | int *arg2 = (int *) 0 ; | |
23794 | int *arg3 = (int *) 0 ; | |
23795 | int *arg4 = (int *) 0 ; | |
23796 | int *arg5 = (int *) 0 ; | |
23797 | void *argp1 = 0 ; | |
23798 | int res1 = 0 ; | |
23799 | int temp2 ; | |
23800 | int res2 = SWIG_TMPOBJ ; | |
23801 | int temp3 ; | |
23802 | int res3 = SWIG_TMPOBJ ; | |
23803 | int temp4 ; | |
23804 | int res4 = SWIG_TMPOBJ ; | |
23805 | int temp5 ; | |
23806 | int res5 = SWIG_TMPOBJ ; | |
23807 | PyObject *swig_obj[1] ; | |
23808 | ||
23809 | arg2 = &temp2; | |
23810 | arg3 = &temp3; | |
23811 | arg4 = &temp4; | |
23812 | arg5 = &temp5; | |
23813 | if (!args) SWIG_fail; | |
23814 | swig_obj[0] = args; | |
23815 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23816 | if (!SWIG_IsOK(res1)) { | |
23817 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23818 | } | |
23819 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23820 | { | |
23821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23822 | wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5); | |
23823 | wxPyEndAllowThreads(__tstate); | |
23824 | if (PyErr_Occurred()) SWIG_fail; | |
23825 | } | |
23826 | resultobj = SWIG_Py_Void(); | |
23827 | if (SWIG_IsTmpObj(res2)) { | |
23828 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2))); | |
23829 | } else { | |
23830 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23831 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags)); | |
23832 | } | |
23833 | if (SWIG_IsTmpObj(res3)) { | |
23834 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
23835 | } else { | |
23836 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23837 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
23838 | } | |
23839 | if (SWIG_IsTmpObj(res4)) { | |
23840 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
23841 | } else { | |
23842 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23843 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
23844 | } | |
23845 | if (SWIG_IsTmpObj(res5)) { | |
23846 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5))); | |
23847 | } else { | |
23848 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
23849 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags)); | |
23850 | } | |
23851 | return resultobj; | |
23852 | fail: | |
23853 | return NULL; | |
23854 | } | |
23855 | ||
23856 | ||
b39fe951 RD |
23857 | SWIGINTERN PyObject *_wrap_DC_GetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23858 | PyObject *resultobj = 0; | |
23859 | wxDC *arg1 = (wxDC *) 0 ; | |
23860 | wxLayoutDirection result; | |
23861 | void *argp1 = 0 ; | |
23862 | int res1 = 0 ; | |
23863 | PyObject *swig_obj[1] ; | |
23864 | ||
23865 | if (!args) SWIG_fail; | |
23866 | swig_obj[0] = args; | |
23867 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23868 | if (!SWIG_IsOK(res1)) { | |
23869 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLayoutDirection" "', expected argument " "1"" of type '" "wxDC const *""'"); | |
23870 | } | |
23871 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23872 | { | |
23873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23874 | result = (wxLayoutDirection)((wxDC const *)arg1)->GetLayoutDirection(); | |
23875 | wxPyEndAllowThreads(__tstate); | |
23876 | if (PyErr_Occurred()) SWIG_fail; | |
23877 | } | |
23878 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
23879 | return resultobj; | |
23880 | fail: | |
23881 | return NULL; | |
23882 | } | |
23883 | ||
23884 | ||
23885 | SWIGINTERN PyObject *_wrap_DC_SetLayoutDirection(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23886 | PyObject *resultobj = 0; | |
23887 | wxDC *arg1 = (wxDC *) 0 ; | |
23888 | wxLayoutDirection arg2 ; | |
23889 | void *argp1 = 0 ; | |
23890 | int res1 = 0 ; | |
23891 | int val2 ; | |
23892 | int ecode2 = 0 ; | |
23893 | PyObject * obj0 = 0 ; | |
23894 | PyObject * obj1 = 0 ; | |
23895 | char * kwnames[] = { | |
23896 | (char *) "self",(char *) "dir", NULL | |
23897 | }; | |
23898 | ||
23899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLayoutDirection",kwnames,&obj0,&obj1)) SWIG_fail; | |
23900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23901 | if (!SWIG_IsOK(res1)) { | |
23902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLayoutDirection" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23903 | } | |
23904 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23905 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
23906 | if (!SWIG_IsOK(ecode2)) { | |
23907 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLayoutDirection" "', expected argument " "2"" of type '" "wxLayoutDirection""'"); | |
23908 | } | |
23909 | arg2 = static_cast< wxLayoutDirection >(val2); | |
23910 | { | |
23911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23912 | (arg1)->SetLayoutDirection(arg2); | |
23913 | wxPyEndAllowThreads(__tstate); | |
23914 | if (PyErr_Occurred()) SWIG_fail; | |
23915 | } | |
23916 | resultobj = SWIG_Py_Void(); | |
23917 | return resultobj; | |
23918 | fail: | |
23919 | return NULL; | |
23920 | } | |
23921 | ||
23922 | ||
554f62e9 RD |
23923 | SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
23924 | PyObject *resultobj = 0; | |
23925 | wxDC *arg1 = (wxDC *) 0 ; | |
23926 | long result; | |
23927 | void *argp1 = 0 ; | |
23928 | int res1 = 0 ; | |
23929 | PyObject *swig_obj[1] ; | |
23930 | ||
23931 | if (!args) SWIG_fail; | |
23932 | swig_obj[0] = args; | |
23933 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23934 | if (!SWIG_IsOK(res1)) { | |
23935 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23936 | } | |
23937 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23938 | { | |
23939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23940 | result = (long)(arg1)->GetHDC(); | |
23941 | wxPyEndAllowThreads(__tstate); | |
23942 | if (PyErr_Occurred()) SWIG_fail; | |
23943 | } | |
23944 | resultobj = SWIG_From_long(static_cast< long >(result)); | |
23945 | return resultobj; | |
23946 | fail: | |
23947 | return NULL; | |
23948 | } | |
23949 | ||
23950 | ||
23951 | SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23952 | PyObject *resultobj = 0; | |
23953 | wxDC *arg1 = (wxDC *) 0 ; | |
23954 | PyObject *arg2 = (PyObject *) 0 ; | |
23955 | PyObject *arg3 = (PyObject *) 0 ; | |
23956 | PyObject *arg4 = (PyObject *) 0 ; | |
23957 | PyObject *result = 0 ; | |
23958 | void *argp1 = 0 ; | |
23959 | int res1 = 0 ; | |
23960 | PyObject * obj0 = 0 ; | |
23961 | PyObject * obj1 = 0 ; | |
23962 | PyObject * obj2 = 0 ; | |
23963 | PyObject * obj3 = 0 ; | |
23964 | char * kwnames[] = { | |
23965 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
23966 | }; | |
23967 | ||
23968 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
23969 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
23970 | if (!SWIG_IsOK(res1)) { | |
23971 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
23972 | } | |
23973 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
23974 | arg2 = obj1; | |
23975 | arg3 = obj2; | |
23976 | arg4 = obj3; | |
23977 | { | |
23978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23979 | result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4); | |
23980 | wxPyEndAllowThreads(__tstate); | |
23981 | if (PyErr_Occurred()) SWIG_fail; | |
23982 | } | |
23983 | resultobj = result; | |
23984 | return resultobj; | |
23985 | fail: | |
23986 | return NULL; | |
23987 | } | |
23988 | ||
23989 | ||
23990 | SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
23991 | PyObject *resultobj = 0; | |
23992 | wxDC *arg1 = (wxDC *) 0 ; | |
23993 | PyObject *arg2 = (PyObject *) 0 ; | |
23994 | PyObject *arg3 = (PyObject *) 0 ; | |
23995 | PyObject *arg4 = (PyObject *) 0 ; | |
23996 | PyObject *result = 0 ; | |
23997 | void *argp1 = 0 ; | |
23998 | int res1 = 0 ; | |
23999 | PyObject * obj0 = 0 ; | |
24000 | PyObject * obj1 = 0 ; | |
24001 | PyObject * obj2 = 0 ; | |
24002 | PyObject * obj3 = 0 ; | |
24003 | char * kwnames[] = { | |
24004 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
24005 | }; | |
24006 | ||
24007 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24008 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24009 | if (!SWIG_IsOK(res1)) { | |
24010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24011 | } | |
24012 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24013 | arg2 = obj1; | |
24014 | arg3 = obj2; | |
24015 | arg4 = obj3; | |
24016 | { | |
24017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24018 | result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4); | |
24019 | wxPyEndAllowThreads(__tstate); | |
24020 | if (PyErr_Occurred()) SWIG_fail; | |
24021 | } | |
24022 | resultobj = result; | |
24023 | return resultobj; | |
24024 | fail: | |
24025 | return NULL; | |
24026 | } | |
24027 | ||
24028 | ||
24029 | SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24030 | PyObject *resultobj = 0; | |
24031 | wxDC *arg1 = (wxDC *) 0 ; | |
24032 | PyObject *arg2 = (PyObject *) 0 ; | |
24033 | PyObject *arg3 = (PyObject *) 0 ; | |
24034 | PyObject *arg4 = (PyObject *) 0 ; | |
24035 | PyObject *result = 0 ; | |
24036 | void *argp1 = 0 ; | |
24037 | int res1 = 0 ; | |
24038 | PyObject * obj0 = 0 ; | |
24039 | PyObject * obj1 = 0 ; | |
24040 | PyObject * obj2 = 0 ; | |
24041 | PyObject * obj3 = 0 ; | |
24042 | char * kwnames[] = { | |
24043 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
24044 | }; | |
24045 | ||
24046 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24047 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24048 | if (!SWIG_IsOK(res1)) { | |
24049 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24050 | } | |
24051 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24052 | arg2 = obj1; | |
24053 | arg3 = obj2; | |
24054 | arg4 = obj3; | |
24055 | { | |
24056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24057 | result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4); | |
24058 | wxPyEndAllowThreads(__tstate); | |
24059 | if (PyErr_Occurred()) SWIG_fail; | |
24060 | } | |
24061 | resultobj = result; | |
24062 | return resultobj; | |
24063 | fail: | |
24064 | return NULL; | |
24065 | } | |
24066 | ||
24067 | ||
24068 | SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24069 | PyObject *resultobj = 0; | |
24070 | wxDC *arg1 = (wxDC *) 0 ; | |
24071 | PyObject *arg2 = (PyObject *) 0 ; | |
24072 | PyObject *arg3 = (PyObject *) 0 ; | |
24073 | PyObject *arg4 = (PyObject *) 0 ; | |
24074 | PyObject *result = 0 ; | |
24075 | void *argp1 = 0 ; | |
24076 | int res1 = 0 ; | |
24077 | PyObject * obj0 = 0 ; | |
24078 | PyObject * obj1 = 0 ; | |
24079 | PyObject * obj2 = 0 ; | |
24080 | PyObject * obj3 = 0 ; | |
24081 | char * kwnames[] = { | |
24082 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
24083 | }; | |
24084 | ||
24085 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24086 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24087 | if (!SWIG_IsOK(res1)) { | |
24088 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24089 | } | |
24090 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24091 | arg2 = obj1; | |
24092 | arg3 = obj2; | |
24093 | arg4 = obj3; | |
24094 | { | |
24095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24096 | result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4); | |
24097 | wxPyEndAllowThreads(__tstate); | |
24098 | if (PyErr_Occurred()) SWIG_fail; | |
24099 | } | |
24100 | resultobj = result; | |
24101 | return resultobj; | |
24102 | fail: | |
24103 | return NULL; | |
24104 | } | |
24105 | ||
24106 | ||
24107 | SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24108 | PyObject *resultobj = 0; | |
24109 | wxDC *arg1 = (wxDC *) 0 ; | |
24110 | PyObject *arg2 = (PyObject *) 0 ; | |
24111 | PyObject *arg3 = (PyObject *) 0 ; | |
24112 | PyObject *arg4 = (PyObject *) 0 ; | |
24113 | PyObject *result = 0 ; | |
24114 | void *argp1 = 0 ; | |
24115 | int res1 = 0 ; | |
24116 | PyObject * obj0 = 0 ; | |
24117 | PyObject * obj1 = 0 ; | |
24118 | PyObject * obj2 = 0 ; | |
24119 | PyObject * obj3 = 0 ; | |
24120 | char * kwnames[] = { | |
24121 | (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL | |
24122 | }; | |
24123 | ||
24124 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
24125 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24126 | if (!SWIG_IsOK(res1)) { | |
24127 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24128 | } | |
24129 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24130 | arg2 = obj1; | |
24131 | arg3 = obj2; | |
24132 | arg4 = obj3; | |
24133 | { | |
24134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24135 | result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4); | |
24136 | wxPyEndAllowThreads(__tstate); | |
24137 | if (PyErr_Occurred()) SWIG_fail; | |
24138 | } | |
24139 | resultobj = result; | |
24140 | return resultobj; | |
24141 | fail: | |
24142 | return NULL; | |
24143 | } | |
24144 | ||
24145 | ||
24146 | SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24147 | PyObject *resultobj = 0; | |
24148 | wxDC *arg1 = (wxDC *) 0 ; | |
24149 | PyObject *arg2 = (PyObject *) 0 ; | |
24150 | PyObject *arg3 = (PyObject *) 0 ; | |
24151 | PyObject *arg4 = (PyObject *) 0 ; | |
24152 | PyObject *arg5 = (PyObject *) 0 ; | |
24153 | PyObject *result = 0 ; | |
24154 | void *argp1 = 0 ; | |
24155 | int res1 = 0 ; | |
24156 | PyObject * obj0 = 0 ; | |
24157 | PyObject * obj1 = 0 ; | |
24158 | PyObject * obj2 = 0 ; | |
24159 | PyObject * obj3 = 0 ; | |
24160 | PyObject * obj4 = 0 ; | |
24161 | char * kwnames[] = { | |
24162 | (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL | |
24163 | }; | |
24164 | ||
24165 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
24166 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24167 | if (!SWIG_IsOK(res1)) { | |
24168 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24169 | } | |
24170 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24171 | arg2 = obj1; | |
24172 | arg3 = obj2; | |
24173 | arg4 = obj3; | |
24174 | arg5 = obj4; | |
24175 | { | |
24176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24177 | result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5); | |
24178 | wxPyEndAllowThreads(__tstate); | |
24179 | if (PyErr_Occurred()) SWIG_fail; | |
24180 | } | |
24181 | resultobj = result; | |
24182 | return resultobj; | |
24183 | fail: | |
24184 | return NULL; | |
24185 | } | |
24186 | ||
24187 | ||
24188 | SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24189 | PyObject *obj; | |
24190 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24191 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj)); | |
24192 | return SWIG_Py_Void(); | |
24193 | } | |
24194 | ||
70d7cb34 RD |
24195 | SWIGINTERN PyObject *_wrap_new_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24196 | PyObject *resultobj = 0; | |
24197 | wxDC *arg1 = 0 ; | |
24198 | wxColour *arg2 = 0 ; | |
24199 | wxDCTextColourChanger *result = 0 ; | |
24200 | void *argp1 = 0 ; | |
24201 | int res1 = 0 ; | |
24202 | wxColour temp2 ; | |
24203 | PyObject * obj0 = 0 ; | |
24204 | PyObject * obj1 = 0 ; | |
24205 | char * kwnames[] = { | |
24206 | (char *) "dc",(char *) "col", NULL | |
24207 | }; | |
24208 | ||
24209 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCTextColourChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
24210 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24211 | if (!SWIG_IsOK(res1)) { | |
24212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24213 | } | |
24214 | if (!argp1) { | |
24215 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24216 | } | |
24217 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24218 | { | |
24219 | arg2 = &temp2; | |
24220 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
24221 | } | |
24222 | { | |
24223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24224 | result = (wxDCTextColourChanger *)new wxDCTextColourChanger(*arg1,(wxColour const &)*arg2); | |
24225 | wxPyEndAllowThreads(__tstate); | |
24226 | if (PyErr_Occurred()) SWIG_fail; | |
24227 | } | |
24228 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_NEW | 0 ); | |
24229 | return resultobj; | |
24230 | fail: | |
24231 | return NULL; | |
24232 | } | |
24233 | ||
24234 | ||
24235 | SWIGINTERN PyObject *_wrap_delete_DCTextColourChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24236 | PyObject *resultobj = 0; | |
24237 | wxDCTextColourChanger *arg1 = (wxDCTextColourChanger *) 0 ; | |
24238 | void *argp1 = 0 ; | |
24239 | int res1 = 0 ; | |
24240 | PyObject *swig_obj[1] ; | |
24241 | ||
24242 | if (!args) SWIG_fail; | |
24243 | swig_obj[0] = args; | |
24244 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCTextColourChanger, SWIG_POINTER_DISOWN | 0 ); | |
24245 | if (!SWIG_IsOK(res1)) { | |
24246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCTextColourChanger" "', expected argument " "1"" of type '" "wxDCTextColourChanger *""'"); | |
24247 | } | |
24248 | arg1 = reinterpret_cast< wxDCTextColourChanger * >(argp1); | |
24249 | { | |
24250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24251 | delete arg1; | |
24252 | ||
24253 | wxPyEndAllowThreads(__tstate); | |
24254 | if (PyErr_Occurred()) SWIG_fail; | |
24255 | } | |
24256 | resultobj = SWIG_Py_Void(); | |
24257 | return resultobj; | |
24258 | fail: | |
24259 | return NULL; | |
24260 | } | |
24261 | ||
24262 | ||
24263 | SWIGINTERN PyObject *DCTextColourChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24264 | PyObject *obj; | |
24265 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24266 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCTextColourChanger, SWIG_NewClientData(obj)); | |
24267 | return SWIG_Py_Void(); | |
24268 | } | |
24269 | ||
24270 | SWIGINTERN PyObject *DCTextColourChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24271 | return SWIG_Python_InitShadowInstance(args); | |
24272 | } | |
24273 | ||
24274 | SWIGINTERN PyObject *_wrap_new_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24275 | PyObject *resultobj = 0; | |
24276 | wxDC *arg1 = 0 ; | |
24277 | wxPen *arg2 = 0 ; | |
24278 | wxDCPenChanger *result = 0 ; | |
24279 | void *argp1 = 0 ; | |
24280 | int res1 = 0 ; | |
24281 | void *argp2 = 0 ; | |
24282 | int res2 = 0 ; | |
24283 | PyObject * obj0 = 0 ; | |
24284 | PyObject * obj1 = 0 ; | |
24285 | char * kwnames[] = { | |
24286 | (char *) "dc",(char *) "pen", NULL | |
24287 | }; | |
24288 | ||
24289 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCPenChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
24290 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24291 | if (!SWIG_IsOK(res1)) { | |
24292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24293 | } | |
24294 | if (!argp1) { | |
24295 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24296 | } | |
24297 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24298 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
24299 | if (!SWIG_IsOK(res2)) { | |
24300 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
24301 | } | |
24302 | if (!argp2) { | |
24303 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCPenChanger" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
24304 | } | |
24305 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
24306 | { | |
24307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24308 | result = (wxDCPenChanger *)new wxDCPenChanger(*arg1,(wxPen const &)*arg2); | |
24309 | wxPyEndAllowThreads(__tstate); | |
24310 | if (PyErr_Occurred()) SWIG_fail; | |
24311 | } | |
24312 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_NEW | 0 ); | |
24313 | return resultobj; | |
24314 | fail: | |
24315 | return NULL; | |
24316 | } | |
24317 | ||
24318 | ||
24319 | SWIGINTERN PyObject *_wrap_delete_DCPenChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24320 | PyObject *resultobj = 0; | |
24321 | wxDCPenChanger *arg1 = (wxDCPenChanger *) 0 ; | |
24322 | void *argp1 = 0 ; | |
24323 | int res1 = 0 ; | |
24324 | PyObject *swig_obj[1] ; | |
24325 | ||
24326 | if (!args) SWIG_fail; | |
24327 | swig_obj[0] = args; | |
24328 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCPenChanger, SWIG_POINTER_DISOWN | 0 ); | |
24329 | if (!SWIG_IsOK(res1)) { | |
24330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCPenChanger" "', expected argument " "1"" of type '" "wxDCPenChanger *""'"); | |
24331 | } | |
24332 | arg1 = reinterpret_cast< wxDCPenChanger * >(argp1); | |
24333 | { | |
24334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24335 | delete arg1; | |
24336 | ||
24337 | wxPyEndAllowThreads(__tstate); | |
24338 | if (PyErr_Occurred()) SWIG_fail; | |
24339 | } | |
24340 | resultobj = SWIG_Py_Void(); | |
24341 | return resultobj; | |
24342 | fail: | |
24343 | return NULL; | |
24344 | } | |
24345 | ||
24346 | ||
24347 | SWIGINTERN PyObject *DCPenChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24348 | PyObject *obj; | |
24349 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24350 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCPenChanger, SWIG_NewClientData(obj)); | |
24351 | return SWIG_Py_Void(); | |
24352 | } | |
24353 | ||
24354 | SWIGINTERN PyObject *DCPenChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24355 | return SWIG_Python_InitShadowInstance(args); | |
24356 | } | |
24357 | ||
24358 | SWIGINTERN PyObject *_wrap_new_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24359 | PyObject *resultobj = 0; | |
24360 | wxDC *arg1 = 0 ; | |
24361 | wxBrush *arg2 = 0 ; | |
24362 | wxDCBrushChanger *result = 0 ; | |
24363 | void *argp1 = 0 ; | |
24364 | int res1 = 0 ; | |
24365 | void *argp2 = 0 ; | |
24366 | int res2 = 0 ; | |
24367 | PyObject * obj0 = 0 ; | |
24368 | PyObject * obj1 = 0 ; | |
24369 | char * kwnames[] = { | |
24370 | (char *) "dc",(char *) "brush", NULL | |
24371 | }; | |
24372 | ||
24373 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DCBrushChanger",kwnames,&obj0,&obj1)) SWIG_fail; | |
24374 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24375 | if (!SWIG_IsOK(res1)) { | |
24376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24377 | } | |
24378 | if (!argp1) { | |
24379 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24380 | } | |
24381 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24382 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
24383 | if (!SWIG_IsOK(res2)) { | |
24384 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
24385 | } | |
24386 | if (!argp2) { | |
24387 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCBrushChanger" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
24388 | } | |
24389 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
24390 | { | |
24391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24392 | result = (wxDCBrushChanger *)new wxDCBrushChanger(*arg1,(wxBrush const &)*arg2); | |
24393 | wxPyEndAllowThreads(__tstate); | |
24394 | if (PyErr_Occurred()) SWIG_fail; | |
24395 | } | |
24396 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_NEW | 0 ); | |
24397 | return resultobj; | |
24398 | fail: | |
24399 | return NULL; | |
24400 | } | |
24401 | ||
24402 | ||
24403 | SWIGINTERN PyObject *_wrap_delete_DCBrushChanger(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24404 | PyObject *resultobj = 0; | |
24405 | wxDCBrushChanger *arg1 = (wxDCBrushChanger *) 0 ; | |
24406 | void *argp1 = 0 ; | |
24407 | int res1 = 0 ; | |
24408 | PyObject *swig_obj[1] ; | |
24409 | ||
24410 | if (!args) SWIG_fail; | |
24411 | swig_obj[0] = args; | |
24412 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCBrushChanger, SWIG_POINTER_DISOWN | 0 ); | |
24413 | if (!SWIG_IsOK(res1)) { | |
24414 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCBrushChanger" "', expected argument " "1"" of type '" "wxDCBrushChanger *""'"); | |
24415 | } | |
24416 | arg1 = reinterpret_cast< wxDCBrushChanger * >(argp1); | |
24417 | { | |
24418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24419 | delete arg1; | |
24420 | ||
24421 | wxPyEndAllowThreads(__tstate); | |
24422 | if (PyErr_Occurred()) SWIG_fail; | |
24423 | } | |
24424 | resultobj = SWIG_Py_Void(); | |
24425 | return resultobj; | |
24426 | fail: | |
24427 | return NULL; | |
24428 | } | |
24429 | ||
24430 | ||
24431 | SWIGINTERN PyObject *DCBrushChanger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24432 | PyObject *obj; | |
24433 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24434 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCBrushChanger, SWIG_NewClientData(obj)); | |
24435 | return SWIG_Py_Void(); | |
24436 | } | |
24437 | ||
24438 | SWIGINTERN PyObject *DCBrushChanger_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24439 | return SWIG_Python_InitShadowInstance(args); | |
24440 | } | |
24441 | ||
24442 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24443 | PyObject *resultobj = 0; | |
24444 | wxDC *arg1 = 0 ; | |
24445 | wxRegion *arg2 = 0 ; | |
24446 | wxDCClipper *result = 0 ; | |
24447 | void *argp1 = 0 ; | |
24448 | int res1 = 0 ; | |
24449 | void *argp2 = 0 ; | |
24450 | int res2 = 0 ; | |
24451 | ||
24452 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
24453 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24454 | if (!SWIG_IsOK(res1)) { | |
24455 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24456 | } | |
24457 | if (!argp1) { | |
24458 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24459 | } | |
24460 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24461 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
24462 | if (!SWIG_IsOK(res2)) { | |
24463 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
24464 | } | |
24465 | if (!argp2) { | |
24466 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "wxRegion const &""'"); | |
24467 | } | |
24468 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
24469 | { | |
24470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24471 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRegion const &)*arg2); | |
24472 | wxPyEndAllowThreads(__tstate); | |
24473 | if (PyErr_Occurred()) SWIG_fail; | |
24474 | } | |
24475 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
24476 | return resultobj; | |
24477 | fail: | |
24478 | return NULL; | |
24479 | } | |
24480 | ||
24481 | ||
24482 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24483 | PyObject *resultobj = 0; | |
24484 | wxDC *arg1 = 0 ; | |
24485 | wxRect *arg2 = 0 ; | |
24486 | wxDCClipper *result = 0 ; | |
24487 | void *argp1 = 0 ; | |
24488 | int res1 = 0 ; | |
24489 | wxRect temp2 ; | |
24490 | ||
24491 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
24492 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24493 | if (!SWIG_IsOK(res1)) { | |
24494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24495 | } | |
24496 | if (!argp1) { | |
24497 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24498 | } | |
24499 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24500 | { | |
24501 | arg2 = &temp2; | |
24502 | if ( ! wxRect_helper(swig_obj[1], &arg2)) SWIG_fail; | |
24503 | } | |
24504 | { | |
24505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24506 | result = (wxDCClipper *)new wxDCClipper(*arg1,(wxRect const &)*arg2); | |
24507 | wxPyEndAllowThreads(__tstate); | |
24508 | if (PyErr_Occurred()) SWIG_fail; | |
24509 | } | |
24510 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
24511 | return resultobj; | |
24512 | fail: | |
24513 | return NULL; | |
24514 | } | |
24515 | ||
24516 | ||
24517 | SWIGINTERN PyObject *_wrap_new_DCClipper__SWIG_2(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
24518 | PyObject *resultobj = 0; | |
24519 | wxDC *arg1 = 0 ; | |
24520 | int arg2 ; | |
24521 | int arg3 ; | |
24522 | int arg4 ; | |
24523 | int arg5 ; | |
24524 | wxDCClipper *result = 0 ; | |
24525 | void *argp1 = 0 ; | |
24526 | int res1 = 0 ; | |
24527 | int val2 ; | |
24528 | int ecode2 = 0 ; | |
24529 | int val3 ; | |
24530 | int ecode3 = 0 ; | |
24531 | int val4 ; | |
24532 | int ecode4 = 0 ; | |
24533 | int val5 ; | |
24534 | int ecode5 = 0 ; | |
24535 | ||
24536 | if ((nobjs < 5) || (nobjs > 5)) SWIG_fail; | |
24537 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxDC, 0 ); | |
24538 | if (!SWIG_IsOK(res1)) { | |
24539 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24540 | } | |
24541 | if (!argp1) { | |
24542 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCClipper" "', expected argument " "1"" of type '" "wxDC &""'"); | |
24543 | } | |
24544 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24545 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
24546 | if (!SWIG_IsOK(ecode2)) { | |
24547 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_DCClipper" "', expected argument " "2"" of type '" "int""'"); | |
24548 | } | |
24549 | arg2 = static_cast< int >(val2); | |
24550 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
24551 | if (!SWIG_IsOK(ecode3)) { | |
24552 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCClipper" "', expected argument " "3"" of type '" "int""'"); | |
24553 | } | |
24554 | arg3 = static_cast< int >(val3); | |
24555 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
24556 | if (!SWIG_IsOK(ecode4)) { | |
24557 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCClipper" "', expected argument " "4"" of type '" "int""'"); | |
24558 | } | |
24559 | arg4 = static_cast< int >(val4); | |
24560 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
24561 | if (!SWIG_IsOK(ecode5)) { | |
24562 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCClipper" "', expected argument " "5"" of type '" "int""'"); | |
24563 | } | |
24564 | arg5 = static_cast< int >(val5); | |
24565 | { | |
24566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24567 | result = (wxDCClipper *)new wxDCClipper(*arg1,arg2,arg3,arg4,arg5); | |
24568 | wxPyEndAllowThreads(__tstate); | |
24569 | if (PyErr_Occurred()) SWIG_fail; | |
24570 | } | |
24571 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCClipper, SWIG_POINTER_NEW | 0 ); | |
24572 | return resultobj; | |
24573 | fail: | |
24574 | return NULL; | |
24575 | } | |
24576 | ||
24577 | ||
24578 | SWIGINTERN PyObject *_wrap_new_DCClipper(PyObject *self, PyObject *args) { | |
24579 | int argc; | |
24580 | PyObject *argv[6]; | |
24581 | ||
24582 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCClipper",0,5,argv))) SWIG_fail; | |
24583 | --argc; | |
24584 | if (argc == 2) { | |
24585 | int _v = 0; | |
24586 | { | |
24587 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxRegion, 0); | |
24588 | _v = SWIG_CheckState(res); | |
24589 | } | |
24590 | if (!_v) goto check_1; | |
24591 | return _wrap_new_DCClipper__SWIG_0(self, argc, argv); | |
24592 | } | |
24593 | check_1: | |
24594 | ||
24595 | if (argc == 2) { | |
24596 | return _wrap_new_DCClipper__SWIG_1(self, argc, argv); | |
24597 | } | |
24598 | if (argc == 5) { | |
24599 | return _wrap_new_DCClipper__SWIG_2(self, argc, argv); | |
24600 | } | |
24601 | ||
24602 | fail: | |
24603 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCClipper'"); | |
24604 | return NULL; | |
24605 | } | |
24606 | ||
24607 | ||
24608 | SWIGINTERN PyObject *_wrap_delete_DCClipper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24609 | PyObject *resultobj = 0; | |
24610 | wxDCClipper *arg1 = (wxDCClipper *) 0 ; | |
24611 | void *argp1 = 0 ; | |
24612 | int res1 = 0 ; | |
24613 | PyObject *swig_obj[1] ; | |
24614 | ||
24615 | if (!args) SWIG_fail; | |
24616 | swig_obj[0] = args; | |
24617 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCClipper, SWIG_POINTER_DISOWN | 0 ); | |
24618 | if (!SWIG_IsOK(res1)) { | |
24619 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCClipper" "', expected argument " "1"" of type '" "wxDCClipper *""'"); | |
24620 | } | |
24621 | arg1 = reinterpret_cast< wxDCClipper * >(argp1); | |
24622 | { | |
24623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24624 | delete arg1; | |
24625 | ||
24626 | wxPyEndAllowThreads(__tstate); | |
24627 | if (PyErr_Occurred()) SWIG_fail; | |
24628 | } | |
24629 | resultobj = SWIG_Py_Void(); | |
24630 | return resultobj; | |
24631 | fail: | |
24632 | return NULL; | |
24633 | } | |
24634 | ||
24635 | ||
24636 | SWIGINTERN PyObject *DCClipper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24637 | PyObject *obj; | |
24638 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24639 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCClipper, SWIG_NewClientData(obj)); | |
24640 | return SWIG_Py_Void(); | |
24641 | } | |
24642 | ||
24643 | SWIGINTERN PyObject *DCClipper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24644 | return SWIG_Python_InitShadowInstance(args); | |
24645 | } | |
24646 | ||
24f6c4e8 RD |
24647 | SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
24648 | PyObject *resultobj = 0; | |
24649 | wxScreenDC *result = 0 ; | |
24650 | ||
24651 | if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail; | |
24652 | { | |
24653 | if (!wxPyCheckForApp()) SWIG_fail; | |
24654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24655 | result = (wxScreenDC *)new wxScreenDC(); | |
24656 | wxPyEndAllowThreads(__tstate); | |
24657 | if (PyErr_Occurred()) SWIG_fail; | |
24658 | } | |
24659 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 ); | |
24660 | return resultobj; | |
24661 | fail: | |
24662 | return NULL; | |
24663 | } | |
24664 | ||
24665 | ||
24666 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24667 | PyObject *resultobj = 0; | |
24668 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24669 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24670 | bool result; | |
24671 | void *argp1 = 0 ; | |
24672 | int res1 = 0 ; | |
24673 | void *argp2 = 0 ; | |
24674 | int res2 = 0 ; | |
24675 | PyObject * obj0 = 0 ; | |
24676 | PyObject * obj1 = 0 ; | |
24677 | char * kwnames[] = { | |
24678 | (char *) "self",(char *) "window", NULL | |
24679 | }; | |
24680 | ||
24681 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail; | |
24682 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24683 | if (!SWIG_IsOK(res1)) { | |
24684 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24685 | } | |
24686 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24687 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24688 | if (!SWIG_IsOK(res2)) { | |
24689 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
24690 | } | |
24691 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
24692 | { | |
24693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24694 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24695 | wxPyEndAllowThreads(__tstate); | |
24696 | if (PyErr_Occurred()) SWIG_fail; | |
24697 | } | |
24698 | { | |
24699 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24700 | } | |
24701 | return resultobj; | |
24702 | fail: | |
24703 | return NULL; | |
24704 | } | |
24705 | ||
24706 | ||
24707 | SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24708 | PyObject *resultobj = 0; | |
24709 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24710 | wxRect *arg2 = (wxRect *) NULL ; | |
24711 | bool result; | |
24712 | void *argp1 = 0 ; | |
24713 | int res1 = 0 ; | |
24714 | void *argp2 = 0 ; | |
24715 | int res2 = 0 ; | |
24716 | PyObject * obj0 = 0 ; | |
24717 | PyObject * obj1 = 0 ; | |
24718 | char * kwnames[] = { | |
24719 | (char *) "self",(char *) "rect", NULL | |
24720 | }; | |
24721 | ||
24722 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail; | |
24723 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24724 | if (!SWIG_IsOK(res1)) { | |
24725 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24726 | } | |
24727 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24728 | if (obj1) { | |
24729 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 ); | |
24730 | if (!SWIG_IsOK(res2)) { | |
24731 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'"); | |
24732 | } | |
24733 | arg2 = reinterpret_cast< wxRect * >(argp2); | |
24734 | } | |
24735 | { | |
24736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24737 | result = (bool)(arg1)->StartDrawingOnTop(arg2); | |
24738 | wxPyEndAllowThreads(__tstate); | |
24739 | if (PyErr_Occurred()) SWIG_fail; | |
24740 | } | |
24741 | { | |
24742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24743 | } | |
24744 | return resultobj; | |
24745 | fail: | |
24746 | return NULL; | |
24747 | } | |
24748 | ||
24749 | ||
24750 | SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24751 | PyObject *resultobj = 0; | |
24752 | wxScreenDC *arg1 = (wxScreenDC *) 0 ; | |
24753 | bool result; | |
24754 | void *argp1 = 0 ; | |
24755 | int res1 = 0 ; | |
24756 | PyObject *swig_obj[1] ; | |
24757 | ||
24758 | if (!args) SWIG_fail; | |
24759 | swig_obj[0] = args; | |
24760 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 ); | |
24761 | if (!SWIG_IsOK(res1)) { | |
24762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'"); | |
24763 | } | |
24764 | arg1 = reinterpret_cast< wxScreenDC * >(argp1); | |
24765 | { | |
24766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24767 | result = (bool)(arg1)->EndDrawingOnTop(); | |
24768 | wxPyEndAllowThreads(__tstate); | |
24769 | if (PyErr_Occurred()) SWIG_fail; | |
24770 | } | |
24771 | { | |
24772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24773 | } | |
24774 | return resultobj; | |
24775 | fail: | |
24776 | return NULL; | |
24777 | } | |
24778 | ||
24779 | ||
24780 | SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24781 | PyObject *obj; | |
24782 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24783 | SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj)); | |
24784 | return SWIG_Py_Void(); | |
24785 | } | |
24786 | ||
24787 | SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24788 | return SWIG_Python_InitShadowInstance(args); | |
24789 | } | |
24790 | ||
24791 | SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24792 | PyObject *resultobj = 0; | |
24793 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24794 | wxWindowDC *result = 0 ; | |
24795 | void *argp1 = 0 ; | |
24796 | int res1 = 0 ; | |
24797 | PyObject * obj0 = 0 ; | |
24798 | char * kwnames[] = { | |
24799 | (char *) "win", NULL | |
24800 | }; | |
24801 | ||
24802 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail; | |
24803 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24804 | if (!SWIG_IsOK(res1)) { | |
24805 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24806 | } | |
24807 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24808 | { | |
24809 | if (!wxPyCheckForApp()) SWIG_fail; | |
24810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24811 | result = (wxWindowDC *)new wxWindowDC(arg1); | |
24812 | wxPyEndAllowThreads(__tstate); | |
24813 | if (PyErr_Occurred()) SWIG_fail; | |
24814 | } | |
24815 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 ); | |
24816 | return resultobj; | |
24817 | fail: | |
24818 | return NULL; | |
24819 | } | |
24820 | ||
24821 | ||
24822 | SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24823 | PyObject *obj; | |
24824 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24825 | SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj)); | |
24826 | return SWIG_Py_Void(); | |
24827 | } | |
24828 | ||
24829 | SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24830 | return SWIG_Python_InitShadowInstance(args); | |
24831 | } | |
24832 | ||
24833 | SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24834 | PyObject *resultobj = 0; | |
24835 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24836 | wxClientDC *result = 0 ; | |
24837 | void *argp1 = 0 ; | |
24838 | int res1 = 0 ; | |
24839 | PyObject * obj0 = 0 ; | |
24840 | char * kwnames[] = { | |
24841 | (char *) "win", NULL | |
24842 | }; | |
24843 | ||
24844 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail; | |
24845 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24846 | if (!SWIG_IsOK(res1)) { | |
24847 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24848 | } | |
24849 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24850 | { | |
24851 | if (!wxPyCheckForApp()) SWIG_fail; | |
24852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24853 | result = (wxClientDC *)new wxClientDC(arg1); | |
24854 | wxPyEndAllowThreads(__tstate); | |
24855 | if (PyErr_Occurred()) SWIG_fail; | |
24856 | } | |
24857 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 ); | |
24858 | return resultobj; | |
24859 | fail: | |
24860 | return NULL; | |
24861 | } | |
24862 | ||
24863 | ||
24864 | SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24865 | PyObject *obj; | |
24866 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24867 | SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj)); | |
24868 | return SWIG_Py_Void(); | |
24869 | } | |
24870 | ||
24871 | SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24872 | return SWIG_Python_InitShadowInstance(args); | |
24873 | } | |
24874 | ||
24875 | SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24876 | PyObject *resultobj = 0; | |
24877 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24878 | wxPaintDC *result = 0 ; | |
24879 | void *argp1 = 0 ; | |
24880 | int res1 = 0 ; | |
24881 | PyObject * obj0 = 0 ; | |
24882 | char * kwnames[] = { | |
24883 | (char *) "win", NULL | |
24884 | }; | |
24885 | ||
24886 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail; | |
24887 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
24888 | if (!SWIG_IsOK(res1)) { | |
24889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
24890 | } | |
24891 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
24892 | { | |
24893 | if (!wxPyCheckForApp()) SWIG_fail; | |
24894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24895 | result = (wxPaintDC *)new wxPaintDC(arg1); | |
24896 | wxPyEndAllowThreads(__tstate); | |
24897 | if (PyErr_Occurred()) SWIG_fail; | |
24898 | } | |
24899 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 ); | |
24900 | return resultobj; | |
24901 | fail: | |
24902 | return NULL; | |
24903 | } | |
24904 | ||
24905 | ||
24906 | SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24907 | PyObject *obj; | |
24908 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24909 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj)); | |
24910 | return SWIG_Py_Void(); | |
24911 | } | |
24912 | ||
24913 | SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
24914 | return SWIG_Python_InitShadowInstance(args); | |
24915 | } | |
24916 | ||
26c4d26f RD |
24917 | SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
24918 | PyObject *resultobj = 0; | |
24919 | wxBitmap &arg1_defvalue = wxNullBitmap ; | |
24920 | wxBitmap *arg1 = (wxBitmap *) &arg1_defvalue ; | |
24921 | wxMemoryDC *result = 0 ; | |
24922 | void *argp1 = 0 ; | |
24923 | int res1 = 0 ; | |
24924 | PyObject * obj0 = 0 ; | |
24925 | char * kwnames[] = { | |
24926 | (char *) "bitmap", NULL | |
24927 | }; | |
24928 | ||
24929 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MemoryDC",kwnames,&obj0)) SWIG_fail; | |
24930 | if (obj0) { | |
24931 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 ); | |
24932 | if (!SWIG_IsOK(res1)) { | |
24933 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24934 | } | |
24935 | if (!argp1) { | |
24936 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MemoryDC" "', expected argument " "1"" of type '" "wxBitmap &""'"); | |
24937 | } | |
24938 | arg1 = reinterpret_cast< wxBitmap * >(argp1); | |
24939 | } | |
24940 | { | |
24941 | if (!wxPyCheckForApp()) SWIG_fail; | |
24942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24943 | result = (wxMemoryDC *)new wxMemoryDC(*arg1); | |
24944 | wxPyEndAllowThreads(__tstate); | |
24945 | if (PyErr_Occurred()) SWIG_fail; | |
24946 | } | |
24947 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 ); | |
24948 | return resultobj; | |
24949 | fail: | |
24950 | return NULL; | |
24951 | } | |
24952 | ||
24953 | ||
24954 | SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24955 | PyObject *resultobj = 0; | |
24956 | wxDC *arg1 = (wxDC *) 0 ; | |
24957 | wxMemoryDC *result = 0 ; | |
24958 | void *argp1 = 0 ; | |
24959 | int res1 = 0 ; | |
24960 | PyObject * obj0 = 0 ; | |
24961 | char * kwnames[] = { | |
24962 | (char *) "oldDC", NULL | |
24963 | }; | |
24964 | ||
24965 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail; | |
24966 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
24967 | if (!SWIG_IsOK(res1)) { | |
24968 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
24969 | } | |
24970 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
24971 | { | |
24972 | if (!wxPyCheckForApp()) SWIG_fail; | |
24973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24974 | result = (wxMemoryDC *)new wxMemoryDC(arg1); | |
24975 | wxPyEndAllowThreads(__tstate); | |
24976 | if (PyErr_Occurred()) SWIG_fail; | |
24977 | } | |
24978 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 ); | |
24979 | return resultobj; | |
24980 | fail: | |
24981 | return NULL; | |
24982 | } | |
24983 | ||
24984 | ||
24985 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
24986 | PyObject *resultobj = 0; | |
24987 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
24988 | wxBitmap *arg2 = 0 ; | |
24989 | void *argp1 = 0 ; | |
24990 | int res1 = 0 ; | |
24991 | void *argp2 = 0 ; | |
24992 | int res2 = 0 ; | |
24993 | PyObject * obj0 = 0 ; | |
24994 | PyObject * obj1 = 0 ; | |
24995 | char * kwnames[] = { | |
24996 | (char *) "self",(char *) "bitmap", NULL | |
24997 | }; | |
24998 | ||
24999 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail; | |
25000 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
25001 | if (!SWIG_IsOK(res1)) { | |
25002 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
25003 | } | |
25004 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
25005 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); | |
25006 | if (!SWIG_IsOK(res2)) { | |
25007 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
25008 | } | |
25009 | if (!argp2) { | |
25010 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap &""'"); | |
25011 | } | |
25012 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
25013 | { | |
25014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25015 | (arg1)->SelectObject(*arg2); | |
25016 | wxPyEndAllowThreads(__tstate); | |
25017 | if (PyErr_Occurred()) SWIG_fail; | |
25018 | } | |
25019 | resultobj = SWIG_Py_Void(); | |
25020 | return resultobj; | |
25021 | fail: | |
25022 | return NULL; | |
25023 | } | |
25024 | ||
25025 | ||
25026 | SWIGINTERN PyObject *_wrap_MemoryDC_SelectObjectAsSource(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25027 | PyObject *resultobj = 0; | |
25028 | wxMemoryDC *arg1 = (wxMemoryDC *) 0 ; | |
25029 | wxBitmap *arg2 = 0 ; | |
25030 | void *argp1 = 0 ; | |
25031 | int res1 = 0 ; | |
25032 | void *argp2 = 0 ; | |
25033 | int res2 = 0 ; | |
25034 | PyObject * obj0 = 0 ; | |
25035 | PyObject * obj1 = 0 ; | |
25036 | char * kwnames[] = { | |
25037 | (char *) "self",(char *) "bmp", NULL | |
25038 | }; | |
25039 | ||
25040 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObjectAsSource",kwnames,&obj0,&obj1)) SWIG_fail; | |
25041 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 ); | |
25042 | if (!SWIG_IsOK(res1)) { | |
25043 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "1"" of type '" "wxMemoryDC *""'"); | |
25044 | } | |
25045 | arg1 = reinterpret_cast< wxMemoryDC * >(argp1); | |
25046 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
25047 | if (!SWIG_IsOK(res2)) { | |
25048 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
25049 | } | |
25050 | if (!argp2) { | |
25051 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObjectAsSource" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
25052 | } | |
25053 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
25054 | { | |
25055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25056 | (arg1)->SelectObjectAsSource((wxBitmap const &)*arg2); | |
25057 | wxPyEndAllowThreads(__tstate); | |
25058 | if (PyErr_Occurred()) SWIG_fail; | |
25059 | } | |
25060 | resultobj = SWIG_Py_Void(); | |
25061 | return resultobj; | |
25062 | fail: | |
25063 | return NULL; | |
25064 | } | |
25065 | ||
25066 | ||
25067 | SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25068 | PyObject *obj; | |
25069 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25070 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj)); | |
25071 | return SWIG_Py_Void(); | |
25072 | } | |
25073 | ||
25074 | SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25075 | return SWIG_Python_InitShadowInstance(args); | |
25076 | } | |
25077 | ||
554f62e9 RD |
25078 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
25079 | PyObject *resultobj = 0; | |
25080 | wxDC *arg1 = (wxDC *) 0 ; | |
b6df5cf9 | 25081 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
554f62e9 RD |
25082 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
25083 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
25084 | wxBufferedDC *result = 0 ; | |
25085 | void *argp1 = 0 ; | |
25086 | int res1 = 0 ; | |
25087 | void *argp2 = 0 ; | |
25088 | int res2 = 0 ; | |
25089 | int val3 ; | |
25090 | int ecode3 = 0 ; | |
25091 | ||
25092 | if ((nobjs < 1) || (nobjs > 3)) SWIG_fail; | |
25093 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
25094 | if (!SWIG_IsOK(res1)) { | |
25095 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
25096 | } | |
25097 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
25098 | if (swig_obj[1]) { | |
b6df5cf9 | 25099 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
554f62e9 | 25100 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 25101 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25102 | } |
554f62e9 | 25103 | if (!argp2) { |
b6df5cf9 | 25104 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25105 | } |
554f62e9 RD |
25106 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
25107 | } | |
25108 | if (swig_obj[2]) { | |
25109 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
25110 | if (!SWIG_IsOK(ecode3)) { | |
25111 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
25112 | } | |
25113 | arg3 = static_cast< int >(val3); | |
25114 | } | |
25115 | { | |
25116 | if (!wxPyCheckForApp()) SWIG_fail; | |
25117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 25118 | result = (wxBufferedDC *)new wxBufferedDC(arg1,*arg2,arg3); |
554f62e9 RD |
25119 | wxPyEndAllowThreads(__tstate); |
25120 | if (PyErr_Occurred()) SWIG_fail; | |
25121 | } | |
25122 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
25123 | return resultobj; | |
25124 | fail: | |
25125 | return NULL; | |
25126 | } | |
25127 | ||
25128 | ||
25129 | SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
25130 | PyObject *resultobj = 0; | |
25131 | wxDC *arg1 = (wxDC *) 0 ; | |
25132 | wxSize *arg2 = 0 ; | |
25133 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
25134 | wxBufferedDC *result = 0 ; | |
25135 | void *argp1 = 0 ; | |
25136 | int res1 = 0 ; | |
25137 | wxSize temp2 ; | |
25138 | int val3 ; | |
25139 | int ecode3 = 0 ; | |
25140 | ||
25141 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; | |
25142 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 ); | |
25143 | if (!SWIG_IsOK(res1)) { | |
25144 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'"); | |
25145 | } | |
25146 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
25147 | { | |
25148 | arg2 = &temp2; | |
25149 | if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail; | |
25150 | } | |
25151 | if (swig_obj[2]) { | |
25152 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
25153 | if (!SWIG_IsOK(ecode3)) { | |
25154 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'"); | |
25155 | } | |
25156 | arg3 = static_cast< int >(val3); | |
25157 | } | |
25158 | { | |
25159 | if (!wxPyCheckForApp()) SWIG_fail; | |
25160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25161 | result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3); | |
25162 | wxPyEndAllowThreads(__tstate); | |
25163 | if (PyErr_Occurred()) SWIG_fail; | |
25164 | } | |
25165 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 ); | |
25166 | return resultobj; | |
25167 | fail: | |
25168 | return NULL; | |
25169 | } | |
25170 | ||
25171 | ||
25172 | SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) { | |
25173 | int argc; | |
8e99bda9 | 25174 | PyObject *argv[4]; |
554f62e9 | 25175 | |
8e99bda9 | 25176 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail; |
554f62e9 RD |
25177 | --argc; |
25178 | if ((argc >= 1) && (argc <= 3)) { | |
25179 | int _v = 0; | |
25180 | if (argc > 1) { | |
25181 | { | |
b6df5cf9 RD |
25182 | void *vptr = 0; |
25183 | int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_wxBitmap, 0); | |
554f62e9 RD |
25184 | _v = SWIG_CheckState(res); |
25185 | } | |
25186 | if (!_v) goto check_1; | |
093d3ff1 | 25187 | } |
554f62e9 RD |
25188 | return _wrap_new_BufferedDC__SWIG_0(self, argc, argv); |
25189 | } | |
25190 | check_1: | |
25191 | ||
25192 | if ((argc >= 2) && (argc <= 3)) { | |
25193 | return _wrap_new_BufferedDC__SWIG_1(self, argc, argv); | |
25194 | } | |
25195 | ||
25196 | fail: | |
25197 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'"); | |
25198 | return NULL; | |
25199 | } | |
25200 | ||
25201 | ||
25202 | SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25203 | PyObject *resultobj = 0; | |
25204 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25205 | void *argp1 = 0 ; | |
25206 | int res1 = 0 ; | |
25207 | PyObject *swig_obj[1] ; | |
25208 | ||
25209 | if (!args) SWIG_fail; | |
25210 | swig_obj[0] = args; | |
25211 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 ); | |
25212 | if (!SWIG_IsOK(res1)) { | |
25213 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
25214 | } | |
25215 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25216 | { | |
25217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25218 | delete arg1; | |
25219 | ||
25220 | wxPyEndAllowThreads(__tstate); | |
25221 | if (PyErr_Occurred()) SWIG_fail; | |
25222 | } | |
25223 | resultobj = SWIG_Py_Void(); | |
25224 | return resultobj; | |
25225 | fail: | |
25226 | return NULL; | |
25227 | } | |
25228 | ||
25229 | ||
25230 | SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25231 | PyObject *resultobj = 0; | |
25232 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25233 | void *argp1 = 0 ; | |
25234 | int res1 = 0 ; | |
25235 | PyObject *swig_obj[1] ; | |
25236 | ||
25237 | if (!args) SWIG_fail; | |
25238 | swig_obj[0] = args; | |
25239 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
25240 | if (!SWIG_IsOK(res1)) { | |
25241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
25242 | } | |
25243 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25244 | { | |
25245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25246 | (arg1)->UnMask(); | |
25247 | wxPyEndAllowThreads(__tstate); | |
25248 | if (PyErr_Occurred()) SWIG_fail; | |
25249 | } | |
25250 | resultobj = SWIG_Py_Void(); | |
25251 | return resultobj; | |
25252 | fail: | |
25253 | return NULL; | |
25254 | } | |
25255 | ||
25256 | ||
b6df5cf9 RD |
25257 | SWIGINTERN PyObject *_wrap_BufferedDC_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25258 | PyObject *resultobj = 0; | |
25259 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25260 | int arg2 ; | |
25261 | void *argp1 = 0 ; | |
25262 | int res1 = 0 ; | |
25263 | int val2 ; | |
25264 | int ecode2 = 0 ; | |
25265 | PyObject * obj0 = 0 ; | |
25266 | PyObject * obj1 = 0 ; | |
25267 | char * kwnames[] = { | |
25268 | (char *) "self",(char *) "style", NULL | |
25269 | }; | |
25270 | ||
25271 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BufferedDC_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail; | |
25272 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
25273 | if (!SWIG_IsOK(res1)) { | |
25274 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_SetStyle" "', expected argument " "1"" of type '" "wxBufferedDC *""'"); | |
25275 | } | |
25276 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25277 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25278 | if (!SWIG_IsOK(ecode2)) { | |
25279 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "BufferedDC_SetStyle" "', expected argument " "2"" of type '" "int""'"); | |
25280 | } | |
25281 | arg2 = static_cast< int >(val2); | |
25282 | { | |
25283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25284 | (arg1)->SetStyle(arg2); | |
25285 | wxPyEndAllowThreads(__tstate); | |
25286 | if (PyErr_Occurred()) SWIG_fail; | |
25287 | } | |
25288 | resultobj = SWIG_Py_Void(); | |
25289 | return resultobj; | |
25290 | fail: | |
25291 | return NULL; | |
25292 | } | |
25293 | ||
25294 | ||
25295 | SWIGINTERN PyObject *_wrap_BufferedDC_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25296 | PyObject *resultobj = 0; | |
25297 | wxBufferedDC *arg1 = (wxBufferedDC *) 0 ; | |
25298 | int result; | |
25299 | void *argp1 = 0 ; | |
25300 | int res1 = 0 ; | |
25301 | PyObject *swig_obj[1] ; | |
25302 | ||
25303 | if (!args) SWIG_fail; | |
25304 | swig_obj[0] = args; | |
25305 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 ); | |
25306 | if (!SWIG_IsOK(res1)) { | |
25307 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_GetStyle" "', expected argument " "1"" of type '" "wxBufferedDC const *""'"); | |
25308 | } | |
25309 | arg1 = reinterpret_cast< wxBufferedDC * >(argp1); | |
25310 | { | |
25311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25312 | result = (int)((wxBufferedDC const *)arg1)->GetStyle(); | |
25313 | wxPyEndAllowThreads(__tstate); | |
25314 | if (PyErr_Occurred()) SWIG_fail; | |
25315 | } | |
25316 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25317 | return resultobj; | |
25318 | fail: | |
25319 | return NULL; | |
25320 | } | |
25321 | ||
25322 | ||
554f62e9 RD |
25323 | SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
25324 | PyObject *obj; | |
25325 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25326 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj)); | |
25327 | return SWIG_Py_Void(); | |
25328 | } | |
25329 | ||
25330 | SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25331 | return SWIG_Python_InitShadowInstance(args); | |
25332 | } | |
25333 | ||
25334 | SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25335 | PyObject *resultobj = 0; | |
25336 | wxWindow *arg1 = (wxWindow *) 0 ; | |
b6df5cf9 | 25337 | wxBitmap &arg2_defvalue = wxNullBitmap ; |
554f62e9 RD |
25338 | wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ; |
25339 | int arg3 = (int) wxBUFFER_CLIENT_AREA ; | |
25340 | wxBufferedPaintDC *result = 0 ; | |
25341 | void *argp1 = 0 ; | |
25342 | int res1 = 0 ; | |
25343 | void *argp2 = 0 ; | |
25344 | int res2 = 0 ; | |
25345 | int val3 ; | |
25346 | int ecode3 = 0 ; | |
25347 | PyObject * obj0 = 0 ; | |
25348 | PyObject * obj1 = 0 ; | |
25349 | PyObject * obj2 = 0 ; | |
25350 | char * kwnames[] = { | |
25351 | (char *) "window",(char *) "buffer",(char *) "style", NULL | |
25352 | }; | |
25353 | ||
25354 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25355 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25356 | if (!SWIG_IsOK(res1)) { | |
25357 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25358 | } | |
25359 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25360 | if (obj1) { | |
b6df5cf9 | 25361 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 ); |
554f62e9 | 25362 | if (!SWIG_IsOK(res2)) { |
b6df5cf9 | 25363 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25364 | } |
554f62e9 | 25365 | if (!argp2) { |
b6df5cf9 | 25366 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap &""'"); |
093d3ff1 | 25367 | } |
554f62e9 RD |
25368 | arg2 = reinterpret_cast< wxBitmap * >(argp2); |
25369 | } | |
25370 | if (obj2) { | |
25371 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25372 | if (!SWIG_IsOK(ecode3)) { | |
25373 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'"); | |
25374 | } | |
25375 | arg3 = static_cast< int >(val3); | |
25376 | } | |
25377 | { | |
25378 | if (!wxPyCheckForApp()) SWIG_fail; | |
25379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b6df5cf9 | 25380 | result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,*arg2,arg3); |
554f62e9 RD |
25381 | wxPyEndAllowThreads(__tstate); |
25382 | if (PyErr_Occurred()) SWIG_fail; | |
25383 | } | |
25384 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 ); | |
25385 | return resultobj; | |
25386 | fail: | |
25387 | return NULL; | |
25388 | } | |
25389 | ||
25390 | ||
25391 | SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25392 | PyObject *obj; | |
25393 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25394 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj)); | |
25395 | return SWIG_Py_Void(); | |
25396 | } | |
25397 | ||
25398 | SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25399 | return SWIG_Python_InitShadowInstance(args); | |
25400 | } | |
25401 | ||
24f6c4e8 | 25402 | SWIGINTERN PyObject *_wrap_new_AutoBufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
25403 | PyObject *resultobj = 0; |
25404 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24f6c4e8 | 25405 | wxAutoBufferedPaintDC *result = 0 ; |
554f62e9 RD |
25406 | void *argp1 = 0 ; |
25407 | int res1 = 0 ; | |
25408 | PyObject * obj0 = 0 ; | |
25409 | char * kwnames[] = { | |
25410 | (char *) "win", NULL | |
25411 | }; | |
25412 | ||
24f6c4e8 | 25413 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_AutoBufferedPaintDC",kwnames,&obj0)) SWIG_fail; |
554f62e9 RD |
25414 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); |
25415 | if (!SWIG_IsOK(res1)) { | |
24f6c4e8 | 25416 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_AutoBufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'"); |
554f62e9 RD |
25417 | } |
25418 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25419 | { | |
554f62e9 | 25420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
24f6c4e8 | 25421 | result = (wxAutoBufferedPaintDC *)new wxAutoBufferedPaintDC(arg1); |
554f62e9 RD |
25422 | wxPyEndAllowThreads(__tstate); |
25423 | if (PyErr_Occurred()) SWIG_fail; | |
25424 | } | |
24f6c4e8 | 25425 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_POINTER_NEW | 0 ); |
554f62e9 RD |
25426 | return resultobj; |
25427 | fail: | |
25428 | return NULL; | |
25429 | } | |
25430 | ||
25431 | ||
24f6c4e8 | 25432 | SWIGINTERN PyObject *AutoBufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
25433 | PyObject *obj; |
25434 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
24f6c4e8 | 25435 | SWIG_TypeNewClientData(SWIGTYPE_p_wxAutoBufferedPaintDC, SWIG_NewClientData(obj)); |
554f62e9 RD |
25436 | return SWIG_Py_Void(); |
25437 | } | |
25438 | ||
24f6c4e8 | 25439 | SWIGINTERN PyObject *AutoBufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
25440 | return SWIG_Python_InitShadowInstance(args); |
25441 | } | |
25442 | ||
8e99bda9 RD |
25443 | SWIGINTERN PyObject *_wrap_AutoBufferedPaintDCFactory(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25444 | PyObject *resultobj = 0; | |
25445 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25446 | wxDC *result = 0 ; | |
25447 | void *argp1 = 0 ; | |
25448 | int res1 = 0 ; | |
25449 | PyObject * obj0 = 0 ; | |
25450 | char * kwnames[] = { | |
25451 | (char *) "window", NULL | |
25452 | }; | |
25453 | ||
25454 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:AutoBufferedPaintDCFactory",kwnames,&obj0)) SWIG_fail; | |
25455 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
25456 | if (!SWIG_IsOK(res1)) { | |
25457 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "AutoBufferedPaintDCFactory" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
25458 | } | |
25459 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
25460 | { | |
25461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25462 | result = (wxDC *)wxAutoBufferedPaintDCFactory(arg1); | |
25463 | wxPyEndAllowThreads(__tstate); | |
25464 | if (PyErr_Occurred()) SWIG_fail; | |
25465 | } | |
25466 | { | |
25467 | resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_OWN); | |
25468 | } | |
25469 | return resultobj; | |
25470 | fail: | |
25471 | return NULL; | |
25472 | } | |
25473 | ||
25474 | ||
554f62e9 RD |
25475 | SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
25476 | PyObject *resultobj = 0; | |
25477 | wxDC *arg1 = 0 ; | |
25478 | bool arg2 ; | |
25479 | wxMirrorDC *result = 0 ; | |
25480 | void *argp1 = 0 ; | |
25481 | int res1 = 0 ; | |
25482 | bool val2 ; | |
25483 | int ecode2 = 0 ; | |
25484 | PyObject * obj0 = 0 ; | |
25485 | PyObject * obj1 = 0 ; | |
25486 | char * kwnames[] = { | |
25487 | (char *) "dc",(char *) "mirror", NULL | |
25488 | }; | |
25489 | ||
25490 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
25491 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 ); | |
25492 | if (!SWIG_IsOK(res1)) { | |
25493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
25494 | } | |
25495 | if (!argp1) { | |
25496 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'"); | |
25497 | } | |
25498 | arg1 = reinterpret_cast< wxDC * >(argp1); | |
25499 | ecode2 = SWIG_AsVal_bool(obj1, &val2); | |
25500 | if (!SWIG_IsOK(ecode2)) { | |
25501 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'"); | |
25502 | } | |
25503 | arg2 = static_cast< bool >(val2); | |
25504 | { | |
25505 | if (!wxPyCheckForApp()) SWIG_fail; | |
25506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25507 | result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2); | |
25508 | wxPyEndAllowThreads(__tstate); | |
25509 | if (PyErr_Occurred()) SWIG_fail; | |
25510 | } | |
25511 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 ); | |
25512 | return resultobj; | |
25513 | fail: | |
25514 | return NULL; | |
25515 | } | |
25516 | ||
25517 | ||
25518 | SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25519 | PyObject *obj; | |
25520 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25521 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj)); | |
25522 | return SWIG_Py_Void(); | |
25523 | } | |
25524 | ||
25525 | SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25526 | return SWIG_Python_InitShadowInstance(args); | |
25527 | } | |
25528 | ||
25529 | SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25530 | PyObject *resultobj = 0; | |
25531 | wxPrintData *arg1 = 0 ; | |
25532 | wxPostScriptDC *result = 0 ; | |
25533 | void *argp1 = 0 ; | |
25534 | int res1 = 0 ; | |
25535 | PyObject * obj0 = 0 ; | |
25536 | char * kwnames[] = { | |
25537 | (char *) "printData", NULL | |
25538 | }; | |
25539 | ||
25540 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail; | |
25541 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25542 | if (!SWIG_IsOK(res1)) { | |
25543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25544 | } | |
25545 | if (!argp1) { | |
25546 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
25547 | } | |
25548 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
25549 | { | |
25550 | if (!wxPyCheckForApp()) SWIG_fail; | |
25551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25552 | result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1); | |
25553 | wxPyEndAllowThreads(__tstate); | |
25554 | if (PyErr_Occurred()) SWIG_fail; | |
25555 | } | |
25556 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 ); | |
25557 | return resultobj; | |
25558 | fail: | |
25559 | return NULL; | |
25560 | } | |
25561 | ||
25562 | ||
25563 | SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25564 | PyObject *resultobj = 0; | |
25565 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
25566 | wxPrintData *result = 0 ; | |
25567 | void *argp1 = 0 ; | |
25568 | int res1 = 0 ; | |
25569 | PyObject *swig_obj[1] ; | |
25570 | ||
25571 | if (!args) SWIG_fail; | |
25572 | swig_obj[0] = args; | |
25573 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
25574 | if (!SWIG_IsOK(res1)) { | |
25575 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
25576 | } | |
25577 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
25578 | { | |
25579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
093d3ff1 | 25580 | { |
554f62e9 RD |
25581 | wxPrintData &_result_ref = (arg1)->GetPrintData(); |
25582 | result = (wxPrintData *) &_result_ref; | |
093d3ff1 | 25583 | } |
554f62e9 RD |
25584 | wxPyEndAllowThreads(__tstate); |
25585 | if (PyErr_Occurred()) SWIG_fail; | |
25586 | } | |
25587 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 ); | |
25588 | return resultobj; | |
25589 | fail: | |
25590 | return NULL; | |
25591 | } | |
25592 | ||
25593 | ||
25594 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25595 | PyObject *resultobj = 0; | |
25596 | wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ; | |
25597 | wxPrintData *arg2 = 0 ; | |
25598 | void *argp1 = 0 ; | |
25599 | int res1 = 0 ; | |
25600 | void *argp2 = 0 ; | |
25601 | int res2 = 0 ; | |
25602 | PyObject * obj0 = 0 ; | |
25603 | PyObject * obj1 = 0 ; | |
25604 | char * kwnames[] = { | |
25605 | (char *) "self",(char *) "data", NULL | |
25606 | }; | |
25607 | ||
25608 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail; | |
25609 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 ); | |
25610 | if (!SWIG_IsOK(res1)) { | |
25611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'"); | |
25612 | } | |
25613 | arg1 = reinterpret_cast< wxPostScriptDC * >(argp1); | |
25614 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0); | |
25615 | if (!SWIG_IsOK(res2)) { | |
25616 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25617 | } | |
25618 | if (!argp2) { | |
25619 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'"); | |
25620 | } | |
25621 | arg2 = reinterpret_cast< wxPrintData * >(argp2); | |
25622 | { | |
25623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25624 | (arg1)->SetPrintData((wxPrintData const &)*arg2); | |
25625 | wxPyEndAllowThreads(__tstate); | |
25626 | if (PyErr_Occurred()) SWIG_fail; | |
25627 | } | |
25628 | resultobj = SWIG_Py_Void(); | |
25629 | return resultobj; | |
25630 | fail: | |
25631 | return NULL; | |
25632 | } | |
25633 | ||
25634 | ||
25635 | SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25636 | PyObject *resultobj = 0; | |
25637 | int arg1 ; | |
25638 | int val1 ; | |
25639 | int ecode1 = 0 ; | |
25640 | PyObject * obj0 = 0 ; | |
25641 | char * kwnames[] = { | |
25642 | (char *) "ppi", NULL | |
25643 | }; | |
25644 | ||
25645 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail; | |
25646 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
25647 | if (!SWIG_IsOK(ecode1)) { | |
25648 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'"); | |
25649 | } | |
25650 | arg1 = static_cast< int >(val1); | |
25651 | { | |
25652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25653 | wxPostScriptDC::SetResolution(arg1); | |
25654 | wxPyEndAllowThreads(__tstate); | |
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_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25665 | PyObject *resultobj = 0; | |
25666 | int result; | |
25667 | ||
25668 | if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail; | |
25669 | { | |
25670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25671 | result = (int)wxPostScriptDC::GetResolution(); | |
25672 | wxPyEndAllowThreads(__tstate); | |
25673 | if (PyErr_Occurred()) SWIG_fail; | |
25674 | } | |
25675 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25676 | return resultobj; | |
25677 | fail: | |
25678 | return NULL; | |
25679 | } | |
25680 | ||
25681 | ||
25682 | SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25683 | PyObject *obj; | |
25684 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25685 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj)); | |
25686 | return SWIG_Py_Void(); | |
25687 | } | |
25688 | ||
25689 | SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25690 | return SWIG_Python_InitShadowInstance(args); | |
25691 | } | |
25692 | ||
25693 | SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25694 | PyObject *resultobj = 0; | |
25695 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25696 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25697 | wxMetaFile *result = 0 ; | |
25698 | bool temp1 = false ; | |
25699 | PyObject * obj0 = 0 ; | |
25700 | char * kwnames[] = { | |
25701 | (char *) "filename", NULL | |
25702 | }; | |
25703 | ||
25704 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail; | |
25705 | if (obj0) { | |
093d3ff1 | 25706 | { |
554f62e9 RD |
25707 | arg1 = wxString_in_helper(obj0); |
25708 | if (arg1 == NULL) SWIG_fail; | |
25709 | temp1 = true; | |
093d3ff1 | 25710 | } |
554f62e9 RD |
25711 | } |
25712 | { | |
25713 | if (!wxPyCheckForApp()) SWIG_fail; | |
25714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25715 | result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1); | |
25716 | wxPyEndAllowThreads(__tstate); | |
25717 | if (PyErr_Occurred()) SWIG_fail; | |
25718 | } | |
25719 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 ); | |
25720 | { | |
25721 | if (temp1) | |
25722 | delete arg1; | |
25723 | } | |
25724 | return resultobj; | |
25725 | fail: | |
25726 | { | |
25727 | if (temp1) | |
25728 | delete arg1; | |
25729 | } | |
25730 | return NULL; | |
25731 | } | |
25732 | ||
25733 | ||
25734 | SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25735 | PyObject *resultobj = 0; | |
25736 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25737 | void *argp1 = 0 ; | |
25738 | int res1 = 0 ; | |
25739 | PyObject *swig_obj[1] ; | |
25740 | ||
25741 | if (!args) SWIG_fail; | |
25742 | swig_obj[0] = args; | |
25743 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 ); | |
25744 | if (!SWIG_IsOK(res1)) { | |
25745 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25746 | } | |
25747 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25748 | { | |
25749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25750 | delete arg1; | |
25751 | ||
25752 | wxPyEndAllowThreads(__tstate); | |
25753 | if (PyErr_Occurred()) SWIG_fail; | |
25754 | } | |
25755 | resultobj = SWIG_Py_Void(); | |
25756 | return resultobj; | |
25757 | fail: | |
25758 | return NULL; | |
25759 | } | |
25760 | ||
25761 | ||
b39fe951 | 25762 | SWIGINTERN PyObject *_wrap_MetaFile_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
25763 | PyObject *resultobj = 0; |
25764 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25765 | bool result; | |
25766 | void *argp1 = 0 ; | |
25767 | int res1 = 0 ; | |
25768 | PyObject *swig_obj[1] ; | |
25769 | ||
25770 | if (!args) SWIG_fail; | |
25771 | swig_obj[0] = args; | |
25772 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25773 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 25774 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_IsOk" "', expected argument " "1"" of type '" "wxMetaFile *""'"); |
554f62e9 RD |
25775 | } |
25776 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25777 | { | |
25778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b39fe951 | 25779 | result = (bool)(arg1)->IsOk(); |
554f62e9 RD |
25780 | wxPyEndAllowThreads(__tstate); |
25781 | if (PyErr_Occurred()) SWIG_fail; | |
25782 | } | |
25783 | { | |
25784 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25785 | } | |
25786 | return resultobj; | |
25787 | fail: | |
25788 | return NULL; | |
25789 | } | |
25790 | ||
25791 | ||
25792 | SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25793 | PyObject *resultobj = 0; | |
25794 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25795 | int arg2 = (int) 0 ; | |
25796 | int arg3 = (int) 0 ; | |
25797 | bool result; | |
25798 | void *argp1 = 0 ; | |
25799 | int res1 = 0 ; | |
25800 | int val2 ; | |
25801 | int ecode2 = 0 ; | |
25802 | int val3 ; | |
25803 | int ecode3 = 0 ; | |
25804 | PyObject * obj0 = 0 ; | |
25805 | PyObject * obj1 = 0 ; | |
25806 | PyObject * obj2 = 0 ; | |
25807 | char * kwnames[] = { | |
25808 | (char *) "self",(char *) "width",(char *) "height", NULL | |
25809 | }; | |
25810 | ||
25811 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
25812 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25813 | if (!SWIG_IsOK(res1)) { | |
25814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25815 | } | |
25816 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25817 | if (obj1) { | |
25818 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
25819 | if (!SWIG_IsOK(ecode2)) { | |
25820 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'"); | |
25821 | } | |
25822 | arg2 = static_cast< int >(val2); | |
25823 | } | |
25824 | if (obj2) { | |
25825 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
25826 | if (!SWIG_IsOK(ecode3)) { | |
25827 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'"); | |
25828 | } | |
25829 | arg3 = static_cast< int >(val3); | |
25830 | } | |
25831 | { | |
25832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25833 | result = (bool)(arg1)->SetClipboard(arg2,arg3); | |
25834 | wxPyEndAllowThreads(__tstate); | |
25835 | if (PyErr_Occurred()) SWIG_fail; | |
25836 | } | |
25837 | { | |
25838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25839 | } | |
25840 | return resultobj; | |
25841 | fail: | |
25842 | return NULL; | |
25843 | } | |
25844 | ||
25845 | ||
25846 | SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25847 | PyObject *resultobj = 0; | |
25848 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25849 | wxSize result; | |
25850 | void *argp1 = 0 ; | |
25851 | int res1 = 0 ; | |
25852 | PyObject *swig_obj[1] ; | |
25853 | ||
25854 | if (!args) SWIG_fail; | |
25855 | swig_obj[0] = args; | |
25856 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25857 | if (!SWIG_IsOK(res1)) { | |
25858 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25859 | } | |
25860 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25861 | { | |
25862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25863 | result = (arg1)->GetSize(); | |
25864 | wxPyEndAllowThreads(__tstate); | |
25865 | if (PyErr_Occurred()) SWIG_fail; | |
25866 | } | |
25867 | resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 ); | |
25868 | return resultobj; | |
25869 | fail: | |
25870 | return NULL; | |
25871 | } | |
25872 | ||
25873 | ||
25874 | SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25875 | PyObject *resultobj = 0; | |
25876 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25877 | int result; | |
25878 | void *argp1 = 0 ; | |
25879 | int res1 = 0 ; | |
25880 | PyObject *swig_obj[1] ; | |
25881 | ||
25882 | if (!args) SWIG_fail; | |
25883 | swig_obj[0] = args; | |
25884 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25885 | if (!SWIG_IsOK(res1)) { | |
25886 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25887 | } | |
25888 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25889 | { | |
25890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25891 | result = (int)(arg1)->GetWidth(); | |
25892 | wxPyEndAllowThreads(__tstate); | |
25893 | if (PyErr_Occurred()) SWIG_fail; | |
25894 | } | |
25895 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25896 | return resultobj; | |
25897 | fail: | |
25898 | return NULL; | |
25899 | } | |
25900 | ||
25901 | ||
25902 | SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25903 | PyObject *resultobj = 0; | |
25904 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25905 | int result; | |
25906 | void *argp1 = 0 ; | |
25907 | int res1 = 0 ; | |
25908 | PyObject *swig_obj[1] ; | |
25909 | ||
25910 | if (!args) SWIG_fail; | |
25911 | swig_obj[0] = args; | |
25912 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25913 | if (!SWIG_IsOK(res1)) { | |
25914 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'"); | |
25915 | } | |
25916 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25917 | { | |
25918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25919 | result = (int)(arg1)->GetHeight(); | |
25920 | wxPyEndAllowThreads(__tstate); | |
25921 | if (PyErr_Occurred()) SWIG_fail; | |
25922 | } | |
25923 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
25924 | return resultobj; | |
25925 | fail: | |
25926 | return NULL; | |
25927 | } | |
25928 | ||
25929 | ||
25930 | SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25931 | PyObject *resultobj = 0; | |
25932 | wxMetaFile *arg1 = (wxMetaFile *) 0 ; | |
25933 | wxString *result = 0 ; | |
25934 | void *argp1 = 0 ; | |
25935 | int res1 = 0 ; | |
25936 | PyObject *swig_obj[1] ; | |
25937 | ||
25938 | if (!args) SWIG_fail; | |
25939 | swig_obj[0] = args; | |
25940 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
25941 | if (!SWIG_IsOK(res1)) { | |
25942 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'"); | |
25943 | } | |
25944 | arg1 = reinterpret_cast< wxMetaFile * >(argp1); | |
25945 | { | |
25946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
e2950dbb | 25947 | { |
554f62e9 RD |
25948 | wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName(); |
25949 | result = (wxString *) &_result_ref; | |
e2950dbb | 25950 | } |
554f62e9 RD |
25951 | wxPyEndAllowThreads(__tstate); |
25952 | if (PyErr_Occurred()) SWIG_fail; | |
25953 | } | |
25954 | { | |
25955 | #if wxUSE_UNICODE | |
25956 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
25957 | #else | |
25958 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
25959 | #endif | |
25960 | } | |
25961 | return resultobj; | |
25962 | fail: | |
25963 | return NULL; | |
25964 | } | |
25965 | ||
25966 | ||
25967 | SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25968 | PyObject *obj; | |
25969 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
25970 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj)); | |
25971 | return SWIG_Py_Void(); | |
25972 | } | |
25973 | ||
25974 | SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
25975 | return SWIG_Python_InitShadowInstance(args); | |
25976 | } | |
25977 | ||
25978 | SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
25979 | PyObject *resultobj = 0; | |
25980 | wxString const &arg1_defvalue = wxPyEmptyString ; | |
25981 | wxString *arg1 = (wxString *) &arg1_defvalue ; | |
25982 | int arg2 = (int) 0 ; | |
25983 | int arg3 = (int) 0 ; | |
25984 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
25985 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
25986 | wxMetaFileDC *result = 0 ; | |
25987 | bool temp1 = false ; | |
25988 | int val2 ; | |
25989 | int ecode2 = 0 ; | |
25990 | int val3 ; | |
25991 | int ecode3 = 0 ; | |
25992 | bool temp4 = false ; | |
25993 | PyObject * obj0 = 0 ; | |
25994 | PyObject * obj1 = 0 ; | |
25995 | PyObject * obj2 = 0 ; | |
25996 | PyObject * obj3 = 0 ; | |
25997 | char * kwnames[] = { | |
25998 | (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL | |
25999 | }; | |
26000 | ||
26001 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
26002 | if (obj0) { | |
e2950dbb | 26003 | { |
554f62e9 RD |
26004 | arg1 = wxString_in_helper(obj0); |
26005 | if (arg1 == NULL) SWIG_fail; | |
26006 | temp1 = true; | |
e2950dbb | 26007 | } |
554f62e9 RD |
26008 | } |
26009 | if (obj1) { | |
26010 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
26011 | if (!SWIG_IsOK(ecode2)) { | |
26012 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'"); | |
26013 | } | |
26014 | arg2 = static_cast< int >(val2); | |
26015 | } | |
26016 | if (obj2) { | |
26017 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
26018 | if (!SWIG_IsOK(ecode3)) { | |
26019 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'"); | |
26020 | } | |
26021 | arg3 = static_cast< int >(val3); | |
26022 | } | |
26023 | if (obj3) { | |
093d3ff1 | 26024 | { |
554f62e9 RD |
26025 | arg4 = wxString_in_helper(obj3); |
26026 | if (arg4 == NULL) SWIG_fail; | |
26027 | temp4 = true; | |
093d3ff1 | 26028 | } |
554f62e9 RD |
26029 | } |
26030 | { | |
26031 | if (!wxPyCheckForApp()) SWIG_fail; | |
26032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26033 | result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4); | |
26034 | wxPyEndAllowThreads(__tstate); | |
26035 | if (PyErr_Occurred()) SWIG_fail; | |
26036 | } | |
26037 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 ); | |
26038 | { | |
26039 | if (temp1) | |
26040 | delete arg1; | |
26041 | } | |
26042 | { | |
26043 | if (temp4) | |
26044 | delete arg4; | |
26045 | } | |
26046 | return resultobj; | |
26047 | fail: | |
26048 | { | |
26049 | if (temp1) | |
26050 | delete arg1; | |
26051 | } | |
26052 | { | |
26053 | if (temp4) | |
26054 | delete arg4; | |
26055 | } | |
26056 | return NULL; | |
26057 | } | |
26058 | ||
26059 | ||
26060 | SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26061 | PyObject *resultobj = 0; | |
26062 | wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ; | |
26063 | wxMetaFile *result = 0 ; | |
26064 | void *argp1 = 0 ; | |
26065 | int res1 = 0 ; | |
26066 | PyObject *swig_obj[1] ; | |
26067 | ||
26068 | if (!args) SWIG_fail; | |
26069 | swig_obj[0] = args; | |
26070 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 ); | |
26071 | if (!SWIG_IsOK(res1)) { | |
26072 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'"); | |
26073 | } | |
26074 | arg1 = reinterpret_cast< wxMetaFileDC * >(argp1); | |
26075 | { | |
26076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26077 | result = (wxMetaFile *)(arg1)->Close(); | |
26078 | wxPyEndAllowThreads(__tstate); | |
26079 | if (PyErr_Occurred()) SWIG_fail; | |
26080 | } | |
26081 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 ); | |
26082 | return resultobj; | |
26083 | fail: | |
26084 | return NULL; | |
26085 | } | |
26086 | ||
26087 | ||
26088 | SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26089 | PyObject *obj; | |
26090 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26091 | SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj)); | |
26092 | return SWIG_Py_Void(); | |
26093 | } | |
26094 | ||
26095 | SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26096 | return SWIG_Python_InitShadowInstance(args); | |
26097 | } | |
26098 | ||
26099 | SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
26100 | PyObject *resultobj = 0; | |
26101 | wxPrintData *arg1 = 0 ; | |
26102 | wxPrinterDC *result = 0 ; | |
26103 | void *argp1 = 0 ; | |
26104 | int res1 = 0 ; | |
26105 | PyObject * obj0 = 0 ; | |
26106 | char * kwnames[] = { | |
26107 | (char *) "printData", NULL | |
26108 | }; | |
26109 | ||
26110 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail; | |
26111 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0); | |
26112 | if (!SWIG_IsOK(res1)) { | |
26113 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
26114 | } | |
26115 | if (!argp1) { | |
26116 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'"); | |
26117 | } | |
26118 | arg1 = reinterpret_cast< wxPrintData * >(argp1); | |
26119 | { | |
26120 | if (!wxPyCheckForApp()) SWIG_fail; | |
26121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26122 | result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1); | |
26123 | wxPyEndAllowThreads(__tstate); | |
26124 | if (PyErr_Occurred()) SWIG_fail; | |
26125 | } | |
26126 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 ); | |
26127 | return resultobj; | |
26128 | fail: | |
26129 | return NULL; | |
26130 | } | |
26131 | ||
26132 | ||
26133 | SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26134 | PyObject *obj; | |
26135 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26136 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj)); | |
26137 | return SWIG_Py_Void(); | |
26138 | } | |
26139 | ||
26140 | SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26141 | return SWIG_Python_InitShadowInstance(args); | |
26142 | } | |
26143 | ||
70d7cb34 RD |
26144 | SWIGINTERN PyObject *_wrap_new_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26145 | PyObject *resultobj = 0; | |
26146 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) NULL ; | |
26147 | wxGraphicsObject *result = 0 ; | |
26148 | void *argp1 = 0 ; | |
26149 | int res1 = 0 ; | |
26150 | PyObject * obj0 = 0 ; | |
26151 | char * kwnames[] = { | |
26152 | (char *) "renderer", NULL | |
26153 | }; | |
26154 | ||
26155 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_GraphicsObject",kwnames,&obj0)) SWIG_fail; | |
26156 | if (obj0) { | |
26157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
26158 | if (!SWIG_IsOK(res1)) { | |
26159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
26160 | } | |
26161 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
26162 | } | |
26163 | { | |
26164 | result = (wxGraphicsObject *)new wxGraphicsObject(arg1); | |
26165 | if (PyErr_Occurred()) SWIG_fail; | |
26166 | } | |
26167 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_NEW | 0 ); | |
26168 | return resultobj; | |
26169 | fail: | |
26170 | return NULL; | |
26171 | } | |
26172 | ||
26173 | ||
26174 | SWIGINTERN PyObject *_wrap_delete_GraphicsObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26175 | PyObject *resultobj = 0; | |
26176 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
26177 | void *argp1 = 0 ; | |
26178 | int res1 = 0 ; | |
26179 | PyObject *swig_obj[1] ; | |
26180 | ||
26181 | if (!args) SWIG_fail; | |
26182 | swig_obj[0] = args; | |
26183 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, SWIG_POINTER_DISOWN | 0 ); | |
26184 | if (!SWIG_IsOK(res1)) { | |
26185 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsObject" "', expected argument " "1"" of type '" "wxGraphicsObject *""'"); | |
26186 | } | |
26187 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
26188 | { | |
26189 | delete arg1; | |
26190 | ||
26191 | if (PyErr_Occurred()) SWIG_fail; | |
26192 | } | |
26193 | resultobj = SWIG_Py_Void(); | |
26194 | return resultobj; | |
26195 | fail: | |
26196 | return NULL; | |
26197 | } | |
26198 | ||
26199 | ||
26200 | SWIGINTERN PyObject *_wrap_GraphicsObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26201 | PyObject *resultobj = 0; | |
26202 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
26203 | bool result; | |
26204 | void *argp1 = 0 ; | |
26205 | int res1 = 0 ; | |
26206 | PyObject *swig_obj[1] ; | |
26207 | ||
26208 | if (!args) SWIG_fail; | |
26209 | swig_obj[0] = args; | |
26210 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
26211 | if (!SWIG_IsOK(res1)) { | |
26212 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_IsNull" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
26213 | } | |
26214 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
26215 | { | |
26216 | result = (bool)((wxGraphicsObject const *)arg1)->IsNull(); | |
26217 | if (PyErr_Occurred()) SWIG_fail; | |
26218 | } | |
26219 | { | |
26220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26221 | } | |
26222 | return resultobj; | |
26223 | fail: | |
26224 | return NULL; | |
26225 | } | |
26226 | ||
26227 | ||
26228 | SWIGINTERN PyObject *_wrap_GraphicsObject_GetRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26229 | PyObject *resultobj = 0; | |
26230 | wxGraphicsObject *arg1 = (wxGraphicsObject *) 0 ; | |
26231 | wxGraphicsRenderer *result = 0 ; | |
26232 | void *argp1 = 0 ; | |
26233 | int res1 = 0 ; | |
26234 | PyObject *swig_obj[1] ; | |
26235 | ||
26236 | if (!args) SWIG_fail; | |
26237 | swig_obj[0] = args; | |
26238 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsObject, 0 | 0 ); | |
26239 | if (!SWIG_IsOK(res1)) { | |
26240 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsObject_GetRenderer" "', expected argument " "1"" of type '" "wxGraphicsObject const *""'"); | |
26241 | } | |
26242 | arg1 = reinterpret_cast< wxGraphicsObject * >(argp1); | |
26243 | { | |
26244 | result = (wxGraphicsRenderer *)((wxGraphicsObject const *)arg1)->GetRenderer(); | |
26245 | if (PyErr_Occurred()) SWIG_fail; | |
26246 | } | |
26247 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
26248 | return resultobj; | |
26249 | fail: | |
26250 | return NULL; | |
26251 | } | |
26252 | ||
26253 | ||
26254 | SWIGINTERN PyObject *GraphicsObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26255 | PyObject *obj; | |
26256 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26257 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsObject, SWIG_NewClientData(obj)); | |
26258 | return SWIG_Py_Void(); | |
26259 | } | |
26260 | ||
26261 | SWIGINTERN PyObject *GraphicsObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26262 | return SWIG_Python_InitShadowInstance(args); | |
26263 | } | |
26264 | ||
26265 | SWIGINTERN PyObject *_wrap_new_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26266 | PyObject *resultobj = 0; | |
26267 | wxGraphicsPen *result = 0 ; | |
26268 | ||
26269 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPen",0,0,0)) SWIG_fail; | |
26270 | { | |
26271 | result = (wxGraphicsPen *)new wxGraphicsPen(); | |
26272 | if (PyErr_Occurred()) SWIG_fail; | |
26273 | } | |
26274 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_NEW | 0 ); | |
26275 | return resultobj; | |
26276 | fail: | |
26277 | return NULL; | |
26278 | } | |
26279 | ||
26280 | ||
26281 | SWIGINTERN PyObject *_wrap_delete_GraphicsPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26282 | PyObject *resultobj = 0; | |
26283 | wxGraphicsPen *arg1 = (wxGraphicsPen *) 0 ; | |
26284 | void *argp1 = 0 ; | |
26285 | int res1 = 0 ; | |
26286 | PyObject *swig_obj[1] ; | |
26287 | ||
26288 | if (!args) SWIG_fail; | |
26289 | swig_obj[0] = args; | |
26290 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_DISOWN | 0 ); | |
26291 | if (!SWIG_IsOK(res1)) { | |
26292 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPen" "', expected argument " "1"" of type '" "wxGraphicsPen *""'"); | |
26293 | } | |
26294 | arg1 = reinterpret_cast< wxGraphicsPen * >(argp1); | |
26295 | { | |
26296 | delete arg1; | |
26297 | ||
26298 | if (PyErr_Occurred()) SWIG_fail; | |
26299 | } | |
26300 | resultobj = SWIG_Py_Void(); | |
26301 | return resultobj; | |
26302 | fail: | |
26303 | return NULL; | |
26304 | } | |
26305 | ||
26306 | ||
26307 | SWIGINTERN PyObject *GraphicsPen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26308 | PyObject *obj; | |
26309 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26310 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPen, SWIG_NewClientData(obj)); | |
26311 | return SWIG_Py_Void(); | |
26312 | } | |
26313 | ||
26314 | SWIGINTERN PyObject *GraphicsPen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26315 | return SWIG_Python_InitShadowInstance(args); | |
26316 | } | |
26317 | ||
26318 | SWIGINTERN PyObject *_wrap_new_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26319 | PyObject *resultobj = 0; | |
26320 | wxGraphicsBrush *result = 0 ; | |
26321 | ||
26322 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsBrush",0,0,0)) SWIG_fail; | |
26323 | { | |
26324 | result = (wxGraphicsBrush *)new wxGraphicsBrush(); | |
26325 | if (PyErr_Occurred()) SWIG_fail; | |
26326 | } | |
26327 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_NEW | 0 ); | |
26328 | return resultobj; | |
26329 | fail: | |
26330 | return NULL; | |
26331 | } | |
26332 | ||
26333 | ||
26334 | SWIGINTERN PyObject *_wrap_delete_GraphicsBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26335 | PyObject *resultobj = 0; | |
26336 | wxGraphicsBrush *arg1 = (wxGraphicsBrush *) 0 ; | |
26337 | void *argp1 = 0 ; | |
26338 | int res1 = 0 ; | |
26339 | PyObject *swig_obj[1] ; | |
26340 | ||
26341 | if (!args) SWIG_fail; | |
26342 | swig_obj[0] = args; | |
26343 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_DISOWN | 0 ); | |
26344 | if (!SWIG_IsOK(res1)) { | |
26345 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsBrush" "', expected argument " "1"" of type '" "wxGraphicsBrush *""'"); | |
26346 | } | |
26347 | arg1 = reinterpret_cast< wxGraphicsBrush * >(argp1); | |
26348 | { | |
26349 | delete arg1; | |
26350 | ||
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 *GraphicsBrush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26361 | PyObject *obj; | |
26362 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26363 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsBrush, SWIG_NewClientData(obj)); | |
26364 | return SWIG_Py_Void(); | |
26365 | } | |
26366 | ||
26367 | SWIGINTERN PyObject *GraphicsBrush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26368 | return SWIG_Python_InitShadowInstance(args); | |
26369 | } | |
26370 | ||
26371 | SWIGINTERN PyObject *_wrap_new_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26372 | PyObject *resultobj = 0; | |
26373 | wxGraphicsFont *result = 0 ; | |
26374 | ||
26375 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsFont",0,0,0)) SWIG_fail; | |
26376 | { | |
26377 | result = (wxGraphicsFont *)new wxGraphicsFont(); | |
26378 | if (PyErr_Occurred()) SWIG_fail; | |
26379 | } | |
26380 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_NEW | 0 ); | |
26381 | return resultobj; | |
26382 | fail: | |
26383 | return NULL; | |
26384 | } | |
26385 | ||
26386 | ||
26387 | SWIGINTERN PyObject *_wrap_delete_GraphicsFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26388 | PyObject *resultobj = 0; | |
26389 | wxGraphicsFont *arg1 = (wxGraphicsFont *) 0 ; | |
26390 | void *argp1 = 0 ; | |
26391 | int res1 = 0 ; | |
26392 | PyObject *swig_obj[1] ; | |
26393 | ||
26394 | if (!args) SWIG_fail; | |
26395 | swig_obj[0] = args; | |
26396 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_DISOWN | 0 ); | |
26397 | if (!SWIG_IsOK(res1)) { | |
26398 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsFont" "', expected argument " "1"" of type '" "wxGraphicsFont *""'"); | |
26399 | } | |
26400 | arg1 = reinterpret_cast< wxGraphicsFont * >(argp1); | |
26401 | { | |
26402 | delete arg1; | |
26403 | ||
26404 | if (PyErr_Occurred()) SWIG_fail; | |
26405 | } | |
26406 | resultobj = SWIG_Py_Void(); | |
26407 | return resultobj; | |
26408 | fail: | |
26409 | return NULL; | |
26410 | } | |
26411 | ||
26412 | ||
26413 | SWIGINTERN PyObject *GraphicsFont_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26414 | PyObject *obj; | |
26415 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
26416 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsFont, SWIG_NewClientData(obj)); | |
26417 | return SWIG_Py_Void(); | |
26418 | } | |
26419 | ||
26420 | SWIGINTERN PyObject *GraphicsFont_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
26421 | return SWIG_Python_InitShadowInstance(args); | |
26422 | } | |
26423 | ||
8f514ab4 RD |
26424 | SWIGINTERN PyObject *_wrap_new_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26425 | PyObject *resultobj = 0; | |
26426 | wxGraphicsMatrix *result = 0 ; | |
26427 | ||
26428 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsMatrix",0,0,0)) SWIG_fail; | |
26429 | { | |
26430 | result = (wxGraphicsMatrix *)new wxGraphicsMatrix(); | |
26431 | if (PyErr_Occurred()) SWIG_fail; | |
26432 | } | |
26433 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_NEW | 0 ); | |
26434 | return resultobj; | |
26435 | fail: | |
26436 | return NULL; | |
26437 | } | |
26438 | ||
26439 | ||
5c8c7dd3 | 26440 | SWIGINTERN PyObject *_wrap_delete_GraphicsMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 26441 | PyObject *resultobj = 0; |
5c8c7dd3 | 26442 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
554f62e9 RD |
26443 | void *argp1 = 0 ; |
26444 | int res1 = 0 ; | |
26445 | PyObject *swig_obj[1] ; | |
26446 | ||
26447 | if (!args) SWIG_fail; | |
26448 | swig_obj[0] = args; | |
5c8c7dd3 | 26449 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_DISOWN | 0 ); |
554f62e9 | 26450 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26451 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
554f62e9 | 26452 | } |
5c8c7dd3 | 26453 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
554f62e9 | 26454 | { |
554f62e9 RD |
26455 | delete arg1; |
26456 | ||
554f62e9 RD |
26457 | if (PyErr_Occurred()) SWIG_fail; |
26458 | } | |
26459 | resultobj = SWIG_Py_Void(); | |
26460 | return resultobj; | |
26461 | fail: | |
26462 | return NULL; | |
26463 | } | |
26464 | ||
26465 | ||
5c8c7dd3 | 26466 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Concat(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26467 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26468 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26469 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
26470 | void *argp1 = 0 ; |
26471 | int res1 = 0 ; | |
5c8c7dd3 RD |
26472 | void *argp2 = 0 ; |
26473 | int res2 = 0 ; | |
26474 | PyObject * obj0 = 0 ; | |
26475 | PyObject * obj1 = 0 ; | |
26476 | char * kwnames[] = { | |
26477 | (char *) "self",(char *) "t", NULL | |
26478 | }; | |
70d7cb34 | 26479 | |
5c8c7dd3 RD |
26480 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Concat",kwnames,&obj0,&obj1)) SWIG_fail; |
26481 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26482 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Concat" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26484 | } |
5c8c7dd3 RD |
26485 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26486 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
26487 | if (!SWIG_IsOK(res2)) { | |
26488 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26489 | } | |
26490 | if (!argp2) { | |
26491 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_Concat" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26492 | } | |
26493 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 26494 | { |
5c8c7dd3 | 26495 | (arg1)->Concat((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
26496 | if (PyErr_Occurred()) SWIG_fail; |
26497 | } | |
5c8c7dd3 | 26498 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
26499 | return resultobj; |
26500 | fail: | |
26501 | return NULL; | |
26502 | } | |
26503 | ||
26504 | ||
5c8c7dd3 | 26505 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26506 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26507 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26508 | wxDouble arg2 = (wxDouble) 1.0 ; | |
26509 | wxDouble arg3 = (wxDouble) 0.0 ; | |
26510 | wxDouble arg4 = (wxDouble) 0.0 ; | |
26511 | wxDouble arg5 = (wxDouble) 1.0 ; | |
26512 | wxDouble arg6 = (wxDouble) 0.0 ; | |
26513 | wxDouble arg7 = (wxDouble) 0.0 ; | |
70d7cb34 RD |
26514 | void *argp1 = 0 ; |
26515 | int res1 = 0 ; | |
5c8c7dd3 RD |
26516 | double val2 ; |
26517 | int ecode2 = 0 ; | |
26518 | double val3 ; | |
26519 | int ecode3 = 0 ; | |
26520 | double val4 ; | |
26521 | int ecode4 = 0 ; | |
26522 | double val5 ; | |
26523 | int ecode5 = 0 ; | |
26524 | double val6 ; | |
26525 | int ecode6 = 0 ; | |
26526 | double val7 ; | |
26527 | int ecode7 = 0 ; | |
26528 | PyObject * obj0 = 0 ; | |
26529 | PyObject * obj1 = 0 ; | |
26530 | PyObject * obj2 = 0 ; | |
26531 | PyObject * obj3 = 0 ; | |
26532 | PyObject * obj4 = 0 ; | |
26533 | PyObject * obj5 = 0 ; | |
26534 | PyObject * obj6 = 0 ; | |
26535 | char * kwnames[] = { | |
26536 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
26537 | }; | |
70d7cb34 | 26538 | |
5c8c7dd3 RD |
26539 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsMatrix_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
26540 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26541 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Set" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26543 | } |
5c8c7dd3 RD |
26544 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26545 | if (obj1) { | |
26546 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26547 | if (!SWIG_IsOK(ecode2)) { | |
26548 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Set" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26549 | } | |
26550 | arg2 = static_cast< wxDouble >(val2); | |
26551 | } | |
26552 | if (obj2) { | |
26553 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26554 | if (!SWIG_IsOK(ecode3)) { | |
26555 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Set" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26556 | } | |
26557 | arg3 = static_cast< wxDouble >(val3); | |
26558 | } | |
26559 | if (obj3) { | |
26560 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
26561 | if (!SWIG_IsOK(ecode4)) { | |
26562 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsMatrix_Set" "', expected argument " "4"" of type '" "wxDouble""'"); | |
26563 | } | |
26564 | arg4 = static_cast< wxDouble >(val4); | |
26565 | } | |
26566 | if (obj4) { | |
26567 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
26568 | if (!SWIG_IsOK(ecode5)) { | |
26569 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsMatrix_Set" "', expected argument " "5"" of type '" "wxDouble""'"); | |
26570 | } | |
26571 | arg5 = static_cast< wxDouble >(val5); | |
26572 | } | |
26573 | if (obj5) { | |
26574 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
26575 | if (!SWIG_IsOK(ecode6)) { | |
26576 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsMatrix_Set" "', expected argument " "6"" of type '" "wxDouble""'"); | |
26577 | } | |
26578 | arg6 = static_cast< wxDouble >(val6); | |
26579 | } | |
26580 | if (obj6) { | |
26581 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
26582 | if (!SWIG_IsOK(ecode7)) { | |
26583 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsMatrix_Set" "', expected argument " "7"" of type '" "wxDouble""'"); | |
26584 | } | |
26585 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 RD |
26586 | } |
26587 | { | |
5c8c7dd3 | 26588 | (arg1)->Set(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
26589 | if (PyErr_Occurred()) SWIG_fail; |
26590 | } | |
26591 | resultobj = SWIG_Py_Void(); | |
26592 | return resultobj; | |
26593 | fail: | |
26594 | return NULL; | |
26595 | } | |
26596 | ||
26597 | ||
248802d0 RD |
26598 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26599 | PyObject *resultobj = 0; | |
26600 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26601 | wxDouble *arg2 = (wxDouble *) 0 ; | |
26602 | wxDouble *arg3 = (wxDouble *) 0 ; | |
26603 | wxDouble *arg4 = (wxDouble *) 0 ; | |
26604 | wxDouble *arg5 = (wxDouble *) 0 ; | |
26605 | wxDouble *arg6 = (wxDouble *) 0 ; | |
26606 | wxDouble *arg7 = (wxDouble *) 0 ; | |
26607 | void *argp1 = 0 ; | |
26608 | int res1 = 0 ; | |
26609 | wxDouble temp2 ; | |
26610 | int res2 = SWIG_TMPOBJ ; | |
26611 | wxDouble temp3 ; | |
26612 | int res3 = SWIG_TMPOBJ ; | |
26613 | wxDouble temp4 ; | |
26614 | int res4 = SWIG_TMPOBJ ; | |
26615 | wxDouble temp5 ; | |
26616 | int res5 = SWIG_TMPOBJ ; | |
26617 | wxDouble temp6 ; | |
26618 | int res6 = SWIG_TMPOBJ ; | |
26619 | wxDouble temp7 ; | |
26620 | int res7 = SWIG_TMPOBJ ; | |
26621 | PyObject *swig_obj[1] ; | |
26622 | ||
26623 | arg2 = &temp2; | |
26624 | arg3 = &temp3; | |
26625 | arg4 = &temp4; | |
26626 | arg5 = &temp5; | |
26627 | arg6 = &temp6; | |
26628 | arg7 = &temp7; | |
26629 | if (!args) SWIG_fail; | |
26630 | swig_obj[0] = args; | |
26631 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26632 | if (!SWIG_IsOK(res1)) { | |
26633 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Get" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); | |
26634 | } | |
26635 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26636 | { | |
26637 | (arg1)->Get(arg2,arg3,arg4,arg5,arg6,arg7); | |
26638 | if (PyErr_Occurred()) SWIG_fail; | |
26639 | } | |
26640 | resultobj = SWIG_Py_Void(); | |
26641 | if (SWIG_IsTmpObj(res2)) { | |
26642 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
26643 | } else { | |
26644 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26645 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
26646 | } | |
26647 | if (SWIG_IsTmpObj(res3)) { | |
26648 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26649 | } else { | |
26650 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26651 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26652 | } | |
26653 | if (SWIG_IsTmpObj(res4)) { | |
26654 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
26655 | } else { | |
26656 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26657 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
26658 | } | |
26659 | if (SWIG_IsTmpObj(res5)) { | |
26660 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
26661 | } else { | |
26662 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26663 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
26664 | } | |
26665 | if (SWIG_IsTmpObj(res6)) { | |
26666 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
26667 | } else { | |
26668 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26669 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
26670 | } | |
26671 | if (SWIG_IsTmpObj(res7)) { | |
26672 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg7))); | |
26673 | } else { | |
26674 | int new_flags = SWIG_IsNewObj(res7) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26675 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg7), SWIGTYPE_p_double, new_flags)); | |
26676 | } | |
26677 | return resultobj; | |
26678 | fail: | |
26679 | return NULL; | |
26680 | } | |
26681 | ||
26682 | ||
5c8c7dd3 | 26683 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Invert(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 26684 | PyObject *resultobj = 0; |
5c8c7dd3 | 26685 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
554f62e9 RD |
26686 | void *argp1 = 0 ; |
26687 | int res1 = 0 ; | |
5c8c7dd3 | 26688 | PyObject *swig_obj[1] ; |
554f62e9 | 26689 | |
5c8c7dd3 RD |
26690 | if (!args) SWIG_fail; |
26691 | swig_obj[0] = args; | |
26692 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
554f62e9 | 26693 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26694 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Invert" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
554f62e9 | 26695 | } |
5c8c7dd3 | 26696 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
554f62e9 | 26697 | { |
5c8c7dd3 | 26698 | (arg1)->Invert(); |
554f62e9 RD |
26699 | if (PyErr_Occurred()) SWIG_fail; |
26700 | } | |
72ef6efb | 26701 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
26702 | return resultobj; |
26703 | fail: | |
26704 | return NULL; | |
26705 | } | |
26706 | ||
26707 | ||
5c8c7dd3 | 26708 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsEqual(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26709 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26710 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26711 | wxGraphicsMatrix *arg2 = 0 ; | |
26712 | bool result; | |
70d7cb34 RD |
26713 | void *argp1 = 0 ; |
26714 | int res1 = 0 ; | |
5c8c7dd3 RD |
26715 | void *argp2 = 0 ; |
26716 | int res2 = 0 ; | |
26717 | PyObject * obj0 = 0 ; | |
26718 | PyObject * obj1 = 0 ; | |
26719 | char * kwnames[] = { | |
26720 | (char *) "self",(char *) "t", NULL | |
26721 | }; | |
70d7cb34 | 26722 | |
5c8c7dd3 RD |
26723 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_IsEqual",kwnames,&obj0,&obj1)) SWIG_fail; |
26724 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26725 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
70d7cb34 | 26727 | } |
5c8c7dd3 RD |
26728 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26729 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
26730 | if (!SWIG_IsOK(res2)) { | |
26731 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
26732 | } | |
26733 | if (!argp2) { | |
26734 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsMatrix_IsEqual" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
70d7cb34 | 26735 | } |
5c8c7dd3 | 26736 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); |
70d7cb34 | 26737 | { |
5c8c7dd3 | 26738 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsEqual((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
26739 | if (PyErr_Occurred()) SWIG_fail; |
26740 | } | |
5c8c7dd3 RD |
26741 | { |
26742 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26743 | } | |
70d7cb34 RD |
26744 | return resultobj; |
26745 | fail: | |
26746 | return NULL; | |
26747 | } | |
26748 | ||
26749 | ||
5c8c7dd3 RD |
26750 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_IsIdentity(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
26751 | PyObject *resultobj = 0; | |
26752 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26753 | bool result; | |
26754 | void *argp1 = 0 ; | |
26755 | int res1 = 0 ; | |
26756 | PyObject *swig_obj[1] ; | |
70d7cb34 | 26757 | |
5c8c7dd3 RD |
26758 | if (!args) SWIG_fail; |
26759 | swig_obj[0] = args; | |
26760 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26761 | if (!SWIG_IsOK(res1)) { | |
8f514ab4 | 26762 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_IsIdentity" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
70d7cb34 | 26763 | } |
5c8c7dd3 RD |
26764 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26765 | { | |
8f514ab4 | 26766 | result = (bool)((wxGraphicsMatrix const *)arg1)->IsIdentity(); |
5c8c7dd3 | 26767 | if (PyErr_Occurred()) SWIG_fail; |
70d7cb34 | 26768 | } |
5c8c7dd3 RD |
26769 | { |
26770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26771 | } | |
26772 | return resultobj; | |
70d7cb34 | 26773 | fail: |
70d7cb34 RD |
26774 | return NULL; |
26775 | } | |
26776 | ||
26777 | ||
5c8c7dd3 | 26778 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 26779 | PyObject *resultobj = 0; |
5c8c7dd3 | 26780 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
72ef6efb RD |
26781 | wxDouble arg2 ; |
26782 | wxDouble arg3 ; | |
554f62e9 RD |
26783 | void *argp1 = 0 ; |
26784 | int res1 = 0 ; | |
72ef6efb RD |
26785 | double val2 ; |
26786 | int ecode2 = 0 ; | |
26787 | double val3 ; | |
26788 | int ecode3 = 0 ; | |
5c8c7dd3 RD |
26789 | PyObject * obj0 = 0 ; |
26790 | PyObject * obj1 = 0 ; | |
26791 | PyObject * obj2 = 0 ; | |
26792 | char * kwnames[] = { | |
26793 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
26794 | }; | |
72ef6efb | 26795 | |
5c8c7dd3 RD |
26796 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
26797 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 26798 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26799 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Translate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
72ef6efb | 26800 | } |
5c8c7dd3 RD |
26801 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26802 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
72ef6efb | 26803 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 26804 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
26805 | } |
26806 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 26807 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 26808 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 26809 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
26810 | } |
26811 | arg3 = static_cast< wxDouble >(val3); | |
72ef6efb | 26812 | { |
5c8c7dd3 | 26813 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
26814 | if (PyErr_Occurred()) SWIG_fail; |
26815 | } | |
26816 | resultobj = SWIG_Py_Void(); | |
26817 | return resultobj; | |
26818 | fail: | |
26819 | return NULL; | |
26820 | } | |
26821 | ||
26822 | ||
5c8c7dd3 | 26823 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26824 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26825 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26826 | wxDouble arg2 ; | |
26827 | wxDouble arg3 ; | |
70d7cb34 RD |
26828 | void *argp1 = 0 ; |
26829 | int res1 = 0 ; | |
5c8c7dd3 RD |
26830 | double val2 ; |
26831 | int ecode2 = 0 ; | |
26832 | double val3 ; | |
26833 | int ecode3 = 0 ; | |
26834 | PyObject * obj0 = 0 ; | |
26835 | PyObject * obj1 = 0 ; | |
26836 | PyObject * obj2 = 0 ; | |
26837 | char * kwnames[] = { | |
26838 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
26839 | }; | |
70d7cb34 | 26840 | |
5c8c7dd3 RD |
26841 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
26842 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26843 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Scale" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26845 | } |
5c8c7dd3 RD |
26846 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26847 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26848 | if (!SWIG_IsOK(ecode2)) { | |
26849 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26850 | } | |
26851 | arg2 = static_cast< wxDouble >(val2); | |
26852 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
26853 | if (!SWIG_IsOK(ecode3)) { | |
26854 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsMatrix_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26855 | } | |
26856 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 26857 | { |
5c8c7dd3 | 26858 | (arg1)->Scale(arg2,arg3); |
70d7cb34 RD |
26859 | if (PyErr_Occurred()) SWIG_fail; |
26860 | } | |
26861 | resultobj = SWIG_Py_Void(); | |
26862 | return resultobj; | |
26863 | fail: | |
26864 | return NULL; | |
26865 | } | |
26866 | ||
26867 | ||
5c8c7dd3 | 26868 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 26869 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26870 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26871 | wxDouble arg2 ; | |
70d7cb34 RD |
26872 | void *argp1 = 0 ; |
26873 | int res1 = 0 ; | |
5c8c7dd3 RD |
26874 | double val2 ; |
26875 | int ecode2 = 0 ; | |
70d7cb34 RD |
26876 | PyObject * obj0 = 0 ; |
26877 | PyObject * obj1 = 0 ; | |
26878 | char * kwnames[] = { | |
5c8c7dd3 | 26879 | (char *) "self",(char *) "angle", NULL |
70d7cb34 RD |
26880 | }; |
26881 | ||
5c8c7dd3 RD |
26882 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsMatrix_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; |
26883 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
70d7cb34 | 26884 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 26885 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "1"" of type '" "wxGraphicsMatrix *""'"); |
70d7cb34 | 26886 | } |
5c8c7dd3 RD |
26887 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26888 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
26889 | if (!SWIG_IsOK(ecode2)) { | |
26890 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsMatrix_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26891 | } | |
26892 | arg2 = static_cast< wxDouble >(val2); | |
70d7cb34 | 26893 | { |
5c8c7dd3 | 26894 | (arg1)->Rotate(arg2); |
70d7cb34 RD |
26895 | if (PyErr_Occurred()) SWIG_fail; |
26896 | } | |
26897 | resultobj = SWIG_Py_Void(); | |
26898 | return resultobj; | |
26899 | fail: | |
26900 | return NULL; | |
26901 | } | |
26902 | ||
26903 | ||
5c8c7dd3 | 26904 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 26905 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
26906 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; |
26907 | wxDouble *arg2 = (wxDouble *) 0 ; | |
26908 | wxDouble *arg3 = (wxDouble *) 0 ; | |
72ef6efb RD |
26909 | void *argp1 = 0 ; |
26910 | int res1 = 0 ; | |
5c8c7dd3 RD |
26911 | wxDouble temp2 ; |
26912 | int res2 = 0 ; | |
26913 | wxDouble temp3 ; | |
26914 | int res3 = 0 ; | |
26915 | PyObject * obj0 = 0 ; | |
26916 | PyObject * obj1 = 0 ; | |
26917 | PyObject * obj2 = 0 ; | |
26918 | char * kwnames[] = { | |
26919 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
26920 | }; | |
72ef6efb | 26921 | |
5c8c7dd3 RD |
26922 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
26923 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
72ef6efb | 26924 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 26925 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
72ef6efb | 26926 | } |
5c8c7dd3 RD |
26927 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); |
26928 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
26929 | double val; | |
26930 | int ecode = SWIG_AsVal_double(obj1, &val); | |
26931 | if (!SWIG_IsOK(ecode)) { | |
26932 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
26933 | } | |
26934 | temp2 = static_cast< wxDouble >(val); | |
26935 | arg2 = &temp2; | |
26936 | res2 = SWIG_AddTmpMask(ecode); | |
26937 | } | |
26938 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
26939 | double val; | |
26940 | int ecode = SWIG_AsVal_double(obj2, &val); | |
26941 | if (!SWIG_IsOK(ecode)) { | |
26942 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
26943 | } | |
26944 | temp3 = static_cast< wxDouble >(val); | |
26945 | arg3 = &temp3; | |
26946 | res3 = SWIG_AddTmpMask(ecode); | |
26947 | } | |
26948 | { | |
8f514ab4 | 26949 | ((wxGraphicsMatrix const *)arg1)->TransformPoint(arg2,arg3); |
72ef6efb RD |
26950 | if (PyErr_Occurred()) SWIG_fail; |
26951 | } | |
26952 | resultobj = SWIG_Py_Void(); | |
5c8c7dd3 RD |
26953 | if (SWIG_IsTmpObj(res2)) { |
26954 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
26955 | } else { | |
26956 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26957 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
26958 | } | |
26959 | if (SWIG_IsTmpObj(res3)) { | |
26960 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
26961 | } else { | |
26962 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
26963 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
26964 | } | |
72ef6efb RD |
26965 | return resultobj; |
26966 | fail: | |
26967 | return NULL; | |
26968 | } | |
26969 | ||
26970 | ||
5c8c7dd3 RD |
26971 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_TransformDistance(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
26972 | PyObject *resultobj = 0; | |
26973 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
26974 | wxDouble *arg2 = (wxDouble *) 0 ; | |
26975 | wxDouble *arg3 = (wxDouble *) 0 ; | |
26976 | void *argp1 = 0 ; | |
26977 | int res1 = 0 ; | |
26978 | wxDouble temp2 ; | |
26979 | int res2 = 0 ; | |
26980 | wxDouble temp3 ; | |
26981 | int res3 = 0 ; | |
26982 | PyObject * obj0 = 0 ; | |
26983 | PyObject * obj1 = 0 ; | |
26984 | PyObject * obj2 = 0 ; | |
26985 | char * kwnames[] = { | |
26986 | (char *) "self",(char *) "INOUT",(char *) "INOUT", NULL | |
26987 | }; | |
26988 | ||
26989 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsMatrix_TransformDistance",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
26990 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
26991 | if (!SWIG_IsOK(res1)) { | |
8f514ab4 | 26992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); |
5c8c7dd3 RD |
26993 | } |
26994 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
26995 | if (!(SWIG_IsOK((res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2),SWIGTYPE_p_double,0))))) { | |
26996 | double val; | |
26997 | int ecode = SWIG_AsVal_double(obj1, &val); | |
26998 | if (!SWIG_IsOK(ecode)) { | |
26999 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27000 | } | |
27001 | temp2 = static_cast< wxDouble >(val); | |
27002 | arg2 = &temp2; | |
27003 | res2 = SWIG_AddTmpMask(ecode); | |
27004 | } | |
27005 | if (!(SWIG_IsOK((res3 = SWIG_ConvertPtr(obj2,SWIG_as_voidptrptr(&arg3),SWIGTYPE_p_double,0))))) { | |
27006 | double val; | |
27007 | int ecode = SWIG_AsVal_double(obj2, &val); | |
27008 | if (!SWIG_IsOK(ecode)) { | |
27009 | SWIG_exception_fail(SWIG_ArgError(ecode), "in method '" "GraphicsMatrix_TransformDistance" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27010 | } | |
27011 | temp3 = static_cast< wxDouble >(val); | |
27012 | arg3 = &temp3; | |
27013 | res3 = SWIG_AddTmpMask(ecode); | |
27014 | } | |
27015 | { | |
8f514ab4 | 27016 | ((wxGraphicsMatrix const *)arg1)->TransformDistance(arg2,arg3); |
5c8c7dd3 RD |
27017 | if (PyErr_Occurred()) SWIG_fail; |
27018 | } | |
27019 | resultobj = SWIG_Py_Void(); | |
27020 | if (SWIG_IsTmpObj(res2)) { | |
27021 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2))); | |
27022 | } else { | |
27023 | int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27024 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags)); | |
27025 | } | |
27026 | if (SWIG_IsTmpObj(res3)) { | |
27027 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
27028 | } else { | |
27029 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
27030 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
27031 | } | |
27032 | return resultobj; | |
27033 | fail: | |
27034 | return NULL; | |
27035 | } | |
27036 | ||
27037 | ||
27038 | SWIGINTERN PyObject *_wrap_GraphicsMatrix_GetNativeMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27039 | PyObject *resultobj = 0; | |
27040 | wxGraphicsMatrix *arg1 = (wxGraphicsMatrix *) 0 ; | |
27041 | void *result = 0 ; | |
27042 | void *argp1 = 0 ; | |
27043 | int res1 = 0 ; | |
27044 | PyObject *swig_obj[1] ; | |
27045 | ||
27046 | if (!args) SWIG_fail; | |
27047 | swig_obj[0] = args; | |
27048 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsMatrix, 0 | 0 ); | |
27049 | if (!SWIG_IsOK(res1)) { | |
27050 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsMatrix_GetNativeMatrix" "', expected argument " "1"" of type '" "wxGraphicsMatrix const *""'"); | |
27051 | } | |
27052 | arg1 = reinterpret_cast< wxGraphicsMatrix * >(argp1); | |
27053 | { | |
27054 | result = (void *)((wxGraphicsMatrix const *)arg1)->GetNativeMatrix(); | |
27055 | if (PyErr_Occurred()) SWIG_fail; | |
27056 | } | |
27057 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
27058 | return resultobj; | |
27059 | fail: | |
27060 | return NULL; | |
27061 | } | |
27062 | ||
27063 | ||
27064 | SWIGINTERN PyObject *GraphicsMatrix_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27065 | PyObject *obj; | |
27066 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
27067 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsMatrix, SWIG_NewClientData(obj)); | |
27068 | return SWIG_Py_Void(); | |
27069 | } | |
27070 | ||
8f514ab4 RD |
27071 | SWIGINTERN PyObject *GraphicsMatrix_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
27072 | return SWIG_Python_InitShadowInstance(args); | |
27073 | } | |
27074 | ||
27075 | SWIGINTERN PyObject *_wrap_new_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
27076 | PyObject *resultobj = 0; | |
27077 | wxGraphicsPath *result = 0 ; | |
27078 | ||
27079 | if (!SWIG_Python_UnpackTuple(args,"new_GraphicsPath",0,0,0)) SWIG_fail; | |
27080 | { | |
27081 | if (!wxPyCheckForApp()) SWIG_fail; | |
27082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27083 | result = (wxGraphicsPath *)new wxGraphicsPath(); | |
27084 | wxPyEndAllowThreads(__tstate); | |
27085 | if (PyErr_Occurred()) SWIG_fail; | |
27086 | } | |
27087 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_NEW | 0 ); | |
27088 | return resultobj; | |
27089 | fail: | |
27090 | return NULL; | |
27091 | } | |
27092 | ||
27093 | ||
5c8c7dd3 | 27094 | SWIGINTERN PyObject *_wrap_delete_GraphicsPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
27095 | PyObject *resultobj = 0; |
27096 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
72ef6efb RD |
27097 | void *argp1 = 0 ; |
27098 | int res1 = 0 ; | |
27099 | PyObject *swig_obj[1] ; | |
27100 | ||
27101 | if (!args) SWIG_fail; | |
27102 | swig_obj[0] = args; | |
5c8c7dd3 | 27103 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_DISOWN | 0 ); |
72ef6efb | 27104 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27105 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
72ef6efb RD |
27106 | } |
27107 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27108 | { | |
5c8c7dd3 RD |
27109 | delete arg1; |
27110 | ||
72ef6efb RD |
27111 | if (PyErr_Occurred()) SWIG_fail; |
27112 | } | |
5c8c7dd3 | 27113 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27114 | return resultobj; |
27115 | fail: | |
27116 | return NULL; | |
27117 | } | |
27118 | ||
27119 | ||
5c8c7dd3 | 27120 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27121 | PyObject *resultobj = 0; |
27122 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27123 | wxDouble arg2 ; | |
27124 | wxDouble arg3 ; | |
70d7cb34 RD |
27125 | void *argp1 = 0 ; |
27126 | int res1 = 0 ; | |
27127 | double val2 ; | |
27128 | int ecode2 = 0 ; | |
27129 | double val3 ; | |
27130 | int ecode3 = 0 ; | |
70d7cb34 | 27131 | |
5c8c7dd3 | 27132 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
70d7cb34 RD |
27133 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27134 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27135 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27136 | } |
27137 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27138 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
27139 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 27140 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27141 | } |
27142 | arg2 = static_cast< wxDouble >(val2); | |
27143 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
27144 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 27145 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27146 | } |
27147 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 27148 | { |
5c8c7dd3 | 27149 | (arg1)->MoveToPoint(arg2,arg3); |
70d7cb34 RD |
27150 | if (PyErr_Occurred()) SWIG_fail; |
27151 | } | |
27152 | resultobj = SWIG_Py_Void(); | |
27153 | return resultobj; | |
27154 | fail: | |
27155 | return NULL; | |
27156 | } | |
27157 | ||
27158 | ||
5c8c7dd3 | 27159 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27160 | PyObject *resultobj = 0; |
27161 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27162 | wxPoint2D *arg2 = 0 ; | |
70d7cb34 RD |
27163 | void *argp1 = 0 ; |
27164 | int res1 = 0 ; | |
27165 | wxPoint2D temp2 ; | |
70d7cb34 | 27166 | |
5c8c7dd3 | 27167 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
70d7cb34 RD |
27168 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27169 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27170 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_MoveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27171 | } |
27172 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27173 | { | |
27174 | arg2 = &temp2; | |
27175 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
27176 | } | |
70d7cb34 | 27177 | { |
5c8c7dd3 | 27178 | (arg1)->MoveToPoint((wxPoint2D const &)*arg2); |
70d7cb34 RD |
27179 | if (PyErr_Occurred()) SWIG_fail; |
27180 | } | |
27181 | resultobj = SWIG_Py_Void(); | |
27182 | return resultobj; | |
27183 | fail: | |
27184 | return NULL; | |
27185 | } | |
27186 | ||
27187 | ||
5c8c7dd3 | 27188 | SWIGINTERN PyObject *_wrap_GraphicsPath_MoveToPoint(PyObject *self, PyObject *args) { |
70d7cb34 | 27189 | int argc; |
5c8c7dd3 | 27190 | PyObject *argv[4]; |
70d7cb34 | 27191 | |
5c8c7dd3 | 27192 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_MoveToPoint",0,3,argv))) SWIG_fail; |
70d7cb34 | 27193 | --argc; |
5c8c7dd3 RD |
27194 | if (argc == 2) { |
27195 | return _wrap_GraphicsPath_MoveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 27196 | } |
5c8c7dd3 RD |
27197 | if (argc == 3) { |
27198 | return _wrap_GraphicsPath_MoveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 RD |
27199 | } |
27200 | ||
27201 | fail: | |
5c8c7dd3 | 27202 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_MoveToPoint'"); |
70d7cb34 RD |
27203 | return NULL; |
27204 | } | |
27205 | ||
27206 | ||
5c8c7dd3 | 27207 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27208 | PyObject *resultobj = 0; |
27209 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27210 | wxDouble arg2 ; | |
27211 | wxDouble arg3 ; | |
70d7cb34 RD |
27212 | void *argp1 = 0 ; |
27213 | int res1 = 0 ; | |
27214 | double val2 ; | |
27215 | int ecode2 = 0 ; | |
27216 | double val3 ; | |
27217 | int ecode3 = 0 ; | |
70d7cb34 | 27218 | |
5c8c7dd3 RD |
27219 | if ((nobjs < 3) || (nobjs > 3)) SWIG_fail; |
27220 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27221 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27222 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27223 | } |
27224 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 27225 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 27226 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 27227 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27228 | } |
27229 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 27230 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 27231 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 27232 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27233 | } |
27234 | arg3 = static_cast< wxDouble >(val3); | |
70d7cb34 | 27235 | { |
5c8c7dd3 | 27236 | (arg1)->AddLineToPoint(arg2,arg3); |
70d7cb34 RD |
27237 | if (PyErr_Occurred()) SWIG_fail; |
27238 | } | |
27239 | resultobj = SWIG_Py_Void(); | |
27240 | return resultobj; | |
27241 | fail: | |
27242 | return NULL; | |
27243 | } | |
27244 | ||
27245 | ||
5c8c7dd3 | 27246 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27247 | PyObject *resultobj = 0; |
27248 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 27249 | wxPoint2D *arg2 = 0 ; |
70d7cb34 RD |
27250 | void *argp1 = 0 ; |
27251 | int res1 = 0 ; | |
5c8c7dd3 | 27252 | wxPoint2D temp2 ; |
70d7cb34 | 27253 | |
5c8c7dd3 RD |
27254 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
27255 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27256 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27257 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddLineToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27258 | } |
27259 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27260 | { |
5c8c7dd3 RD |
27261 | arg2 = &temp2; |
27262 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
27263 | } | |
27264 | { | |
27265 | (arg1)->AddLineToPoint((wxPoint2D const &)*arg2); | |
70d7cb34 RD |
27266 | if (PyErr_Occurred()) SWIG_fail; |
27267 | } | |
27268 | resultobj = SWIG_Py_Void(); | |
27269 | return resultobj; | |
27270 | fail: | |
27271 | return NULL; | |
27272 | } | |
27273 | ||
27274 | ||
5c8c7dd3 RD |
27275 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddLineToPoint(PyObject *self, PyObject *args) { |
27276 | int argc; | |
27277 | PyObject *argv[4]; | |
70d7cb34 | 27278 | |
5c8c7dd3 RD |
27279 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddLineToPoint",0,3,argv))) SWIG_fail; |
27280 | --argc; | |
27281 | if (argc == 2) { | |
27282 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 27283 | } |
5c8c7dd3 RD |
27284 | if (argc == 3) { |
27285 | return _wrap_GraphicsPath_AddLineToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 27286 | } |
5c8c7dd3 | 27287 | |
70d7cb34 | 27288 | fail: |
5c8c7dd3 | 27289 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddLineToPoint'"); |
70d7cb34 RD |
27290 | return NULL; |
27291 | } | |
27292 | ||
27293 | ||
5c8c7dd3 | 27294 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27295 | PyObject *resultobj = 0; |
27296 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27297 | wxDouble arg2 ; | |
27298 | wxDouble arg3 ; | |
27299 | wxDouble arg4 ; | |
27300 | wxDouble arg5 ; | |
27301 | wxDouble arg6 ; | |
5c8c7dd3 | 27302 | wxDouble arg7 ; |
70d7cb34 RD |
27303 | void *argp1 = 0 ; |
27304 | int res1 = 0 ; | |
27305 | double val2 ; | |
27306 | int ecode2 = 0 ; | |
27307 | double val3 ; | |
27308 | int ecode3 = 0 ; | |
27309 | double val4 ; | |
27310 | int ecode4 = 0 ; | |
27311 | double val5 ; | |
27312 | int ecode5 = 0 ; | |
27313 | double val6 ; | |
27314 | int ecode6 = 0 ; | |
5c8c7dd3 RD |
27315 | double val7 ; |
27316 | int ecode7 = 0 ; | |
70d7cb34 | 27317 | |
5c8c7dd3 RD |
27318 | if ((nobjs < 7) || (nobjs > 7)) SWIG_fail; |
27319 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27320 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27321 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27322 | } |
27323 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 27324 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); |
70d7cb34 | 27325 | if (!SWIG_IsOK(ecode2)) { |
5c8c7dd3 | 27326 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27327 | } |
27328 | arg2 = static_cast< wxDouble >(val2); | |
5c8c7dd3 | 27329 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
70d7cb34 | 27330 | if (!SWIG_IsOK(ecode3)) { |
5c8c7dd3 | 27331 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27332 | } |
27333 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 | 27334 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
70d7cb34 | 27335 | if (!SWIG_IsOK(ecode4)) { |
5c8c7dd3 | 27336 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27337 | } |
27338 | arg4 = static_cast< wxDouble >(val4); | |
5c8c7dd3 | 27339 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); |
70d7cb34 | 27340 | if (!SWIG_IsOK(ecode5)) { |
5c8c7dd3 | 27341 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27342 | } |
27343 | arg5 = static_cast< wxDouble >(val5); | |
5c8c7dd3 | 27344 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); |
70d7cb34 | 27345 | if (!SWIG_IsOK(ecode6)) { |
5c8c7dd3 | 27346 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27347 | } |
27348 | arg6 = static_cast< wxDouble >(val6); | |
5c8c7dd3 RD |
27349 | ecode7 = SWIG_AsVal_double(swig_obj[6], &val7); |
27350 | if (!SWIG_IsOK(ecode7)) { | |
27351 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "7"" of type '" "wxDouble""'"); | |
27352 | } | |
27353 | arg7 = static_cast< wxDouble >(val7); | |
70d7cb34 | 27354 | { |
5c8c7dd3 | 27355 | (arg1)->AddCurveToPoint(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
27356 | if (PyErr_Occurred()) SWIG_fail; |
27357 | } | |
27358 | resultobj = SWIG_Py_Void(); | |
27359 | return resultobj; | |
27360 | fail: | |
27361 | return NULL; | |
27362 | } | |
27363 | ||
27364 | ||
5c8c7dd3 | 27365 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27366 | PyObject *resultobj = 0; |
27367 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
27368 | wxPoint2D *arg2 = 0 ; |
27369 | wxPoint2D *arg3 = 0 ; | |
27370 | wxPoint2D *arg4 = 0 ; | |
70d7cb34 RD |
27371 | void *argp1 = 0 ; |
27372 | int res1 = 0 ; | |
5c8c7dd3 RD |
27373 | wxPoint2D temp2 ; |
27374 | wxPoint2D temp3 ; | |
27375 | wxPoint2D temp4 ; | |
70d7cb34 | 27376 | |
5c8c7dd3 RD |
27377 | if ((nobjs < 4) || (nobjs > 4)) SWIG_fail; |
27378 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27379 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27380 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27381 | } |
27382 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27383 | { |
5c8c7dd3 RD |
27384 | arg2 = &temp2; |
27385 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 27386 | } |
5c8c7dd3 RD |
27387 | { |
27388 | arg3 = &temp3; | |
27389 | if ( ! wxPoint2D_helper(swig_obj[2], &arg3)) SWIG_fail; | |
70d7cb34 | 27390 | } |
70d7cb34 | 27391 | { |
5c8c7dd3 RD |
27392 | arg4 = &temp4; |
27393 | if ( ! wxPoint2D_helper(swig_obj[3], &arg4)) SWIG_fail; | |
27394 | } | |
27395 | { | |
27396 | (arg1)->AddCurveToPoint((wxPoint2D const &)*arg2,(wxPoint2D const &)*arg3,(wxPoint2D const &)*arg4); | |
70d7cb34 RD |
27397 | if (PyErr_Occurred()) SWIG_fail; |
27398 | } | |
27399 | resultobj = SWIG_Py_Void(); | |
27400 | return resultobj; | |
27401 | fail: | |
27402 | return NULL; | |
27403 | } | |
27404 | ||
27405 | ||
5c8c7dd3 RD |
27406 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCurveToPoint(PyObject *self, PyObject *args) { |
27407 | int argc; | |
27408 | PyObject *argv[8]; | |
70d7cb34 | 27409 | |
5c8c7dd3 RD |
27410 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddCurveToPoint",0,7,argv))) SWIG_fail; |
27411 | --argc; | |
27412 | if (argc == 4) { | |
27413 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_1(self, argc, argv); | |
70d7cb34 | 27414 | } |
5c8c7dd3 RD |
27415 | if (argc == 7) { |
27416 | return _wrap_GraphicsPath_AddCurveToPoint__SWIG_0(self, argc, argv); | |
70d7cb34 | 27417 | } |
5c8c7dd3 | 27418 | |
70d7cb34 | 27419 | fail: |
5c8c7dd3 | 27420 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddCurveToPoint'"); |
70d7cb34 RD |
27421 | return NULL; |
27422 | } | |
27423 | ||
27424 | ||
5c8c7dd3 | 27425 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 RD |
27426 | PyObject *resultobj = 0; |
27427 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 27428 | wxGraphicsPath *arg2 = 0 ; |
70d7cb34 RD |
27429 | void *argp1 = 0 ; |
27430 | int res1 = 0 ; | |
5c8c7dd3 RD |
27431 | void *argp2 = 0 ; |
27432 | int res2 = 0 ; | |
70d7cb34 RD |
27433 | PyObject * obj0 = 0 ; |
27434 | PyObject * obj1 = 0 ; | |
27435 | char * kwnames[] = { | |
5c8c7dd3 | 27436 | (char *) "self",(char *) "path", NULL |
70d7cb34 RD |
27437 | }; |
27438 | ||
5c8c7dd3 | 27439 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_AddPath",kwnames,&obj0,&obj1)) SWIG_fail; |
70d7cb34 RD |
27440 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27441 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27442 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddPath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27443 | } |
27444 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
5c8c7dd3 | 27445 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
70d7cb34 | 27446 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
27447 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
27448 | } | |
27449 | if (!argp2) { | |
27450 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_AddPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
70d7cb34 | 27451 | } |
5c8c7dd3 | 27452 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); |
70d7cb34 | 27453 | { |
5c8c7dd3 | 27454 | (arg1)->AddPath((wxGraphicsPath const &)*arg2); |
70d7cb34 RD |
27455 | if (PyErr_Occurred()) SWIG_fail; |
27456 | } | |
27457 | resultobj = SWIG_Py_Void(); | |
27458 | return resultobj; | |
27459 | fail: | |
27460 | return NULL; | |
27461 | } | |
27462 | ||
27463 | ||
5c8c7dd3 | 27464 | SWIGINTERN PyObject *_wrap_GraphicsPath_CloseSubpath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
27465 | PyObject *resultobj = 0; |
27466 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
70d7cb34 RD |
27467 | void *argp1 = 0 ; |
27468 | int res1 = 0 ; | |
5c8c7dd3 | 27469 | PyObject *swig_obj[1] ; |
70d7cb34 | 27470 | |
5c8c7dd3 RD |
27471 | if (!args) SWIG_fail; |
27472 | swig_obj[0] = args; | |
27473 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27474 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_CloseSubpath" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27476 | } |
27477 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27478 | { |
5c8c7dd3 | 27479 | (arg1)->CloseSubpath(); |
70d7cb34 RD |
27480 | if (PyErr_Occurred()) SWIG_fail; |
27481 | } | |
27482 | resultobj = SWIG_Py_Void(); | |
27483 | return resultobj; | |
27484 | fail: | |
27485 | return NULL; | |
27486 | } | |
27487 | ||
27488 | ||
5c8c7dd3 | 27489 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetCurrentPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
27490 | PyObject *resultobj = 0; |
27491 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 | 27492 | wxPoint2D result; |
70d7cb34 RD |
27493 | void *argp1 = 0 ; |
27494 | int res1 = 0 ; | |
27495 | PyObject *swig_obj[1] ; | |
27496 | ||
27497 | if (!args) SWIG_fail; | |
27498 | swig_obj[0] = args; | |
27499 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
27500 | if (!SWIG_IsOK(res1)) { | |
8f514ab4 | 27501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetCurrentPoint" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 RD |
27502 | } |
27503 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27504 | { | |
8f514ab4 | 27505 | result = ((wxGraphicsPath const *)arg1)->GetCurrentPoint(); |
70d7cb34 RD |
27506 | if (PyErr_Occurred()) SWIG_fail; |
27507 | } | |
5c8c7dd3 | 27508 | resultobj = SWIG_NewPointerObj((new wxPoint2D(static_cast< const wxPoint2D& >(result))), SWIGTYPE_p_wxPoint2D, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
27509 | return resultobj; |
27510 | fail: | |
27511 | return NULL; | |
27512 | } | |
27513 | ||
27514 | ||
5c8c7dd3 | 27515 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27516 | PyObject *resultobj = 0; |
27517 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
27518 | wxDouble arg2 ; | |
27519 | wxDouble arg3 ; | |
5c8c7dd3 RD |
27520 | wxDouble arg4 ; |
27521 | wxDouble arg5 ; | |
27522 | wxDouble arg6 ; | |
89d1e2ee | 27523 | bool arg7 = (bool) true ; |
70d7cb34 RD |
27524 | void *argp1 = 0 ; |
27525 | int res1 = 0 ; | |
27526 | double val2 ; | |
27527 | int ecode2 = 0 ; | |
27528 | double val3 ; | |
27529 | int ecode3 = 0 ; | |
5c8c7dd3 | 27530 | double val4 ; |
70d7cb34 | 27531 | int ecode4 = 0 ; |
5c8c7dd3 RD |
27532 | double val5 ; |
27533 | int ecode5 = 0 ; | |
27534 | double val6 ; | |
27535 | int ecode6 = 0 ; | |
27536 | bool val7 ; | |
27537 | int ecode7 = 0 ; | |
70d7cb34 | 27538 | |
89d1e2ee | 27539 | if ((nobjs < 6) || (nobjs > 7)) SWIG_fail; |
70d7cb34 RD |
27540 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27541 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27542 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27543 | } |
27544 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
27545 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
27546 | if (!SWIG_IsOK(ecode2)) { | |
5c8c7dd3 | 27547 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArc" "', expected argument " "2"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27548 | } |
27549 | arg2 = static_cast< wxDouble >(val2); | |
27550 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
27551 | if (!SWIG_IsOK(ecode3)) { | |
5c8c7dd3 | 27552 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); |
70d7cb34 RD |
27553 | } |
27554 | arg3 = static_cast< wxDouble >(val3); | |
5c8c7dd3 RD |
27555 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); |
27556 | if (!SWIG_IsOK(ecode4)) { | |
27557 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27558 | } | |
27559 | arg4 = static_cast< wxDouble >(val4); | |
27560 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
27561 | if (!SWIG_IsOK(ecode5)) { | |
27562 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27563 | } | |
27564 | arg5 = static_cast< wxDouble >(val5); | |
27565 | ecode6 = SWIG_AsVal_double(swig_obj[5], &val6); | |
27566 | if (!SWIG_IsOK(ecode6)) { | |
27567 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27568 | } | |
27569 | arg6 = static_cast< wxDouble >(val6); | |
89d1e2ee RD |
27570 | if (swig_obj[6]) { |
27571 | ecode7 = SWIG_AsVal_bool(swig_obj[6], &val7); | |
27572 | if (!SWIG_IsOK(ecode7)) { | |
27573 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsPath_AddArc" "', expected argument " "7"" of type '" "bool""'"); | |
27574 | } | |
27575 | arg7 = static_cast< bool >(val7); | |
27576 | } | |
70d7cb34 | 27577 | { |
5c8c7dd3 | 27578 | (arg1)->AddArc(arg2,arg3,arg4,arg5,arg6,arg7); |
70d7cb34 RD |
27579 | if (PyErr_Occurred()) SWIG_fail; |
27580 | } | |
5c8c7dd3 | 27581 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27582 | return resultobj; |
27583 | fail: | |
27584 | return NULL; | |
27585 | } | |
27586 | ||
27587 | ||
5c8c7dd3 | 27588 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 RD |
27589 | PyObject *resultobj = 0; |
27590 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; | |
5c8c7dd3 RD |
27591 | wxPoint2D *arg2 = 0 ; |
27592 | wxDouble arg3 ; | |
27593 | wxDouble arg4 ; | |
27594 | wxDouble arg5 ; | |
89d1e2ee | 27595 | bool arg6 = (bool) true ; |
70d7cb34 RD |
27596 | void *argp1 = 0 ; |
27597 | int res1 = 0 ; | |
5c8c7dd3 RD |
27598 | wxPoint2D temp2 ; |
27599 | double val3 ; | |
70d7cb34 | 27600 | int ecode3 = 0 ; |
5c8c7dd3 RD |
27601 | double val4 ; |
27602 | int ecode4 = 0 ; | |
27603 | double val5 ; | |
27604 | int ecode5 = 0 ; | |
27605 | bool val6 ; | |
27606 | int ecode6 = 0 ; | |
70d7cb34 | 27607 | |
89d1e2ee | 27608 | if ((nobjs < 5) || (nobjs > 6)) SWIG_fail; |
70d7cb34 RD |
27609 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
27610 | if (!SWIG_IsOK(res1)) { | |
5c8c7dd3 | 27611 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArc" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 RD |
27612 | } |
27613 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
70d7cb34 | 27614 | { |
5c8c7dd3 RD |
27615 | arg2 = &temp2; |
27616 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
70d7cb34 | 27617 | } |
5c8c7dd3 RD |
27618 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); |
27619 | if (!SWIG_IsOK(ecode3)) { | |
27620 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArc" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27621 | } | |
27622 | arg3 = static_cast< wxDouble >(val3); | |
27623 | ecode4 = SWIG_AsVal_double(swig_obj[3], &val4); | |
27624 | if (!SWIG_IsOK(ecode4)) { | |
27625 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArc" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27626 | } | |
27627 | arg4 = static_cast< wxDouble >(val4); | |
27628 | ecode5 = SWIG_AsVal_double(swig_obj[4], &val5); | |
27629 | if (!SWIG_IsOK(ecode5)) { | |
27630 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArc" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27631 | } | |
27632 | arg5 = static_cast< wxDouble >(val5); | |
89d1e2ee RD |
27633 | if (swig_obj[5]) { |
27634 | ecode6 = SWIG_AsVal_bool(swig_obj[5], &val6); | |
27635 | if (!SWIG_IsOK(ecode6)) { | |
27636 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArc" "', expected argument " "6"" of type '" "bool""'"); | |
27637 | } | |
27638 | arg6 = static_cast< bool >(val6); | |
27639 | } | |
70d7cb34 | 27640 | { |
5c8c7dd3 RD |
27641 | (arg1)->AddArc((wxPoint2D const &)*arg2,arg3,arg4,arg5,arg6); |
27642 | if (PyErr_Occurred()) SWIG_fail; | |
70d7cb34 | 27643 | } |
5c8c7dd3 | 27644 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
27645 | return resultobj; |
27646 | fail: | |
27647 | return NULL; | |
27648 | } | |
27649 | ||
27650 | ||
5c8c7dd3 | 27651 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArc(PyObject *self, PyObject *args) { |
70d7cb34 | 27652 | int argc; |
5c8c7dd3 | 27653 | PyObject *argv[8]; |
70d7cb34 | 27654 | |
5c8c7dd3 | 27655 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_AddArc",0,7,argv))) SWIG_fail; |
70d7cb34 | 27656 | --argc; |
89d1e2ee RD |
27657 | if ((argc >= 5) && (argc <= 6)) { |
27658 | int _v = 0; | |
27659 | { | |
27660 | { | |
27661 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2); | |
27662 | } | |
27663 | } | |
27664 | if (!_v) goto check_1; | |
27665 | if (argc > 5) { | |
27666 | { | |
27667 | { | |
27668 | int res = SWIG_AsVal_bool(argv[5], NULL); | |
27669 | _v = SWIG_CheckState(res); | |
27670 | } | |
27671 | } | |
27672 | if (!_v) goto check_1; | |
27673 | } | |
5c8c7dd3 | 27674 | return _wrap_GraphicsPath_AddArc__SWIG_1(self, argc, argv); |
70d7cb34 | 27675 | } |
89d1e2ee RD |
27676 | check_1: |
27677 | ||
27678 | if ((argc >= 6) && (argc <= 7)) { | |
5c8c7dd3 | 27679 | return _wrap_GraphicsPath_AddArc__SWIG_0(self, argc, argv); |
70d7cb34 RD |
27680 | } |
27681 | ||
27682 | fail: | |
5c8c7dd3 | 27683 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_AddArc'"); |
70d7cb34 RD |
27684 | return NULL; |
27685 | } | |
27686 | ||
27687 | ||
5c8c7dd3 | 27688 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddQuadCurveToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27689 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27690 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27691 | wxDouble arg2 ; | |
27692 | wxDouble arg3 ; | |
27693 | wxDouble arg4 ; | |
27694 | wxDouble arg5 ; | |
70d7cb34 RD |
27695 | void *argp1 = 0 ; |
27696 | int res1 = 0 ; | |
5c8c7dd3 RD |
27697 | double val2 ; |
27698 | int ecode2 = 0 ; | |
27699 | double val3 ; | |
27700 | int ecode3 = 0 ; | |
27701 | double val4 ; | |
27702 | int ecode4 = 0 ; | |
27703 | double val5 ; | |
27704 | int ecode5 = 0 ; | |
27705 | PyObject * obj0 = 0 ; | |
27706 | PyObject * obj1 = 0 ; | |
27707 | PyObject * obj2 = 0 ; | |
27708 | PyObject * obj3 = 0 ; | |
27709 | PyObject * obj4 = 0 ; | |
27710 | char * kwnames[] = { | |
27711 | (char *) "self",(char *) "cx",(char *) "cy",(char *) "x",(char *) "y", NULL | |
27712 | }; | |
70d7cb34 | 27713 | |
5c8c7dd3 RD |
27714 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddQuadCurveToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27715 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27716 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27717 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27718 | } |
5c8c7dd3 RD |
27719 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27720 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27721 | if (!SWIG_IsOK(ecode2)) { | |
27722 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27723 | } | |
27724 | arg2 = static_cast< wxDouble >(val2); | |
27725 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27726 | if (!SWIG_IsOK(ecode3)) { | |
27727 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27728 | } | |
27729 | arg3 = static_cast< wxDouble >(val3); | |
27730 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27731 | if (!SWIG_IsOK(ecode4)) { | |
27732 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27733 | } | |
27734 | arg4 = static_cast< wxDouble >(val4); | |
27735 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27736 | if (!SWIG_IsOK(ecode5)) { | |
27737 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddQuadCurveToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27738 | } | |
27739 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27740 | { |
5c8c7dd3 | 27741 | (arg1)->AddQuadCurveToPoint(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27742 | if (PyErr_Occurred()) SWIG_fail; |
27743 | } | |
27744 | resultobj = SWIG_Py_Void(); | |
27745 | return resultobj; | |
27746 | fail: | |
27747 | return NULL; | |
27748 | } | |
27749 | ||
27750 | ||
5c8c7dd3 | 27751 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27752 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27753 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27754 | wxDouble arg2 ; | |
27755 | wxDouble arg3 ; | |
27756 | wxDouble arg4 ; | |
27757 | wxDouble arg5 ; | |
70d7cb34 RD |
27758 | void *argp1 = 0 ; |
27759 | int res1 = 0 ; | |
5c8c7dd3 RD |
27760 | double val2 ; |
27761 | int ecode2 = 0 ; | |
27762 | double val3 ; | |
27763 | int ecode3 = 0 ; | |
27764 | double val4 ; | |
27765 | int ecode4 = 0 ; | |
27766 | double val5 ; | |
27767 | int ecode5 = 0 ; | |
70d7cb34 RD |
27768 | PyObject * obj0 = 0 ; |
27769 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27770 | PyObject * obj2 = 0 ; |
27771 | PyObject * obj3 = 0 ; | |
27772 | PyObject * obj4 = 0 ; | |
70d7cb34 | 27773 | char * kwnames[] = { |
5c8c7dd3 | 27774 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
70d7cb34 RD |
27775 | }; |
27776 | ||
5c8c7dd3 RD |
27777 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27778 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27779 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27781 | } |
5c8c7dd3 RD |
27782 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27783 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27784 | if (!SWIG_IsOK(ecode2)) { | |
27785 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27786 | } | |
27787 | arg2 = static_cast< wxDouble >(val2); | |
27788 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27789 | if (!SWIG_IsOK(ecode3)) { | |
27790 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27791 | } | |
27792 | arg3 = static_cast< wxDouble >(val3); | |
27793 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27794 | if (!SWIG_IsOK(ecode4)) { | |
27795 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27796 | } | |
27797 | arg4 = static_cast< wxDouble >(val4); | |
27798 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27799 | if (!SWIG_IsOK(ecode5)) { | |
27800 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27801 | } | |
27802 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27803 | { |
5c8c7dd3 | 27804 | (arg1)->AddRectangle(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27805 | if (PyErr_Occurred()) SWIG_fail; |
27806 | } | |
27807 | resultobj = SWIG_Py_Void(); | |
27808 | return resultobj; | |
27809 | fail: | |
27810 | return NULL; | |
27811 | } | |
27812 | ||
27813 | ||
5c8c7dd3 | 27814 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27815 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27816 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27817 | wxDouble arg2 ; | |
27818 | wxDouble arg3 ; | |
27819 | wxDouble arg4 ; | |
70d7cb34 RD |
27820 | void *argp1 = 0 ; |
27821 | int res1 = 0 ; | |
5c8c7dd3 RD |
27822 | double val2 ; |
27823 | int ecode2 = 0 ; | |
27824 | double val3 ; | |
27825 | int ecode3 = 0 ; | |
27826 | double val4 ; | |
27827 | int ecode4 = 0 ; | |
70d7cb34 RD |
27828 | PyObject * obj0 = 0 ; |
27829 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
27830 | PyObject * obj2 = 0 ; |
27831 | PyObject * obj3 = 0 ; | |
70d7cb34 | 27832 | char * kwnames[] = { |
5c8c7dd3 | 27833 | (char *) "self",(char *) "x",(char *) "y",(char *) "r", NULL |
70d7cb34 RD |
27834 | }; |
27835 | ||
5c8c7dd3 RD |
27836 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:GraphicsPath_AddCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; |
27837 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27838 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27839 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddCircle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27840 | } |
5c8c7dd3 RD |
27841 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27842 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27843 | if (!SWIG_IsOK(ecode2)) { | |
27844 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddCircle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27845 | } | |
27846 | arg2 = static_cast< wxDouble >(val2); | |
27847 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27848 | if (!SWIG_IsOK(ecode3)) { | |
27849 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddCircle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27850 | } | |
27851 | arg3 = static_cast< wxDouble >(val3); | |
27852 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27853 | if (!SWIG_IsOK(ecode4)) { | |
27854 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddCircle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27855 | } | |
27856 | arg4 = static_cast< wxDouble >(val4); | |
70d7cb34 | 27857 | { |
5c8c7dd3 | 27858 | (arg1)->AddCircle(arg2,arg3,arg4); |
70d7cb34 RD |
27859 | if (PyErr_Occurred()) SWIG_fail; |
27860 | } | |
27861 | resultobj = SWIG_Py_Void(); | |
27862 | return resultobj; | |
27863 | fail: | |
27864 | return NULL; | |
27865 | } | |
27866 | ||
27867 | ||
5c8c7dd3 | 27868 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddArcToPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27869 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27870 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27871 | wxDouble arg2 ; | |
27872 | wxDouble arg3 ; | |
27873 | wxDouble arg4 ; | |
27874 | wxDouble arg5 ; | |
27875 | wxDouble arg6 ; | |
70d7cb34 RD |
27876 | void *argp1 = 0 ; |
27877 | int res1 = 0 ; | |
27878 | double val2 ; | |
27879 | int ecode2 = 0 ; | |
27880 | double val3 ; | |
27881 | int ecode3 = 0 ; | |
27882 | double val4 ; | |
27883 | int ecode4 = 0 ; | |
27884 | double val5 ; | |
27885 | int ecode5 = 0 ; | |
27886 | double val6 ; | |
27887 | int ecode6 = 0 ; | |
70d7cb34 RD |
27888 | PyObject * obj0 = 0 ; |
27889 | PyObject * obj1 = 0 ; | |
27890 | PyObject * obj2 = 0 ; | |
27891 | PyObject * obj3 = 0 ; | |
27892 | PyObject * obj4 = 0 ; | |
27893 | PyObject * obj5 = 0 ; | |
70d7cb34 | 27894 | char * kwnames[] = { |
5c8c7dd3 | 27895 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "r", NULL |
70d7cb34 RD |
27896 | }; |
27897 | ||
5c8c7dd3 RD |
27898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddArcToPoint",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
27899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27900 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27902 | } |
5c8c7dd3 RD |
27903 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27904 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27905 | if (!SWIG_IsOK(ecode2)) { | |
27906 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27907 | } | |
27908 | arg2 = static_cast< wxDouble >(val2); | |
27909 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27910 | if (!SWIG_IsOK(ecode3)) { | |
27911 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27912 | } | |
27913 | arg3 = static_cast< wxDouble >(val3); | |
27914 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27915 | if (!SWIG_IsOK(ecode4)) { | |
27916 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27917 | } | |
27918 | arg4 = static_cast< wxDouble >(val4); | |
27919 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27920 | if (!SWIG_IsOK(ecode5)) { | |
27921 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27922 | } | |
27923 | arg5 = static_cast< wxDouble >(val5); | |
27924 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
27925 | if (!SWIG_IsOK(ecode6)) { | |
27926 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddArcToPoint" "', expected argument " "6"" of type '" "wxDouble""'"); | |
27927 | } | |
27928 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 27929 | { |
5c8c7dd3 | 27930 | (arg1)->AddArcToPoint(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
27931 | if (PyErr_Occurred()) SWIG_fail; |
27932 | } | |
27933 | resultobj = SWIG_Py_Void(); | |
27934 | return resultobj; | |
27935 | fail: | |
27936 | return NULL; | |
27937 | } | |
27938 | ||
27939 | ||
5c8c7dd3 | 27940 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 27941 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
27942 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
27943 | wxDouble arg2 ; | |
27944 | wxDouble arg3 ; | |
27945 | wxDouble arg4 ; | |
27946 | wxDouble arg5 ; | |
70d7cb34 RD |
27947 | void *argp1 = 0 ; |
27948 | int res1 = 0 ; | |
5c8c7dd3 RD |
27949 | double val2 ; |
27950 | int ecode2 = 0 ; | |
27951 | double val3 ; | |
27952 | int ecode3 = 0 ; | |
27953 | double val4 ; | |
27954 | int ecode4 = 0 ; | |
27955 | double val5 ; | |
27956 | int ecode5 = 0 ; | |
27957 | PyObject * obj0 = 0 ; | |
27958 | PyObject * obj1 = 0 ; | |
27959 | PyObject * obj2 = 0 ; | |
27960 | PyObject * obj3 = 0 ; | |
27961 | PyObject * obj4 = 0 ; | |
27962 | char * kwnames[] = { | |
27963 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
27964 | }; | |
70d7cb34 | 27965 | |
5c8c7dd3 RD |
27966 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsPath_AddEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
27967 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 27968 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 27969 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 27970 | } |
5c8c7dd3 RD |
27971 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
27972 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
27973 | if (!SWIG_IsOK(ecode2)) { | |
27974 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
27975 | } | |
27976 | arg2 = static_cast< wxDouble >(val2); | |
27977 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
27978 | if (!SWIG_IsOK(ecode3)) { | |
27979 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); | |
27980 | } | |
27981 | arg3 = static_cast< wxDouble >(val3); | |
27982 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
27983 | if (!SWIG_IsOK(ecode4)) { | |
27984 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); | |
27985 | } | |
27986 | arg4 = static_cast< wxDouble >(val4); | |
27987 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
27988 | if (!SWIG_IsOK(ecode5)) { | |
27989 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); | |
27990 | } | |
27991 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 | 27992 | { |
5c8c7dd3 | 27993 | (arg1)->AddEllipse(arg2,arg3,arg4,arg5); |
70d7cb34 RD |
27994 | if (PyErr_Occurred()) SWIG_fail; |
27995 | } | |
27996 | resultobj = SWIG_Py_Void(); | |
27997 | return resultobj; | |
27998 | fail: | |
27999 | return NULL; | |
28000 | } | |
28001 | ||
28002 | ||
5c8c7dd3 | 28003 | SWIGINTERN PyObject *_wrap_GraphicsPath_AddRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 28004 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28005 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28006 | wxDouble arg2 ; | |
28007 | wxDouble arg3 ; | |
28008 | wxDouble arg4 ; | |
28009 | wxDouble arg5 ; | |
28010 | wxDouble arg6 ; | |
70d7cb34 RD |
28011 | void *argp1 = 0 ; |
28012 | int res1 = 0 ; | |
5c8c7dd3 RD |
28013 | double val2 ; |
28014 | int ecode2 = 0 ; | |
28015 | double val3 ; | |
28016 | int ecode3 = 0 ; | |
28017 | double val4 ; | |
28018 | int ecode4 = 0 ; | |
28019 | double val5 ; | |
28020 | int ecode5 = 0 ; | |
28021 | double val6 ; | |
28022 | int ecode6 = 0 ; | |
70d7cb34 RD |
28023 | PyObject * obj0 = 0 ; |
28024 | PyObject * obj1 = 0 ; | |
5c8c7dd3 RD |
28025 | PyObject * obj2 = 0 ; |
28026 | PyObject * obj3 = 0 ; | |
28027 | PyObject * obj4 = 0 ; | |
28028 | PyObject * obj5 = 0 ; | |
70d7cb34 | 28029 | char * kwnames[] = { |
5c8c7dd3 | 28030 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
70d7cb34 RD |
28031 | }; |
28032 | ||
5c8c7dd3 RD |
28033 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsPath_AddRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
28034 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28035 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 28036 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 28037 | } |
5c8c7dd3 RD |
28038 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
28039 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28040 | if (!SWIG_IsOK(ecode2)) { | |
28041 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28042 | } | |
28043 | arg2 = static_cast< wxDouble >(val2); | |
28044 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28045 | if (!SWIG_IsOK(ecode3)) { | |
28046 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28047 | } | |
28048 | arg3 = static_cast< wxDouble >(val3); | |
28049 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28050 | if (!SWIG_IsOK(ecode4)) { | |
28051 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28052 | } | |
28053 | arg4 = static_cast< wxDouble >(val4); | |
28054 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28055 | if (!SWIG_IsOK(ecode5)) { | |
28056 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28057 | } | |
28058 | arg5 = static_cast< wxDouble >(val5); | |
28059 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28060 | if (!SWIG_IsOK(ecode6)) { | |
28061 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsPath_AddRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
28062 | } | |
28063 | arg6 = static_cast< wxDouble >(val6); | |
70d7cb34 | 28064 | { |
5c8c7dd3 | 28065 | (arg1)->AddRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
70d7cb34 RD |
28066 | if (PyErr_Occurred()) SWIG_fail; |
28067 | } | |
5c8c7dd3 | 28068 | resultobj = SWIG_Py_Void(); |
70d7cb34 RD |
28069 | return resultobj; |
28070 | fail: | |
28071 | return NULL; | |
28072 | } | |
28073 | ||
28074 | ||
5c8c7dd3 | 28075 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 28076 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28077 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28078 | void *result = 0 ; | |
70d7cb34 RD |
28079 | void *argp1 = 0 ; |
28080 | int res1 = 0 ; | |
28081 | PyObject *swig_obj[1] ; | |
28082 | ||
28083 | if (!args) SWIG_fail; | |
28084 | swig_obj[0] = args; | |
5c8c7dd3 | 28085 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); |
70d7cb34 | 28086 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 28087 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28088 | } |
5c8c7dd3 | 28089 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 28090 | { |
5c8c7dd3 | 28091 | result = (void *)((wxGraphicsPath const *)arg1)->GetNativePath(); |
70d7cb34 RD |
28092 | if (PyErr_Occurred()) SWIG_fail; |
28093 | } | |
5c8c7dd3 | 28094 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); |
70d7cb34 RD |
28095 | return resultobj; |
28096 | fail: | |
28097 | return NULL; | |
28098 | } | |
28099 | ||
28100 | ||
5c8c7dd3 | 28101 | SWIGINTERN PyObject *_wrap_GraphicsPath_UnGetNativePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 28102 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28103 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28104 | void *arg2 = (void *) 0 ; | |
70d7cb34 RD |
28105 | void *argp1 = 0 ; |
28106 | int res1 = 0 ; | |
5c8c7dd3 | 28107 | int res2 ; |
70d7cb34 RD |
28108 | PyObject * obj0 = 0 ; |
28109 | PyObject * obj1 = 0 ; | |
70d7cb34 | 28110 | char * kwnames[] = { |
5c8c7dd3 | 28111 | (char *) "self",(char *) "p", NULL |
70d7cb34 RD |
28112 | }; |
28113 | ||
5c8c7dd3 RD |
28114 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_UnGetNativePath",kwnames,&obj0,&obj1)) SWIG_fail; |
28115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28116 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
5c8c7dd3 RD |
28118 | } |
28119 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); | |
28120 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
28121 | if (!SWIG_IsOK(res2)) { | |
28122 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_UnGetNativePath" "', expected argument " "2"" of type '" "void *""'"); | |
70d7cb34 | 28123 | } |
70d7cb34 | 28124 | { |
8f514ab4 | 28125 | ((wxGraphicsPath const *)arg1)->UnGetNativePath(arg2); |
70d7cb34 RD |
28126 | if (PyErr_Occurred()) SWIG_fail; |
28127 | } | |
28128 | resultobj = SWIG_Py_Void(); | |
28129 | return resultobj; | |
28130 | fail: | |
28131 | return NULL; | |
28132 | } | |
28133 | ||
28134 | ||
5c8c7dd3 | 28135 | SWIGINTERN PyObject *_wrap_GraphicsPath_Transform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
70d7cb34 | 28136 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28137 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28138 | wxGraphicsMatrix *arg2 = 0 ; | |
70d7cb34 RD |
28139 | void *argp1 = 0 ; |
28140 | int res1 = 0 ; | |
5c8c7dd3 RD |
28141 | void *argp2 = 0 ; |
28142 | int res2 = 0 ; | |
70d7cb34 RD |
28143 | PyObject * obj0 = 0 ; |
28144 | PyObject * obj1 = 0 ; | |
70d7cb34 | 28145 | char * kwnames[] = { |
5c8c7dd3 | 28146 | (char *) "self",(char *) "matrix", NULL |
70d7cb34 RD |
28147 | }; |
28148 | ||
5c8c7dd3 RD |
28149 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsPath_Transform",kwnames,&obj0,&obj1)) SWIG_fail; |
28150 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28151 | if (!SWIG_IsOK(res1)) { |
5c8c7dd3 | 28152 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Transform" "', expected argument " "1"" of type '" "wxGraphicsPath *""'"); |
70d7cb34 | 28153 | } |
5c8c7dd3 RD |
28154 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
28155 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
28156 | if (!SWIG_IsOK(res2)) { | |
28157 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28158 | } | |
28159 | if (!argp2) { | |
28160 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsPath_Transform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
28161 | } | |
28162 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
70d7cb34 | 28163 | { |
5c8c7dd3 | 28164 | (arg1)->Transform((wxGraphicsMatrix const &)*arg2); |
70d7cb34 RD |
28165 | if (PyErr_Occurred()) SWIG_fail; |
28166 | } | |
28167 | resultobj = SWIG_Py_Void(); | |
28168 | return resultobj; | |
28169 | fail: | |
28170 | return NULL; | |
28171 | } | |
28172 | ||
28173 | ||
5c8c7dd3 | 28174 | SWIGINTERN PyObject *_wrap_GraphicsPath_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 | 28175 | PyObject *resultobj = 0; |
5c8c7dd3 | 28176 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
4fe9ce47 | 28177 | wxRect2D result; |
70d7cb34 RD |
28178 | void *argp1 = 0 ; |
28179 | int res1 = 0 ; | |
5c8c7dd3 | 28180 | PyObject *swig_obj[1] ; |
70d7cb34 | 28181 | |
5c8c7dd3 RD |
28182 | if (!args) SWIG_fail; |
28183 | swig_obj[0] = args; | |
28184 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28185 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28186 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_GetBox" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28187 | } |
5c8c7dd3 | 28188 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
70d7cb34 | 28189 | { |
8f514ab4 | 28190 | result = ((wxGraphicsPath const *)arg1)->GetBox(); |
70d7cb34 RD |
28191 | if (PyErr_Occurred()) SWIG_fail; |
28192 | } | |
4fe9ce47 | 28193 | resultobj = SWIG_NewPointerObj((new wxRect2D(static_cast< const wxRect2D& >(result))), SWIGTYPE_p_wxRect2D, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
28194 | return resultobj; |
28195 | fail: | |
28196 | return NULL; | |
28197 | } | |
28198 | ||
28199 | ||
5c8c7dd3 | 28200 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 28201 | PyObject *resultobj = 0; |
5c8c7dd3 RD |
28202 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
28203 | wxDouble arg2 ; | |
28204 | wxDouble arg3 ; | |
8f514ab4 | 28205 | int arg4 = (int) wxODDEVEN_RULE ; |
5c8c7dd3 | 28206 | bool result; |
70d7cb34 RD |
28207 | void *argp1 = 0 ; |
28208 | int res1 = 0 ; | |
5c8c7dd3 RD |
28209 | double val2 ; |
28210 | int ecode2 = 0 ; | |
28211 | double val3 ; | |
28212 | int ecode3 = 0 ; | |
28213 | int val4 ; | |
28214 | int ecode4 = 0 ; | |
70d7cb34 | 28215 | |
5c8c7dd3 RD |
28216 | if ((nobjs < 3) || (nobjs > 4)) SWIG_fail; |
28217 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28218 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28219 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28220 | } |
5c8c7dd3 RD |
28221 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
28222 | ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); | |
28223 | if (!SWIG_IsOK(ecode2)) { | |
28224 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsPath_Contains" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28225 | } | |
28226 | arg2 = static_cast< wxDouble >(val2); | |
28227 | ecode3 = SWIG_AsVal_double(swig_obj[2], &val3); | |
28228 | if (!SWIG_IsOK(ecode3)) { | |
28229 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28230 | } | |
28231 | arg3 = static_cast< wxDouble >(val3); | |
28232 | if (swig_obj[3]) { | |
28233 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
28234 | if (!SWIG_IsOK(ecode4)) { | |
28235 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsPath_Contains" "', expected argument " "4"" of type '" "int""'"); | |
28236 | } | |
28237 | arg4 = static_cast< int >(val4); | |
70d7cb34 RD |
28238 | } |
28239 | { | |
8f514ab4 | 28240 | result = (bool)((wxGraphicsPath const *)arg1)->Contains(arg2,arg3,arg4); |
70d7cb34 RD |
28241 | if (PyErr_Occurred()) SWIG_fail; |
28242 | } | |
5c8c7dd3 RD |
28243 | { |
28244 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
28245 | } |
28246 | return resultobj; | |
28247 | fail: | |
28248 | return NULL; | |
28249 | } | |
28250 | ||
28251 | ||
5c8c7dd3 | 28252 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
70d7cb34 | 28253 | PyObject *resultobj = 0; |
5c8c7dd3 | 28254 | wxGraphicsPath *arg1 = (wxGraphicsPath *) 0 ; |
4fe9ce47 | 28255 | wxPoint2D *arg2 = 0 ; |
8f514ab4 | 28256 | int arg3 = (int) wxODDEVEN_RULE ; |
5c8c7dd3 | 28257 | bool result; |
70d7cb34 RD |
28258 | void *argp1 = 0 ; |
28259 | int res1 = 0 ; | |
4fe9ce47 | 28260 | wxPoint2D temp2 ; |
5c8c7dd3 RD |
28261 | int val3 ; |
28262 | int ecode3 = 0 ; | |
70d7cb34 | 28263 | |
5c8c7dd3 RD |
28264 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
28265 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsPath, 0 | 0 ); | |
70d7cb34 | 28266 | if (!SWIG_IsOK(res1)) { |
8f514ab4 | 28267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsPath_Contains" "', expected argument " "1"" of type '" "wxGraphicsPath const *""'"); |
70d7cb34 | 28268 | } |
5c8c7dd3 | 28269 | arg1 = reinterpret_cast< wxGraphicsPath * >(argp1); |
4fe9ce47 RD |
28270 | { |
28271 | arg2 = &temp2; | |
28272 | if ( ! wxPoint2D_helper(swig_obj[1], &arg2)) SWIG_fail; | |
5c8c7dd3 | 28273 | } |
5c8c7dd3 RD |
28274 | if (swig_obj[2]) { |
28275 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
28276 | if (!SWIG_IsOK(ecode3)) { | |
28277 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsPath_Contains" "', expected argument " "3"" of type '" "int""'"); | |
28278 | } | |
28279 | arg3 = static_cast< int >(val3); | |
70d7cb34 RD |
28280 | } |
28281 | { | |
4fe9ce47 | 28282 | result = (bool)((wxGraphicsPath const *)arg1)->Contains((wxPoint2D const &)*arg2,arg3); |
70d7cb34 RD |
28283 | if (PyErr_Occurred()) SWIG_fail; |
28284 | } | |
5c8c7dd3 RD |
28285 | { |
28286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
70d7cb34 RD |
28287 | } |
28288 | return resultobj; | |
28289 | fail: | |
28290 | return NULL; | |
28291 | } | |
28292 | ||
28293 | ||
5c8c7dd3 RD |
28294 | SWIGINTERN PyObject *_wrap_GraphicsPath_Contains(PyObject *self, PyObject *args) { |
28295 | int argc; | |
28296 | PyObject *argv[5]; | |
70d7cb34 | 28297 | |
5c8c7dd3 RD |
28298 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsPath_Contains",0,4,argv))) SWIG_fail; |
28299 | --argc; | |
28300 | if ((argc >= 2) && (argc <= 3)) { | |
28301 | int _v = 0; | |
28302 | { | |
4fe9ce47 RD |
28303 | { |
28304 | _v = wxPySimple_typecheck(argv[1], wxT("wxPoint2D"), 2); | |
28305 | } | |
5c8c7dd3 RD |
28306 | } |
28307 | if (!_v) goto check_1; | |
28308 | if (argc > 2) { | |
28309 | { | |
28310 | { | |
28311 | int res = SWIG_AsVal_int(argv[2], NULL); | |
28312 | _v = SWIG_CheckState(res); | |
28313 | } | |
28314 | } | |
28315 | if (!_v) goto check_1; | |
28316 | } | |
28317 | return _wrap_GraphicsPath_Contains__SWIG_1(self, argc, argv); | |
70d7cb34 | 28318 | } |
5c8c7dd3 RD |
28319 | check_1: |
28320 | ||
28321 | if ((argc >= 3) && (argc <= 4)) { | |
28322 | return _wrap_GraphicsPath_Contains__SWIG_0(self, argc, argv); | |
70d7cb34 | 28323 | } |
5c8c7dd3 | 28324 | |
70d7cb34 | 28325 | fail: |
5c8c7dd3 | 28326 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsPath_Contains'"); |
70d7cb34 RD |
28327 | return NULL; |
28328 | } | |
28329 | ||
28330 | ||
5c8c7dd3 | 28331 | SWIGINTERN PyObject *GraphicsPath_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
70d7cb34 RD |
28332 | PyObject *obj; |
28333 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
5c8c7dd3 | 28334 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsPath, SWIG_NewClientData(obj)); |
70d7cb34 RD |
28335 | return SWIG_Py_Void(); |
28336 | } | |
28337 | ||
8f514ab4 RD |
28338 | SWIGINTERN PyObject *GraphicsPath_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28339 | return SWIG_Python_InitShadowInstance(args); | |
28340 | } | |
28341 | ||
5c8c7dd3 RD |
28342 | SWIGINTERN int NullGraphicsPen_set(PyObject *) { |
28343 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPen is read-only."); | |
28344 | return 1; | |
28345 | } | |
28346 | ||
28347 | ||
28348 | SWIGINTERN PyObject *NullGraphicsPen_get(void) { | |
28349 | PyObject *pyobj = 0; | |
28350 | ||
28351 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPen), SWIGTYPE_p_wxGraphicsPen, 0 ); | |
28352 | return pyobj; | |
28353 | } | |
28354 | ||
28355 | ||
28356 | SWIGINTERN int NullGraphicsBrush_set(PyObject *) { | |
28357 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsBrush is read-only."); | |
28358 | return 1; | |
28359 | } | |
28360 | ||
28361 | ||
28362 | SWIGINTERN PyObject *NullGraphicsBrush_get(void) { | |
28363 | PyObject *pyobj = 0; | |
28364 | ||
28365 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsBrush), SWIGTYPE_p_wxGraphicsBrush, 0 ); | |
28366 | return pyobj; | |
28367 | } | |
28368 | ||
28369 | ||
28370 | SWIGINTERN int NullGraphicsFont_set(PyObject *) { | |
28371 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsFont is read-only."); | |
28372 | return 1; | |
28373 | } | |
28374 | ||
28375 | ||
28376 | SWIGINTERN PyObject *NullGraphicsFont_get(void) { | |
28377 | PyObject *pyobj = 0; | |
28378 | ||
28379 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsFont), SWIGTYPE_p_wxGraphicsFont, 0 ); | |
28380 | return pyobj; | |
28381 | } | |
28382 | ||
28383 | ||
28384 | SWIGINTERN int NullGraphicsMatrix_set(PyObject *) { | |
28385 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsMatrix is read-only."); | |
28386 | return 1; | |
28387 | } | |
28388 | ||
28389 | ||
28390 | SWIGINTERN PyObject *NullGraphicsMatrix_get(void) { | |
28391 | PyObject *pyobj = 0; | |
28392 | ||
28393 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsMatrix), SWIGTYPE_p_wxGraphicsMatrix, 0 ); | |
28394 | return pyobj; | |
28395 | } | |
28396 | ||
28397 | ||
28398 | SWIGINTERN int NullGraphicsPath_set(PyObject *) { | |
28399 | SWIG_Error(SWIG_AttributeError,"Variable NullGraphicsPath is read-only."); | |
28400 | return 1; | |
28401 | } | |
28402 | ||
28403 | ||
28404 | SWIGINTERN PyObject *NullGraphicsPath_get(void) { | |
28405 | PyObject *pyobj = 0; | |
28406 | ||
28407 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullGraphicsPath), SWIGTYPE_p_wxGraphicsPath, 0 ); | |
28408 | return pyobj; | |
28409 | } | |
28410 | ||
28411 | ||
70d7cb34 RD |
28412 | SWIGINTERN PyObject *_wrap_delete_GraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28413 | PyObject *resultobj = 0; | |
28414 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
28415 | void *argp1 = 0 ; | |
28416 | int res1 = 0 ; | |
28417 | PyObject *swig_obj[1] ; | |
28418 | ||
28419 | if (!args) SWIG_fail; | |
28420 | swig_obj[0] = args; | |
28421 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_DISOWN | 0 ); | |
28422 | if (!SWIG_IsOK(res1)) { | |
28423 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28424 | } | |
28425 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28426 | { | |
28427 | delete arg1; | |
28428 | ||
28429 | if (PyErr_Occurred()) SWIG_fail; | |
28430 | } | |
28431 | resultobj = SWIG_Py_Void(); | |
28432 | return resultobj; | |
28433 | fail: | |
28434 | return NULL; | |
28435 | } | |
28436 | ||
28437 | ||
28438 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28439 | PyObject *resultobj = 0; | |
28440 | wxWindowDC *arg1 = 0 ; | |
28441 | wxGraphicsContext *result = 0 ; | |
28442 | void *argp1 = 0 ; | |
28443 | int res1 = 0 ; | |
28444 | ||
28445 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
28446 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
28447 | if (!SWIG_IsOK(res1)) { | |
28448 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
28449 | } | |
28450 | if (!argp1) { | |
28451 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
28452 | } | |
28453 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
28454 | { | |
28455 | result = (wxGraphicsContext *)wxGraphicsContext::Create((wxWindowDC const &)*arg1); | |
28456 | if (PyErr_Occurred()) SWIG_fail; | |
28457 | } | |
28458 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28459 | return resultobj; | |
28460 | fail: | |
28461 | return NULL; | |
28462 | } | |
28463 | ||
28464 | ||
28465 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
28466 | PyObject *resultobj = 0; | |
28467 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28468 | wxGraphicsContext *result = 0 ; | |
28469 | void *argp1 = 0 ; | |
28470 | int res1 = 0 ; | |
28471 | ||
28472 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
28473 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
28474 | if (!SWIG_IsOK(res1)) { | |
28475 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Create" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
28476 | } | |
28477 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
28478 | { | |
28479 | result = (wxGraphicsContext *)wxGraphicsContext::Create(arg1); | |
28480 | if (PyErr_Occurred()) SWIG_fail; | |
28481 | } | |
28482 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28483 | return resultobj; | |
28484 | fail: | |
28485 | return NULL; | |
28486 | } | |
28487 | ||
28488 | ||
28489 | SWIGINTERN PyObject *_wrap_GraphicsContext_Create(PyObject *self, PyObject *args) { | |
28490 | int argc; | |
28491 | PyObject *argv[2]; | |
28492 | ||
28493 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_Create",0,1,argv))) SWIG_fail; | |
28494 | --argc; | |
28495 | if (argc == 1) { | |
28496 | int _v = 0; | |
28497 | { | |
28498 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
28499 | _v = SWIG_CheckState(res); | |
28500 | } | |
28501 | if (!_v) goto check_1; | |
28502 | return _wrap_GraphicsContext_Create__SWIG_0(self, argc, argv); | |
28503 | } | |
28504 | check_1: | |
28505 | ||
28506 | if (argc == 1) { | |
28507 | return _wrap_GraphicsContext_Create__SWIG_1(self, argc, argv); | |
28508 | } | |
28509 | ||
28510 | fail: | |
28511 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_Create'"); | |
28512 | return NULL; | |
28513 | } | |
28514 | ||
28515 | ||
f89238b9 RD |
28516 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
28517 | PyObject *resultobj = 0; | |
28518 | wxGraphicsContext *result = 0 ; | |
28519 | ||
28520 | if (!SWIG_Python_UnpackTuple(args,"GraphicsContext_CreateMeasuringContext",0,0,0)) SWIG_fail; | |
28521 | { | |
28522 | result = (wxGraphicsContext *)wxGraphicsContext::Create(); | |
28523 | if (PyErr_Occurred()) SWIG_fail; | |
28524 | } | |
28525 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28526 | return resultobj; | |
28527 | fail: | |
28528 | return NULL; | |
28529 | } | |
28530 | ||
28531 | ||
70d7cb34 RD |
28532 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNative(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
28533 | PyObject *resultobj = 0; | |
28534 | void *arg1 = (void *) 0 ; | |
28535 | wxGraphicsContext *result = 0 ; | |
28536 | int res1 ; | |
28537 | PyObject * obj0 = 0 ; | |
28538 | char * kwnames[] = { | |
28539 | (char *) "context", NULL | |
28540 | }; | |
28541 | ||
28542 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNative",kwnames,&obj0)) SWIG_fail; | |
28543 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
28544 | if (!SWIG_IsOK(res1)) { | |
28545 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNative" "', expected argument " "1"" of type '" "void *""'"); | |
28546 | } | |
28547 | { | |
28548 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNative(arg1); | |
28549 | if (PyErr_Occurred()) SWIG_fail; | |
28550 | } | |
28551 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); | |
28552 | return resultobj; | |
28553 | fail: | |
28554 | return NULL; | |
28555 | } | |
28556 | ||
28557 | ||
28558 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
28559 | PyObject *resultobj = 0; | |
28560 | void *arg1 = (void *) 0 ; | |
28561 | wxGraphicsContext *result = 0 ; | |
28562 | int res1 ; | |
28563 | PyObject * obj0 = 0 ; | |
28564 | char * kwnames[] = { | |
28565 | (char *) "window", NULL | |
28566 | }; | |
28567 | ||
28568 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GraphicsContext_CreateFromNativeWindow",kwnames,&obj0)) SWIG_fail; | |
28569 | res1 = SWIG_ConvertPtr(obj0,SWIG_as_voidptrptr(&arg1), 0, 0); | |
28570 | if (!SWIG_IsOK(res1)) { | |
28571 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFromNativeWindow" "', expected argument " "1"" of type '" "void *""'"); | |
28572 | } | |
28573 | { | |
28574 | result = (wxGraphicsContext *)wxGraphicsContext::CreateFromNativeWindow(arg1); | |
28575 | if (PyErr_Occurred()) SWIG_fail; | |
28576 | } | |
28577 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28578 | return resultobj; | |
28579 | fail: | |
28580 | return NULL; | |
28581 | } | |
28582 | ||
28583 | ||
28584 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
28585 | PyObject *resultobj = 0; | |
28586 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 28587 | wxGraphicsPath result; |
70d7cb34 RD |
28588 | void *argp1 = 0 ; |
28589 | int res1 = 0 ; | |
28590 | PyObject *swig_obj[1] ; | |
28591 | ||
28592 | if (!args) SWIG_fail; | |
28593 | swig_obj[0] = args; | |
28594 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
28595 | if (!SWIG_IsOK(res1)) { | |
28596 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
28597 | } | |
28598 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
28599 | { | |
5c8c7dd3 | 28600 | result = (arg1)->CreatePath(); |
70d7cb34 RD |
28601 | if (PyErr_Occurred()) SWIG_fail; |
28602 | } | |
5c8c7dd3 | 28603 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28604 | return resultobj; |
28605 | fail: | |
28606 | return NULL; | |
28607 | } | |
28608 | ||
28609 | ||
70d7cb34 | 28610 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28611 | PyObject *resultobj = 0; |
70d7cb34 RD |
28612 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28613 | wxPen *arg2 = 0 ; | |
28614 | wxGraphicsPen result; | |
72ef6efb RD |
28615 | void *argp1 = 0 ; |
28616 | int res1 = 0 ; | |
70d7cb34 RD |
28617 | void *argp2 = 0 ; |
28618 | int res2 = 0 ; | |
72ef6efb RD |
28619 | PyObject * obj0 = 0 ; |
28620 | PyObject * obj1 = 0 ; | |
72ef6efb | 28621 | char * kwnames[] = { |
70d7cb34 | 28622 | (char *) "self",(char *) "pen", NULL |
72ef6efb RD |
28623 | }; |
28624 | ||
70d7cb34 RD |
28625 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; |
28626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28627 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28629 | } |
70d7cb34 RD |
28630 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28631 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
28632 | if (!SWIG_IsOK(res2)) { | |
28633 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28634 | } | |
28635 | if (!argp2) { | |
28636 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
28637 | } | |
28638 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
72ef6efb | 28639 | { |
70d7cb34 | 28640 | result = (arg1)->CreatePen((wxPen const &)*arg2); |
72ef6efb RD |
28641 | if (PyErr_Occurred()) SWIG_fail; |
28642 | } | |
70d7cb34 | 28643 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28644 | return resultobj; |
28645 | fail: | |
28646 | return NULL; | |
28647 | } | |
28648 | ||
28649 | ||
70d7cb34 | 28650 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28651 | PyObject *resultobj = 0; |
70d7cb34 RD |
28652 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28653 | wxBrush *arg2 = 0 ; | |
28654 | wxGraphicsBrush result; | |
72ef6efb RD |
28655 | void *argp1 = 0 ; |
28656 | int res1 = 0 ; | |
70d7cb34 RD |
28657 | void *argp2 = 0 ; |
28658 | int res2 = 0 ; | |
72ef6efb RD |
28659 | PyObject * obj0 = 0 ; |
28660 | PyObject * obj1 = 0 ; | |
72ef6efb | 28661 | char * kwnames[] = { |
70d7cb34 | 28662 | (char *) "self",(char *) "brush", NULL |
72ef6efb RD |
28663 | }; |
28664 | ||
70d7cb34 RD |
28665 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; |
28666 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28667 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28668 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28669 | } |
70d7cb34 RD |
28670 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28671 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
28672 | if (!SWIG_IsOK(res2)) { | |
28673 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28674 | } | |
28675 | if (!argp2) { | |
28676 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
28677 | } | |
28678 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
72ef6efb | 28679 | { |
70d7cb34 | 28680 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); |
72ef6efb RD |
28681 | if (PyErr_Occurred()) SWIG_fail; |
28682 | } | |
70d7cb34 | 28683 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28684 | return resultobj; |
28685 | fail: | |
28686 | return NULL; | |
28687 | } | |
28688 | ||
28689 | ||
70d7cb34 | 28690 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28691 | PyObject *resultobj = 0; |
70d7cb34 | 28692 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
28693 | wxDouble arg2 ; |
28694 | wxDouble arg3 ; | |
28695 | wxDouble arg4 ; | |
28696 | wxDouble arg5 ; | |
70d7cb34 RD |
28697 | wxColour *arg6 = 0 ; |
28698 | wxColour *arg7 = 0 ; | |
28699 | wxGraphicsBrush result; | |
72ef6efb RD |
28700 | void *argp1 = 0 ; |
28701 | int res1 = 0 ; | |
28702 | double val2 ; | |
28703 | int ecode2 = 0 ; | |
28704 | double val3 ; | |
28705 | int ecode3 = 0 ; | |
28706 | double val4 ; | |
28707 | int ecode4 = 0 ; | |
28708 | double val5 ; | |
28709 | int ecode5 = 0 ; | |
70d7cb34 RD |
28710 | wxColour temp6 ; |
28711 | wxColour temp7 ; | |
72ef6efb RD |
28712 | PyObject * obj0 = 0 ; |
28713 | PyObject * obj1 = 0 ; | |
28714 | PyObject * obj2 = 0 ; | |
28715 | PyObject * obj3 = 0 ; | |
28716 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
28717 | PyObject * obj5 = 0 ; |
28718 | PyObject * obj6 = 0 ; | |
72ef6efb | 28719 | char * kwnames[] = { |
70d7cb34 | 28720 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
28721 | }; |
28722 | ||
70d7cb34 RD |
28723 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsContext_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
28724 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28725 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28726 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28727 | } |
70d7cb34 | 28728 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
28729 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
28730 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 28731 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
28732 | } |
28733 | arg2 = static_cast< wxDouble >(val2); | |
28734 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28735 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 28736 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
28737 | } |
28738 | arg3 = static_cast< wxDouble >(val3); | |
28739 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28740 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 28741 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
28742 | } |
28743 | arg4 = static_cast< wxDouble >(val4); | |
28744 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28745 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 28746 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
28747 | } |
28748 | arg5 = static_cast< wxDouble >(val5); | |
28749 | { | |
70d7cb34 RD |
28750 | arg6 = &temp6; |
28751 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
72ef6efb | 28752 | } |
70d7cb34 RD |
28753 | { |
28754 | arg7 = &temp7; | |
28755 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
72ef6efb | 28756 | } |
72ef6efb | 28757 | { |
70d7cb34 | 28758 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); |
72ef6efb RD |
28759 | if (PyErr_Occurred()) SWIG_fail; |
28760 | } | |
70d7cb34 | 28761 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28762 | return resultobj; |
28763 | fail: | |
28764 | return NULL; | |
28765 | } | |
28766 | ||
28767 | ||
70d7cb34 | 28768 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 28769 | PyObject *resultobj = 0; |
70d7cb34 | 28770 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
72ef6efb RD |
28771 | wxDouble arg2 ; |
28772 | wxDouble arg3 ; | |
28773 | wxDouble arg4 ; | |
28774 | wxDouble arg5 ; | |
28775 | wxDouble arg6 ; | |
70d7cb34 RD |
28776 | wxColour *arg7 = 0 ; |
28777 | wxColour *arg8 = 0 ; | |
28778 | wxGraphicsBrush result; | |
72ef6efb RD |
28779 | void *argp1 = 0 ; |
28780 | int res1 = 0 ; | |
28781 | double val2 ; | |
28782 | int ecode2 = 0 ; | |
28783 | double val3 ; | |
28784 | int ecode3 = 0 ; | |
28785 | double val4 ; | |
28786 | int ecode4 = 0 ; | |
28787 | double val5 ; | |
28788 | int ecode5 = 0 ; | |
28789 | double val6 ; | |
28790 | int ecode6 = 0 ; | |
70d7cb34 RD |
28791 | wxColour temp7 ; |
28792 | wxColour temp8 ; | |
72ef6efb RD |
28793 | PyObject * obj0 = 0 ; |
28794 | PyObject * obj1 = 0 ; | |
28795 | PyObject * obj2 = 0 ; | |
28796 | PyObject * obj3 = 0 ; | |
28797 | PyObject * obj4 = 0 ; | |
28798 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
28799 | PyObject * obj6 = 0 ; |
28800 | PyObject * obj7 = 0 ; | |
72ef6efb | 28801 | char * kwnames[] = { |
70d7cb34 | 28802 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
28803 | }; |
28804 | ||
70d7cb34 RD |
28805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsContext_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
28806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28807 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb | 28809 | } |
70d7cb34 | 28810 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
72ef6efb RD |
28811 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
28812 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 28813 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
28814 | } |
28815 | arg2 = static_cast< wxDouble >(val2); | |
28816 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28817 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 28818 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
28819 | } |
28820 | arg3 = static_cast< wxDouble >(val3); | |
28821 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28822 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 28823 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
28824 | } |
28825 | arg4 = static_cast< wxDouble >(val4); | |
28826 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28827 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 28828 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
28829 | } |
28830 | arg5 = static_cast< wxDouble >(val5); | |
28831 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28832 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 28833 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
28834 | } |
28835 | arg6 = static_cast< wxDouble >(val6); | |
28836 | { | |
70d7cb34 RD |
28837 | arg7 = &temp7; |
28838 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
28839 | } | |
28840 | { | |
28841 | arg8 = &temp8; | |
28842 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
28843 | } | |
28844 | { | |
28845 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
28846 | if (PyErr_Occurred()) SWIG_fail; |
28847 | } | |
70d7cb34 | 28848 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28849 | return resultobj; |
28850 | fail: | |
28851 | return NULL; | |
28852 | } | |
28853 | ||
28854 | ||
70d7cb34 | 28855 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
28856 | PyObject *resultobj = 0; |
28857 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 RD |
28858 | wxFont *arg2 = 0 ; |
28859 | wxColour const &arg3_defvalue = *wxBLACK ; | |
28860 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
28861 | wxGraphicsFont result; | |
72ef6efb RD |
28862 | void *argp1 = 0 ; |
28863 | int res1 = 0 ; | |
70d7cb34 RD |
28864 | void *argp2 = 0 ; |
28865 | int res2 = 0 ; | |
28866 | wxColour temp3 ; | |
28867 | PyObject * obj0 = 0 ; | |
28868 | PyObject * obj1 = 0 ; | |
28869 | PyObject * obj2 = 0 ; | |
28870 | char * kwnames[] = { | |
28871 | (char *) "self",(char *) "font",(char *) "col", NULL | |
28872 | }; | |
72ef6efb | 28873 | |
70d7cb34 RD |
28874 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; |
28875 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 28876 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28877 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
28878 | } |
28879 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
28880 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
28881 | if (!SWIG_IsOK(res2)) { | |
28882 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 28883 | } |
70d7cb34 RD |
28884 | if (!argp2) { |
28885 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
72ef6efb | 28886 | } |
70d7cb34 RD |
28887 | arg2 = reinterpret_cast< wxFont * >(argp2); |
28888 | if (obj2) { | |
28889 | { | |
28890 | arg3 = &temp3; | |
28891 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
28892 | } | |
72ef6efb | 28893 | } |
72ef6efb | 28894 | { |
70d7cb34 | 28895 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
28896 | if (PyErr_Occurred()) SWIG_fail; |
28897 | } | |
70d7cb34 | 28898 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28899 | return resultobj; |
28900 | fail: | |
28901 | return NULL; | |
28902 | } | |
28903 | ||
28904 | ||
70d7cb34 | 28905 | SWIGINTERN PyObject *_wrap_GraphicsContext_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
0a27f394 | 28906 | PyObject *resultobj = 0; |
70d7cb34 RD |
28907 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; |
28908 | wxDouble arg2 = (wxDouble) 1.0 ; | |
28909 | wxDouble arg3 = (wxDouble) 0.0 ; | |
28910 | wxDouble arg4 = (wxDouble) 0.0 ; | |
28911 | wxDouble arg5 = (wxDouble) 1.0 ; | |
28912 | wxDouble arg6 = (wxDouble) 0.0 ; | |
28913 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 28914 | wxGraphicsMatrix result; |
0a27f394 RD |
28915 | void *argp1 = 0 ; |
28916 | int res1 = 0 ; | |
70d7cb34 RD |
28917 | double val2 ; |
28918 | int ecode2 = 0 ; | |
28919 | double val3 ; | |
28920 | int ecode3 = 0 ; | |
28921 | double val4 ; | |
28922 | int ecode4 = 0 ; | |
28923 | double val5 ; | |
28924 | int ecode5 = 0 ; | |
28925 | double val6 ; | |
28926 | int ecode6 = 0 ; | |
28927 | double val7 ; | |
28928 | int ecode7 = 0 ; | |
28929 | PyObject * obj0 = 0 ; | |
28930 | PyObject * obj1 = 0 ; | |
28931 | PyObject * obj2 = 0 ; | |
28932 | PyObject * obj3 = 0 ; | |
28933 | PyObject * obj4 = 0 ; | |
28934 | PyObject * obj5 = 0 ; | |
28935 | PyObject * obj6 = 0 ; | |
28936 | char * kwnames[] = { | |
28937 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL | |
28938 | }; | |
0a27f394 | 28939 | |
70d7cb34 RD |
28940 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsContext_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
28941 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
0a27f394 | 28942 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 28943 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
0a27f394 | 28944 | } |
70d7cb34 RD |
28945 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); |
28946 | if (obj1) { | |
28947 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
28948 | if (!SWIG_IsOK(ecode2)) { | |
28949 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
28950 | } | |
28951 | arg2 = static_cast< wxDouble >(val2); | |
0a27f394 | 28952 | } |
70d7cb34 RD |
28953 | if (obj2) { |
28954 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
28955 | if (!SWIG_IsOK(ecode3)) { | |
28956 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
28957 | } | |
28958 | arg3 = static_cast< wxDouble >(val3); | |
0a27f394 | 28959 | } |
70d7cb34 RD |
28960 | if (obj3) { |
28961 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
28962 | if (!SWIG_IsOK(ecode4)) { | |
28963 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
28964 | } | |
28965 | arg4 = static_cast< wxDouble >(val4); | |
0a27f394 | 28966 | } |
70d7cb34 RD |
28967 | if (obj4) { |
28968 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
28969 | if (!SWIG_IsOK(ecode5)) { | |
28970 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
28971 | } | |
28972 | arg5 = static_cast< wxDouble >(val5); | |
0a27f394 | 28973 | } |
70d7cb34 RD |
28974 | if (obj5) { |
28975 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
28976 | if (!SWIG_IsOK(ecode6)) { | |
28977 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
28978 | } | |
28979 | arg6 = static_cast< wxDouble >(val6); | |
0a27f394 | 28980 | } |
70d7cb34 RD |
28981 | if (obj6) { |
28982 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
28983 | if (!SWIG_IsOK(ecode7)) { | |
28984 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsContext_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
28985 | } | |
28986 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 28987 | } |
72ef6efb | 28988 | { |
5c8c7dd3 | 28989 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
28990 | if (PyErr_Occurred()) SWIG_fail; |
28991 | } | |
5c8c7dd3 | 28992 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
28993 | return resultobj; |
28994 | fail: | |
28995 | return NULL; | |
28996 | } | |
28997 | ||
28998 | ||
28999 | SWIGINTERN PyObject *_wrap_GraphicsContext_PushState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29000 | PyObject *resultobj = 0; | |
29001 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29002 | void *argp1 = 0 ; | |
29003 | int res1 = 0 ; | |
29004 | PyObject *swig_obj[1] ; | |
29005 | ||
29006 | if (!args) SWIG_fail; | |
29007 | swig_obj[0] = args; | |
29008 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29009 | if (!SWIG_IsOK(res1)) { | |
29010 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PushState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29011 | } | |
29012 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29013 | { | |
72ef6efb | 29014 | (arg1)->PushState(); |
72ef6efb RD |
29015 | if (PyErr_Occurred()) SWIG_fail; |
29016 | } | |
29017 | resultobj = SWIG_Py_Void(); | |
29018 | return resultobj; | |
29019 | fail: | |
29020 | return NULL; | |
29021 | } | |
29022 | ||
29023 | ||
29024 | SWIGINTERN PyObject *_wrap_GraphicsContext_PopState(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29025 | PyObject *resultobj = 0; | |
29026 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29027 | void *argp1 = 0 ; | |
29028 | int res1 = 0 ; | |
29029 | PyObject *swig_obj[1] ; | |
29030 | ||
29031 | if (!args) SWIG_fail; | |
29032 | swig_obj[0] = args; | |
29033 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29034 | if (!SWIG_IsOK(res1)) { | |
29035 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_PopState" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29036 | } | |
29037 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29038 | { | |
72ef6efb | 29039 | (arg1)->PopState(); |
72ef6efb RD |
29040 | if (PyErr_Occurred()) SWIG_fail; |
29041 | } | |
29042 | resultobj = SWIG_Py_Void(); | |
29043 | return resultobj; | |
29044 | fail: | |
29045 | return NULL; | |
29046 | } | |
29047 | ||
29048 | ||
0a27f394 | 29049 | SWIGINTERN PyObject *_wrap_GraphicsContext_ClipRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29050 | PyObject *resultobj = 0; |
29051 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29052 | wxRegion *arg2 = 0 ; | |
29053 | void *argp1 = 0 ; | |
29054 | int res1 = 0 ; | |
29055 | void *argp2 = 0 ; | |
29056 | int res2 = 0 ; | |
29057 | PyObject * obj0 = 0 ; | |
29058 | PyObject * obj1 = 0 ; | |
29059 | char * kwnames[] = { | |
29060 | (char *) "self",(char *) "region", NULL | |
29061 | }; | |
29062 | ||
0a27f394 | 29063 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ClipRegion",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
29064 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
29065 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 29066 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29067 | } |
29068 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29069 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0); | |
29070 | if (!SWIG_IsOK(res2)) { | |
0a27f394 | 29071 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
29072 | } |
29073 | if (!argp2) { | |
0a27f394 | 29074 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ClipRegion" "', expected argument " "2"" of type '" "wxRegion const &""'"); |
72ef6efb RD |
29075 | } |
29076 | arg2 = reinterpret_cast< wxRegion * >(argp2); | |
29077 | { | |
72ef6efb | 29078 | (arg1)->Clip((wxRegion const &)*arg2); |
72ef6efb RD |
29079 | if (PyErr_Occurred()) SWIG_fail; |
29080 | } | |
29081 | resultobj = SWIG_Py_Void(); | |
29082 | return resultobj; | |
29083 | fail: | |
29084 | return NULL; | |
29085 | } | |
29086 | ||
29087 | ||
0a27f394 RD |
29088 | SWIGINTERN PyObject *_wrap_GraphicsContext_Clip(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29089 | PyObject *resultobj = 0; | |
29090 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29091 | wxDouble arg2 ; | |
29092 | wxDouble arg3 ; | |
29093 | wxDouble arg4 ; | |
29094 | wxDouble arg5 ; | |
29095 | void *argp1 = 0 ; | |
29096 | int res1 = 0 ; | |
29097 | double val2 ; | |
29098 | int ecode2 = 0 ; | |
29099 | double val3 ; | |
29100 | int ecode3 = 0 ; | |
29101 | double val4 ; | |
29102 | int ecode4 = 0 ; | |
29103 | double val5 ; | |
29104 | int ecode5 = 0 ; | |
29105 | PyObject * obj0 = 0 ; | |
29106 | PyObject * obj1 = 0 ; | |
29107 | PyObject * obj2 = 0 ; | |
29108 | PyObject * obj3 = 0 ; | |
29109 | PyObject * obj4 = 0 ; | |
29110 | char * kwnames[] = { | |
29111 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
29112 | }; | |
29113 | ||
29114 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_Clip",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
29115 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29116 | if (!SWIG_IsOK(res1)) { | |
29117 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Clip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29118 | } | |
29119 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29120 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29121 | if (!SWIG_IsOK(ecode2)) { | |
29122 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Clip" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29123 | } | |
29124 | arg2 = static_cast< wxDouble >(val2); | |
29125 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29126 | if (!SWIG_IsOK(ecode3)) { | |
29127 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Clip" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29128 | } | |
29129 | arg3 = static_cast< wxDouble >(val3); | |
29130 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
29131 | if (!SWIG_IsOK(ecode4)) { | |
29132 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_Clip" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29133 | } | |
29134 | arg4 = static_cast< wxDouble >(val4); | |
29135 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
29136 | if (!SWIG_IsOK(ecode5)) { | |
29137 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_Clip" "', expected argument " "5"" of type '" "wxDouble""'"); | |
29138 | } | |
29139 | arg5 = static_cast< wxDouble >(val5); | |
29140 | { | |
29141 | (arg1)->Clip(arg2,arg3,arg4,arg5); | |
29142 | if (PyErr_Occurred()) SWIG_fail; | |
29143 | } | |
29144 | resultobj = SWIG_Py_Void(); | |
29145 | return resultobj; | |
29146 | fail: | |
29147 | return NULL; | |
29148 | } | |
29149 | ||
29150 | ||
29151 | SWIGINTERN PyObject *_wrap_GraphicsContext_ResetClip(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29152 | PyObject *resultobj = 0; | |
29153 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29154 | void *argp1 = 0 ; | |
29155 | int res1 = 0 ; | |
29156 | PyObject *swig_obj[1] ; | |
29157 | ||
29158 | if (!args) SWIG_fail; | |
29159 | swig_obj[0] = args; | |
29160 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29161 | if (!SWIG_IsOK(res1)) { | |
29162 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ResetClip" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29163 | } | |
29164 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29165 | { | |
29166 | (arg1)->ResetClip(); | |
29167 | if (PyErr_Occurred()) SWIG_fail; | |
29168 | } | |
29169 | resultobj = SWIG_Py_Void(); | |
29170 | return resultobj; | |
29171 | fail: | |
29172 | return NULL; | |
29173 | } | |
29174 | ||
29175 | ||
29176 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29177 | PyObject *resultobj = 0; | |
29178 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29179 | void *result = 0 ; | |
29180 | void *argp1 = 0 ; | |
29181 | int res1 = 0 ; | |
29182 | PyObject *swig_obj[1] ; | |
29183 | ||
29184 | if (!args) SWIG_fail; | |
29185 | swig_obj[0] = args; | |
29186 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29187 | if (!SWIG_IsOK(res1)) { | |
29188 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetNativeContext" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29189 | } | |
29190 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29191 | { | |
29192 | result = (void *)(arg1)->GetNativeContext(); | |
29193 | if (PyErr_Occurred()) SWIG_fail; | |
29194 | } | |
29195 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 | 0 ); | |
29196 | return resultobj; | |
29197 | fail: | |
29198 | return NULL; | |
29199 | } | |
29200 | ||
29201 | ||
c8aaaf9e RD |
29202 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
29203 | PyObject *resultobj = 0; | |
29204 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29205 | int result; | |
29206 | void *argp1 = 0 ; | |
29207 | int res1 = 0 ; | |
29208 | PyObject *swig_obj[1] ; | |
29209 | ||
29210 | if (!args) SWIG_fail; | |
29211 | swig_obj[0] = args; | |
29212 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29213 | if (!SWIG_IsOK(res1)) { | |
29214 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
29215 | } | |
29216 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29217 | { | |
29218 | result = (int)((wxGraphicsContext const *)arg1)->GetLogicalFunction(); | |
29219 | if (PyErr_Occurred()) SWIG_fail; | |
29220 | } | |
29221 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
29222 | return resultobj; | |
29223 | fail: | |
29224 | return NULL; | |
29225 | } | |
29226 | ||
29227 | ||
29228 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29229 | PyObject *resultobj = 0; | |
29230 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29231 | int arg2 ; | |
29232 | bool result; | |
29233 | void *argp1 = 0 ; | |
29234 | int res1 = 0 ; | |
29235 | int val2 ; | |
29236 | int ecode2 = 0 ; | |
29237 | PyObject * obj0 = 0 ; | |
29238 | PyObject * obj1 = 0 ; | |
29239 | char * kwnames[] = { | |
29240 | (char *) "self",(char *) "function", NULL | |
29241 | }; | |
29242 | ||
29243 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
29244 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29245 | if (!SWIG_IsOK(res1)) { | |
29246 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29247 | } | |
29248 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29249 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
29250 | if (!SWIG_IsOK(ecode2)) { | |
29251 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
29252 | } | |
29253 | arg2 = static_cast< int >(val2); | |
29254 | { | |
29255 | result = (bool)(arg1)->SetLogicalFunction(arg2); | |
29256 | if (PyErr_Occurred()) SWIG_fail; | |
29257 | } | |
29258 | { | |
29259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29260 | } | |
29261 | return resultobj; | |
29262 | fail: | |
29263 | return NULL; | |
29264 | } | |
29265 | ||
29266 | ||
72ef6efb RD |
29267 | SWIGINTERN PyObject *_wrap_GraphicsContext_Translate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29268 | PyObject *resultobj = 0; | |
29269 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29270 | wxDouble arg2 ; | |
29271 | wxDouble arg3 ; | |
29272 | void *argp1 = 0 ; | |
29273 | int res1 = 0 ; | |
29274 | double val2 ; | |
29275 | int ecode2 = 0 ; | |
29276 | double val3 ; | |
29277 | int ecode3 = 0 ; | |
29278 | PyObject * obj0 = 0 ; | |
29279 | PyObject * obj1 = 0 ; | |
29280 | PyObject * obj2 = 0 ; | |
29281 | char * kwnames[] = { | |
29282 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
29283 | }; | |
29284 | ||
29285 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Translate",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29286 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29287 | if (!SWIG_IsOK(res1)) { | |
29288 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Translate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29289 | } | |
29290 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29291 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29292 | if (!SWIG_IsOK(ecode2)) { | |
29293 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Translate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29294 | } | |
29295 | arg2 = static_cast< wxDouble >(val2); | |
29296 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29297 | if (!SWIG_IsOK(ecode3)) { | |
29298 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Translate" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29299 | } | |
29300 | arg3 = static_cast< wxDouble >(val3); | |
29301 | { | |
72ef6efb | 29302 | (arg1)->Translate(arg2,arg3); |
72ef6efb RD |
29303 | if (PyErr_Occurred()) SWIG_fail; |
29304 | } | |
29305 | resultobj = SWIG_Py_Void(); | |
29306 | return resultobj; | |
29307 | fail: | |
29308 | return NULL; | |
29309 | } | |
29310 | ||
29311 | ||
29312 | SWIGINTERN PyObject *_wrap_GraphicsContext_Scale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29313 | PyObject *resultobj = 0; | |
29314 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29315 | wxDouble arg2 ; | |
29316 | wxDouble arg3 ; | |
29317 | void *argp1 = 0 ; | |
29318 | int res1 = 0 ; | |
29319 | double val2 ; | |
29320 | int ecode2 = 0 ; | |
29321 | double val3 ; | |
29322 | int ecode3 = 0 ; | |
29323 | PyObject * obj0 = 0 ; | |
29324 | PyObject * obj1 = 0 ; | |
29325 | PyObject * obj2 = 0 ; | |
29326 | char * kwnames[] = { | |
29327 | (char *) "self",(char *) "xScale",(char *) "yScale", NULL | |
29328 | }; | |
29329 | ||
29330 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_Scale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29331 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29332 | if (!SWIG_IsOK(res1)) { | |
29333 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Scale" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29334 | } | |
29335 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29336 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29337 | if (!SWIG_IsOK(ecode2)) { | |
29338 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Scale" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29339 | } | |
29340 | arg2 = static_cast< wxDouble >(val2); | |
29341 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
29342 | if (!SWIG_IsOK(ecode3)) { | |
29343 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_Scale" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29344 | } | |
29345 | arg3 = static_cast< wxDouble >(val3); | |
29346 | { | |
72ef6efb | 29347 | (arg1)->Scale(arg2,arg3); |
72ef6efb RD |
29348 | if (PyErr_Occurred()) SWIG_fail; |
29349 | } | |
29350 | resultobj = SWIG_Py_Void(); | |
29351 | return resultobj; | |
29352 | fail: | |
29353 | return NULL; | |
29354 | } | |
29355 | ||
29356 | ||
29357 | SWIGINTERN PyObject *_wrap_GraphicsContext_Rotate(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29358 | PyObject *resultobj = 0; | |
29359 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29360 | wxDouble arg2 ; | |
29361 | void *argp1 = 0 ; | |
29362 | int res1 = 0 ; | |
29363 | double val2 ; | |
29364 | int ecode2 = 0 ; | |
29365 | PyObject * obj0 = 0 ; | |
29366 | PyObject * obj1 = 0 ; | |
29367 | char * kwnames[] = { | |
29368 | (char *) "self",(char *) "angle", NULL | |
29369 | }; | |
29370 | ||
29371 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_Rotate",kwnames,&obj0,&obj1)) SWIG_fail; | |
29372 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29373 | if (!SWIG_IsOK(res1)) { | |
29374 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_Rotate" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29375 | } | |
29376 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29377 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
29378 | if (!SWIG_IsOK(ecode2)) { | |
29379 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_Rotate" "', expected argument " "2"" of type '" "wxDouble""'"); | |
29380 | } | |
29381 | arg2 = static_cast< wxDouble >(val2); | |
29382 | { | |
72ef6efb | 29383 | (arg1)->Rotate(arg2); |
72ef6efb RD |
29384 | if (PyErr_Occurred()) SWIG_fail; |
29385 | } | |
29386 | resultobj = SWIG_Py_Void(); | |
29387 | return resultobj; | |
29388 | fail: | |
29389 | return NULL; | |
29390 | } | |
29391 | ||
29392 | ||
5c8c7dd3 RD |
29393 | SWIGINTERN PyObject *_wrap_GraphicsContext_ConcatTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
29394 | PyObject *resultobj = 0; | |
29395 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29396 | wxGraphicsMatrix *arg2 = 0 ; | |
29397 | void *argp1 = 0 ; | |
29398 | int res1 = 0 ; | |
29399 | void *argp2 = 0 ; | |
29400 | int res2 = 0 ; | |
29401 | PyObject * obj0 = 0 ; | |
29402 | PyObject * obj1 = 0 ; | |
29403 | char * kwnames[] = { | |
29404 | (char *) "self",(char *) "matrix", NULL | |
29405 | }; | |
29406 | ||
29407 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_ConcatTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
29408 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29409 | if (!SWIG_IsOK(res1)) { | |
29410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29411 | } | |
29412 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29413 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
29414 | if (!SWIG_IsOK(res2)) { | |
29415 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29416 | } | |
29417 | if (!argp2) { | |
29418 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_ConcatTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29419 | } | |
29420 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
29421 | { | |
29422 | (arg1)->ConcatTransform((wxGraphicsMatrix const &)*arg2); | |
29423 | if (PyErr_Occurred()) SWIG_fail; | |
29424 | } | |
29425 | resultobj = SWIG_Py_Void(); | |
29426 | return resultobj; | |
29427 | fail: | |
29428 | return NULL; | |
29429 | } | |
29430 | ||
29431 | ||
29432 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29433 | PyObject *resultobj = 0; | |
29434 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29435 | wxGraphicsMatrix *arg2 = 0 ; | |
29436 | void *argp1 = 0 ; | |
29437 | int res1 = 0 ; | |
29438 | void *argp2 = 0 ; | |
29439 | int res2 = 0 ; | |
29440 | PyObject * obj0 = 0 ; | |
29441 | PyObject * obj1 = 0 ; | |
29442 | char * kwnames[] = { | |
29443 | (char *) "self",(char *) "matrix", NULL | |
29444 | }; | |
29445 | ||
29446 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_SetTransform",kwnames,&obj0,&obj1)) SWIG_fail; | |
29447 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29448 | if (!SWIG_IsOK(res1)) { | |
29449 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29450 | } | |
29451 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29452 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsMatrix, 0 | 0); | |
29453 | if (!SWIG_IsOK(res2)) { | |
29454 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29455 | } | |
29456 | if (!argp2) { | |
29457 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetTransform" "', expected argument " "2"" of type '" "wxGraphicsMatrix const &""'"); | |
29458 | } | |
29459 | arg2 = reinterpret_cast< wxGraphicsMatrix * >(argp2); | |
29460 | { | |
29461 | (arg1)->SetTransform((wxGraphicsMatrix const &)*arg2); | |
29462 | if (PyErr_Occurred()) SWIG_fail; | |
29463 | } | |
29464 | resultobj = SWIG_Py_Void(); | |
29465 | return resultobj; | |
29466 | fail: | |
29467 | return NULL; | |
29468 | } | |
29469 | ||
29470 | ||
29471 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTransform(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
29472 | PyObject *resultobj = 0; | |
29473 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29474 | wxGraphicsMatrix result; | |
29475 | void *argp1 = 0 ; | |
29476 | int res1 = 0 ; | |
29477 | PyObject *swig_obj[1] ; | |
29478 | ||
29479 | if (!args) SWIG_fail; | |
29480 | swig_obj[0] = args; | |
29481 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29482 | if (!SWIG_IsOK(res1)) { | |
29483 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTransform" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); | |
29484 | } | |
29485 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29486 | { | |
29487 | result = ((wxGraphicsContext const *)arg1)->GetTransform(); | |
29488 | if (PyErr_Occurred()) SWIG_fail; | |
29489 | } | |
29490 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); | |
29491 | return resultobj; | |
29492 | fail: | |
29493 | return NULL; | |
29494 | } | |
29495 | ||
29496 | ||
70d7cb34 RD |
29497 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
29498 | PyObject *resultobj = 0; | |
29499 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29500 | wxGraphicsPen *arg2 = 0 ; | |
29501 | void *argp1 = 0 ; | |
29502 | int res1 = 0 ; | |
29503 | void *argp2 = 0 ; | |
29504 | int res2 = 0 ; | |
29505 | ||
29506 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29507 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29508 | if (!SWIG_IsOK(res1)) { | |
29509 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29510 | } | |
29511 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29512 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsPen, 0 | 0); | |
29513 | if (!SWIG_IsOK(res2)) { | |
29514 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
29515 | } | |
29516 | if (!argp2) { | |
29517 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxGraphicsPen const &""'"); | |
29518 | } | |
29519 | arg2 = reinterpret_cast< wxGraphicsPen * >(argp2); | |
29520 | { | |
29521 | (arg1)->SetPen((wxGraphicsPen const &)*arg2); | |
29522 | if (PyErr_Occurred()) SWIG_fail; | |
29523 | } | |
29524 | resultobj = SWIG_Py_Void(); | |
29525 | return resultobj; | |
29526 | fail: | |
29527 | return NULL; | |
29528 | } | |
29529 | ||
29530 | ||
29531 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
29532 | PyObject *resultobj = 0; |
29533 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29534 | wxPen *arg2 = 0 ; | |
29535 | void *argp1 = 0 ; | |
29536 | int res1 = 0 ; | |
29537 | void *argp2 = 0 ; | |
29538 | int res2 = 0 ; | |
72ef6efb | 29539 | |
70d7cb34 RD |
29540 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29541 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29542 | if (!SWIG_IsOK(res1)) { |
29543 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetPen" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29544 | } | |
29545 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29546 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxPen, 0 | 0); |
72ef6efb RD |
29547 | if (!SWIG_IsOK(res2)) { |
29548 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29549 | } | |
29550 | if (!argp2) { | |
29551 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
29552 | } | |
29553 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
29554 | { | |
72ef6efb | 29555 | (arg1)->SetPen((wxPen const &)*arg2); |
72ef6efb RD |
29556 | if (PyErr_Occurred()) SWIG_fail; |
29557 | } | |
29558 | resultobj = SWIG_Py_Void(); | |
29559 | return resultobj; | |
29560 | fail: | |
29561 | return NULL; | |
29562 | } | |
29563 | ||
29564 | ||
70d7cb34 RD |
29565 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetPen(PyObject *self, PyObject *args) { |
29566 | int argc; | |
29567 | PyObject *argv[3]; | |
29568 | ||
29569 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetPen",0,2,argv))) SWIG_fail; | |
29570 | --argc; | |
29571 | if (argc == 2) { | |
29572 | int _v = 0; | |
29573 | { | |
29574 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsPen, 0); | |
29575 | _v = SWIG_CheckState(res); | |
29576 | } | |
29577 | if (!_v) goto check_1; | |
29578 | return _wrap_GraphicsContext_SetPen__SWIG_0(self, argc, argv); | |
29579 | } | |
29580 | check_1: | |
29581 | ||
29582 | if (argc == 2) { | |
29583 | return _wrap_GraphicsContext_SetPen__SWIG_1(self, argc, argv); | |
29584 | } | |
29585 | ||
29586 | fail: | |
29587 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetPen'"); | |
29588 | return NULL; | |
29589 | } | |
29590 | ||
29591 | ||
29592 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
29593 | PyObject *resultobj = 0; | |
29594 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29595 | wxGraphicsBrush *arg2 = 0 ; | |
29596 | void *argp1 = 0 ; | |
29597 | int res1 = 0 ; | |
29598 | void *argp2 = 0 ; | |
29599 | int res2 = 0 ; | |
29600 | ||
29601 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
29602 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29603 | if (!SWIG_IsOK(res1)) { | |
29604 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29605 | } | |
29606 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29607 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29608 | if (!SWIG_IsOK(res2)) { | |
29609 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
29610 | } | |
29611 | if (!argp2) { | |
29612 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxGraphicsBrush const &""'"); | |
29613 | } | |
29614 | arg2 = reinterpret_cast< wxGraphicsBrush * >(argp2); | |
29615 | { | |
29616 | (arg1)->SetBrush((wxGraphicsBrush const &)*arg2); | |
29617 | if (PyErr_Occurred()) SWIG_fail; | |
29618 | } | |
29619 | resultobj = SWIG_Py_Void(); | |
29620 | return resultobj; | |
29621 | fail: | |
29622 | return NULL; | |
29623 | } | |
29624 | ||
29625 | ||
29626 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
72ef6efb RD |
29627 | PyObject *resultobj = 0; |
29628 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29629 | wxBrush *arg2 = 0 ; | |
29630 | void *argp1 = 0 ; | |
29631 | int res1 = 0 ; | |
29632 | void *argp2 = 0 ; | |
29633 | int res2 = 0 ; | |
72ef6efb | 29634 | |
70d7cb34 RD |
29635 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29636 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29637 | if (!SWIG_IsOK(res1)) { |
29638 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetBrush" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29639 | } | |
29640 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29641 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBrush, 0 | 0); |
72ef6efb RD |
29642 | if (!SWIG_IsOK(res2)) { |
29643 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29644 | } | |
29645 | if (!argp2) { | |
29646 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
29647 | } | |
29648 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
29649 | { | |
72ef6efb | 29650 | (arg1)->SetBrush((wxBrush const &)*arg2); |
72ef6efb RD |
29651 | if (PyErr_Occurred()) SWIG_fail; |
29652 | } | |
29653 | resultobj = SWIG_Py_Void(); | |
29654 | return resultobj; | |
29655 | fail: | |
29656 | return NULL; | |
29657 | } | |
29658 | ||
29659 | ||
70d7cb34 RD |
29660 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetBrush(PyObject *self, PyObject *args) { |
29661 | int argc; | |
29662 | PyObject *argv[3]; | |
72ef6efb | 29663 | |
70d7cb34 RD |
29664 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetBrush",0,2,argv))) SWIG_fail; |
29665 | --argc; | |
29666 | if (argc == 2) { | |
29667 | int _v = 0; | |
29668 | { | |
29669 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsBrush, 0); | |
29670 | _v = SWIG_CheckState(res); | |
29671 | } | |
29672 | if (!_v) goto check_1; | |
29673 | return _wrap_GraphicsContext_SetBrush__SWIG_0(self, argc, argv); | |
72ef6efb | 29674 | } |
70d7cb34 RD |
29675 | check_1: |
29676 | ||
29677 | if (argc == 2) { | |
29678 | return _wrap_GraphicsContext_SetBrush__SWIG_1(self, argc, argv); | |
72ef6efb | 29679 | } |
70d7cb34 | 29680 | |
72ef6efb | 29681 | fail: |
70d7cb34 | 29682 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetBrush'"); |
72ef6efb RD |
29683 | return NULL; |
29684 | } | |
29685 | ||
29686 | ||
70d7cb34 | 29687 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
29688 | PyObject *resultobj = 0; |
29689 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 29690 | wxGraphicsFont *arg2 = 0 ; |
72ef6efb RD |
29691 | void *argp1 = 0 ; |
29692 | int res1 = 0 ; | |
70d7cb34 RD |
29693 | void *argp2 = 0 ; |
29694 | int res2 = 0 ; | |
72ef6efb | 29695 | |
70d7cb34 RD |
29696 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; |
29697 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 29698 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 29699 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
29700 | } |
29701 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
29702 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxGraphicsFont, 0 | 0); |
29703 | if (!SWIG_IsOK(res2)) { | |
29704 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 29705 | } |
70d7cb34 RD |
29706 | if (!argp2) { |
29707 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxGraphicsFont const &""'"); | |
72ef6efb | 29708 | } |
70d7cb34 | 29709 | arg2 = reinterpret_cast< wxGraphicsFont * >(argp2); |
72ef6efb | 29710 | { |
70d7cb34 | 29711 | (arg1)->SetFont((wxGraphicsFont const &)*arg2); |
72ef6efb RD |
29712 | if (PyErr_Occurred()) SWIG_fail; |
29713 | } | |
29714 | resultobj = SWIG_Py_Void(); | |
29715 | return resultobj; | |
29716 | fail: | |
29717 | return NULL; | |
29718 | } | |
29719 | ||
29720 | ||
70d7cb34 | 29721 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
29722 | PyObject *resultobj = 0; |
29723 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29724 | wxFont *arg2 = 0 ; | |
70d7cb34 RD |
29725 | wxColour const &arg3_defvalue = *wxBLACK ; |
29726 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
72ef6efb RD |
29727 | void *argp1 = 0 ; |
29728 | int res1 = 0 ; | |
29729 | void *argp2 = 0 ; | |
29730 | int res2 = 0 ; | |
70d7cb34 | 29731 | wxColour temp3 ; |
72ef6efb | 29732 | |
70d7cb34 RD |
29733 | if ((nobjs < 2) || (nobjs > 3)) SWIG_fail; |
29734 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb RD |
29735 | if (!SWIG_IsOK(res1)) { |
29736 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_SetFont" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29737 | } | |
29738 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 | 29739 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxFont, 0 | 0); |
72ef6efb RD |
29740 | if (!SWIG_IsOK(res2)) { |
29741 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
29742 | } | |
29743 | if (!argp2) { | |
29744 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
29745 | } | |
29746 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
70d7cb34 RD |
29747 | if (swig_obj[2]) { |
29748 | { | |
29749 | arg3 = &temp3; | |
29750 | if ( ! wxColour_helper(swig_obj[2], &arg3)) SWIG_fail; | |
29751 | } | |
29752 | } | |
72ef6efb | 29753 | { |
70d7cb34 | 29754 | (arg1)->SetFont((wxFont const &)*arg2,(wxColour const &)*arg3); |
72ef6efb RD |
29755 | if (PyErr_Occurred()) SWIG_fail; |
29756 | } | |
29757 | resultobj = SWIG_Py_Void(); | |
29758 | return resultobj; | |
29759 | fail: | |
29760 | return NULL; | |
29761 | } | |
29762 | ||
29763 | ||
70d7cb34 RD |
29764 | SWIGINTERN PyObject *_wrap_GraphicsContext_SetFont(PyObject *self, PyObject *args) { |
29765 | int argc; | |
29766 | PyObject *argv[4]; | |
72ef6efb | 29767 | |
70d7cb34 RD |
29768 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsContext_SetFont",0,3,argv))) SWIG_fail; |
29769 | --argc; | |
29770 | if (argc == 2) { | |
29771 | int _v = 0; | |
29772 | { | |
29773 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxGraphicsFont, 0); | |
29774 | _v = SWIG_CheckState(res); | |
29775 | } | |
29776 | if (!_v) goto check_1; | |
29777 | return _wrap_GraphicsContext_SetFont__SWIG_0(self, argc, argv); | |
72ef6efb | 29778 | } |
70d7cb34 RD |
29779 | check_1: |
29780 | ||
29781 | if ((argc >= 2) && (argc <= 3)) { | |
29782 | return _wrap_GraphicsContext_SetFont__SWIG_1(self, argc, argv); | |
72ef6efb | 29783 | } |
70d7cb34 | 29784 | |
72ef6efb | 29785 | fail: |
70d7cb34 | 29786 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsContext_SetFont'"); |
72ef6efb RD |
29787 | return NULL; |
29788 | } | |
29789 | ||
29790 | ||
29791 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29792 | PyObject *resultobj = 0; | |
29793 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 29794 | wxGraphicsPath *arg2 = 0 ; |
72ef6efb RD |
29795 | void *argp1 = 0 ; |
29796 | int res1 = 0 ; | |
29797 | void *argp2 = 0 ; | |
29798 | int res2 = 0 ; | |
29799 | PyObject * obj0 = 0 ; | |
29800 | PyObject * obj1 = 0 ; | |
29801 | char * kwnames[] = { | |
29802 | (char *) "self",(char *) "path", NULL | |
29803 | }; | |
29804 | ||
29805 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokePath",kwnames,&obj0,&obj1)) SWIG_fail; | |
29806 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29807 | if (!SWIG_IsOK(res1)) { | |
29808 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokePath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29809 | } | |
29810 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29811 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29812 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29813 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29814 | } | |
29815 | if (!argp2) { | |
29816 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_StrokePath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29817 | } |
29818 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29819 | { | |
5c8c7dd3 | 29820 | (arg1)->StrokePath((wxGraphicsPath const &)*arg2); |
72ef6efb RD |
29821 | if (PyErr_Occurred()) SWIG_fail; |
29822 | } | |
29823 | resultobj = SWIG_Py_Void(); | |
29824 | return resultobj; | |
29825 | fail: | |
29826 | return NULL; | |
29827 | } | |
29828 | ||
29829 | ||
29830 | SWIGINTERN PyObject *_wrap_GraphicsContext_FillPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29831 | PyObject *resultobj = 0; | |
29832 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 29833 | wxGraphicsPath *arg2 = 0 ; |
8f514ab4 | 29834 | int arg3 = (int) wxODDEVEN_RULE ; |
72ef6efb RD |
29835 | void *argp1 = 0 ; |
29836 | int res1 = 0 ; | |
29837 | void *argp2 = 0 ; | |
29838 | int res2 = 0 ; | |
29839 | int val3 ; | |
29840 | int ecode3 = 0 ; | |
29841 | PyObject * obj0 = 0 ; | |
29842 | PyObject * obj1 = 0 ; | |
29843 | PyObject * obj2 = 0 ; | |
29844 | char * kwnames[] = { | |
29845 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
29846 | }; | |
29847 | ||
29848 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_FillPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29849 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29850 | if (!SWIG_IsOK(res1)) { | |
29851 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_FillPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29852 | } | |
29853 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29854 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29855 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29856 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29857 | } | |
29858 | if (!argp2) { | |
29859 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_FillPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29860 | } |
29861 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29862 | if (obj2) { | |
29863 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29864 | if (!SWIG_IsOK(ecode3)) { | |
29865 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_FillPath" "', expected argument " "3"" of type '" "int""'"); | |
29866 | } | |
29867 | arg3 = static_cast< int >(val3); | |
29868 | } | |
29869 | { | |
5c8c7dd3 | 29870 | (arg1)->FillPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
29871 | if (PyErr_Occurred()) SWIG_fail; |
29872 | } | |
29873 | resultobj = SWIG_Py_Void(); | |
29874 | return resultobj; | |
29875 | fail: | |
29876 | return NULL; | |
29877 | } | |
29878 | ||
29879 | ||
29880 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
29881 | PyObject *resultobj = 0; | |
29882 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
5c8c7dd3 | 29883 | wxGraphicsPath *arg2 = 0 ; |
8f514ab4 | 29884 | int arg3 = (int) wxODDEVEN_RULE ; |
72ef6efb RD |
29885 | void *argp1 = 0 ; |
29886 | int res1 = 0 ; | |
29887 | void *argp2 = 0 ; | |
29888 | int res2 = 0 ; | |
29889 | int val3 ; | |
29890 | int ecode3 = 0 ; | |
29891 | PyObject * obj0 = 0 ; | |
29892 | PyObject * obj1 = 0 ; | |
29893 | PyObject * obj2 = 0 ; | |
29894 | char * kwnames[] = { | |
29895 | (char *) "self",(char *) "path",(char *) "fillStyle", NULL | |
29896 | }; | |
29897 | ||
29898 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawPath",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
29899 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
29900 | if (!SWIG_IsOK(res1)) { | |
29901 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawPath" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29902 | } | |
29903 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
5c8c7dd3 | 29904 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxGraphicsPath, 0 | 0); |
72ef6efb | 29905 | if (!SWIG_IsOK(res2)) { |
5c8c7dd3 RD |
29906 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); |
29907 | } | |
29908 | if (!argp2) { | |
29909 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawPath" "', expected argument " "2"" of type '" "wxGraphicsPath const &""'"); | |
72ef6efb RD |
29910 | } |
29911 | arg2 = reinterpret_cast< wxGraphicsPath * >(argp2); | |
29912 | if (obj2) { | |
29913 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
29914 | if (!SWIG_IsOK(ecode3)) { | |
29915 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawPath" "', expected argument " "3"" of type '" "int""'"); | |
29916 | } | |
29917 | arg3 = static_cast< int >(val3); | |
29918 | } | |
29919 | { | |
5c8c7dd3 | 29920 | (arg1)->DrawPath((wxGraphicsPath const &)*arg2,arg3); |
72ef6efb RD |
29921 | if (PyErr_Occurred()) SWIG_fail; |
29922 | } | |
29923 | resultobj = SWIG_Py_Void(); | |
29924 | return resultobj; | |
29925 | fail: | |
29926 | return NULL; | |
29927 | } | |
29928 | ||
29929 | ||
b39fe951 | 29930 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
29931 | PyObject *resultobj = 0; |
29932 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
29933 | wxString *arg2 = 0 ; | |
29934 | wxDouble arg3 ; | |
29935 | wxDouble arg4 ; | |
f89238b9 RD |
29936 | wxGraphicsBrush const &arg5_defvalue = wxNullGraphicsBrush ; |
29937 | wxGraphicsBrush *arg5 = (wxGraphicsBrush *) &arg5_defvalue ; | |
72ef6efb RD |
29938 | void *argp1 = 0 ; |
29939 | int res1 = 0 ; | |
29940 | bool temp2 = false ; | |
29941 | double val3 ; | |
29942 | int ecode3 = 0 ; | |
29943 | double val4 ; | |
29944 | int ecode4 = 0 ; | |
f89238b9 RD |
29945 | void *argp5 = 0 ; |
29946 | int res5 = 0 ; | |
b39fe951 RD |
29947 | PyObject * obj0 = 0 ; |
29948 | PyObject * obj1 = 0 ; | |
29949 | PyObject * obj2 = 0 ; | |
29950 | PyObject * obj3 = 0 ; | |
f89238b9 | 29951 | PyObject * obj4 = 0 ; |
b39fe951 | 29952 | char * kwnames[] = { |
f89238b9 | 29953 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "backgroundBrush", NULL |
b39fe951 | 29954 | }; |
72ef6efb | 29955 | |
f89238b9 | 29956 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:GraphicsContext_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
b39fe951 | 29957 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb RD |
29958 | if (!SWIG_IsOK(res1)) { |
29959 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
29960 | } | |
29961 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
29962 | { | |
b39fe951 | 29963 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
29964 | if (arg2 == NULL) SWIG_fail; |
29965 | temp2 = true; | |
29966 | } | |
b39fe951 | 29967 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb RD |
29968 | if (!SWIG_IsOK(ecode3)) { |
29969 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawText" "', expected argument " "3"" of type '" "wxDouble""'"); | |
29970 | } | |
29971 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 29972 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb RD |
29973 | if (!SWIG_IsOK(ecode4)) { |
29974 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawText" "', expected argument " "4"" of type '" "wxDouble""'"); | |
29975 | } | |
29976 | arg4 = static_cast< wxDouble >(val4); | |
f89238b9 RD |
29977 | if (obj4) { |
29978 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
29979 | if (!SWIG_IsOK(res5)) { | |
29980 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29981 | } | |
29982 | if (!argp5) { | |
29983 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawText" "', expected argument " "5"" of type '" "wxGraphicsBrush const &""'"); | |
29984 | } | |
29985 | arg5 = reinterpret_cast< wxGraphicsBrush * >(argp5); | |
29986 | } | |
72ef6efb | 29987 | { |
f89238b9 | 29988 | wxGraphicsContext_DrawText(arg1,(wxString const &)*arg2,arg3,arg4,(wxGraphicsBrush const &)*arg5); |
72ef6efb RD |
29989 | if (PyErr_Occurred()) SWIG_fail; |
29990 | } | |
29991 | resultobj = SWIG_Py_Void(); | |
29992 | { | |
29993 | if (temp2) | |
29994 | delete arg2; | |
29995 | } | |
29996 | return resultobj; | |
29997 | fail: | |
29998 | { | |
29999 | if (temp2) | |
30000 | delete arg2; | |
30001 | } | |
30002 | return NULL; | |
30003 | } | |
30004 | ||
30005 | ||
b39fe951 | 30006 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
30007 | PyObject *resultobj = 0; |
30008 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30009 | wxString *arg2 = 0 ; | |
30010 | wxDouble arg3 ; | |
30011 | wxDouble arg4 ; | |
30012 | wxDouble arg5 ; | |
f89238b9 RD |
30013 | wxGraphicsBrush const &arg6_defvalue = wxNullGraphicsBrush ; |
30014 | wxGraphicsBrush *arg6 = (wxGraphicsBrush *) &arg6_defvalue ; | |
72ef6efb RD |
30015 | void *argp1 = 0 ; |
30016 | int res1 = 0 ; | |
30017 | bool temp2 = false ; | |
30018 | double val3 ; | |
30019 | int ecode3 = 0 ; | |
30020 | double val4 ; | |
30021 | int ecode4 = 0 ; | |
30022 | double val5 ; | |
30023 | int ecode5 = 0 ; | |
f89238b9 RD |
30024 | void *argp6 = 0 ; |
30025 | int res6 = 0 ; | |
b39fe951 RD |
30026 | PyObject * obj0 = 0 ; |
30027 | PyObject * obj1 = 0 ; | |
30028 | PyObject * obj2 = 0 ; | |
30029 | PyObject * obj3 = 0 ; | |
30030 | PyObject * obj4 = 0 ; | |
f89238b9 | 30031 | PyObject * obj5 = 0 ; |
b39fe951 | 30032 | char * kwnames[] = { |
f89238b9 | 30033 | (char *) "self",(char *) "str",(char *) "x",(char *) "y",(char *) "angle",(char *) "backgroundBrush", NULL |
b39fe951 | 30034 | }; |
72ef6efb | 30035 | |
f89238b9 | 30036 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:GraphicsContext_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
b39fe951 | 30037 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
72ef6efb | 30038 | if (!SWIG_IsOK(res1)) { |
b39fe951 | 30039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30040 | } |
30041 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30042 | { | |
b39fe951 | 30043 | arg2 = wxString_in_helper(obj1); |
72ef6efb RD |
30044 | if (arg2 == NULL) SWIG_fail; |
30045 | temp2 = true; | |
30046 | } | |
b39fe951 | 30047 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
72ef6efb | 30048 | if (!SWIG_IsOK(ecode3)) { |
b39fe951 | 30049 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30050 | } |
30051 | arg3 = static_cast< wxDouble >(val3); | |
b39fe951 | 30052 | ecode4 = SWIG_AsVal_double(obj3, &val4); |
72ef6efb | 30053 | if (!SWIG_IsOK(ecode4)) { |
b39fe951 | 30054 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30055 | } |
30056 | arg4 = static_cast< wxDouble >(val4); | |
b39fe951 | 30057 | ecode5 = SWIG_AsVal_double(obj4, &val5); |
72ef6efb | 30058 | if (!SWIG_IsOK(ecode5)) { |
b39fe951 | 30059 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30060 | } |
30061 | arg5 = static_cast< wxDouble >(val5); | |
f89238b9 RD |
30062 | if (obj5) { |
30063 | res6 = SWIG_ConvertPtr(obj5, &argp6, SWIGTYPE_p_wxGraphicsBrush, 0 | 0); | |
30064 | if (!SWIG_IsOK(res6)) { | |
30065 | SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
30066 | } | |
30067 | if (!argp6) { | |
30068 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawRotatedText" "', expected argument " "6"" of type '" "wxGraphicsBrush const &""'"); | |
30069 | } | |
30070 | arg6 = reinterpret_cast< wxGraphicsBrush * >(argp6); | |
30071 | } | |
72ef6efb | 30072 | { |
f89238b9 | 30073 | wxGraphicsContext_DrawRotatedText(arg1,(wxString const &)*arg2,arg3,arg4,arg5,(wxGraphicsBrush const &)*arg6); |
72ef6efb RD |
30074 | if (PyErr_Occurred()) SWIG_fail; |
30075 | } | |
30076 | resultobj = SWIG_Py_Void(); | |
30077 | { | |
30078 | if (temp2) | |
30079 | delete arg2; | |
30080 | } | |
30081 | return resultobj; | |
30082 | fail: | |
30083 | { | |
30084 | if (temp2) | |
30085 | delete arg2; | |
30086 | } | |
30087 | return NULL; | |
30088 | } | |
30089 | ||
30090 | ||
be68621e | 30091 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
30092 | PyObject *resultobj = 0; |
30093 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30094 | wxString *arg2 = 0 ; | |
30095 | wxDouble *arg3 = (wxDouble *) 0 ; | |
30096 | wxDouble *arg4 = (wxDouble *) 0 ; | |
30097 | wxDouble *arg5 = (wxDouble *) 0 ; | |
30098 | wxDouble *arg6 = (wxDouble *) 0 ; | |
30099 | void *argp1 = 0 ; | |
30100 | int res1 = 0 ; | |
30101 | bool temp2 = false ; | |
30102 | wxDouble temp3 ; | |
30103 | int res3 = SWIG_TMPOBJ ; | |
30104 | wxDouble temp4 ; | |
30105 | int res4 = SWIG_TMPOBJ ; | |
30106 | wxDouble temp5 ; | |
30107 | int res5 = SWIG_TMPOBJ ; | |
30108 | wxDouble temp6 ; | |
30109 | int res6 = SWIG_TMPOBJ ; | |
30110 | PyObject * obj0 = 0 ; | |
30111 | PyObject * obj1 = 0 ; | |
30112 | char * kwnames[] = { | |
30113 | (char *) "self",(char *) "text", NULL | |
30114 | }; | |
30115 | ||
30116 | arg3 = &temp3; | |
30117 | arg4 = &temp4; | |
30118 | arg5 = &temp5; | |
30119 | arg6 = &temp6; | |
be68621e | 30120 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetFullTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
30121 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30122 | if (!SWIG_IsOK(res1)) { | |
be68621e | 30123 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetFullTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
30124 | } |
30125 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30126 | { | |
30127 | arg2 = wxString_in_helper(obj1); | |
30128 | if (arg2 == NULL) SWIG_fail; | |
30129 | temp2 = true; | |
30130 | } | |
30131 | { | |
72ef6efb | 30132 | ((wxGraphicsContext const *)arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
30133 | if (PyErr_Occurred()) SWIG_fail; |
30134 | } | |
30135 | resultobj = SWIG_Py_Void(); | |
30136 | if (SWIG_IsTmpObj(res3)) { | |
30137 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3))); | |
30138 | } else { | |
30139 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
30140 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags)); | |
30141 | } | |
30142 | if (SWIG_IsTmpObj(res4)) { | |
30143 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg4))); | |
30144 | } else { | |
30145 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
30146 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_double, new_flags)); | |
30147 | } | |
30148 | if (SWIG_IsTmpObj(res5)) { | |
30149 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg5))); | |
30150 | } else { | |
30151 | int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
30152 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_double, new_flags)); | |
30153 | } | |
30154 | if (SWIG_IsTmpObj(res6)) { | |
30155 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg6))); | |
30156 | } else { | |
30157 | int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
30158 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_double, new_flags)); | |
30159 | } | |
30160 | { | |
30161 | if (temp2) | |
30162 | delete arg2; | |
30163 | } | |
30164 | return resultobj; | |
30165 | fail: | |
30166 | { | |
30167 | if (temp2) | |
30168 | delete arg2; | |
30169 | } | |
30170 | return NULL; | |
30171 | } | |
30172 | ||
30173 | ||
be68621e RD |
30174 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30175 | PyObject *resultobj = 0; | |
30176 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30177 | wxString *arg2 = 0 ; | |
30178 | PyObject *result = 0 ; | |
30179 | void *argp1 = 0 ; | |
30180 | int res1 = 0 ; | |
30181 | bool temp2 = false ; | |
30182 | PyObject * obj0 = 0 ; | |
30183 | PyObject * obj1 = 0 ; | |
30184 | char * kwnames[] = { | |
30185 | (char *) "self",(char *) "text", NULL | |
30186 | }; | |
30187 | ||
30188 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail; | |
30189 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30190 | if (!SWIG_IsOK(res1)) { | |
30191 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetTextExtent" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30192 | } | |
30193 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30194 | { | |
30195 | arg2 = wxString_in_helper(obj1); | |
30196 | if (arg2 == NULL) SWIG_fail; | |
30197 | temp2 = true; | |
30198 | } | |
30199 | { | |
30200 | result = (PyObject *)wxGraphicsContext_GetTextExtent(arg1,(wxString const &)*arg2); | |
30201 | if (PyErr_Occurred()) SWIG_fail; | |
30202 | } | |
30203 | resultobj = result; | |
30204 | { | |
30205 | if (temp2) | |
30206 | delete arg2; | |
30207 | } | |
30208 | return resultobj; | |
30209 | fail: | |
30210 | { | |
30211 | if (temp2) | |
30212 | delete arg2; | |
30213 | } | |
30214 | return NULL; | |
30215 | } | |
30216 | ||
30217 | ||
72ef6efb RD |
30218 | SWIGINTERN PyObject *_wrap_GraphicsContext_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
30219 | PyObject *resultobj = 0; | |
30220 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30221 | wxString *arg2 = 0 ; | |
b39fe951 | 30222 | wxArrayDouble result; |
72ef6efb RD |
30223 | void *argp1 = 0 ; |
30224 | int res1 = 0 ; | |
30225 | bool temp2 = false ; | |
72ef6efb RD |
30226 | PyObject * obj0 = 0 ; |
30227 | PyObject * obj1 = 0 ; | |
72ef6efb | 30228 | char * kwnames[] = { |
b39fe951 | 30229 | (char *) "self",(char *) "text", NULL |
72ef6efb RD |
30230 | }; |
30231 | ||
b39fe951 | 30232 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail; |
72ef6efb RD |
30233 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30234 | if (!SWIG_IsOK(res1)) { | |
b39fe951 | 30235 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30236 | } |
30237 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30238 | { | |
30239 | arg2 = wxString_in_helper(obj1); | |
30240 | if (arg2 == NULL) SWIG_fail; | |
30241 | temp2 = true; | |
30242 | } | |
72ef6efb | 30243 | { |
b39fe951 | 30244 | result = wxGraphicsContext_GetPartialTextExtents(arg1,(wxString const &)*arg2); |
72ef6efb RD |
30245 | if (PyErr_Occurred()) SWIG_fail; |
30246 | } | |
b39fe951 RD |
30247 | { |
30248 | resultobj = wxArrayDouble2PyList_helper(result); | |
30249 | } | |
72ef6efb RD |
30250 | { |
30251 | if (temp2) | |
30252 | delete arg2; | |
30253 | } | |
30254 | return resultobj; | |
30255 | fail: | |
30256 | { | |
30257 | if (temp2) | |
30258 | delete arg2; | |
30259 | } | |
30260 | return NULL; | |
30261 | } | |
30262 | ||
30263 | ||
30264 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30265 | PyObject *resultobj = 0; | |
30266 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30267 | wxBitmap *arg2 = 0 ; | |
30268 | wxDouble arg3 ; | |
30269 | wxDouble arg4 ; | |
30270 | wxDouble arg5 ; | |
30271 | wxDouble arg6 ; | |
30272 | void *argp1 = 0 ; | |
30273 | int res1 = 0 ; | |
30274 | void *argp2 = 0 ; | |
30275 | int res2 = 0 ; | |
30276 | double val3 ; | |
30277 | int ecode3 = 0 ; | |
30278 | double val4 ; | |
30279 | int ecode4 = 0 ; | |
30280 | double val5 ; | |
30281 | int ecode5 = 0 ; | |
30282 | double val6 ; | |
30283 | int ecode6 = 0 ; | |
30284 | PyObject * obj0 = 0 ; | |
30285 | PyObject * obj1 = 0 ; | |
30286 | PyObject * obj2 = 0 ; | |
30287 | PyObject * obj3 = 0 ; | |
30288 | PyObject * obj4 = 0 ; | |
30289 | PyObject * obj5 = 0 ; | |
30290 | char * kwnames[] = { | |
30291 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30292 | }; | |
30293 | ||
30294 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
30295 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30296 | if (!SWIG_IsOK(res1)) { | |
30297 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30298 | } | |
30299 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30300 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
30301 | if (!SWIG_IsOK(res2)) { | |
30302 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30303 | } | |
30304 | if (!argp2) { | |
30305 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
30306 | } | |
30307 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
30308 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30309 | if (!SWIG_IsOK(ecode3)) { | |
30310 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30311 | } | |
30312 | arg3 = static_cast< wxDouble >(val3); | |
30313 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30314 | if (!SWIG_IsOK(ecode4)) { | |
30315 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30316 | } | |
30317 | arg4 = static_cast< wxDouble >(val4); | |
30318 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30319 | if (!SWIG_IsOK(ecode5)) { | |
30320 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30321 | } | |
30322 | arg5 = static_cast< wxDouble >(val5); | |
30323 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30324 | if (!SWIG_IsOK(ecode6)) { | |
30325 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawBitmap" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30326 | } | |
30327 | arg6 = static_cast< wxDouble >(val6); | |
30328 | { | |
72ef6efb | 30329 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
30330 | if (PyErr_Occurred()) SWIG_fail; |
30331 | } | |
30332 | resultobj = SWIG_Py_Void(); | |
30333 | return resultobj; | |
30334 | fail: | |
30335 | return NULL; | |
30336 | } | |
30337 | ||
30338 | ||
30339 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30340 | PyObject *resultobj = 0; | |
30341 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30342 | wxIcon *arg2 = 0 ; | |
30343 | wxDouble arg3 ; | |
30344 | wxDouble arg4 ; | |
30345 | wxDouble arg5 ; | |
30346 | wxDouble arg6 ; | |
30347 | void *argp1 = 0 ; | |
30348 | int res1 = 0 ; | |
30349 | void *argp2 = 0 ; | |
30350 | int res2 = 0 ; | |
30351 | double val3 ; | |
30352 | int ecode3 = 0 ; | |
30353 | double val4 ; | |
30354 | int ecode4 = 0 ; | |
30355 | double val5 ; | |
30356 | int ecode5 = 0 ; | |
70d7cb34 RD |
30357 | double val6 ; |
30358 | int ecode6 = 0 ; | |
30359 | PyObject * obj0 = 0 ; | |
30360 | PyObject * obj1 = 0 ; | |
30361 | PyObject * obj2 = 0 ; | |
30362 | PyObject * obj3 = 0 ; | |
30363 | PyObject * obj4 = 0 ; | |
30364 | PyObject * obj5 = 0 ; | |
30365 | char * kwnames[] = { | |
30366 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30367 | }; | |
30368 | ||
30369 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
30370 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30371 | if (!SWIG_IsOK(res1)) { | |
30372 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30373 | } | |
30374 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30375 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
30376 | if (!SWIG_IsOK(res2)) { | |
30377 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30378 | } | |
30379 | if (!argp2) { | |
30380 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsContext_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
30381 | } | |
30382 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
30383 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30384 | if (!SWIG_IsOK(ecode3)) { | |
30385 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30386 | } | |
30387 | arg3 = static_cast< wxDouble >(val3); | |
30388 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30389 | if (!SWIG_IsOK(ecode4)) { | |
30390 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30391 | } | |
30392 | arg4 = static_cast< wxDouble >(val4); | |
30393 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30394 | if (!SWIG_IsOK(ecode5)) { | |
30395 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30396 | } | |
30397 | arg5 = static_cast< wxDouble >(val5); | |
30398 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
30399 | if (!SWIG_IsOK(ecode6)) { | |
30400 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawIcon" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30401 | } | |
30402 | arg6 = static_cast< wxDouble >(val6); | |
30403 | { | |
30404 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4,arg5,arg6); | |
30405 | if (PyErr_Occurred()) SWIG_fail; | |
30406 | } | |
30407 | resultobj = SWIG_Py_Void(); | |
30408 | return resultobj; | |
30409 | fail: | |
30410 | return NULL; | |
30411 | } | |
30412 | ||
30413 | ||
30414 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30415 | PyObject *resultobj = 0; | |
30416 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30417 | wxDouble arg2 ; | |
30418 | wxDouble arg3 ; | |
30419 | wxDouble arg4 ; | |
30420 | wxDouble arg5 ; | |
30421 | void *argp1 = 0 ; | |
30422 | int res1 = 0 ; | |
30423 | double val2 ; | |
30424 | int ecode2 = 0 ; | |
30425 | double val3 ; | |
30426 | int ecode3 = 0 ; | |
30427 | double val4 ; | |
30428 | int ecode4 = 0 ; | |
30429 | double val5 ; | |
30430 | int ecode5 = 0 ; | |
30431 | PyObject * obj0 = 0 ; | |
30432 | PyObject * obj1 = 0 ; | |
30433 | PyObject * obj2 = 0 ; | |
30434 | PyObject * obj3 = 0 ; | |
30435 | PyObject * obj4 = 0 ; | |
30436 | char * kwnames[] = { | |
30437 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
30438 | }; | |
30439 | ||
30440 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_StrokeLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30441 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30442 | if (!SWIG_IsOK(res1)) { | |
30443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30444 | } | |
30445 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30446 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30447 | if (!SWIG_IsOK(ecode2)) { | |
30448 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30449 | } | |
30450 | arg2 = static_cast< wxDouble >(val2); | |
30451 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30452 | if (!SWIG_IsOK(ecode3)) { | |
30453 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30454 | } | |
30455 | arg3 = static_cast< wxDouble >(val3); | |
30456 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30457 | if (!SWIG_IsOK(ecode4)) { | |
30458 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30459 | } | |
30460 | arg4 = static_cast< wxDouble >(val4); | |
30461 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30462 | if (!SWIG_IsOK(ecode5)) { | |
30463 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_StrokeLine" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30464 | } | |
30465 | arg5 = static_cast< wxDouble >(val5); | |
30466 | { | |
30467 | (arg1)->StrokeLine(arg2,arg3,arg4,arg5); | |
30468 | if (PyErr_Occurred()) SWIG_fail; | |
30469 | } | |
30470 | resultobj = SWIG_Py_Void(); | |
30471 | return resultobj; | |
30472 | fail: | |
30473 | return NULL; | |
30474 | } | |
30475 | ||
30476 | ||
30477 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30478 | PyObject *resultobj = 0; | |
30479 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30480 | size_t arg2 ; | |
30481 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
30482 | void *argp1 = 0 ; | |
30483 | int res1 = 0 ; | |
30484 | PyObject * obj0 = 0 ; | |
30485 | PyObject * obj1 = 0 ; | |
30486 | char * kwnames[] = { | |
30487 | (char *) "self",(char *) "points", NULL | |
30488 | }; | |
30489 | ||
30490 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsContext_StrokeLines",kwnames,&obj0,&obj1)) SWIG_fail; | |
30491 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30492 | if (!SWIG_IsOK(res1)) { | |
30493 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30494 | } | |
30495 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30496 | { | |
30497 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
30498 | if (arg3 == NULL) SWIG_fail; | |
30499 | } | |
30500 | { | |
30501 | (arg1)->StrokeLines(arg2,(wxPoint2D const *)arg3); | |
30502 | if (PyErr_Occurred()) SWIG_fail; | |
30503 | } | |
30504 | resultobj = SWIG_Py_Void(); | |
30505 | { | |
30506 | if (arg3) delete [] arg3; | |
30507 | } | |
30508 | return resultobj; | |
30509 | fail: | |
30510 | { | |
30511 | if (arg3) delete [] arg3; | |
30512 | } | |
30513 | return NULL; | |
30514 | } | |
30515 | ||
30516 | ||
30517 | SWIGINTERN PyObject *_wrap_GraphicsContext_StrokeLineSegements(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30518 | PyObject *resultobj = 0; | |
30519 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30520 | PyObject *arg2 = (PyObject *) 0 ; | |
30521 | PyObject *arg3 = (PyObject *) 0 ; | |
30522 | void *argp1 = 0 ; | |
30523 | int res1 = 0 ; | |
30524 | PyObject * obj0 = 0 ; | |
30525 | PyObject * obj1 = 0 ; | |
30526 | PyObject * obj2 = 0 ; | |
30527 | char * kwnames[] = { | |
30528 | (char *) "self",(char *) "beginPoints",(char *) "endPoints", NULL | |
30529 | }; | |
30530 | ||
30531 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GraphicsContext_StrokeLineSegements",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30532 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30533 | if (!SWIG_IsOK(res1)) { | |
30534 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_StrokeLineSegements" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30535 | } | |
30536 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30537 | arg2 = obj1; | |
30538 | arg3 = obj2; | |
30539 | { | |
30540 | wxGraphicsContext_StrokeLineSegements(arg1,arg2,arg3); | |
30541 | if (PyErr_Occurred()) SWIG_fail; | |
30542 | } | |
30543 | resultobj = SWIG_Py_Void(); | |
30544 | return resultobj; | |
30545 | fail: | |
30546 | return NULL; | |
30547 | } | |
30548 | ||
30549 | ||
30550 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30551 | PyObject *resultobj = 0; | |
30552 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30553 | size_t arg2 ; | |
30554 | wxPoint2D *arg3 = (wxPoint2D *) 0 ; | |
8f514ab4 | 30555 | int arg4 = (int) wxODDEVEN_RULE ; |
70d7cb34 RD |
30556 | void *argp1 = 0 ; |
30557 | int res1 = 0 ; | |
30558 | int val4 ; | |
30559 | int ecode4 = 0 ; | |
30560 | PyObject * obj0 = 0 ; | |
30561 | PyObject * obj1 = 0 ; | |
30562 | PyObject * obj2 = 0 ; | |
30563 | char * kwnames[] = { | |
30564 | (char *) "self",(char *) "points",(char *) "fillStyle", NULL | |
30565 | }; | |
30566 | ||
30567 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsContext_DrawLines",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
30568 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30569 | if (!SWIG_IsOK(res1)) { | |
30570 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawLines" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30571 | } | |
30572 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30573 | { | |
30574 | arg3 = wxPoint2D_LIST_helper(obj1, &arg2); | |
30575 | if (arg3 == NULL) SWIG_fail; | |
30576 | } | |
30577 | if (obj2) { | |
30578 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
30579 | if (!SWIG_IsOK(ecode4)) { | |
30580 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
30581 | } | |
30582 | arg4 = static_cast< int >(val4); | |
30583 | } | |
30584 | { | |
30585 | (arg1)->DrawLines(arg2,(wxPoint2D const *)arg3,arg4); | |
30586 | if (PyErr_Occurred()) SWIG_fail; | |
30587 | } | |
30588 | resultobj = SWIG_Py_Void(); | |
30589 | { | |
30590 | if (arg3) delete [] arg3; | |
30591 | } | |
30592 | return resultobj; | |
30593 | fail: | |
30594 | { | |
30595 | if (arg3) delete [] arg3; | |
30596 | } | |
30597 | return NULL; | |
30598 | } | |
30599 | ||
30600 | ||
30601 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30602 | PyObject *resultobj = 0; | |
30603 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30604 | wxDouble arg2 ; | |
30605 | wxDouble arg3 ; | |
30606 | wxDouble arg4 ; | |
30607 | wxDouble arg5 ; | |
30608 | void *argp1 = 0 ; | |
30609 | int res1 = 0 ; | |
30610 | double val2 ; | |
30611 | int ecode2 = 0 ; | |
30612 | double val3 ; | |
30613 | int ecode3 = 0 ; | |
30614 | double val4 ; | |
30615 | int ecode4 = 0 ; | |
30616 | double val5 ; | |
30617 | int ecode5 = 0 ; | |
30618 | PyObject * obj0 = 0 ; | |
30619 | PyObject * obj1 = 0 ; | |
30620 | PyObject * obj2 = 0 ; | |
30621 | PyObject * obj3 = 0 ; | |
30622 | PyObject * obj4 = 0 ; | |
30623 | char * kwnames[] = { | |
30624 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL | |
30625 | }; | |
30626 | ||
30627 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
30628 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30629 | if (!SWIG_IsOK(res1)) { | |
30630 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); | |
30631 | } | |
30632 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30633 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30634 | if (!SWIG_IsOK(ecode2)) { | |
30635 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30636 | } | |
30637 | arg2 = static_cast< wxDouble >(val2); | |
30638 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30639 | if (!SWIG_IsOK(ecode3)) { | |
30640 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); | |
30641 | } | |
30642 | arg3 = static_cast< wxDouble >(val3); | |
30643 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30644 | if (!SWIG_IsOK(ecode4)) { | |
30645 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); | |
30646 | } | |
30647 | arg4 = static_cast< wxDouble >(val4); | |
30648 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30649 | if (!SWIG_IsOK(ecode5)) { | |
30650 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); | |
30651 | } | |
30652 | arg5 = static_cast< wxDouble >(val5); | |
30653 | { | |
30654 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
30655 | if (PyErr_Occurred()) SWIG_fail; | |
30656 | } | |
30657 | resultobj = SWIG_Py_Void(); | |
30658 | return resultobj; | |
30659 | fail: | |
30660 | return NULL; | |
30661 | } | |
30662 | ||
30663 | ||
30664 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
30665 | PyObject *resultobj = 0; | |
30666 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30667 | wxDouble arg2 ; | |
30668 | wxDouble arg3 ; | |
30669 | wxDouble arg4 ; | |
30670 | wxDouble arg5 ; | |
30671 | void *argp1 = 0 ; | |
30672 | int res1 = 0 ; | |
30673 | double val2 ; | |
30674 | int ecode2 = 0 ; | |
30675 | double val3 ; | |
30676 | int ecode3 = 0 ; | |
30677 | double val4 ; | |
30678 | int ecode4 = 0 ; | |
30679 | double val5 ; | |
30680 | int ecode5 = 0 ; | |
72ef6efb RD |
30681 | PyObject * obj0 = 0 ; |
30682 | PyObject * obj1 = 0 ; | |
30683 | PyObject * obj2 = 0 ; | |
30684 | PyObject * obj3 = 0 ; | |
30685 | PyObject * obj4 = 0 ; | |
72ef6efb | 30686 | char * kwnames[] = { |
70d7cb34 | 30687 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL |
72ef6efb RD |
30688 | }; |
30689 | ||
70d7cb34 | 30690 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:GraphicsContext_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
72ef6efb RD |
30691 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30692 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 30693 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30694 | } |
30695 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
70d7cb34 RD |
30696 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
30697 | if (!SWIG_IsOK(ecode2)) { | |
30698 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "2"" of type '" "wxDouble""'"); | |
30699 | } | |
30700 | arg2 = static_cast< wxDouble >(val2); | |
72ef6efb RD |
30701 | ecode3 = SWIG_AsVal_double(obj2, &val3); |
30702 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30703 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30704 | } |
30705 | arg3 = static_cast< wxDouble >(val3); | |
30706 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30707 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30708 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30709 | } |
30710 | arg4 = static_cast< wxDouble >(val4); | |
30711 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30712 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30713 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawEllipse" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30714 | } |
30715 | arg5 = static_cast< wxDouble >(val5); | |
72ef6efb | 30716 | { |
70d7cb34 | 30717 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); |
72ef6efb RD |
30718 | if (PyErr_Occurred()) SWIG_fail; |
30719 | } | |
30720 | resultobj = SWIG_Py_Void(); | |
30721 | return resultobj; | |
30722 | fail: | |
30723 | return NULL; | |
30724 | } | |
30725 | ||
30726 | ||
70d7cb34 | 30727 | SWIGINTERN PyObject *_wrap_GraphicsContext_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb RD |
30728 | PyObject *resultobj = 0; |
30729 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
30730 | wxDouble arg2 ; | |
30731 | wxDouble arg3 ; | |
30732 | wxDouble arg4 ; | |
30733 | wxDouble arg5 ; | |
70d7cb34 | 30734 | wxDouble arg6 ; |
72ef6efb RD |
30735 | void *argp1 = 0 ; |
30736 | int res1 = 0 ; | |
30737 | double val2 ; | |
30738 | int ecode2 = 0 ; | |
30739 | double val3 ; | |
30740 | int ecode3 = 0 ; | |
30741 | double val4 ; | |
30742 | int ecode4 = 0 ; | |
30743 | double val5 ; | |
30744 | int ecode5 = 0 ; | |
70d7cb34 RD |
30745 | double val6 ; |
30746 | int ecode6 = 0 ; | |
72ef6efb RD |
30747 | PyObject * obj0 = 0 ; |
30748 | PyObject * obj1 = 0 ; | |
30749 | PyObject * obj2 = 0 ; | |
30750 | PyObject * obj3 = 0 ; | |
30751 | PyObject * obj4 = 0 ; | |
70d7cb34 | 30752 | PyObject * obj5 = 0 ; |
72ef6efb | 30753 | char * kwnames[] = { |
70d7cb34 | 30754 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "radius", NULL |
72ef6efb RD |
30755 | }; |
30756 | ||
70d7cb34 | 30757 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:GraphicsContext_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; |
72ef6efb RD |
30758 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); |
30759 | if (!SWIG_IsOK(res1)) { | |
70d7cb34 | 30760 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxGraphicsContext *""'"); |
72ef6efb RD |
30761 | } |
30762 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
30763 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
30764 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 30765 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
30766 | } |
30767 | arg2 = static_cast< wxDouble >(val2); | |
30768 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
30769 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 30770 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
30771 | } |
30772 | arg3 = static_cast< wxDouble >(val3); | |
30773 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
30774 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 30775 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
30776 | } |
30777 | arg4 = static_cast< wxDouble >(val4); | |
30778 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
30779 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 30780 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
30781 | } |
30782 | arg5 = static_cast< wxDouble >(val5); | |
70d7cb34 RD |
30783 | ecode6 = SWIG_AsVal_double(obj5, &val6); |
30784 | if (!SWIG_IsOK(ecode6)) { | |
30785 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsContext_DrawRoundedRectangle" "', expected argument " "6"" of type '" "wxDouble""'"); | |
30786 | } | |
30787 | arg6 = static_cast< wxDouble >(val6); | |
72ef6efb | 30788 | { |
70d7cb34 | 30789 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); |
72ef6efb RD |
30790 | if (PyErr_Occurred()) SWIG_fail; |
30791 | } | |
30792 | resultobj = SWIG_Py_Void(); | |
30793 | return resultobj; | |
30794 | fail: | |
30795 | return NULL; | |
30796 | } | |
30797 | ||
30798 | ||
70d7cb34 | 30799 | SWIGINTERN PyObject *_wrap_GraphicsContext_ShouldOffset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
30800 | PyObject *resultobj = 0; |
30801 | wxGraphicsContext *arg1 = (wxGraphicsContext *) 0 ; | |
70d7cb34 | 30802 | bool result; |
72ef6efb RD |
30803 | void *argp1 = 0 ; |
30804 | int res1 = 0 ; | |
70d7cb34 | 30805 | PyObject *swig_obj[1] ; |
72ef6efb | 30806 | |
70d7cb34 RD |
30807 | if (!args) SWIG_fail; |
30808 | swig_obj[0] = args; | |
30809 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
72ef6efb | 30810 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 30811 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsContext_ShouldOffset" "', expected argument " "1"" of type '" "wxGraphicsContext const *""'"); |
72ef6efb RD |
30812 | } |
30813 | arg1 = reinterpret_cast< wxGraphicsContext * >(argp1); | |
b39fe951 | 30814 | { |
70d7cb34 RD |
30815 | result = (bool)((wxGraphicsContext const *)arg1)->ShouldOffset(); |
30816 | if (PyErr_Occurred()) SWIG_fail; | |
72ef6efb | 30817 | } |
72ef6efb | 30818 | { |
70d7cb34 RD |
30819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); |
30820 | } | |
30821 | return resultobj; | |
30822 | fail: | |
30823 | return NULL; | |
30824 | } | |
30825 | ||
30826 | ||
30827 | SWIGINTERN PyObject *GraphicsContext_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30828 | PyObject *obj; | |
30829 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
30830 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsContext, SWIG_NewClientData(obj)); | |
30831 | return SWIG_Py_Void(); | |
30832 | } | |
30833 | ||
30834 | SWIGINTERN PyObject *_wrap_delete_GraphicsRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30835 | PyObject *resultobj = 0; | |
30836 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30837 | void *argp1 = 0 ; | |
30838 | int res1 = 0 ; | |
30839 | PyObject *swig_obj[1] ; | |
30840 | ||
30841 | if (!args) SWIG_fail; | |
30842 | swig_obj[0] = args; | |
30843 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, SWIG_POINTER_DISOWN | 0 ); | |
30844 | if (!SWIG_IsOK(res1)) { | |
30845 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GraphicsRenderer" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30846 | } | |
30847 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30848 | { | |
30849 | delete arg1; | |
30850 | ||
72ef6efb RD |
30851 | if (PyErr_Occurred()) SWIG_fail; |
30852 | } | |
30853 | resultobj = SWIG_Py_Void(); | |
70d7cb34 RD |
30854 | return resultobj; |
30855 | fail: | |
30856 | return NULL; | |
30857 | } | |
30858 | ||
30859 | ||
30860 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_GetDefaultRenderer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
30861 | PyObject *resultobj = 0; | |
30862 | wxGraphicsRenderer *result = 0 ; | |
30863 | ||
30864 | if (!SWIG_Python_UnpackTuple(args,"GraphicsRenderer_GetDefaultRenderer",0,0,0)) SWIG_fail; | |
b39fe951 | 30865 | { |
70d7cb34 RD |
30866 | result = (wxGraphicsRenderer *)wxGraphicsRenderer::GetDefaultRenderer(); |
30867 | if (PyErr_Occurred()) SWIG_fail; | |
30868 | } | |
30869 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30870 | return resultobj; | |
30871 | fail: | |
30872 | return NULL; | |
30873 | } | |
30874 | ||
30875 | ||
30876 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30877 | PyObject *resultobj = 0; | |
30878 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30879 | wxWindowDC *arg2 = 0 ; | |
30880 | wxGraphicsContext *result = 0 ; | |
30881 | void *argp1 = 0 ; | |
30882 | int res1 = 0 ; | |
30883 | void *argp2 = 0 ; | |
30884 | int res2 = 0 ; | |
30885 | ||
30886 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30887 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30888 | if (!SWIG_IsOK(res1)) { | |
30889 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30890 | } | |
30891 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30892 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
30893 | if (!SWIG_IsOK(res2)) { | |
30894 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
30895 | } | |
30896 | if (!argp2) { | |
30897 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindowDC const &""'"); | |
30898 | } | |
30899 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
30900 | { | |
30901 | result = (wxGraphicsContext *)(arg1)->CreateContext((wxWindowDC const &)*arg2); | |
30902 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 30903 | } |
70d7cb34 | 30904 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
30905 | return resultobj; |
30906 | fail: | |
70d7cb34 RD |
30907 | return NULL; |
30908 | } | |
30909 | ||
30910 | ||
30911 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
30912 | PyObject *resultobj = 0; | |
30913 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30914 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30915 | wxGraphicsContext *result = 0 ; | |
30916 | void *argp1 = 0 ; | |
30917 | int res1 = 0 ; | |
30918 | void *argp2 = 0 ; | |
30919 | int res2 = 0 ; | |
30920 | ||
30921 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
30922 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30923 | if (!SWIG_IsOK(res1)) { | |
30924 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30925 | } | |
30926 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30927 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
30928 | if (!SWIG_IsOK(res2)) { | |
30929 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContext" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
30930 | } | |
30931 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
b39fe951 | 30932 | { |
70d7cb34 RD |
30933 | result = (wxGraphicsContext *)(arg1)->CreateContext(arg2); |
30934 | if (PyErr_Occurred()) SWIG_fail; | |
b39fe951 | 30935 | } |
70d7cb34 RD |
30936 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
30937 | return resultobj; | |
30938 | fail: | |
72ef6efb RD |
30939 | return NULL; |
30940 | } | |
30941 | ||
30942 | ||
70d7cb34 RD |
30943 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContext(PyObject *self, PyObject *args) { |
30944 | int argc; | |
30945 | PyObject *argv[3]; | |
30946 | ||
30947 | if (!(argc = SWIG_Python_UnpackTuple(args,"GraphicsRenderer_CreateContext",0,2,argv))) SWIG_fail; | |
30948 | --argc; | |
30949 | if (argc == 2) { | |
30950 | int _v = 0; | |
30951 | { | |
30952 | int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxWindowDC, 0); | |
30953 | _v = SWIG_CheckState(res); | |
30954 | } | |
30955 | if (!_v) goto check_1; | |
30956 | return _wrap_GraphicsRenderer_CreateContext__SWIG_0(self, argc, argv); | |
30957 | } | |
30958 | check_1: | |
30959 | ||
30960 | if (argc == 2) { | |
30961 | return _wrap_GraphicsRenderer_CreateContext__SWIG_1(self, argc, argv); | |
30962 | } | |
30963 | ||
30964 | fail: | |
30965 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GraphicsRenderer_CreateContext'"); | |
30966 | return NULL; | |
30967 | } | |
30968 | ||
30969 | ||
f89238b9 RD |
30970 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMeasuringContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
30971 | PyObject *resultobj = 0; | |
30972 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
30973 | wxGraphicsContext *result = 0 ; | |
30974 | void *argp1 = 0 ; | |
30975 | int res1 = 0 ; | |
30976 | PyObject *swig_obj[1] ; | |
30977 | ||
30978 | if (!args) SWIG_fail; | |
30979 | swig_obj[0] = args; | |
30980 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
30981 | if (!SWIG_IsOK(res1)) { | |
30982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMeasuringContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
30983 | } | |
30984 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
30985 | { | |
30986 | result = (wxGraphicsContext *)(arg1)->CreateMeasuringContext(); | |
30987 | if (PyErr_Occurred()) SWIG_fail; | |
30988 | } | |
30989 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
30990 | return resultobj; | |
30991 | fail: | |
30992 | return NULL; | |
30993 | } | |
30994 | ||
30995 | ||
70d7cb34 | 30996 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 30997 | PyObject *resultobj = 0; |
70d7cb34 RD |
30998 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
30999 | void *arg2 = (void *) 0 ; | |
31000 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
31001 | void *argp1 = 0 ; |
31002 | int res1 = 0 ; | |
70d7cb34 | 31003 | int res2 ; |
b39fe951 RD |
31004 | PyObject * obj0 = 0 ; |
31005 | PyObject * obj1 = 0 ; | |
b39fe951 | 31006 | char * kwnames[] = { |
70d7cb34 | 31007 | (char *) "self",(char *) "context", NULL |
b39fe951 | 31008 | }; |
72ef6efb | 31009 | |
70d7cb34 RD |
31010 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeContext",kwnames,&obj0,&obj1)) SWIG_fail; |
31011 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 31012 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
31013 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
31014 | } | |
31015 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31016 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
31017 | if (!SWIG_IsOK(res2)) { | |
31018 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeContext" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb | 31019 | } |
72ef6efb | 31020 | { |
70d7cb34 | 31021 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeContext(arg2); |
72ef6efb RD |
31022 | if (PyErr_Occurred()) SWIG_fail; |
31023 | } | |
70d7cb34 | 31024 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31025 | return resultobj; |
31026 | fail: | |
31027 | return NULL; | |
31028 | } | |
31029 | ||
31030 | ||
70d7cb34 | 31031 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateContextFromNativeWindow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 31032 | PyObject *resultobj = 0; |
70d7cb34 RD |
31033 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
31034 | void *arg2 = (void *) 0 ; | |
31035 | wxGraphicsContext *result = 0 ; | |
72ef6efb RD |
31036 | void *argp1 = 0 ; |
31037 | int res1 = 0 ; | |
70d7cb34 | 31038 | int res2 ; |
72ef6efb RD |
31039 | PyObject * obj0 = 0 ; |
31040 | PyObject * obj1 = 0 ; | |
72ef6efb | 31041 | char * kwnames[] = { |
70d7cb34 | 31042 | (char *) "self",(char *) "window", NULL |
72ef6efb RD |
31043 | }; |
31044 | ||
70d7cb34 RD |
31045 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateContextFromNativeWindow",kwnames,&obj0,&obj1)) SWIG_fail; |
31046 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 31047 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 31048 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 31049 | } |
70d7cb34 RD |
31050 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
31051 | res2 = SWIG_ConvertPtr(obj1,SWIG_as_voidptrptr(&arg2), 0, 0); | |
31052 | if (!SWIG_IsOK(res2)) { | |
31053 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateContextFromNativeWindow" "', expected argument " "2"" of type '" "void *""'"); | |
72ef6efb RD |
31054 | } |
31055 | { | |
70d7cb34 | 31056 | result = (wxGraphicsContext *)(arg1)->CreateContextFromNativeWindow(arg2); |
72ef6efb RD |
31057 | if (PyErr_Occurred()) SWIG_fail; |
31058 | } | |
70d7cb34 | 31059 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31060 | return resultobj; |
31061 | fail: | |
70d7cb34 RD |
31062 | return NULL; |
31063 | } | |
31064 | ||
31065 | ||
31066 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31067 | PyObject *resultobj = 0; | |
31068 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
5c8c7dd3 | 31069 | wxGraphicsPath result; |
70d7cb34 RD |
31070 | void *argp1 = 0 ; |
31071 | int res1 = 0 ; | |
31072 | PyObject *swig_obj[1] ; | |
31073 | ||
31074 | if (!args) SWIG_fail; | |
31075 | swig_obj[0] = args; | |
31076 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31077 | if (!SWIG_IsOK(res1)) { | |
31078 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePath" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31079 | } | |
31080 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
b39fe951 | 31081 | { |
5c8c7dd3 | 31082 | result = (arg1)->CreatePath(); |
70d7cb34 | 31083 | if (PyErr_Occurred()) SWIG_fail; |
b39fe951 | 31084 | } |
5c8c7dd3 | 31085 | resultobj = SWIG_NewPointerObj((new wxGraphicsPath(static_cast< const wxGraphicsPath& >(result))), SWIGTYPE_p_wxGraphicsPath, SWIG_POINTER_OWN | 0 ); |
70d7cb34 RD |
31086 | return resultobj; |
31087 | fail: | |
72ef6efb RD |
31088 | return NULL; |
31089 | } | |
31090 | ||
31091 | ||
70d7cb34 | 31092 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateMatrix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 31093 | PyObject *resultobj = 0; |
70d7cb34 RD |
31094 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
31095 | wxDouble arg2 = (wxDouble) 1.0 ; | |
31096 | wxDouble arg3 = (wxDouble) 0.0 ; | |
31097 | wxDouble arg4 = (wxDouble) 0.0 ; | |
31098 | wxDouble arg5 = (wxDouble) 1.0 ; | |
31099 | wxDouble arg6 = (wxDouble) 0.0 ; | |
31100 | wxDouble arg7 = (wxDouble) 0.0 ; | |
5c8c7dd3 | 31101 | wxGraphicsMatrix result; |
72ef6efb RD |
31102 | void *argp1 = 0 ; |
31103 | int res1 = 0 ; | |
31104 | double val2 ; | |
31105 | int ecode2 = 0 ; | |
31106 | double val3 ; | |
31107 | int ecode3 = 0 ; | |
31108 | double val4 ; | |
31109 | int ecode4 = 0 ; | |
31110 | double val5 ; | |
31111 | int ecode5 = 0 ; | |
70d7cb34 RD |
31112 | double val6 ; |
31113 | int ecode6 = 0 ; | |
31114 | double val7 ; | |
31115 | int ecode7 = 0 ; | |
72ef6efb RD |
31116 | PyObject * obj0 = 0 ; |
31117 | PyObject * obj1 = 0 ; | |
31118 | PyObject * obj2 = 0 ; | |
31119 | PyObject * obj3 = 0 ; | |
31120 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
31121 | PyObject * obj5 = 0 ; |
31122 | PyObject * obj6 = 0 ; | |
72ef6efb | 31123 | char * kwnames[] = { |
70d7cb34 | 31124 | (char *) "self",(char *) "a",(char *) "b",(char *) "c",(char *) "d",(char *) "tx",(char *) "ty", NULL |
72ef6efb RD |
31125 | }; |
31126 | ||
70d7cb34 RD |
31127 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:GraphicsRenderer_CreateMatrix",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
31128 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 31129 | if (!SWIG_IsOK(res1)) { |
70d7cb34 RD |
31130 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
31131 | } | |
31132 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31133 | if (obj1) { | |
31134 | ecode2 = SWIG_AsVal_double(obj1, &val2); | |
31135 | if (!SWIG_IsOK(ecode2)) { | |
31136 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "2"" of type '" "wxDouble""'"); | |
31137 | } | |
31138 | arg2 = static_cast< wxDouble >(val2); | |
31139 | } | |
31140 | if (obj2) { | |
31141 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
31142 | if (!SWIG_IsOK(ecode3)) { | |
31143 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "3"" of type '" "wxDouble""'"); | |
31144 | } | |
31145 | arg3 = static_cast< wxDouble >(val3); | |
31146 | } | |
31147 | if (obj3) { | |
31148 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
31149 | if (!SWIG_IsOK(ecode4)) { | |
31150 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "4"" of type '" "wxDouble""'"); | |
31151 | } | |
31152 | arg4 = static_cast< wxDouble >(val4); | |
31153 | } | |
31154 | if (obj4) { | |
31155 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
31156 | if (!SWIG_IsOK(ecode5)) { | |
31157 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "5"" of type '" "wxDouble""'"); | |
31158 | } | |
31159 | arg5 = static_cast< wxDouble >(val5); | |
31160 | } | |
31161 | if (obj5) { | |
31162 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
31163 | if (!SWIG_IsOK(ecode6)) { | |
31164 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "6"" of type '" "wxDouble""'"); | |
31165 | } | |
31166 | arg6 = static_cast< wxDouble >(val6); | |
31167 | } | |
31168 | if (obj6) { | |
31169 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
31170 | if (!SWIG_IsOK(ecode7)) { | |
31171 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "GraphicsRenderer_CreateMatrix" "', expected argument " "7"" of type '" "wxDouble""'"); | |
31172 | } | |
31173 | arg7 = static_cast< wxDouble >(val7); | |
72ef6efb | 31174 | } |
72ef6efb | 31175 | { |
5c8c7dd3 | 31176 | result = (arg1)->CreateMatrix(arg2,arg3,arg4,arg5,arg6,arg7); |
72ef6efb RD |
31177 | if (PyErr_Occurred()) SWIG_fail; |
31178 | } | |
5c8c7dd3 | 31179 | resultobj = SWIG_NewPointerObj((new wxGraphicsMatrix(static_cast< const wxGraphicsMatrix& >(result))), SWIGTYPE_p_wxGraphicsMatrix, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31180 | return resultobj; |
31181 | fail: | |
31182 | return NULL; | |
31183 | } | |
31184 | ||
31185 | ||
70d7cb34 | 31186 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 31187 | PyObject *resultobj = 0; |
70d7cb34 RD |
31188 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
31189 | wxPen *arg2 = 0 ; | |
31190 | wxGraphicsPen result; | |
31191 | void *argp1 = 0 ; | |
31192 | int res1 = 0 ; | |
31193 | void *argp2 = 0 ; | |
31194 | int res2 = 0 ; | |
31195 | PyObject * obj0 = 0 ; | |
31196 | PyObject * obj1 = 0 ; | |
31197 | char * kwnames[] = { | |
31198 | (char *) "self",(char *) "pen", NULL | |
31199 | }; | |
31200 | ||
31201 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreatePen",kwnames,&obj0,&obj1)) SWIG_fail; | |
31202 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31203 | if (!SWIG_IsOK(res1)) { | |
31204 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31205 | } | |
31206 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31207 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
31208 | if (!SWIG_IsOK(res2)) { | |
31209 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
31210 | } | |
31211 | if (!argp2) { | |
31212 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreatePen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
31213 | } | |
31214 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
31215 | { | |
31216 | result = (arg1)->CreatePen((wxPen const &)*arg2); | |
31217 | if (PyErr_Occurred()) SWIG_fail; | |
31218 | } | |
31219 | resultobj = SWIG_NewPointerObj((new wxGraphicsPen(static_cast< const wxGraphicsPen& >(result))), SWIGTYPE_p_wxGraphicsPen, SWIG_POINTER_OWN | 0 ); | |
31220 | return resultobj; | |
31221 | fail: | |
31222 | return NULL; | |
31223 | } | |
31224 | ||
31225 | ||
31226 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31227 | PyObject *resultobj = 0; | |
31228 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
31229 | wxBrush *arg2 = 0 ; | |
31230 | wxGraphicsBrush result; | |
31231 | void *argp1 = 0 ; | |
31232 | int res1 = 0 ; | |
31233 | void *argp2 = 0 ; | |
31234 | int res2 = 0 ; | |
31235 | PyObject * obj0 = 0 ; | |
31236 | PyObject * obj1 = 0 ; | |
31237 | char * kwnames[] = { | |
31238 | (char *) "self",(char *) "brush", NULL | |
31239 | }; | |
31240 | ||
31241 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GraphicsRenderer_CreateBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
31242 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31243 | if (!SWIG_IsOK(res1)) { | |
31244 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31245 | } | |
31246 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31247 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
31248 | if (!SWIG_IsOK(res2)) { | |
31249 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
31250 | } | |
31251 | if (!argp2) { | |
31252 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
31253 | } | |
31254 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
31255 | { | |
31256 | result = (arg1)->CreateBrush((wxBrush const &)*arg2); | |
31257 | if (PyErr_Occurred()) SWIG_fail; | |
31258 | } | |
31259 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); | |
31260 | return resultobj; | |
31261 | fail: | |
31262 | return NULL; | |
31263 | } | |
31264 | ||
31265 | ||
31266 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateLinearGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
31267 | PyObject *resultobj = 0; | |
31268 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
72ef6efb RD |
31269 | wxDouble arg2 ; |
31270 | wxDouble arg3 ; | |
31271 | wxDouble arg4 ; | |
31272 | wxDouble arg5 ; | |
70d7cb34 RD |
31273 | wxColour *arg6 = 0 ; |
31274 | wxColour *arg7 = 0 ; | |
31275 | wxGraphicsBrush result; | |
72ef6efb RD |
31276 | void *argp1 = 0 ; |
31277 | int res1 = 0 ; | |
31278 | double val2 ; | |
31279 | int ecode2 = 0 ; | |
31280 | double val3 ; | |
31281 | int ecode3 = 0 ; | |
31282 | double val4 ; | |
31283 | int ecode4 = 0 ; | |
31284 | double val5 ; | |
31285 | int ecode5 = 0 ; | |
70d7cb34 RD |
31286 | wxColour temp6 ; |
31287 | wxColour temp7 ; | |
72ef6efb RD |
31288 | PyObject * obj0 = 0 ; |
31289 | PyObject * obj1 = 0 ; | |
31290 | PyObject * obj2 = 0 ; | |
31291 | PyObject * obj3 = 0 ; | |
31292 | PyObject * obj4 = 0 ; | |
70d7cb34 RD |
31293 | PyObject * obj5 = 0 ; |
31294 | PyObject * obj6 = 0 ; | |
72ef6efb | 31295 | char * kwnames[] = { |
70d7cb34 | 31296 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "c1",(char *) "c2", NULL |
72ef6efb RD |
31297 | }; |
31298 | ||
70d7cb34 RD |
31299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:GraphicsRenderer_CreateLinearGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
31300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 31301 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 31302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 31303 | } |
70d7cb34 | 31304 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
31305 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
31306 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 31307 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
31308 | } |
31309 | arg2 = static_cast< wxDouble >(val2); | |
31310 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
31311 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 31312 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
31313 | } |
31314 | arg3 = static_cast< wxDouble >(val3); | |
31315 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
31316 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 31317 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
31318 | } |
31319 | arg4 = static_cast< wxDouble >(val4); | |
31320 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
31321 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 31322 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateLinearGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
31323 | } |
31324 | arg5 = static_cast< wxDouble >(val5); | |
31325 | { | |
70d7cb34 RD |
31326 | arg6 = &temp6; |
31327 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
31328 | } | |
31329 | { | |
31330 | arg7 = &temp7; | |
31331 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
31332 | } | |
31333 | { | |
31334 | result = (arg1)->CreateLinearGradientBrush(arg2,arg3,arg4,arg5,(wxColour const &)*arg6,(wxColour const &)*arg7); | |
72ef6efb RD |
31335 | if (PyErr_Occurred()) SWIG_fail; |
31336 | } | |
70d7cb34 | 31337 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31338 | return resultobj; |
31339 | fail: | |
31340 | return NULL; | |
31341 | } | |
31342 | ||
31343 | ||
70d7cb34 | 31344 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateRadialGradientBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
72ef6efb | 31345 | PyObject *resultobj = 0; |
70d7cb34 | 31346 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; |
72ef6efb RD |
31347 | wxDouble arg2 ; |
31348 | wxDouble arg3 ; | |
31349 | wxDouble arg4 ; | |
31350 | wxDouble arg5 ; | |
31351 | wxDouble arg6 ; | |
70d7cb34 RD |
31352 | wxColour *arg7 = 0 ; |
31353 | wxColour *arg8 = 0 ; | |
31354 | wxGraphicsBrush result; | |
72ef6efb RD |
31355 | void *argp1 = 0 ; |
31356 | int res1 = 0 ; | |
31357 | double val2 ; | |
31358 | int ecode2 = 0 ; | |
31359 | double val3 ; | |
31360 | int ecode3 = 0 ; | |
31361 | double val4 ; | |
31362 | int ecode4 = 0 ; | |
31363 | double val5 ; | |
31364 | int ecode5 = 0 ; | |
31365 | double val6 ; | |
31366 | int ecode6 = 0 ; | |
70d7cb34 RD |
31367 | wxColour temp7 ; |
31368 | wxColour temp8 ; | |
72ef6efb RD |
31369 | PyObject * obj0 = 0 ; |
31370 | PyObject * obj1 = 0 ; | |
31371 | PyObject * obj2 = 0 ; | |
31372 | PyObject * obj3 = 0 ; | |
31373 | PyObject * obj4 = 0 ; | |
31374 | PyObject * obj5 = 0 ; | |
70d7cb34 RD |
31375 | PyObject * obj6 = 0 ; |
31376 | PyObject * obj7 = 0 ; | |
72ef6efb | 31377 | char * kwnames[] = { |
70d7cb34 | 31378 | (char *) "self",(char *) "xo",(char *) "yo",(char *) "xc",(char *) "yc",(char *) "radius",(char *) "oColor",(char *) "cColor", NULL |
72ef6efb RD |
31379 | }; |
31380 | ||
70d7cb34 RD |
31381 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOOO:GraphicsRenderer_CreateRadialGradientBrush",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
31382 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
72ef6efb | 31383 | if (!SWIG_IsOK(res1)) { |
70d7cb34 | 31384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); |
72ef6efb | 31385 | } |
70d7cb34 | 31386 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); |
72ef6efb RD |
31387 | ecode2 = SWIG_AsVal_double(obj1, &val2); |
31388 | if (!SWIG_IsOK(ecode2)) { | |
70d7cb34 | 31389 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "2"" of type '" "wxDouble""'"); |
72ef6efb RD |
31390 | } |
31391 | arg2 = static_cast< wxDouble >(val2); | |
31392 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
31393 | if (!SWIG_IsOK(ecode3)) { | |
70d7cb34 | 31394 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "3"" of type '" "wxDouble""'"); |
72ef6efb RD |
31395 | } |
31396 | arg3 = static_cast< wxDouble >(val3); | |
31397 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
31398 | if (!SWIG_IsOK(ecode4)) { | |
70d7cb34 | 31399 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "4"" of type '" "wxDouble""'"); |
72ef6efb RD |
31400 | } |
31401 | arg4 = static_cast< wxDouble >(val4); | |
31402 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
31403 | if (!SWIG_IsOK(ecode5)) { | |
70d7cb34 | 31404 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "5"" of type '" "wxDouble""'"); |
72ef6efb RD |
31405 | } |
31406 | arg5 = static_cast< wxDouble >(val5); | |
31407 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
31408 | if (!SWIG_IsOK(ecode6)) { | |
70d7cb34 | 31409 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "GraphicsRenderer_CreateRadialGradientBrush" "', expected argument " "6"" of type '" "wxDouble""'"); |
72ef6efb RD |
31410 | } |
31411 | arg6 = static_cast< wxDouble >(val6); | |
31412 | { | |
70d7cb34 RD |
31413 | arg7 = &temp7; |
31414 | if ( ! wxColour_helper(obj6, &arg7)) SWIG_fail; | |
31415 | } | |
31416 | { | |
31417 | arg8 = &temp8; | |
31418 | if ( ! wxColour_helper(obj7, &arg8)) SWIG_fail; | |
31419 | } | |
31420 | { | |
31421 | result = (arg1)->CreateRadialGradientBrush(arg2,arg3,arg4,arg5,arg6,(wxColour const &)*arg7,(wxColour const &)*arg8); | |
72ef6efb RD |
31422 | if (PyErr_Occurred()) SWIG_fail; |
31423 | } | |
70d7cb34 | 31424 | resultobj = SWIG_NewPointerObj((new wxGraphicsBrush(static_cast< const wxGraphicsBrush& >(result))), SWIGTYPE_p_wxGraphicsBrush, SWIG_POINTER_OWN | 0 ); |
72ef6efb RD |
31425 | return resultobj; |
31426 | fail: | |
31427 | return NULL; | |
31428 | } | |
31429 | ||
31430 | ||
70d7cb34 RD |
31431 | SWIGINTERN PyObject *_wrap_GraphicsRenderer_CreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31432 | PyObject *resultobj = 0; | |
31433 | wxGraphicsRenderer *arg1 = (wxGraphicsRenderer *) 0 ; | |
31434 | wxFont *arg2 = 0 ; | |
31435 | wxColour const &arg3_defvalue = *wxBLACK ; | |
31436 | wxColour *arg3 = (wxColour *) &arg3_defvalue ; | |
31437 | wxGraphicsFont result; | |
31438 | void *argp1 = 0 ; | |
31439 | int res1 = 0 ; | |
31440 | void *argp2 = 0 ; | |
31441 | int res2 = 0 ; | |
31442 | wxColour temp3 ; | |
31443 | PyObject * obj0 = 0 ; | |
31444 | PyObject * obj1 = 0 ; | |
31445 | PyObject * obj2 = 0 ; | |
31446 | char * kwnames[] = { | |
31447 | (char *) "self",(char *) "font",(char *) "col", NULL | |
31448 | }; | |
31449 | ||
31450 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:GraphicsRenderer_CreateFont",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
31451 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGraphicsRenderer, 0 | 0 ); | |
31452 | if (!SWIG_IsOK(res1)) { | |
31453 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "1"" of type '" "wxGraphicsRenderer *""'"); | |
31454 | } | |
31455 | arg1 = reinterpret_cast< wxGraphicsRenderer * >(argp1); | |
31456 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
31457 | if (!SWIG_IsOK(res2)) { | |
31458 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
31459 | } | |
31460 | if (!argp2) { | |
31461 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "GraphicsRenderer_CreateFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
31462 | } | |
31463 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
31464 | if (obj2) { | |
31465 | { | |
31466 | arg3 = &temp3; | |
31467 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
31468 | } | |
31469 | } | |
31470 | { | |
31471 | result = (arg1)->CreateFont((wxFont const &)*arg2,(wxColour const &)*arg3); | |
31472 | if (PyErr_Occurred()) SWIG_fail; | |
31473 | } | |
31474 | resultobj = SWIG_NewPointerObj((new wxGraphicsFont(static_cast< const wxGraphicsFont& >(result))), SWIGTYPE_p_wxGraphicsFont, SWIG_POINTER_OWN | 0 ); | |
31475 | return resultobj; | |
31476 | fail: | |
31477 | return NULL; | |
31478 | } | |
31479 | ||
31480 | ||
31481 | SWIGINTERN PyObject *GraphicsRenderer_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
72ef6efb RD |
31482 | PyObject *obj; |
31483 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
70d7cb34 | 31484 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGraphicsRenderer, SWIG_NewClientData(obj)); |
72ef6efb RD |
31485 | return SWIG_Py_Void(); |
31486 | } | |
31487 | ||
48a0c021 | 31488 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
72ef6efb RD |
31489 | PyObject *resultobj = 0; |
31490 | wxWindowDC *arg1 = 0 ; | |
31491 | wxGCDC *result = 0 ; | |
31492 | void *argp1 = 0 ; | |
31493 | int res1 = 0 ; | |
72ef6efb | 31494 | |
48a0c021 RD |
31495 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; |
31496 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxWindowDC, 0 | 0); | |
72ef6efb RD |
31497 | if (!SWIG_IsOK(res1)) { |
31498 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
31499 | } | |
31500 | if (!argp1) { | |
31501 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindowDC const &""'"); | |
31502 | } | |
31503 | arg1 = reinterpret_cast< wxWindowDC * >(argp1); | |
31504 | { | |
31505 | if (!wxPyCheckForApp()) SWIG_fail; | |
31506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31507 | result = (wxGCDC *)new wxGCDC((wxWindowDC const &)*arg1); | |
31508 | wxPyEndAllowThreads(__tstate); | |
31509 | if (PyErr_Occurred()) SWIG_fail; | |
31510 | } | |
31511 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
31512 | return resultobj; | |
31513 | fail: | |
31514 | return NULL; | |
31515 | } | |
31516 | ||
31517 | ||
48a0c021 RD |
31518 | SWIGINTERN PyObject *_wrap_new_GCDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { |
31519 | PyObject *resultobj = 0; | |
31520 | wxWindow *arg1 = (wxWindow *) 0 ; | |
31521 | wxGCDC *result = 0 ; | |
31522 | void *argp1 = 0 ; | |
31523 | int res1 = 0 ; | |
31524 | ||
31525 | if ((nobjs < 1) || (nobjs > 1)) SWIG_fail; | |
31526 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
31527 | if (!SWIG_IsOK(res1)) { | |
31528 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_GCDC" "', expected argument " "1"" of type '" "wxWindow *""'"); | |
31529 | } | |
31530 | arg1 = reinterpret_cast< wxWindow * >(argp1); | |
31531 | { | |
31532 | if (!wxPyCheckForApp()) SWIG_fail; | |
31533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31534 | result = (wxGCDC *)new wxGCDC(arg1); | |
31535 | wxPyEndAllowThreads(__tstate); | |
31536 | if (PyErr_Occurred()) SWIG_fail; | |
31537 | } | |
31538 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGCDC, SWIG_POINTER_NEW | 0 ); | |
31539 | return resultobj; | |
31540 | fail: | |
31541 | return NULL; | |
31542 | } | |
31543 | ||
31544 | ||
31545 | SWIGINTERN PyObject *_wrap_new_GCDC(PyObject *self, PyObject *args) { | |
31546 | int argc; | |
31547 | PyObject *argv[2]; | |
31548 | ||
31549 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_GCDC",0,1,argv))) SWIG_fail; | |
31550 | --argc; | |
31551 | if (argc == 1) { | |
31552 | int _v = 0; | |
31553 | { | |
31554 | int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_wxWindowDC, 0); | |
31555 | _v = SWIG_CheckState(res); | |
31556 | } | |
31557 | if (!_v) goto check_1; | |
31558 | return _wrap_new_GCDC__SWIG_0(self, argc, argv); | |
31559 | } | |
31560 | check_1: | |
31561 | ||
31562 | if (argc == 1) { | |
31563 | return _wrap_new_GCDC__SWIG_1(self, argc, argv); | |
31564 | } | |
31565 | ||
31566 | fail: | |
31567 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_GCDC'"); | |
31568 | return NULL; | |
31569 | } | |
31570 | ||
31571 | ||
72ef6efb RD |
31572 | SWIGINTERN PyObject *_wrap_delete_GCDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31573 | PyObject *resultobj = 0; | |
31574 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31575 | void *argp1 = 0 ; | |
31576 | int res1 = 0 ; | |
31577 | PyObject *swig_obj[1] ; | |
31578 | ||
31579 | if (!args) SWIG_fail; | |
31580 | swig_obj[0] = args; | |
31581 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, SWIG_POINTER_DISOWN | 0 ); | |
31582 | if (!SWIG_IsOK(res1)) { | |
31583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GCDC" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
31584 | } | |
31585 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31586 | { | |
72ef6efb RD |
31587 | delete arg1; |
31588 | ||
72ef6efb RD |
31589 | if (PyErr_Occurred()) SWIG_fail; |
31590 | } | |
31591 | resultobj = SWIG_Py_Void(); | |
31592 | return resultobj; | |
31593 | fail: | |
31594 | return NULL; | |
31595 | } | |
31596 | ||
31597 | ||
0a27f394 | 31598 | SWIGINTERN PyObject *_wrap_GCDC_GetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
72ef6efb RD |
31599 | PyObject *resultobj = 0; |
31600 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31601 | wxGraphicsContext *result = 0 ; | |
31602 | void *argp1 = 0 ; | |
31603 | int res1 = 0 ; | |
31604 | PyObject *swig_obj[1] ; | |
31605 | ||
31606 | if (!args) SWIG_fail; | |
31607 | swig_obj[0] = args; | |
31608 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
31609 | if (!SWIG_IsOK(res1)) { | |
0a27f394 | 31610 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_GetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); |
72ef6efb RD |
31611 | } |
31612 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31613 | { | |
0a27f394 | 31614 | result = (wxGraphicsContext *)(arg1)->GetGraphicsContext(); |
72ef6efb RD |
31615 | if (PyErr_Occurred()) SWIG_fail; |
31616 | } | |
31617 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
31618 | return resultobj; | |
31619 | fail: | |
31620 | return NULL; | |
31621 | } | |
31622 | ||
31623 | ||
0a27f394 RD |
31624 | SWIGINTERN PyObject *_wrap_GCDC_SetGraphicsContext(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31625 | PyObject *resultobj = 0; | |
31626 | wxGCDC *arg1 = (wxGCDC *) 0 ; | |
31627 | wxGraphicsContext *arg2 = (wxGraphicsContext *) 0 ; | |
31628 | void *argp1 = 0 ; | |
31629 | int res1 = 0 ; | |
31630 | void *argp2 = 0 ; | |
31631 | int res2 = 0 ; | |
31632 | PyObject * obj0 = 0 ; | |
31633 | PyObject * obj1 = 0 ; | |
31634 | char * kwnames[] = { | |
31635 | (char *) "self",(char *) "ctx", NULL | |
31636 | }; | |
31637 | ||
31638 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GCDC_SetGraphicsContext",kwnames,&obj0,&obj1)) SWIG_fail; | |
31639 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxGCDC, 0 | 0 ); | |
31640 | if (!SWIG_IsOK(res1)) { | |
31641 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "1"" of type '" "wxGCDC *""'"); | |
31642 | } | |
31643 | arg1 = reinterpret_cast< wxGCDC * >(argp1); | |
31644 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxGraphicsContext, 0 | 0 ); | |
31645 | if (!SWIG_IsOK(res2)) { | |
31646 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "GCDC_SetGraphicsContext" "', expected argument " "2"" of type '" "wxGraphicsContext *""'"); | |
31647 | } | |
31648 | arg2 = reinterpret_cast< wxGraphicsContext * >(argp2); | |
31649 | { | |
31650 | (arg1)->SetGraphicsContext(arg2); | |
31651 | if (PyErr_Occurred()) SWIG_fail; | |
31652 | } | |
31653 | resultobj = SWIG_Py_Void(); | |
31654 | return resultobj; | |
31655 | fail: | |
31656 | return NULL; | |
31657 | } | |
31658 | ||
31659 | ||
72ef6efb RD |
31660 | SWIGINTERN PyObject *GCDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31661 | PyObject *obj; | |
31662 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31663 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGCDC, SWIG_NewClientData(obj)); | |
31664 | return SWIG_Py_Void(); | |
31665 | } | |
31666 | ||
31667 | SWIGINTERN PyObject *GCDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31668 | return SWIG_Python_InitShadowInstance(args); | |
31669 | } | |
31670 | ||
b39fe951 RD |
31671 | SWIGINTERN PyObject *_wrap_new_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
31672 | PyObject *resultobj = 0; | |
31673 | wxOverlay *result = 0 ; | |
31674 | ||
31675 | if (!SWIG_Python_UnpackTuple(args,"new_Overlay",0,0,0)) SWIG_fail; | |
31676 | { | |
31677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31678 | result = (wxOverlay *)new wxOverlay(); | |
31679 | wxPyEndAllowThreads(__tstate); | |
31680 | if (PyErr_Occurred()) SWIG_fail; | |
31681 | } | |
31682 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxOverlay, SWIG_POINTER_NEW | 0 ); | |
31683 | return resultobj; | |
31684 | fail: | |
31685 | return NULL; | |
31686 | } | |
31687 | ||
31688 | ||
31689 | SWIGINTERN PyObject *_wrap_delete_Overlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31690 | PyObject *resultobj = 0; | |
31691 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
31692 | void *argp1 = 0 ; | |
31693 | int res1 = 0 ; | |
31694 | PyObject *swig_obj[1] ; | |
31695 | ||
31696 | if (!args) SWIG_fail; | |
31697 | swig_obj[0] = args; | |
31698 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, SWIG_POINTER_DISOWN | 0 ); | |
31699 | if (!SWIG_IsOK(res1)) { | |
31700 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Overlay" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
31701 | } | |
31702 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31703 | { | |
31704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31705 | delete arg1; | |
31706 | ||
31707 | wxPyEndAllowThreads(__tstate); | |
31708 | if (PyErr_Occurred()) SWIG_fail; | |
31709 | } | |
31710 | resultobj = SWIG_Py_Void(); | |
31711 | return resultobj; | |
31712 | fail: | |
31713 | return NULL; | |
31714 | } | |
31715 | ||
31716 | ||
31717 | SWIGINTERN PyObject *_wrap_Overlay_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31718 | PyObject *resultobj = 0; | |
31719 | wxOverlay *arg1 = (wxOverlay *) 0 ; | |
31720 | void *argp1 = 0 ; | |
31721 | int res1 = 0 ; | |
31722 | PyObject *swig_obj[1] ; | |
31723 | ||
31724 | if (!args) SWIG_fail; | |
31725 | swig_obj[0] = args; | |
31726 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxOverlay, 0 | 0 ); | |
31727 | if (!SWIG_IsOK(res1)) { | |
31728 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Overlay_Reset" "', expected argument " "1"" of type '" "wxOverlay *""'"); | |
31729 | } | |
31730 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31731 | { | |
31732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31733 | (arg1)->Reset(); | |
31734 | wxPyEndAllowThreads(__tstate); | |
31735 | if (PyErr_Occurred()) SWIG_fail; | |
31736 | } | |
31737 | resultobj = SWIG_Py_Void(); | |
31738 | return resultobj; | |
31739 | fail: | |
31740 | return NULL; | |
31741 | } | |
31742 | ||
31743 | ||
31744 | SWIGINTERN PyObject *Overlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31745 | PyObject *obj; | |
31746 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31747 | SWIG_TypeNewClientData(SWIGTYPE_p_wxOverlay, SWIG_NewClientData(obj)); | |
31748 | return SWIG_Py_Void(); | |
31749 | } | |
31750 | ||
31751 | SWIGINTERN PyObject *Overlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31752 | return SWIG_Python_InitShadowInstance(args); | |
31753 | } | |
31754 | ||
31755 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
31756 | PyObject *resultobj = 0; | |
31757 | wxOverlay *arg1 = 0 ; | |
31758 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
31759 | int arg3 ; | |
31760 | int arg4 ; | |
31761 | int arg5 ; | |
31762 | int arg6 ; | |
31763 | wxDCOverlay *result = 0 ; | |
31764 | void *argp1 = 0 ; | |
31765 | int res1 = 0 ; | |
31766 | void *argp2 = 0 ; | |
31767 | int res2 = 0 ; | |
31768 | int val3 ; | |
31769 | int ecode3 = 0 ; | |
31770 | int val4 ; | |
31771 | int ecode4 = 0 ; | |
31772 | int val5 ; | |
31773 | int ecode5 = 0 ; | |
31774 | int val6 ; | |
31775 | int ecode6 = 0 ; | |
31776 | ||
31777 | if ((nobjs < 6) || (nobjs > 6)) SWIG_fail; | |
31778 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
31779 | if (!SWIG_IsOK(res1)) { | |
31780 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31781 | } | |
31782 | if (!argp1) { | |
31783 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31784 | } | |
31785 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31786 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
31787 | if (!SWIG_IsOK(res2)) { | |
31788 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
31789 | } | |
31790 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
31791 | ecode3 = SWIG_AsVal_int(swig_obj[2], &val3); | |
31792 | if (!SWIG_IsOK(ecode3)) { | |
31793 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_DCOverlay" "', expected argument " "3"" of type '" "int""'"); | |
31794 | } | |
31795 | arg3 = static_cast< int >(val3); | |
31796 | ecode4 = SWIG_AsVal_int(swig_obj[3], &val4); | |
31797 | if (!SWIG_IsOK(ecode4)) { | |
31798 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_DCOverlay" "', expected argument " "4"" of type '" "int""'"); | |
31799 | } | |
31800 | arg4 = static_cast< int >(val4); | |
31801 | ecode5 = SWIG_AsVal_int(swig_obj[4], &val5); | |
31802 | if (!SWIG_IsOK(ecode5)) { | |
31803 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_DCOverlay" "', expected argument " "5"" of type '" "int""'"); | |
31804 | } | |
31805 | arg5 = static_cast< int >(val5); | |
31806 | ecode6 = SWIG_AsVal_int(swig_obj[5], &val6); | |
31807 | if (!SWIG_IsOK(ecode6)) { | |
31808 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "new_DCOverlay" "', expected argument " "6"" of type '" "int""'"); | |
31809 | } | |
31810 | arg6 = static_cast< int >(val6); | |
31811 | { | |
31812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31813 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2,arg3,arg4,arg5,arg6); | |
31814 | wxPyEndAllowThreads(__tstate); | |
31815 | if (PyErr_Occurred()) SWIG_fail; | |
31816 | } | |
31817 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
31818 | return resultobj; | |
31819 | fail: | |
31820 | return NULL; | |
31821 | } | |
31822 | ||
31823 | ||
31824 | SWIGINTERN PyObject *_wrap_new_DCOverlay__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) { | |
31825 | PyObject *resultobj = 0; | |
31826 | wxOverlay *arg1 = 0 ; | |
31827 | wxWindowDC *arg2 = (wxWindowDC *) 0 ; | |
31828 | wxDCOverlay *result = 0 ; | |
31829 | void *argp1 = 0 ; | |
31830 | int res1 = 0 ; | |
31831 | void *argp2 = 0 ; | |
31832 | int res2 = 0 ; | |
31833 | ||
31834 | if ((nobjs < 2) || (nobjs > 2)) SWIG_fail; | |
31835 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_wxOverlay, 0 ); | |
31836 | if (!SWIG_IsOK(res1)) { | |
31837 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31838 | } | |
31839 | if (!argp1) { | |
31840 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_DCOverlay" "', expected argument " "1"" of type '" "wxOverlay &""'"); | |
31841 | } | |
31842 | arg1 = reinterpret_cast< wxOverlay * >(argp1); | |
31843 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxWindowDC, 0 | 0 ); | |
31844 | if (!SWIG_IsOK(res2)) { | |
31845 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DCOverlay" "', expected argument " "2"" of type '" "wxWindowDC *""'"); | |
31846 | } | |
31847 | arg2 = reinterpret_cast< wxWindowDC * >(argp2); | |
31848 | { | |
31849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31850 | result = (wxDCOverlay *)new wxDCOverlay(*arg1,arg2); | |
31851 | wxPyEndAllowThreads(__tstate); | |
31852 | if (PyErr_Occurred()) SWIG_fail; | |
31853 | } | |
31854 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_NEW | 0 ); | |
31855 | return resultobj; | |
31856 | fail: | |
31857 | return NULL; | |
31858 | } | |
31859 | ||
31860 | ||
31861 | SWIGINTERN PyObject *_wrap_new_DCOverlay(PyObject *self, PyObject *args) { | |
31862 | int argc; | |
31863 | PyObject *argv[7]; | |
31864 | ||
31865 | if (!(argc = SWIG_Python_UnpackTuple(args,"new_DCOverlay",0,6,argv))) SWIG_fail; | |
31866 | --argc; | |
31867 | if (argc == 2) { | |
31868 | return _wrap_new_DCOverlay__SWIG_1(self, argc, argv); | |
31869 | } | |
31870 | if (argc == 6) { | |
31871 | return _wrap_new_DCOverlay__SWIG_0(self, argc, argv); | |
31872 | } | |
31873 | ||
31874 | fail: | |
31875 | SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_DCOverlay'"); | |
31876 | return NULL; | |
31877 | } | |
31878 | ||
31879 | ||
31880 | SWIGINTERN PyObject *_wrap_delete_DCOverlay(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31881 | PyObject *resultobj = 0; | |
31882 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
31883 | void *argp1 = 0 ; | |
31884 | int res1 = 0 ; | |
31885 | PyObject *swig_obj[1] ; | |
31886 | ||
31887 | if (!args) SWIG_fail; | |
31888 | swig_obj[0] = args; | |
31889 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, SWIG_POINTER_DISOWN | 0 ); | |
31890 | if (!SWIG_IsOK(res1)) { | |
31891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DCOverlay" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
31892 | } | |
31893 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
31894 | { | |
31895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31896 | delete arg1; | |
31897 | ||
31898 | wxPyEndAllowThreads(__tstate); | |
31899 | if (PyErr_Occurred()) SWIG_fail; | |
31900 | } | |
31901 | resultobj = SWIG_Py_Void(); | |
31902 | return resultobj; | |
31903 | fail: | |
31904 | return NULL; | |
31905 | } | |
31906 | ||
31907 | ||
31908 | SWIGINTERN PyObject *_wrap_DCOverlay_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31909 | PyObject *resultobj = 0; | |
31910 | wxDCOverlay *arg1 = (wxDCOverlay *) 0 ; | |
31911 | void *argp1 = 0 ; | |
31912 | int res1 = 0 ; | |
31913 | PyObject *swig_obj[1] ; | |
31914 | ||
31915 | if (!args) SWIG_fail; | |
31916 | swig_obj[0] = args; | |
31917 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDCOverlay, 0 | 0 ); | |
31918 | if (!SWIG_IsOK(res1)) { | |
31919 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DCOverlay_Clear" "', expected argument " "1"" of type '" "wxDCOverlay *""'"); | |
31920 | } | |
31921 | arg1 = reinterpret_cast< wxDCOverlay * >(argp1); | |
31922 | { | |
31923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31924 | (arg1)->Clear(); | |
31925 | wxPyEndAllowThreads(__tstate); | |
31926 | if (PyErr_Occurred()) SWIG_fail; | |
31927 | } | |
31928 | resultobj = SWIG_Py_Void(); | |
31929 | return resultobj; | |
31930 | fail: | |
31931 | return NULL; | |
31932 | } | |
31933 | ||
31934 | ||
31935 | SWIGINTERN PyObject *DCOverlay_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31936 | PyObject *obj; | |
31937 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
31938 | SWIG_TypeNewClientData(SWIGTYPE_p_wxDCOverlay, SWIG_NewClientData(obj)); | |
31939 | return SWIG_Py_Void(); | |
31940 | } | |
31941 | ||
31942 | SWIGINTERN PyObject *DCOverlay_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
31943 | return SWIG_Python_InitShadowInstance(args); | |
31944 | } | |
31945 | ||
72ef6efb RD |
31946 | SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
31947 | PyObject *resultobj = 0; | |
31948 | int arg1 ; | |
31949 | int arg2 ; | |
31950 | int arg3 = (int) true ; | |
31951 | int arg4 = (int) 1 ; | |
31952 | wxImageList *result = 0 ; | |
31953 | int val1 ; | |
31954 | int ecode1 = 0 ; | |
31955 | int val2 ; | |
31956 | int ecode2 = 0 ; | |
31957 | int val3 ; | |
31958 | int ecode3 = 0 ; | |
31959 | int val4 ; | |
31960 | int ecode4 = 0 ; | |
31961 | PyObject * obj0 = 0 ; | |
31962 | PyObject * obj1 = 0 ; | |
31963 | PyObject * obj2 = 0 ; | |
31964 | PyObject * obj3 = 0 ; | |
31965 | char * kwnames[] = { | |
31966 | (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL | |
31967 | }; | |
31968 | ||
31969 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
31970 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
31971 | if (!SWIG_IsOK(ecode1)) { | |
31972 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'"); | |
31973 | } | |
31974 | arg1 = static_cast< int >(val1); | |
31975 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
31976 | if (!SWIG_IsOK(ecode2)) { | |
31977 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'"); | |
31978 | } | |
31979 | arg2 = static_cast< int >(val2); | |
31980 | if (obj2) { | |
31981 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
31982 | if (!SWIG_IsOK(ecode3)) { | |
31983 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'"); | |
31984 | } | |
31985 | arg3 = static_cast< int >(val3); | |
31986 | } | |
31987 | if (obj3) { | |
31988 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
31989 | if (!SWIG_IsOK(ecode4)) { | |
31990 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'"); | |
31991 | } | |
31992 | arg4 = static_cast< int >(val4); | |
31993 | } | |
31994 | { | |
31995 | if (!wxPyCheckForApp()) SWIG_fail; | |
31996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31997 | result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4); | |
31998 | wxPyEndAllowThreads(__tstate); | |
31999 | if (PyErr_Occurred()) SWIG_fail; | |
32000 | } | |
e02c0a13 | 32001 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxImageList, SWIG_POINTER_NEW | 0 ); |
72ef6efb RD |
32002 | return resultobj; |
32003 | fail: | |
32004 | return NULL; | |
32005 | } | |
32006 | ||
32007 | ||
32008 | SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32009 | PyObject *resultobj = 0; | |
32010 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32011 | void *argp1 = 0 ; | |
32012 | int res1 = 0 ; | |
32013 | PyObject *swig_obj[1] ; | |
32014 | ||
32015 | if (!args) SWIG_fail; | |
32016 | swig_obj[0] = args; | |
32017 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 ); | |
32018 | if (!SWIG_IsOK(res1)) { | |
32019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32020 | } | |
32021 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32022 | { | |
32023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32024 | delete arg1; | |
32025 | ||
32026 | wxPyEndAllowThreads(__tstate); | |
32027 | if (PyErr_Occurred()) SWIG_fail; | |
32028 | } | |
32029 | resultobj = SWIG_Py_Void(); | |
32030 | return resultobj; | |
32031 | fail: | |
32032 | return NULL; | |
32033 | } | |
32034 | ||
32035 | ||
32036 | SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32037 | PyObject *resultobj = 0; | |
32038 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32039 | wxBitmap *arg2 = 0 ; | |
32040 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
32041 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
32042 | int result; | |
32043 | void *argp1 = 0 ; | |
32044 | int res1 = 0 ; | |
32045 | void *argp2 = 0 ; | |
32046 | int res2 = 0 ; | |
32047 | void *argp3 = 0 ; | |
32048 | int res3 = 0 ; | |
32049 | PyObject * obj0 = 0 ; | |
32050 | PyObject * obj1 = 0 ; | |
32051 | PyObject * obj2 = 0 ; | |
32052 | char * kwnames[] = { | |
32053 | (char *) "self",(char *) "bitmap",(char *) "mask", NULL | |
32054 | }; | |
32055 | ||
32056 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32057 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32058 | if (!SWIG_IsOK(res1)) { | |
32059 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32060 | } | |
32061 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32062 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32063 | if (!SWIG_IsOK(res2)) { | |
32064 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
32065 | } | |
32066 | if (!argp2) { | |
32067 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
32068 | } | |
32069 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
32070 | if (obj2) { | |
32071 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32072 | if (!SWIG_IsOK(res3)) { | |
32073 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
32074 | } | |
32075 | if (!argp3) { | |
32076 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
32077 | } | |
32078 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
32079 | } | |
32080 | { | |
32081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32082 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3); | |
32083 | wxPyEndAllowThreads(__tstate); | |
32084 | if (PyErr_Occurred()) SWIG_fail; | |
32085 | } | |
32086 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32087 | return resultobj; | |
32088 | fail: | |
32089 | return NULL; | |
32090 | } | |
32091 | ||
32092 | ||
32093 | SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32094 | PyObject *resultobj = 0; | |
32095 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32096 | wxBitmap *arg2 = 0 ; | |
32097 | wxColour *arg3 = 0 ; | |
32098 | int result; | |
32099 | void *argp1 = 0 ; | |
32100 | int res1 = 0 ; | |
32101 | void *argp2 = 0 ; | |
32102 | int res2 = 0 ; | |
32103 | wxColour temp3 ; | |
32104 | PyObject * obj0 = 0 ; | |
32105 | PyObject * obj1 = 0 ; | |
32106 | PyObject * obj2 = 0 ; | |
32107 | char * kwnames[] = { | |
32108 | (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL | |
32109 | }; | |
32110 | ||
32111 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
32112 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32113 | if (!SWIG_IsOK(res1)) { | |
32114 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32115 | } | |
32116 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32117 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32118 | if (!SWIG_IsOK(res2)) { | |
32119 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
32120 | } | |
32121 | if (!argp2) { | |
32122 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
32123 | } | |
32124 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
32125 | { | |
32126 | arg3 = &temp3; | |
32127 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
32128 | } | |
32129 | { | |
32130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32131 | result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3); | |
32132 | wxPyEndAllowThreads(__tstate); | |
32133 | if (PyErr_Occurred()) SWIG_fail; | |
32134 | } | |
32135 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32136 | return resultobj; | |
32137 | fail: | |
32138 | return NULL; | |
32139 | } | |
32140 | ||
32141 | ||
32142 | SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32143 | PyObject *resultobj = 0; | |
32144 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32145 | wxIcon *arg2 = 0 ; | |
32146 | int result; | |
32147 | void *argp1 = 0 ; | |
32148 | int res1 = 0 ; | |
32149 | void *argp2 = 0 ; | |
32150 | int res2 = 0 ; | |
32151 | PyObject * obj0 = 0 ; | |
32152 | PyObject * obj1 = 0 ; | |
32153 | char * kwnames[] = { | |
32154 | (char *) "self",(char *) "icon", NULL | |
32155 | }; | |
32156 | ||
32157 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
32158 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32159 | if (!SWIG_IsOK(res1)) { | |
32160 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32161 | } | |
554f62e9 RD |
32162 | arg1 = reinterpret_cast< wxImageList * >(argp1); |
32163 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
32164 | if (!SWIG_IsOK(res2)) { | |
32165 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
32166 | } | |
32167 | if (!argp2) { | |
32168 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
32169 | } | |
32170 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
32171 | { | |
32172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32173 | result = (int)(arg1)->Add((wxIcon const &)*arg2); | |
32174 | wxPyEndAllowThreads(__tstate); | |
32175 | if (PyErr_Occurred()) SWIG_fail; | |
32176 | } | |
32177 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32178 | return resultobj; | |
32179 | fail: | |
32180 | return NULL; | |
32181 | } | |
32182 | ||
32183 | ||
32184 | SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32185 | PyObject *resultobj = 0; | |
32186 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32187 | int arg2 ; | |
32188 | SwigValueWrapper<wxBitmap > result; | |
32189 | void *argp1 = 0 ; | |
32190 | int res1 = 0 ; | |
32191 | int val2 ; | |
32192 | int ecode2 = 0 ; | |
32193 | PyObject * obj0 = 0 ; | |
32194 | PyObject * obj1 = 0 ; | |
32195 | char * kwnames[] = { | |
32196 | (char *) "self",(char *) "index", NULL | |
32197 | }; | |
32198 | ||
32199 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail; | |
32200 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32201 | if (!SWIG_IsOK(res1)) { | |
32202 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
32203 | } | |
32204 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32205 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32206 | if (!SWIG_IsOK(ecode2)) { | |
32207 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'"); | |
32208 | } | |
32209 | arg2 = static_cast< int >(val2); | |
32210 | { | |
32211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32212 | result = ((wxImageList const *)arg1)->GetBitmap(arg2); | |
32213 | wxPyEndAllowThreads(__tstate); | |
32214 | if (PyErr_Occurred()) SWIG_fail; | |
32215 | } | |
32216 | resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 ); | |
32217 | return resultobj; | |
32218 | fail: | |
32219 | return NULL; | |
32220 | } | |
32221 | ||
32222 | ||
32223 | SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32224 | PyObject *resultobj = 0; | |
32225 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32226 | int arg2 ; | |
32227 | wxIcon result; | |
32228 | void *argp1 = 0 ; | |
32229 | int res1 = 0 ; | |
32230 | int val2 ; | |
32231 | int ecode2 = 0 ; | |
32232 | PyObject * obj0 = 0 ; | |
32233 | PyObject * obj1 = 0 ; | |
32234 | char * kwnames[] = { | |
32235 | (char *) "self",(char *) "index", NULL | |
32236 | }; | |
32237 | ||
32238 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail; | |
32239 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32240 | if (!SWIG_IsOK(res1)) { | |
32241 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'"); | |
32242 | } | |
32243 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32244 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32245 | if (!SWIG_IsOK(ecode2)) { | |
32246 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'"); | |
32247 | } | |
32248 | arg2 = static_cast< int >(val2); | |
32249 | { | |
32250 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32251 | result = ((wxImageList const *)arg1)->GetIcon(arg2); | |
32252 | wxPyEndAllowThreads(__tstate); | |
32253 | if (PyErr_Occurred()) SWIG_fail; | |
32254 | } | |
32255 | resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 ); | |
32256 | return resultobj; | |
32257 | fail: | |
32258 | return NULL; | |
32259 | } | |
32260 | ||
32261 | ||
32262 | SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32263 | PyObject *resultobj = 0; | |
32264 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32265 | int arg2 ; | |
32266 | wxBitmap *arg3 = 0 ; | |
32267 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
32268 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
32269 | bool result; | |
32270 | void *argp1 = 0 ; | |
32271 | int res1 = 0 ; | |
32272 | int val2 ; | |
32273 | int ecode2 = 0 ; | |
32274 | void *argp3 = 0 ; | |
32275 | int res3 = 0 ; | |
32276 | void *argp4 = 0 ; | |
32277 | int res4 = 0 ; | |
32278 | PyObject * obj0 = 0 ; | |
32279 | PyObject * obj1 = 0 ; | |
32280 | PyObject * obj2 = 0 ; | |
32281 | PyObject * obj3 = 0 ; | |
32282 | char * kwnames[] = { | |
32283 | (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL | |
32284 | }; | |
32285 | ||
32286 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
32287 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32288 | if (!SWIG_IsOK(res1)) { | |
32289 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32290 | } | |
32291 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32292 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32293 | if (!SWIG_IsOK(ecode2)) { | |
32294 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'"); | |
32295 | } | |
32296 | arg2 = static_cast< int >(val2); | |
32297 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32298 | if (!SWIG_IsOK(res3)) { | |
32299 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
32300 | } | |
32301 | if (!argp3) { | |
32302 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
32303 | } | |
32304 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
32305 | if (obj3) { | |
32306 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0); | |
32307 | if (!SWIG_IsOK(res4)) { | |
32308 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 32309 | } |
554f62e9 RD |
32310 | if (!argp4) { |
32311 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'"); | |
093d3ff1 | 32312 | } |
554f62e9 RD |
32313 | arg4 = reinterpret_cast< wxBitmap * >(argp4); |
32314 | } | |
32315 | { | |
32316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32317 | result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4); | |
32318 | wxPyEndAllowThreads(__tstate); | |
32319 | if (PyErr_Occurred()) SWIG_fail; | |
32320 | } | |
32321 | { | |
32322 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32323 | } | |
32324 | return resultobj; | |
32325 | fail: | |
32326 | return NULL; | |
32327 | } | |
32328 | ||
32329 | ||
32330 | SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32331 | PyObject *resultobj = 0; | |
32332 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32333 | int arg2 ; | |
32334 | wxDC *arg3 = 0 ; | |
32335 | int arg4 ; | |
32336 | int arg5 ; | |
32337 | int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ; | |
32338 | bool arg7 = (bool) (bool)false ; | |
32339 | bool result; | |
32340 | void *argp1 = 0 ; | |
32341 | int res1 = 0 ; | |
32342 | int val2 ; | |
32343 | int ecode2 = 0 ; | |
32344 | void *argp3 = 0 ; | |
32345 | int res3 = 0 ; | |
32346 | int val4 ; | |
32347 | int ecode4 = 0 ; | |
32348 | int val5 ; | |
32349 | int ecode5 = 0 ; | |
32350 | int val6 ; | |
32351 | int ecode6 = 0 ; | |
32352 | bool val7 ; | |
32353 | int ecode7 = 0 ; | |
32354 | PyObject * obj0 = 0 ; | |
32355 | PyObject * obj1 = 0 ; | |
32356 | PyObject * obj2 = 0 ; | |
32357 | PyObject * obj3 = 0 ; | |
32358 | PyObject * obj4 = 0 ; | |
32359 | PyObject * obj5 = 0 ; | |
32360 | PyObject * obj6 = 0 ; | |
32361 | char * kwnames[] = { | |
32362 | (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL | |
32363 | }; | |
32364 | ||
32365 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
32366 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32367 | if (!SWIG_IsOK(res1)) { | |
32368 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32369 | } | |
32370 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32371 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32372 | if (!SWIG_IsOK(ecode2)) { | |
32373 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'"); | |
32374 | } | |
32375 | arg2 = static_cast< int >(val2); | |
32376 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
32377 | if (!SWIG_IsOK(res3)) { | |
32378 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
32379 | } | |
32380 | if (!argp3) { | |
32381 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'"); | |
32382 | } | |
32383 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
32384 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
32385 | if (!SWIG_IsOK(ecode4)) { | |
32386 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'"); | |
32387 | } | |
32388 | arg4 = static_cast< int >(val4); | |
32389 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
32390 | if (!SWIG_IsOK(ecode5)) { | |
32391 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'"); | |
32392 | } | |
32393 | arg5 = static_cast< int >(val5); | |
32394 | if (obj5) { | |
32395 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
32396 | if (!SWIG_IsOK(ecode6)) { | |
32397 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'"); | |
32398 | } | |
32399 | arg6 = static_cast< int >(val6); | |
32400 | } | |
32401 | if (obj6) { | |
32402 | ecode7 = SWIG_AsVal_bool(obj6, &val7); | |
32403 | if (!SWIG_IsOK(ecode7)) { | |
32404 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'"); | |
32405 | } | |
32406 | arg7 = static_cast< bool >(val7); | |
32407 | } | |
32408 | { | |
32409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32410 | result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7); | |
32411 | wxPyEndAllowThreads(__tstate); | |
32412 | if (PyErr_Occurred()) SWIG_fail; | |
32413 | } | |
32414 | { | |
32415 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32416 | } | |
32417 | return resultobj; | |
32418 | fail: | |
32419 | return NULL; | |
32420 | } | |
32421 | ||
32422 | ||
32423 | SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32424 | PyObject *resultobj = 0; | |
32425 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32426 | int result; | |
32427 | void *argp1 = 0 ; | |
32428 | int res1 = 0 ; | |
32429 | PyObject *swig_obj[1] ; | |
32430 | ||
32431 | if (!args) SWIG_fail; | |
32432 | swig_obj[0] = args; | |
32433 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32434 | if (!SWIG_IsOK(res1)) { | |
32435 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32436 | } | |
32437 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32438 | { | |
32439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32440 | result = (int)(arg1)->GetImageCount(); | |
32441 | wxPyEndAllowThreads(__tstate); | |
32442 | if (PyErr_Occurred()) SWIG_fail; | |
32443 | } | |
32444 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
32445 | return resultobj; | |
32446 | fail: | |
32447 | return NULL; | |
32448 | } | |
32449 | ||
32450 | ||
32451 | SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32452 | PyObject *resultobj = 0; | |
32453 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32454 | int arg2 ; | |
32455 | bool result; | |
32456 | void *argp1 = 0 ; | |
32457 | int res1 = 0 ; | |
32458 | int val2 ; | |
32459 | int ecode2 = 0 ; | |
32460 | PyObject * obj0 = 0 ; | |
32461 | PyObject * obj1 = 0 ; | |
32462 | char * kwnames[] = { | |
32463 | (char *) "self",(char *) "index", NULL | |
32464 | }; | |
32465 | ||
32466 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail; | |
32467 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32468 | if (!SWIG_IsOK(res1)) { | |
32469 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32470 | } | |
32471 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32472 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32473 | if (!SWIG_IsOK(ecode2)) { | |
32474 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'"); | |
32475 | } | |
32476 | arg2 = static_cast< int >(val2); | |
32477 | { | |
32478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32479 | result = (bool)(arg1)->Remove(arg2); | |
32480 | wxPyEndAllowThreads(__tstate); | |
32481 | if (PyErr_Occurred()) SWIG_fail; | |
32482 | } | |
32483 | { | |
32484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32485 | } | |
32486 | return resultobj; | |
32487 | fail: | |
32488 | return NULL; | |
32489 | } | |
32490 | ||
32491 | ||
32492 | SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32493 | PyObject *resultobj = 0; | |
32494 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32495 | bool result; | |
32496 | void *argp1 = 0 ; | |
32497 | int res1 = 0 ; | |
32498 | PyObject *swig_obj[1] ; | |
32499 | ||
32500 | if (!args) SWIG_fail; | |
32501 | swig_obj[0] = args; | |
32502 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32503 | if (!SWIG_IsOK(res1)) { | |
32504 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32505 | } | |
32506 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32507 | { | |
32508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32509 | result = (bool)(arg1)->RemoveAll(); | |
32510 | wxPyEndAllowThreads(__tstate); | |
32511 | if (PyErr_Occurred()) SWIG_fail; | |
32512 | } | |
32513 | { | |
32514 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
32515 | } | |
32516 | return resultobj; | |
32517 | fail: | |
32518 | return NULL; | |
32519 | } | |
32520 | ||
32521 | ||
32522 | SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
32523 | PyObject *resultobj = 0; | |
32524 | wxImageList *arg1 = (wxImageList *) 0 ; | |
32525 | int arg2 ; | |
32526 | int *arg3 = 0 ; | |
32527 | int *arg4 = 0 ; | |
32528 | void *argp1 = 0 ; | |
32529 | int res1 = 0 ; | |
32530 | int val2 ; | |
32531 | int ecode2 = 0 ; | |
32532 | int temp3 ; | |
32533 | int res3 = SWIG_TMPOBJ ; | |
32534 | int temp4 ; | |
32535 | int res4 = SWIG_TMPOBJ ; | |
32536 | PyObject * obj0 = 0 ; | |
32537 | PyObject * obj1 = 0 ; | |
32538 | char * kwnames[] = { | |
32539 | (char *) "self",(char *) "index", NULL | |
32540 | }; | |
32541 | ||
32542 | arg3 = &temp3; | |
32543 | arg4 = &temp4; | |
32544 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail; | |
32545 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 ); | |
32546 | if (!SWIG_IsOK(res1)) { | |
32547 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'"); | |
32548 | } | |
32549 | arg1 = reinterpret_cast< wxImageList * >(argp1); | |
32550 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32551 | if (!SWIG_IsOK(ecode2)) { | |
32552 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'"); | |
32553 | } | |
32554 | arg2 = static_cast< int >(val2); | |
32555 | { | |
32556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32557 | (arg1)->GetSize(arg2,*arg3,*arg4); | |
32558 | wxPyEndAllowThreads(__tstate); | |
32559 | if (PyErr_Occurred()) SWIG_fail; | |
32560 | } | |
32561 | resultobj = SWIG_Py_Void(); | |
32562 | if (SWIG_IsTmpObj(res3)) { | |
32563 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3))); | |
32564 | } else { | |
32565 | int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
32566 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags)); | |
32567 | } | |
32568 | if (SWIG_IsTmpObj(res4)) { | |
32569 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4))); | |
32570 | } else { | |
32571 | int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ; | |
32572 | resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags)); | |
32573 | } | |
32574 | return resultobj; | |
32575 | fail: | |
32576 | return NULL; | |
32577 | } | |
32578 | ||
32579 | ||
32580 | SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32581 | PyObject *obj; | |
32582 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32583 | SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj)); | |
32584 | return SWIG_Py_Void(); | |
32585 | } | |
32586 | ||
32587 | SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32588 | return SWIG_Python_InitShadowInstance(args); | |
32589 | } | |
32590 | ||
50efceee RD |
32591 | SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32592 | PyObject *resultobj = 0; | |
32593 | wxStockGDI *result = 0 ; | |
554f62e9 | 32594 | |
50efceee RD |
32595 | if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail; |
32596 | { | |
32597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32598 | result = (wxStockGDI *)new wxStockGDI(); | |
32599 | wxPyEndAllowThreads(__tstate); | |
32600 | if (PyErr_Occurred()) SWIG_fail; | |
32601 | } | |
32602 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 ); | |
32603 | return resultobj; | |
32604 | fail: | |
32605 | return NULL; | |
554f62e9 RD |
32606 | } |
32607 | ||
32608 | ||
50efceee RD |
32609 | SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32610 | PyObject *resultobj = 0; | |
32611 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
32612 | void *argp1 = 0 ; | |
32613 | int res1 = 0 ; | |
32614 | PyObject *swig_obj[1] ; | |
554f62e9 | 32615 | |
50efceee RD |
32616 | if (!args) SWIG_fail; |
32617 | swig_obj[0] = args; | |
32618 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 ); | |
32619 | if (!SWIG_IsOK(res1)) { | |
32620 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
32621 | } | |
32622 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
32623 | { | |
32624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32625 | delete arg1; | |
32626 | ||
32627 | wxPyEndAllowThreads(__tstate); | |
32628 | if (PyErr_Occurred()) SWIG_fail; | |
32629 | } | |
32630 | resultobj = SWIG_Py_Void(); | |
32631 | return resultobj; | |
32632 | fail: | |
32633 | return NULL; | |
554f62e9 RD |
32634 | } |
32635 | ||
32636 | ||
50efceee RD |
32637 | SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32638 | PyObject *resultobj = 0; | |
554f62e9 | 32639 | |
50efceee RD |
32640 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail; |
32641 | { | |
32642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32643 | wxStockGDI::DeleteAll(); | |
32644 | wxPyEndAllowThreads(__tstate); | |
32645 | if (PyErr_Occurred()) SWIG_fail; | |
32646 | } | |
32647 | resultobj = SWIG_Py_Void(); | |
32648 | return resultobj; | |
32649 | fail: | |
32650 | return NULL; | |
554f62e9 RD |
32651 | } |
32652 | ||
32653 | ||
50efceee RD |
32654 | SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32655 | PyObject *resultobj = 0; | |
32656 | wxStockGDI *result = 0 ; | |
554f62e9 | 32657 | |
50efceee RD |
32658 | if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail; |
32659 | { | |
32660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32661 | { | |
32662 | wxStockGDI &_result_ref = wxStockGDI::instance(); | |
32663 | result = (wxStockGDI *) &_result_ref; | |
32664 | } | |
32665 | wxPyEndAllowThreads(__tstate); | |
32666 | if (PyErr_Occurred()) SWIG_fail; | |
32667 | } | |
32668 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
32669 | return resultobj; | |
32670 | fail: | |
32671 | return NULL; | |
554f62e9 RD |
32672 | } |
32673 | ||
32674 | ||
50efceee RD |
32675 | SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32676 | PyObject *resultobj = 0; | |
32677 | wxStockGDI::Item arg1 ; | |
32678 | wxBrush *result = 0 ; | |
32679 | int val1 ; | |
32680 | int ecode1 = 0 ; | |
32681 | PyObject * obj0 = 0 ; | |
32682 | char * kwnames[] = { | |
32683 | (char *) "item", NULL | |
32684 | }; | |
32685 | ||
32686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail; | |
32687 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32688 | if (!SWIG_IsOK(ecode1)) { | |
32689 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32690 | } | |
32691 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32692 | { | |
32693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32694 | result = (wxBrush *)wxStockGDI::GetBrush(arg1); | |
32695 | wxPyEndAllowThreads(__tstate); | |
32696 | if (PyErr_Occurred()) SWIG_fail; | |
32697 | } | |
32698 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
32699 | return resultobj; | |
32700 | fail: | |
32701 | return NULL; | |
554f62e9 RD |
32702 | } |
32703 | ||
32704 | ||
50efceee RD |
32705 | SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32706 | PyObject *resultobj = 0; | |
32707 | wxStockGDI::Item arg1 ; | |
32708 | wxColour *result = 0 ; | |
32709 | int val1 ; | |
32710 | int ecode1 = 0 ; | |
32711 | PyObject * obj0 = 0 ; | |
32712 | char * kwnames[] = { | |
32713 | (char *) "item", NULL | |
32714 | }; | |
554f62e9 | 32715 | |
50efceee RD |
32716 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail; |
32717 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32718 | if (!SWIG_IsOK(ecode1)) { | |
32719 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32720 | } | |
32721 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32722 | { | |
32723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32724 | result = (wxColour *)wxStockGDI::GetColour(arg1); | |
32725 | wxPyEndAllowThreads(__tstate); | |
32726 | if (PyErr_Occurred()) SWIG_fail; | |
32727 | } | |
32728 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
32729 | return resultobj; | |
32730 | fail: | |
32731 | return NULL; | |
554f62e9 RD |
32732 | } |
32733 | ||
32734 | ||
50efceee RD |
32735 | SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32736 | PyObject *resultobj = 0; | |
32737 | wxStockGDI::Item arg1 ; | |
32738 | wxCursor *result = 0 ; | |
32739 | int val1 ; | |
32740 | int ecode1 = 0 ; | |
32741 | PyObject * obj0 = 0 ; | |
32742 | char * kwnames[] = { | |
32743 | (char *) "item", NULL | |
32744 | }; | |
32745 | ||
32746 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail; | |
32747 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32748 | if (!SWIG_IsOK(ecode1)) { | |
32749 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32750 | } | |
32751 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32752 | { | |
32753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32754 | result = (wxCursor *)wxStockGDI::GetCursor(arg1); | |
32755 | wxPyEndAllowThreads(__tstate); | |
32756 | if (PyErr_Occurred()) SWIG_fail; | |
32757 | } | |
32758 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 ); | |
32759 | return resultobj; | |
32760 | fail: | |
32761 | return NULL; | |
554f62e9 RD |
32762 | } |
32763 | ||
32764 | ||
50efceee RD |
32765 | SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32766 | PyObject *resultobj = 0; | |
32767 | wxStockGDI::Item arg1 ; | |
32768 | wxPen *result = 0 ; | |
32769 | int val1 ; | |
32770 | int ecode1 = 0 ; | |
32771 | PyObject * obj0 = 0 ; | |
32772 | char * kwnames[] = { | |
32773 | (char *) "item", NULL | |
32774 | }; | |
32775 | ||
32776 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail; | |
32777 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
32778 | if (!SWIG_IsOK(ecode1)) { | |
32779 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'"); | |
32780 | } | |
32781 | arg1 = static_cast< wxStockGDI::Item >(val1); | |
32782 | { | |
32783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32784 | result = (wxPen *)wxStockGDI::GetPen(arg1); | |
32785 | wxPyEndAllowThreads(__tstate); | |
32786 | if (PyErr_Occurred()) SWIG_fail; | |
32787 | } | |
32788 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
32789 | return resultobj; | |
32790 | fail: | |
32791 | return NULL; | |
554f62e9 RD |
32792 | } |
32793 | ||
32794 | ||
50efceee RD |
32795 | SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
32796 | PyObject *resultobj = 0; | |
32797 | wxStockGDI *arg1 = (wxStockGDI *) 0 ; | |
32798 | wxStockGDI::Item arg2 ; | |
32799 | wxFont *result = 0 ; | |
32800 | void *argp1 = 0 ; | |
32801 | int res1 = 0 ; | |
32802 | int val2 ; | |
32803 | int ecode2 = 0 ; | |
32804 | PyObject * obj0 = 0 ; | |
32805 | PyObject * obj1 = 0 ; | |
32806 | char * kwnames[] = { | |
32807 | (char *) "self",(char *) "item", NULL | |
32808 | }; | |
554f62e9 | 32809 | |
50efceee RD |
32810 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail; |
32811 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 ); | |
32812 | if (!SWIG_IsOK(res1)) { | |
32813 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'"); | |
32814 | } | |
32815 | arg1 = reinterpret_cast< wxStockGDI * >(argp1); | |
32816 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
32817 | if (!SWIG_IsOK(ecode2)) { | |
32818 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'"); | |
32819 | } | |
32820 | arg2 = static_cast< wxStockGDI::Item >(val2); | |
32821 | { | |
32822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32823 | result = (wxFont *)(arg1)->GetFont(arg2); | |
32824 | wxPyEndAllowThreads(__tstate); | |
32825 | if (PyErr_Occurred()) SWIG_fail; | |
32826 | } | |
32827 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
32828 | return resultobj; | |
32829 | fail: | |
32830 | return NULL; | |
554f62e9 RD |
32831 | } |
32832 | ||
32833 | ||
50efceee RD |
32834 | SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32835 | PyObject *obj; | |
32836 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
32837 | SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj)); | |
32838 | return SWIG_Py_Void(); | |
554f62e9 RD |
32839 | } |
32840 | ||
50efceee RD |
32841 | SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
32842 | return SWIG_Python_InitShadowInstance(args); | |
554f62e9 RD |
32843 | } |
32844 | ||
554f62e9 RD |
32845 | SWIGINTERN int NullBitmap_set(PyObject *) { |
32846 | SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only."); | |
32847 | return 1; | |
32848 | } | |
32849 | ||
32850 | ||
32851 | SWIGINTERN PyObject *NullBitmap_get(void) { | |
32852 | PyObject *pyobj = 0; | |
32853 | ||
32854 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 ); | |
32855 | return pyobj; | |
32856 | } | |
32857 | ||
32858 | ||
32859 | SWIGINTERN int NullIcon_set(PyObject *) { | |
32860 | SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only."); | |
32861 | return 1; | |
32862 | } | |
32863 | ||
32864 | ||
32865 | SWIGINTERN PyObject *NullIcon_get(void) { | |
32866 | PyObject *pyobj = 0; | |
32867 | ||
32868 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 ); | |
32869 | return pyobj; | |
32870 | } | |
32871 | ||
32872 | ||
32873 | SWIGINTERN int NullCursor_set(PyObject *) { | |
32874 | SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only."); | |
32875 | return 1; | |
32876 | } | |
32877 | ||
32878 | ||
32879 | SWIGINTERN PyObject *NullCursor_get(void) { | |
32880 | PyObject *pyobj = 0; | |
32881 | ||
32882 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 ); | |
32883 | return pyobj; | |
32884 | } | |
32885 | ||
32886 | ||
32887 | SWIGINTERN int NullPen_set(PyObject *) { | |
32888 | SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only."); | |
32889 | return 1; | |
32890 | } | |
32891 | ||
32892 | ||
32893 | SWIGINTERN PyObject *NullPen_get(void) { | |
32894 | PyObject *pyobj = 0; | |
32895 | ||
32896 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 ); | |
32897 | return pyobj; | |
32898 | } | |
32899 | ||
32900 | ||
32901 | SWIGINTERN int NullBrush_set(PyObject *) { | |
32902 | SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only."); | |
32903 | return 1; | |
32904 | } | |
32905 | ||
32906 | ||
32907 | SWIGINTERN PyObject *NullBrush_get(void) { | |
32908 | PyObject *pyobj = 0; | |
32909 | ||
32910 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 ); | |
32911 | return pyobj; | |
32912 | } | |
32913 | ||
32914 | ||
32915 | SWIGINTERN int NullPalette_set(PyObject *) { | |
32916 | SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only."); | |
32917 | return 1; | |
32918 | } | |
32919 | ||
32920 | ||
32921 | SWIGINTERN PyObject *NullPalette_get(void) { | |
32922 | PyObject *pyobj = 0; | |
32923 | ||
32924 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 ); | |
32925 | return pyobj; | |
32926 | } | |
32927 | ||
32928 | ||
32929 | SWIGINTERN int NullFont_set(PyObject *) { | |
32930 | SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only."); | |
32931 | return 1; | |
32932 | } | |
32933 | ||
32934 | ||
32935 | SWIGINTERN PyObject *NullFont_get(void) { | |
32936 | PyObject *pyobj = 0; | |
32937 | ||
32938 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 ); | |
32939 | return pyobj; | |
32940 | } | |
32941 | ||
32942 | ||
32943 | SWIGINTERN int NullColour_set(PyObject *) { | |
32944 | SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only."); | |
32945 | return 1; | |
32946 | } | |
32947 | ||
32948 | ||
32949 | SWIGINTERN PyObject *NullColour_get(void) { | |
32950 | PyObject *pyobj = 0; | |
32951 | ||
32952 | pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 ); | |
32953 | return pyobj; | |
32954 | } | |
32955 | ||
32956 | ||
50efceee | 32957 | SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 32958 | PyObject *resultobj = 0; |
50efceee RD |
32959 | wxGDIObjListBase *result = 0 ; |
32960 | ||
32961 | if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail; | |
32962 | { | |
32963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
32964 | result = (wxGDIObjListBase *)new wxGDIObjListBase(); | |
32965 | wxPyEndAllowThreads(__tstate); | |
32966 | if (PyErr_Occurred()) SWIG_fail; | |
32967 | } | |
32968 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 ); | |
32969 | return resultobj; | |
32970 | fail: | |
32971 | return NULL; | |
32972 | } | |
32973 | ||
32974 | ||
32975 | SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
32976 | PyObject *resultobj = 0; | |
32977 | wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ; | |
554f62e9 RD |
32978 | void *argp1 = 0 ; |
32979 | int res1 = 0 ; | |
50efceee | 32980 | PyObject *swig_obj[1] ; |
554f62e9 | 32981 | |
50efceee RD |
32982 | if (!args) SWIG_fail; |
32983 | swig_obj[0] = args; | |
32984 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 ); | |
554f62e9 | 32985 | if (!SWIG_IsOK(res1)) { |
50efceee | 32986 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'"); |
554f62e9 | 32987 | } |
50efceee | 32988 | arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1); |
554f62e9 RD |
32989 | { |
32990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee RD |
32991 | delete arg1; |
32992 | ||
554f62e9 RD |
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 | ||
50efceee RD |
33003 | SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33004 | PyObject *obj; | |
33005 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33006 | SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj)); | |
33007 | return SWIG_Py_Void(); | |
33008 | } | |
33009 | ||
33010 | SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33011 | return SWIG_Python_InitShadowInstance(args); | |
33012 | } | |
33013 | ||
554f62e9 RD |
33014 | SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33015 | PyObject *resultobj = 0; | |
33016 | wxPenList *arg1 = (wxPenList *) 0 ; | |
33017 | wxColour *arg2 = 0 ; | |
33018 | int arg3 ; | |
33019 | int arg4 ; | |
33020 | wxPen *result = 0 ; | |
33021 | void *argp1 = 0 ; | |
33022 | int res1 = 0 ; | |
33023 | wxColour temp2 ; | |
33024 | int val3 ; | |
33025 | int ecode3 = 0 ; | |
33026 | int val4 ; | |
33027 | int ecode4 = 0 ; | |
33028 | PyObject * obj0 = 0 ; | |
33029 | PyObject * obj1 = 0 ; | |
33030 | PyObject * obj2 = 0 ; | |
33031 | PyObject * obj3 = 0 ; | |
33032 | char * kwnames[] = { | |
33033 | (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL | |
33034 | }; | |
33035 | ||
33036 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
33037 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
33038 | if (!SWIG_IsOK(res1)) { | |
33039 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'"); | |
33040 | } | |
33041 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
33042 | { | |
33043 | arg2 = &temp2; | |
33044 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33045 | } | |
33046 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33047 | if (!SWIG_IsOK(ecode3)) { | |
33048 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'"); | |
33049 | } | |
33050 | arg3 = static_cast< int >(val3); | |
33051 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33052 | if (!SWIG_IsOK(ecode4)) { | |
33053 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'"); | |
33054 | } | |
33055 | arg4 = static_cast< int >(val4); | |
33056 | { | |
33057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33058 | result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4); | |
33059 | wxPyEndAllowThreads(__tstate); | |
33060 | if (PyErr_Occurred()) SWIG_fail; | |
33061 | } | |
33062 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 ); | |
33063 | return resultobj; | |
33064 | fail: | |
33065 | return NULL; | |
33066 | } | |
33067 | ||
33068 | ||
50efceee | 33069 | SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
33070 | PyObject *resultobj = 0; |
33071 | wxPenList *arg1 = (wxPenList *) 0 ; | |
33072 | wxPen *arg2 = (wxPen *) 0 ; | |
33073 | void *argp1 = 0 ; | |
33074 | int res1 = 0 ; | |
33075 | void *argp2 = 0 ; | |
33076 | int res2 = 0 ; | |
33077 | PyObject * obj0 = 0 ; | |
33078 | PyObject * obj1 = 0 ; | |
33079 | char * kwnames[] = { | |
33080 | (char *) "self",(char *) "pen", NULL | |
33081 | }; | |
33082 | ||
50efceee | 33083 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail; |
554f62e9 RD |
33084 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); |
33085 | if (!SWIG_IsOK(res1)) { | |
50efceee | 33086 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
554f62e9 RD |
33087 | } |
33088 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
33089 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); | |
33090 | if (!SWIG_IsOK(res2)) { | |
50efceee | 33091 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'"); |
554f62e9 RD |
33092 | } |
33093 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
33094 | { | |
33095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33096 | (arg1)->AddPen(arg2); |
554f62e9 RD |
33097 | wxPyEndAllowThreads(__tstate); |
33098 | if (PyErr_Occurred()) SWIG_fail; | |
33099 | } | |
33100 | resultobj = SWIG_Py_Void(); | |
33101 | return resultobj; | |
33102 | fail: | |
33103 | return NULL; | |
33104 | } | |
33105 | ||
33106 | ||
50efceee | 33107 | SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
33108 | PyObject *resultobj = 0; |
33109 | wxPenList *arg1 = (wxPenList *) 0 ; | |
50efceee | 33110 | wxPen *arg2 = (wxPen *) 0 ; |
554f62e9 RD |
33111 | void *argp1 = 0 ; |
33112 | int res1 = 0 ; | |
50efceee RD |
33113 | void *argp2 = 0 ; |
33114 | int res2 = 0 ; | |
33115 | PyObject * obj0 = 0 ; | |
33116 | PyObject * obj1 = 0 ; | |
33117 | char * kwnames[] = { | |
33118 | (char *) "self",(char *) "pen", NULL | |
33119 | }; | |
554f62e9 | 33120 | |
50efceee RD |
33121 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail; |
33122 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 ); | |
554f62e9 | 33123 | if (!SWIG_IsOK(res1)) { |
50efceee | 33124 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'"); |
554f62e9 RD |
33125 | } |
33126 | arg1 = reinterpret_cast< wxPenList * >(argp1); | |
50efceee RD |
33127 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 ); |
33128 | if (!SWIG_IsOK(res2)) { | |
33129 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'"); | |
33130 | } | |
33131 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
554f62e9 RD |
33132 | { |
33133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33134 | (arg1)->RemovePen(arg2); |
554f62e9 RD |
33135 | wxPyEndAllowThreads(__tstate); |
33136 | if (PyErr_Occurred()) SWIG_fail; | |
33137 | } | |
50efceee | 33138 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
33139 | return resultobj; |
33140 | fail: | |
33141 | return NULL; | |
33142 | } | |
33143 | ||
33144 | ||
33145 | SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33146 | PyObject *obj; | |
33147 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33148 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj)); | |
33149 | return SWIG_Py_Void(); | |
33150 | } | |
33151 | ||
50efceee RD |
33152 | SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33153 | PyObject *resultobj = 0; | |
33154 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
33155 | wxColour *arg2 = 0 ; | |
33156 | int arg3 = (int) wxSOLID ; | |
33157 | wxBrush *result = 0 ; | |
33158 | void *argp1 = 0 ; | |
33159 | int res1 = 0 ; | |
33160 | wxColour temp2 ; | |
33161 | int val3 ; | |
33162 | int ecode3 = 0 ; | |
33163 | PyObject * obj0 = 0 ; | |
33164 | PyObject * obj1 = 0 ; | |
33165 | PyObject * obj2 = 0 ; | |
33166 | char * kwnames[] = { | |
33167 | (char *) "self",(char *) "colour",(char *) "style", NULL | |
33168 | }; | |
33169 | ||
33170 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33171 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33172 | if (!SWIG_IsOK(res1)) { | |
33173 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
33174 | } | |
33175 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
33176 | { | |
33177 | arg2 = &temp2; | |
33178 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33179 | } | |
33180 | if (obj2) { | |
33181 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33182 | if (!SWIG_IsOK(ecode3)) { | |
33183 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'"); | |
33184 | } | |
33185 | arg3 = static_cast< int >(val3); | |
33186 | } | |
33187 | { | |
33188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33189 | result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3); | |
33190 | wxPyEndAllowThreads(__tstate); | |
33191 | if (PyErr_Occurred()) SWIG_fail; | |
33192 | } | |
33193 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 ); | |
33194 | return resultobj; | |
33195 | fail: | |
33196 | return NULL; | |
33197 | } | |
33198 | ||
33199 | ||
554f62e9 RD |
33200 | SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
33201 | PyObject *resultobj = 0; | |
33202 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
33203 | wxBrush *arg2 = (wxBrush *) 0 ; | |
33204 | void *argp1 = 0 ; | |
33205 | int res1 = 0 ; | |
33206 | void *argp2 = 0 ; | |
33207 | int res2 = 0 ; | |
33208 | PyObject * obj0 = 0 ; | |
33209 | PyObject * obj1 = 0 ; | |
33210 | char * kwnames[] = { | |
33211 | (char *) "self",(char *) "brush", NULL | |
33212 | }; | |
33213 | ||
33214 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
33215 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33216 | if (!SWIG_IsOK(res1)) { | |
33217 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
33218 | } | |
33219 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
33220 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
33221 | if (!SWIG_IsOK(res2)) { | |
33222 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
33223 | } | |
33224 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
33225 | { | |
33226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33227 | (arg1)->AddBrush(arg2); | |
33228 | wxPyEndAllowThreads(__tstate); | |
33229 | if (PyErr_Occurred()) SWIG_fail; | |
33230 | } | |
33231 | resultobj = SWIG_Py_Void(); | |
33232 | return resultobj; | |
33233 | fail: | |
33234 | return NULL; | |
33235 | } | |
33236 | ||
33237 | ||
50efceee | 33238 | SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 RD |
33239 | PyObject *resultobj = 0; |
33240 | wxBrushList *arg1 = (wxBrushList *) 0 ; | |
50efceee | 33241 | wxBrush *arg2 = (wxBrush *) 0 ; |
554f62e9 RD |
33242 | void *argp1 = 0 ; |
33243 | int res1 = 0 ; | |
50efceee RD |
33244 | void *argp2 = 0 ; |
33245 | int res2 = 0 ; | |
33246 | PyObject * obj0 = 0 ; | |
33247 | PyObject * obj1 = 0 ; | |
33248 | char * kwnames[] = { | |
33249 | (char *) "self",(char *) "brush", NULL | |
33250 | }; | |
33251 | ||
33252 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
33253 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33254 | if (!SWIG_IsOK(res1)) { | |
33255 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'"); | |
33256 | } | |
33257 | arg1 = reinterpret_cast< wxBrushList * >(argp1); | |
33258 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 ); | |
33259 | if (!SWIG_IsOK(res2)) { | |
33260 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'"); | |
33261 | } | |
33262 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
33263 | { | |
33264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33265 | (arg1)->RemoveBrush(arg2); | |
33266 | wxPyEndAllowThreads(__tstate); | |
33267 | if (PyErr_Occurred()) SWIG_fail; | |
33268 | } | |
33269 | resultobj = SWIG_Py_Void(); | |
33270 | return resultobj; | |
33271 | fail: | |
33272 | return NULL; | |
33273 | } | |
33274 | ||
33275 | ||
33276 | SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33277 | PyObject *obj; | |
33278 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33279 | SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj)); | |
33280 | return SWIG_Py_Void(); | |
33281 | } | |
33282 | ||
33283 | SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33284 | PyObject *resultobj = 0; | |
33285 | wxFontList *arg1 = (wxFontList *) 0 ; | |
33286 | int arg2 ; | |
33287 | int arg3 ; | |
33288 | int arg4 ; | |
33289 | int arg5 ; | |
33290 | bool arg6 = (bool) false ; | |
33291 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
33292 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
33293 | wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ; | |
33294 | wxFont *result = 0 ; | |
33295 | void *argp1 = 0 ; | |
33296 | int res1 = 0 ; | |
33297 | int val2 ; | |
33298 | int ecode2 = 0 ; | |
554f62e9 RD |
33299 | int val3 ; |
33300 | int ecode3 = 0 ; | |
50efceee RD |
33301 | int val4 ; |
33302 | int ecode4 = 0 ; | |
33303 | int val5 ; | |
33304 | int ecode5 = 0 ; | |
33305 | bool val6 ; | |
33306 | int ecode6 = 0 ; | |
33307 | bool temp7 = false ; | |
33308 | int val8 ; | |
33309 | int ecode8 = 0 ; | |
554f62e9 RD |
33310 | PyObject * obj0 = 0 ; |
33311 | PyObject * obj1 = 0 ; | |
33312 | PyObject * obj2 = 0 ; | |
50efceee RD |
33313 | PyObject * obj3 = 0 ; |
33314 | PyObject * obj4 = 0 ; | |
33315 | PyObject * obj5 = 0 ; | |
33316 | PyObject * obj6 = 0 ; | |
33317 | PyObject * obj7 = 0 ; | |
554f62e9 | 33318 | char * kwnames[] = { |
50efceee | 33319 | (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL |
554f62e9 RD |
33320 | }; |
33321 | ||
50efceee RD |
33322 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail; |
33323 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 33324 | if (!SWIG_IsOK(res1)) { |
50efceee | 33325 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 33326 | } |
50efceee RD |
33327 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
33328 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
33329 | if (!SWIG_IsOK(ecode2)) { | |
33330 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'"); | |
33331 | } | |
33332 | arg2 = static_cast< int >(val2); | |
33333 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
33334 | if (!SWIG_IsOK(ecode3)) { | |
33335 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'"); | |
33336 | } | |
33337 | arg3 = static_cast< int >(val3); | |
33338 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33339 | if (!SWIG_IsOK(ecode4)) { | |
33340 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'"); | |
33341 | } | |
33342 | arg4 = static_cast< int >(val4); | |
33343 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33344 | if (!SWIG_IsOK(ecode5)) { | |
33345 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'"); | |
33346 | } | |
33347 | arg5 = static_cast< int >(val5); | |
33348 | if (obj5) { | |
33349 | ecode6 = SWIG_AsVal_bool(obj5, &val6); | |
33350 | if (!SWIG_IsOK(ecode6)) { | |
33351 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'"); | |
33352 | } | |
33353 | arg6 = static_cast< bool >(val6); | |
554f62e9 | 33354 | } |
50efceee RD |
33355 | if (obj6) { |
33356 | { | |
33357 | arg7 = wxString_in_helper(obj6); | |
33358 | if (arg7 == NULL) SWIG_fail; | |
33359 | temp7 = true; | |
33360 | } | |
33361 | } | |
33362 | if (obj7) { | |
33363 | ecode8 = SWIG_AsVal_int(obj7, &val8); | |
33364 | if (!SWIG_IsOK(ecode8)) { | |
33365 | SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'"); | |
554f62e9 | 33366 | } |
50efceee | 33367 | arg8 = static_cast< wxFontEncoding >(val8); |
554f62e9 RD |
33368 | } |
33369 | { | |
33370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33371 | result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8); |
554f62e9 RD |
33372 | wxPyEndAllowThreads(__tstate); |
33373 | if (PyErr_Occurred()) SWIG_fail; | |
33374 | } | |
50efceee RD |
33375 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); |
33376 | { | |
33377 | if (temp7) | |
33378 | delete arg7; | |
33379 | } | |
554f62e9 RD |
33380 | return resultobj; |
33381 | fail: | |
50efceee RD |
33382 | { |
33383 | if (temp7) | |
33384 | delete arg7; | |
33385 | } | |
554f62e9 RD |
33386 | return NULL; |
33387 | } | |
33388 | ||
33389 | ||
50efceee | 33390 | SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 33391 | PyObject *resultobj = 0; |
50efceee RD |
33392 | wxFontList *arg1 = (wxFontList *) 0 ; |
33393 | wxFont *arg2 = (wxFont *) 0 ; | |
554f62e9 RD |
33394 | void *argp1 = 0 ; |
33395 | int res1 = 0 ; | |
33396 | void *argp2 = 0 ; | |
33397 | int res2 = 0 ; | |
33398 | PyObject * obj0 = 0 ; | |
33399 | PyObject * obj1 = 0 ; | |
33400 | char * kwnames[] = { | |
50efceee | 33401 | (char *) "self",(char *) "font", NULL |
554f62e9 RD |
33402 | }; |
33403 | ||
50efceee RD |
33404 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail; |
33405 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 33406 | if (!SWIG_IsOK(res1)) { |
50efceee | 33407 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 33408 | } |
50efceee RD |
33409 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
33410 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
554f62e9 | 33411 | if (!SWIG_IsOK(res2)) { |
50efceee | 33412 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'"); |
554f62e9 | 33413 | } |
50efceee | 33414 | arg2 = reinterpret_cast< wxFont * >(argp2); |
554f62e9 RD |
33415 | { |
33416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33417 | (arg1)->AddFont(arg2); |
554f62e9 RD |
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 | ||
50efceee | 33428 | SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
554f62e9 | 33429 | PyObject *resultobj = 0; |
50efceee RD |
33430 | wxFontList *arg1 = (wxFontList *) 0 ; |
33431 | wxFont *arg2 = (wxFont *) 0 ; | |
554f62e9 RD |
33432 | void *argp1 = 0 ; |
33433 | int res1 = 0 ; | |
50efceee RD |
33434 | void *argp2 = 0 ; |
33435 | int res2 = 0 ; | |
33436 | PyObject * obj0 = 0 ; | |
33437 | PyObject * obj1 = 0 ; | |
33438 | char * kwnames[] = { | |
33439 | (char *) "self",(char *) "font", NULL | |
33440 | }; | |
554f62e9 | 33441 | |
50efceee RD |
33442 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail; |
33443 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 ); | |
554f62e9 | 33444 | if (!SWIG_IsOK(res1)) { |
50efceee | 33445 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'"); |
554f62e9 | 33446 | } |
50efceee RD |
33447 | arg1 = reinterpret_cast< wxFontList * >(argp1); |
33448 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
33449 | if (!SWIG_IsOK(res2)) { | |
33450 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'"); | |
33451 | } | |
33452 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
554f62e9 RD |
33453 | { |
33454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33455 | (arg1)->RemoveFont(arg2); |
554f62e9 RD |
33456 | wxPyEndAllowThreads(__tstate); |
33457 | if (PyErr_Occurred()) SWIG_fail; | |
33458 | } | |
50efceee | 33459 | resultobj = SWIG_Py_Void(); |
554f62e9 RD |
33460 | return resultobj; |
33461 | fail: | |
33462 | return NULL; | |
33463 | } | |
33464 | ||
33465 | ||
50efceee | 33466 | SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 RD |
33467 | PyObject *obj; |
33468 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
50efceee | 33469 | SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj)); |
554f62e9 RD |
33470 | return SWIG_Py_Void(); |
33471 | } | |
33472 | ||
33473 | SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33474 | PyObject *resultobj = 0; | |
33475 | wxColourDatabase *result = 0 ; | |
33476 | ||
33477 | if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail; | |
33478 | { | |
33479 | if (!wxPyCheckForApp()) SWIG_fail; | |
33480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33481 | result = (wxColourDatabase *)new wxColourDatabase(); | |
33482 | wxPyEndAllowThreads(__tstate); | |
33483 | if (PyErr_Occurred()) SWIG_fail; | |
33484 | } | |
33485 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 ); | |
33486 | return resultobj; | |
33487 | fail: | |
33488 | return NULL; | |
33489 | } | |
33490 | ||
33491 | ||
33492 | SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33493 | PyObject *resultobj = 0; | |
33494 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33495 | void *argp1 = 0 ; | |
33496 | int res1 = 0 ; | |
33497 | PyObject *swig_obj[1] ; | |
33498 | ||
33499 | if (!args) SWIG_fail; | |
33500 | swig_obj[0] = args; | |
33501 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 ); | |
33502 | if (!SWIG_IsOK(res1)) { | |
33503 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
33504 | } | |
33505 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33506 | { | |
33507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33508 | delete arg1; | |
33509 | ||
33510 | wxPyEndAllowThreads(__tstate); | |
33511 | if (PyErr_Occurred()) SWIG_fail; | |
33512 | } | |
33513 | resultobj = SWIG_Py_Void(); | |
33514 | return resultobj; | |
33515 | fail: | |
33516 | return NULL; | |
33517 | } | |
33518 | ||
33519 | ||
33520 | SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33521 | PyObject *resultobj = 0; | |
33522 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33523 | wxString *arg2 = 0 ; | |
33524 | wxColour result; | |
33525 | void *argp1 = 0 ; | |
33526 | int res1 = 0 ; | |
33527 | bool temp2 = false ; | |
33528 | PyObject * obj0 = 0 ; | |
33529 | PyObject * obj1 = 0 ; | |
33530 | char * kwnames[] = { | |
33531 | (char *) "self",(char *) "name", NULL | |
33532 | }; | |
33533 | ||
33534 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail; | |
33535 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33536 | if (!SWIG_IsOK(res1)) { | |
33537 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
33538 | } | |
33539 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33540 | { | |
33541 | arg2 = wxString_in_helper(obj1); | |
33542 | if (arg2 == NULL) SWIG_fail; | |
33543 | temp2 = true; | |
33544 | } | |
33545 | { | |
33546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33547 | result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2); | |
33548 | wxPyEndAllowThreads(__tstate); | |
33549 | if (PyErr_Occurred()) SWIG_fail; | |
33550 | } | |
33551 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33552 | { | |
33553 | if (temp2) | |
33554 | delete arg2; | |
33555 | } | |
33556 | return resultobj; | |
33557 | fail: | |
33558 | { | |
33559 | if (temp2) | |
33560 | delete arg2; | |
33561 | } | |
33562 | return NULL; | |
33563 | } | |
33564 | ||
33565 | ||
33566 | SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33567 | PyObject *resultobj = 0; | |
33568 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33569 | wxColour *arg2 = 0 ; | |
33570 | wxString result; | |
33571 | void *argp1 = 0 ; | |
33572 | int res1 = 0 ; | |
33573 | wxColour temp2 ; | |
33574 | PyObject * obj0 = 0 ; | |
33575 | PyObject * obj1 = 0 ; | |
33576 | char * kwnames[] = { | |
33577 | (char *) "self",(char *) "colour", NULL | |
33578 | }; | |
33579 | ||
33580 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail; | |
33581 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33582 | if (!SWIG_IsOK(res1)) { | |
33583 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'"); | |
33584 | } | |
33585 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33586 | { | |
33587 | arg2 = &temp2; | |
33588 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33589 | } | |
33590 | { | |
33591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33592 | result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2); | |
33593 | wxPyEndAllowThreads(__tstate); | |
33594 | if (PyErr_Occurred()) SWIG_fail; | |
33595 | } | |
33596 | { | |
33597 | #if wxUSE_UNICODE | |
33598 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
33599 | #else | |
33600 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
33601 | #endif | |
33602 | } | |
33603 | return resultobj; | |
33604 | fail: | |
33605 | return NULL; | |
33606 | } | |
33607 | ||
33608 | ||
33609 | SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33610 | PyObject *resultobj = 0; | |
33611 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33612 | wxString *arg2 = 0 ; | |
33613 | wxColour *arg3 = 0 ; | |
33614 | void *argp1 = 0 ; | |
33615 | int res1 = 0 ; | |
33616 | bool temp2 = false ; | |
33617 | wxColour temp3 ; | |
33618 | PyObject * obj0 = 0 ; | |
33619 | PyObject * obj1 = 0 ; | |
33620 | PyObject * obj2 = 0 ; | |
33621 | char * kwnames[] = { | |
33622 | (char *) "self",(char *) "name",(char *) "colour", NULL | |
33623 | }; | |
33624 | ||
33625 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
33626 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33627 | if (!SWIG_IsOK(res1)) { | |
33628 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); | |
33629 | } | |
33630 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33631 | { | |
33632 | arg2 = wxString_in_helper(obj1); | |
33633 | if (arg2 == NULL) SWIG_fail; | |
33634 | temp2 = true; | |
33635 | } | |
33636 | { | |
33637 | arg3 = &temp3; | |
33638 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
33639 | } | |
33640 | { | |
33641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33642 | (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3); | |
33643 | wxPyEndAllowThreads(__tstate); | |
33644 | if (PyErr_Occurred()) SWIG_fail; | |
33645 | } | |
33646 | resultobj = SWIG_Py_Void(); | |
33647 | { | |
33648 | if (temp2) | |
33649 | delete arg2; | |
33650 | } | |
33651 | return resultobj; | |
33652 | fail: | |
33653 | { | |
33654 | if (temp2) | |
33655 | delete arg2; | |
33656 | } | |
33657 | return NULL; | |
33658 | } | |
33659 | ||
33660 | ||
33661 | SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33662 | PyObject *resultobj = 0; | |
33663 | wxColourDatabase *arg1 = (wxColourDatabase *) 0 ; | |
33664 | wxString *arg2 = 0 ; | |
33665 | int arg3 ; | |
33666 | int arg4 ; | |
33667 | int arg5 ; | |
33668 | void *argp1 = 0 ; | |
33669 | int res1 = 0 ; | |
33670 | bool temp2 = false ; | |
33671 | int val3 ; | |
33672 | int ecode3 = 0 ; | |
33673 | int val4 ; | |
33674 | int ecode4 = 0 ; | |
50efceee RD |
33675 | int val5 ; |
33676 | int ecode5 = 0 ; | |
554f62e9 RD |
33677 | PyObject * obj0 = 0 ; |
33678 | PyObject * obj1 = 0 ; | |
33679 | PyObject * obj2 = 0 ; | |
33680 | PyObject * obj3 = 0 ; | |
33681 | PyObject * obj4 = 0 ; | |
554f62e9 | 33682 | char * kwnames[] = { |
50efceee | 33683 | (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL |
554f62e9 RD |
33684 | }; |
33685 | ||
50efceee RD |
33686 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
33687 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
554f62e9 | 33688 | if (!SWIG_IsOK(res1)) { |
50efceee RD |
33689 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'"); |
33690 | } | |
33691 | arg1 = reinterpret_cast< wxColourDatabase * >(argp1); | |
33692 | { | |
33693 | arg2 = wxString_in_helper(obj1); | |
33694 | if (arg2 == NULL) SWIG_fail; | |
33695 | temp2 = true; | |
554f62e9 | 33696 | } |
554f62e9 RD |
33697 | ecode3 = SWIG_AsVal_int(obj2, &val3); |
33698 | if (!SWIG_IsOK(ecode3)) { | |
50efceee | 33699 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'"); |
554f62e9 RD |
33700 | } |
33701 | arg3 = static_cast< int >(val3); | |
33702 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
33703 | if (!SWIG_IsOK(ecode4)) { | |
50efceee | 33704 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'"); |
554f62e9 RD |
33705 | } |
33706 | arg4 = static_cast< int >(val4); | |
33707 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
33708 | if (!SWIG_IsOK(ecode5)) { | |
50efceee | 33709 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'"); |
554f62e9 RD |
33710 | } |
33711 | arg5 = static_cast< int >(val5); | |
554f62e9 RD |
33712 | { |
33713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33714 | wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5); |
554f62e9 RD |
33715 | wxPyEndAllowThreads(__tstate); |
33716 | if (PyErr_Occurred()) SWIG_fail; | |
33717 | } | |
50efceee | 33718 | resultobj = SWIG_Py_Void(); |
554f62e9 | 33719 | { |
50efceee RD |
33720 | if (temp2) |
33721 | delete arg2; | |
554f62e9 RD |
33722 | } |
33723 | return resultobj; | |
33724 | fail: | |
33725 | { | |
50efceee RD |
33726 | if (temp2) |
33727 | delete arg2; | |
554f62e9 RD |
33728 | } |
33729 | return NULL; | |
33730 | } | |
33731 | ||
33732 | ||
50efceee RD |
33733 | SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33734 | PyObject *obj; | |
33735 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
33736 | SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj)); | |
33737 | return SWIG_Py_Void(); | |
33738 | } | |
33739 | ||
33740 | SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33741 | return SWIG_Python_InitShadowInstance(args); | |
33742 | } | |
33743 | ||
33744 | SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
554f62e9 | 33745 | PyObject *resultobj = 0; |
50efceee | 33746 | wxFontList *result = 0 ; |
554f62e9 | 33747 | |
50efceee | 33748 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail; |
554f62e9 RD |
33749 | { |
33750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33751 | result = (wxFontList *)_wxPyInitTheFontList(); |
554f62e9 RD |
33752 | wxPyEndAllowThreads(__tstate); |
33753 | if (PyErr_Occurred()) SWIG_fail; | |
33754 | } | |
50efceee | 33755 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 ); |
554f62e9 RD |
33756 | return resultobj; |
33757 | fail: | |
33758 | return NULL; | |
33759 | } | |
33760 | ||
33761 | ||
50efceee | 33762 | SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
554f62e9 | 33763 | PyObject *resultobj = 0; |
50efceee | 33764 | wxPenList *result = 0 ; |
554f62e9 | 33765 | |
50efceee | 33766 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail; |
554f62e9 RD |
33767 | { |
33768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
50efceee | 33769 | result = (wxPenList *)_wxPyInitThePenList(); |
554f62e9 RD |
33770 | wxPyEndAllowThreads(__tstate); |
33771 | if (PyErr_Occurred()) SWIG_fail; | |
33772 | } | |
50efceee | 33773 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 ); |
554f62e9 RD |
33774 | return resultobj; |
33775 | fail: | |
33776 | return NULL; | |
33777 | } | |
33778 | ||
33779 | ||
50efceee RD |
33780 | SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33781 | PyObject *resultobj = 0; | |
33782 | wxBrushList *result = 0 ; | |
554f62e9 | 33783 | |
50efceee RD |
33784 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail; |
33785 | { | |
33786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33787 | result = (wxBrushList *)_wxPyInitTheBrushList(); | |
33788 | wxPyEndAllowThreads(__tstate); | |
33789 | if (PyErr_Occurred()) SWIG_fail; | |
33790 | } | |
33791 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 ); | |
33792 | return resultobj; | |
33793 | fail: | |
33794 | return NULL; | |
554f62e9 RD |
33795 | } |
33796 | ||
33797 | ||
50efceee RD |
33798 | SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
33799 | PyObject *resultobj = 0; | |
33800 | wxColourDatabase *result = 0 ; | |
554f62e9 | 33801 | |
50efceee RD |
33802 | if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail; |
33803 | { | |
33804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33805 | result = (wxColourDatabase *)_wxPyInitTheColourDatabase(); | |
33806 | wxPyEndAllowThreads(__tstate); | |
33807 | if (PyErr_Occurred()) SWIG_fail; | |
33808 | } | |
33809 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 ); | |
33810 | return resultobj; | |
33811 | fail: | |
33812 | return NULL; | |
554f62e9 RD |
33813 | } |
33814 | ||
33815 | ||
33816 | SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33817 | PyObject *resultobj = 0; | |
33818 | wxEffects *result = 0 ; | |
33819 | ||
33820 | if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail; | |
33821 | { | |
33822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33823 | result = (wxEffects *)new wxEffects(); | |
33824 | wxPyEndAllowThreads(__tstate); | |
33825 | if (PyErr_Occurred()) SWIG_fail; | |
33826 | } | |
33827 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 ); | |
33828 | return resultobj; | |
33829 | fail: | |
33830 | return NULL; | |
33831 | } | |
33832 | ||
33833 | ||
33834 | SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33835 | PyObject *resultobj = 0; | |
33836 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33837 | wxColour result; | |
33838 | void *argp1 = 0 ; | |
33839 | int res1 = 0 ; | |
33840 | PyObject *swig_obj[1] ; | |
33841 | ||
33842 | if (!args) SWIG_fail; | |
33843 | swig_obj[0] = args; | |
33844 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33845 | if (!SWIG_IsOK(res1)) { | |
33846 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33847 | } | |
33848 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33849 | { | |
33850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33851 | result = ((wxEffects const *)arg1)->GetHighlightColour(); | |
33852 | wxPyEndAllowThreads(__tstate); | |
33853 | if (PyErr_Occurred()) SWIG_fail; | |
33854 | } | |
33855 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33856 | return resultobj; | |
33857 | fail: | |
33858 | return NULL; | |
33859 | } | |
33860 | ||
33861 | ||
33862 | SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33863 | PyObject *resultobj = 0; | |
33864 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33865 | wxColour result; | |
33866 | void *argp1 = 0 ; | |
33867 | int res1 = 0 ; | |
33868 | PyObject *swig_obj[1] ; | |
33869 | ||
33870 | if (!args) SWIG_fail; | |
33871 | swig_obj[0] = args; | |
33872 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33873 | if (!SWIG_IsOK(res1)) { | |
33874 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33875 | } | |
33876 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33877 | { | |
33878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33879 | result = ((wxEffects const *)arg1)->GetLightShadow(); | |
33880 | wxPyEndAllowThreads(__tstate); | |
33881 | if (PyErr_Occurred()) SWIG_fail; | |
33882 | } | |
33883 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33884 | return resultobj; | |
33885 | fail: | |
33886 | return NULL; | |
33887 | } | |
33888 | ||
33889 | ||
33890 | SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33891 | PyObject *resultobj = 0; | |
33892 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33893 | wxColour result; | |
33894 | void *argp1 = 0 ; | |
33895 | int res1 = 0 ; | |
33896 | PyObject *swig_obj[1] ; | |
33897 | ||
33898 | if (!args) SWIG_fail; | |
33899 | swig_obj[0] = args; | |
33900 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33901 | if (!SWIG_IsOK(res1)) { | |
33902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33903 | } | |
33904 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33905 | { | |
33906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33907 | result = ((wxEffects const *)arg1)->GetFaceColour(); | |
33908 | wxPyEndAllowThreads(__tstate); | |
33909 | if (PyErr_Occurred()) SWIG_fail; | |
33910 | } | |
33911 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33912 | return resultobj; | |
33913 | fail: | |
33914 | return NULL; | |
33915 | } | |
33916 | ||
33917 | ||
33918 | SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33919 | PyObject *resultobj = 0; | |
33920 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33921 | wxColour result; | |
33922 | void *argp1 = 0 ; | |
33923 | int res1 = 0 ; | |
33924 | PyObject *swig_obj[1] ; | |
33925 | ||
33926 | if (!args) SWIG_fail; | |
33927 | swig_obj[0] = args; | |
33928 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33929 | if (!SWIG_IsOK(res1)) { | |
33930 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33931 | } | |
33932 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33933 | { | |
33934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33935 | result = ((wxEffects const *)arg1)->GetMediumShadow(); | |
33936 | wxPyEndAllowThreads(__tstate); | |
33937 | if (PyErr_Occurred()) SWIG_fail; | |
33938 | } | |
33939 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33940 | return resultobj; | |
33941 | fail: | |
33942 | return NULL; | |
33943 | } | |
33944 | ||
33945 | ||
33946 | SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
33947 | PyObject *resultobj = 0; | |
33948 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33949 | wxColour result; | |
33950 | void *argp1 = 0 ; | |
33951 | int res1 = 0 ; | |
33952 | PyObject *swig_obj[1] ; | |
33953 | ||
33954 | if (!args) SWIG_fail; | |
33955 | swig_obj[0] = args; | |
33956 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33957 | if (!SWIG_IsOK(res1)) { | |
33958 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'"); | |
33959 | } | |
33960 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33961 | { | |
33962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33963 | result = ((wxEffects const *)arg1)->GetDarkShadow(); | |
33964 | wxPyEndAllowThreads(__tstate); | |
33965 | if (PyErr_Occurred()) SWIG_fail; | |
33966 | } | |
33967 | resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 ); | |
33968 | return resultobj; | |
33969 | fail: | |
33970 | return NULL; | |
33971 | } | |
33972 | ||
33973 | ||
33974 | SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
33975 | PyObject *resultobj = 0; | |
33976 | wxEffects *arg1 = (wxEffects *) 0 ; | |
33977 | wxColour *arg2 = 0 ; | |
33978 | void *argp1 = 0 ; | |
33979 | int res1 = 0 ; | |
33980 | wxColour temp2 ; | |
33981 | PyObject * obj0 = 0 ; | |
33982 | PyObject * obj1 = 0 ; | |
33983 | char * kwnames[] = { | |
33984 | (char *) "self",(char *) "c", NULL | |
33985 | }; | |
33986 | ||
33987 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
33988 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
33989 | if (!SWIG_IsOK(res1)) { | |
33990 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
33991 | } | |
33992 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
33993 | { | |
33994 | arg2 = &temp2; | |
33995 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
33996 | } | |
33997 | { | |
33998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
33999 | (arg1)->SetHighlightColour((wxColour const &)*arg2); | |
34000 | wxPyEndAllowThreads(__tstate); | |
34001 | if (PyErr_Occurred()) SWIG_fail; | |
34002 | } | |
34003 | resultobj = SWIG_Py_Void(); | |
34004 | return resultobj; | |
34005 | fail: | |
34006 | return NULL; | |
34007 | } | |
34008 | ||
34009 | ||
34010 | SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34011 | PyObject *resultobj = 0; | |
34012 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34013 | wxColour *arg2 = 0 ; | |
34014 | void *argp1 = 0 ; | |
34015 | int res1 = 0 ; | |
34016 | wxColour temp2 ; | |
34017 | PyObject * obj0 = 0 ; | |
34018 | PyObject * obj1 = 0 ; | |
34019 | char * kwnames[] = { | |
34020 | (char *) "self",(char *) "c", NULL | |
34021 | }; | |
34022 | ||
34023 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
34024 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34025 | if (!SWIG_IsOK(res1)) { | |
34026 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34027 | } | |
34028 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34029 | { | |
34030 | arg2 = &temp2; | |
34031 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
34032 | } | |
34033 | { | |
34034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34035 | (arg1)->SetLightShadow((wxColour const &)*arg2); | |
34036 | wxPyEndAllowThreads(__tstate); | |
34037 | if (PyErr_Occurred()) SWIG_fail; | |
34038 | } | |
34039 | resultobj = SWIG_Py_Void(); | |
34040 | return resultobj; | |
34041 | fail: | |
34042 | return NULL; | |
34043 | } | |
34044 | ||
34045 | ||
34046 | SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34047 | PyObject *resultobj = 0; | |
34048 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34049 | wxColour *arg2 = 0 ; | |
34050 | void *argp1 = 0 ; | |
34051 | int res1 = 0 ; | |
34052 | wxColour temp2 ; | |
34053 | PyObject * obj0 = 0 ; | |
34054 | PyObject * obj1 = 0 ; | |
34055 | char * kwnames[] = { | |
34056 | (char *) "self",(char *) "c", NULL | |
34057 | }; | |
34058 | ||
34059 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail; | |
34060 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34061 | if (!SWIG_IsOK(res1)) { | |
34062 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34063 | } | |
34064 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34065 | { | |
34066 | arg2 = &temp2; | |
34067 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
34068 | } | |
34069 | { | |
34070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34071 | (arg1)->SetFaceColour((wxColour const &)*arg2); | |
34072 | wxPyEndAllowThreads(__tstate); | |
34073 | if (PyErr_Occurred()) SWIG_fail; | |
34074 | } | |
34075 | resultobj = SWIG_Py_Void(); | |
34076 | return resultobj; | |
34077 | fail: | |
34078 | return NULL; | |
34079 | } | |
34080 | ||
34081 | ||
34082 | SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34083 | PyObject *resultobj = 0; | |
34084 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34085 | wxColour *arg2 = 0 ; | |
34086 | void *argp1 = 0 ; | |
34087 | int res1 = 0 ; | |
34088 | wxColour temp2 ; | |
34089 | PyObject * obj0 = 0 ; | |
34090 | PyObject * obj1 = 0 ; | |
34091 | char * kwnames[] = { | |
34092 | (char *) "self",(char *) "c", NULL | |
34093 | }; | |
34094 | ||
34095 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
34096 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34097 | if (!SWIG_IsOK(res1)) { | |
34098 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34099 | } | |
34100 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34101 | { | |
34102 | arg2 = &temp2; | |
34103 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
34104 | } | |
34105 | { | |
34106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34107 | (arg1)->SetMediumShadow((wxColour const &)*arg2); | |
34108 | wxPyEndAllowThreads(__tstate); | |
34109 | if (PyErr_Occurred()) SWIG_fail; | |
34110 | } | |
34111 | resultobj = SWIG_Py_Void(); | |
34112 | return resultobj; | |
34113 | fail: | |
34114 | return NULL; | |
34115 | } | |
34116 | ||
34117 | ||
34118 | SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34119 | PyObject *resultobj = 0; | |
34120 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34121 | wxColour *arg2 = 0 ; | |
34122 | void *argp1 = 0 ; | |
34123 | int res1 = 0 ; | |
34124 | wxColour temp2 ; | |
34125 | PyObject * obj0 = 0 ; | |
34126 | PyObject * obj1 = 0 ; | |
34127 | char * kwnames[] = { | |
34128 | (char *) "self",(char *) "c", NULL | |
34129 | }; | |
34130 | ||
34131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail; | |
34132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34133 | if (!SWIG_IsOK(res1)) { | |
34134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34135 | } | |
34136 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34137 | { | |
34138 | arg2 = &temp2; | |
34139 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
34140 | } | |
34141 | { | |
34142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34143 | (arg1)->SetDarkShadow((wxColour const &)*arg2); | |
34144 | wxPyEndAllowThreads(__tstate); | |
34145 | if (PyErr_Occurred()) SWIG_fail; | |
34146 | } | |
34147 | resultobj = SWIG_Py_Void(); | |
34148 | return resultobj; | |
34149 | fail: | |
34150 | return NULL; | |
34151 | } | |
34152 | ||
34153 | ||
34154 | SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34155 | PyObject *resultobj = 0; | |
34156 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34157 | wxColour *arg2 = 0 ; | |
34158 | wxColour *arg3 = 0 ; | |
34159 | wxColour *arg4 = 0 ; | |
34160 | wxColour *arg5 = 0 ; | |
34161 | wxColour *arg6 = 0 ; | |
34162 | void *argp1 = 0 ; | |
34163 | int res1 = 0 ; | |
34164 | wxColour temp2 ; | |
34165 | wxColour temp3 ; | |
34166 | wxColour temp4 ; | |
34167 | wxColour temp5 ; | |
34168 | wxColour temp6 ; | |
34169 | PyObject * obj0 = 0 ; | |
34170 | PyObject * obj1 = 0 ; | |
34171 | PyObject * obj2 = 0 ; | |
34172 | PyObject * obj3 = 0 ; | |
34173 | PyObject * obj4 = 0 ; | |
34174 | PyObject * obj5 = 0 ; | |
34175 | char * kwnames[] = { | |
34176 | (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL | |
34177 | }; | |
34178 | ||
34179 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
34180 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34181 | if (!SWIG_IsOK(res1)) { | |
34182 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34183 | } | |
34184 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34185 | { | |
34186 | arg2 = &temp2; | |
34187 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
34188 | } | |
34189 | { | |
34190 | arg3 = &temp3; | |
34191 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
34192 | } | |
34193 | { | |
34194 | arg4 = &temp4; | |
34195 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
34196 | } | |
34197 | { | |
34198 | arg5 = &temp5; | |
34199 | if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail; | |
34200 | } | |
34201 | { | |
34202 | arg6 = &temp6; | |
34203 | if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail; | |
34204 | } | |
34205 | { | |
34206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34207 | (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6); | |
34208 | wxPyEndAllowThreads(__tstate); | |
34209 | if (PyErr_Occurred()) SWIG_fail; | |
34210 | } | |
34211 | resultobj = SWIG_Py_Void(); | |
34212 | return resultobj; | |
34213 | fail: | |
34214 | return NULL; | |
34215 | } | |
34216 | ||
34217 | ||
34218 | SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34219 | PyObject *resultobj = 0; | |
34220 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34221 | wxDC *arg2 = 0 ; | |
34222 | wxRect *arg3 = 0 ; | |
34223 | int arg4 = (int) 1 ; | |
34224 | void *argp1 = 0 ; | |
34225 | int res1 = 0 ; | |
34226 | void *argp2 = 0 ; | |
34227 | int res2 = 0 ; | |
34228 | wxRect temp3 ; | |
34229 | int val4 ; | |
34230 | int ecode4 = 0 ; | |
34231 | PyObject * obj0 = 0 ; | |
34232 | PyObject * obj1 = 0 ; | |
34233 | PyObject * obj2 = 0 ; | |
34234 | PyObject * obj3 = 0 ; | |
34235 | char * kwnames[] = { | |
34236 | (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL | |
34237 | }; | |
34238 | ||
34239 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34240 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34241 | if (!SWIG_IsOK(res1)) { | |
34242 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34243 | } | |
34244 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34245 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 ); | |
34246 | if (!SWIG_IsOK(res2)) { | |
34247 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
34248 | } | |
34249 | if (!argp2) { | |
34250 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'"); | |
34251 | } | |
34252 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
34253 | { | |
34254 | arg3 = &temp3; | |
34255 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
34256 | } | |
34257 | if (obj3) { | |
34258 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
34259 | if (!SWIG_IsOK(ecode4)) { | |
34260 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'"); | |
34261 | } | |
34262 | arg4 = static_cast< int >(val4); | |
34263 | } | |
34264 | { | |
34265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34266 | (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4); | |
34267 | wxPyEndAllowThreads(__tstate); | |
34268 | if (PyErr_Occurred()) SWIG_fail; | |
34269 | } | |
34270 | resultobj = SWIG_Py_Void(); | |
34271 | return resultobj; | |
34272 | fail: | |
34273 | return NULL; | |
34274 | } | |
34275 | ||
34276 | ||
34277 | SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34278 | PyObject *resultobj = 0; | |
34279 | wxEffects *arg1 = (wxEffects *) 0 ; | |
34280 | wxRect *arg2 = 0 ; | |
34281 | wxDC *arg3 = 0 ; | |
34282 | wxBitmap *arg4 = 0 ; | |
34283 | bool result; | |
34284 | void *argp1 = 0 ; | |
34285 | int res1 = 0 ; | |
34286 | wxRect temp2 ; | |
34287 | void *argp3 = 0 ; | |
34288 | int res3 = 0 ; | |
34289 | void *argp4 = 0 ; | |
34290 | int res4 = 0 ; | |
34291 | PyObject * obj0 = 0 ; | |
34292 | PyObject * obj1 = 0 ; | |
34293 | PyObject * obj2 = 0 ; | |
34294 | PyObject * obj3 = 0 ; | |
34295 | char * kwnames[] = { | |
34296 | (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL | |
34297 | }; | |
34298 | ||
34299 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
34300 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 ); | |
34301 | if (!SWIG_IsOK(res1)) { | |
34302 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'"); | |
34303 | } | |
34304 | arg1 = reinterpret_cast< wxEffects * >(argp1); | |
34305 | { | |
34306 | arg2 = &temp2; | |
34307 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
34308 | } | |
34309 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
34310 | if (!SWIG_IsOK(res3)) { | |
34311 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34312 | } | |
34313 | if (!argp3) { | |
34314 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'"); | |
34315 | } | |
34316 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
34317 | res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 ); | |
34318 | if (!SWIG_IsOK(res4)) { | |
34319 | SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
34320 | } | |
34321 | if (!argp4) { | |
34322 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'"); | |
34323 | } | |
34324 | arg4 = reinterpret_cast< wxBitmap * >(argp4); | |
34325 | { | |
34326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34327 | result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4); | |
34328 | wxPyEndAllowThreads(__tstate); | |
34329 | if (PyErr_Occurred()) SWIG_fail; | |
34330 | } | |
34331 | { | |
34332 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
34333 | } | |
34334 | return resultobj; | |
34335 | fail: | |
34336 | return NULL; | |
34337 | } | |
34338 | ||
34339 | ||
34340 | SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34341 | PyObject *obj; | |
34342 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34343 | SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj)); | |
34344 | return SWIG_Py_Void(); | |
34345 | } | |
34346 | ||
34347 | SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34348 | return SWIG_Python_InitShadowInstance(args); | |
34349 | } | |
34350 | ||
34351 | SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
34352 | PyObject *resultobj = 0; | |
34353 | int arg1 ; | |
34354 | int arg2 ; | |
34355 | bool arg3 ; | |
34356 | wxSplitterRenderParams *result = 0 ; | |
34357 | int val1 ; | |
34358 | int ecode1 = 0 ; | |
34359 | int val2 ; | |
34360 | int ecode2 = 0 ; | |
34361 | bool val3 ; | |
34362 | int ecode3 = 0 ; | |
34363 | PyObject * obj0 = 0 ; | |
34364 | PyObject * obj1 = 0 ; | |
34365 | PyObject * obj2 = 0 ; | |
34366 | char * kwnames[] = { | |
34367 | (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL | |
34368 | }; | |
34369 | ||
34370 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
34371 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
34372 | if (!SWIG_IsOK(ecode1)) { | |
34373 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'"); | |
34374 | } | |
34375 | arg1 = static_cast< int >(val1); | |
34376 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34377 | if (!SWIG_IsOK(ecode2)) { | |
34378 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'"); | |
34379 | } | |
34380 | arg2 = static_cast< int >(val2); | |
34381 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
34382 | if (!SWIG_IsOK(ecode3)) { | |
34383 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'"); | |
34384 | } | |
34385 | arg3 = static_cast< bool >(val3); | |
34386 | { | |
34387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34388 | result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3); | |
34389 | wxPyEndAllowThreads(__tstate); | |
34390 | if (PyErr_Occurred()) SWIG_fail; | |
34391 | } | |
34392 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 ); | |
34393 | return resultobj; | |
34394 | fail: | |
34395 | return NULL; | |
34396 | } | |
34397 | ||
34398 | ||
34399 | SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34400 | PyObject *resultobj = 0; | |
34401 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34402 | void *argp1 = 0 ; | |
34403 | int res1 = 0 ; | |
34404 | PyObject *swig_obj[1] ; | |
34405 | ||
34406 | if (!args) SWIG_fail; | |
34407 | swig_obj[0] = args; | |
34408 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 ); | |
34409 | if (!SWIG_IsOK(res1)) { | |
34410 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34411 | } | |
34412 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34413 | { | |
34414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34415 | delete arg1; | |
34416 | ||
34417 | wxPyEndAllowThreads(__tstate); | |
34418 | if (PyErr_Occurred()) SWIG_fail; | |
34419 | } | |
34420 | resultobj = SWIG_Py_Void(); | |
34421 | return resultobj; | |
34422 | fail: | |
34423 | return NULL; | |
34424 | } | |
34425 | ||
34426 | ||
34427 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34428 | PyObject *resultobj = 0; | |
34429 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34430 | int result; | |
34431 | void *argp1 = 0 ; | |
34432 | int res1 = 0 ; | |
34433 | PyObject *swig_obj[1] ; | |
34434 | ||
34435 | if (!args) SWIG_fail; | |
34436 | swig_obj[0] = args; | |
34437 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
34438 | if (!SWIG_IsOK(res1)) { | |
34439 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34440 | } | |
34441 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34442 | result = (int)(int) ((arg1)->widthSash); | |
34443 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34444 | return resultobj; | |
34445 | fail: | |
34446 | return NULL; | |
34447 | } | |
34448 | ||
34449 | ||
34450 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34451 | PyObject *resultobj = 0; | |
34452 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34453 | int result; | |
34454 | void *argp1 = 0 ; | |
34455 | int res1 = 0 ; | |
34456 | PyObject *swig_obj[1] ; | |
34457 | ||
34458 | if (!args) SWIG_fail; | |
34459 | swig_obj[0] = args; | |
34460 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
34461 | if (!SWIG_IsOK(res1)) { | |
34462 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34463 | } | |
34464 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34465 | result = (int)(int) ((arg1)->border); | |
34466 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34467 | return resultobj; | |
34468 | fail: | |
34469 | return NULL; | |
34470 | } | |
34471 | ||
34472 | ||
34473 | SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34474 | PyObject *resultobj = 0; | |
34475 | wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ; | |
34476 | bool result; | |
34477 | void *argp1 = 0 ; | |
34478 | int res1 = 0 ; | |
34479 | PyObject *swig_obj[1] ; | |
34480 | ||
34481 | if (!args) SWIG_fail; | |
34482 | swig_obj[0] = args; | |
34483 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 ); | |
34484 | if (!SWIG_IsOK(res1)) { | |
34485 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'"); | |
34486 | } | |
34487 | arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1); | |
34488 | result = (bool)(bool) ((arg1)->isHotSensitive); | |
34489 | resultobj = SWIG_From_bool(static_cast< bool >(result)); | |
34490 | return resultobj; | |
34491 | fail: | |
34492 | return NULL; | |
34493 | } | |
34494 | ||
34495 | ||
34496 | SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34497 | PyObject *obj; | |
34498 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34499 | SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj)); | |
34500 | return SWIG_Py_Void(); | |
34501 | } | |
34502 | ||
34503 | SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34504 | return SWIG_Python_InitShadowInstance(args); | |
34505 | } | |
34506 | ||
33d6fd3b RD |
34507 | SWIGINTERN PyObject *_wrap_new_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
34508 | PyObject *resultobj = 0; | |
34509 | wxHeaderButtonParams *result = 0 ; | |
34510 | ||
34511 | if (!SWIG_Python_UnpackTuple(args,"new_HeaderButtonParams",0,0,0)) SWIG_fail; | |
34512 | { | |
34513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34514 | result = (wxHeaderButtonParams *)new wxHeaderButtonParams(); | |
34515 | wxPyEndAllowThreads(__tstate); | |
34516 | if (PyErr_Occurred()) SWIG_fail; | |
34517 | } | |
34518 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_NEW | 0 ); | |
34519 | return resultobj; | |
34520 | fail: | |
34521 | return NULL; | |
34522 | } | |
34523 | ||
34524 | ||
34525 | SWIGINTERN PyObject *_wrap_delete_HeaderButtonParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34526 | PyObject *resultobj = 0; | |
34527 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34528 | void *argp1 = 0 ; | |
34529 | int res1 = 0 ; | |
34530 | PyObject *swig_obj[1] ; | |
34531 | ||
34532 | if (!args) SWIG_fail; | |
34533 | swig_obj[0] = args; | |
34534 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, SWIG_POINTER_DISOWN | 0 ); | |
34535 | if (!SWIG_IsOK(res1)) { | |
34536 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HeaderButtonParams" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34537 | } | |
34538 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34539 | { | |
34540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34541 | delete arg1; | |
34542 | ||
34543 | wxPyEndAllowThreads(__tstate); | |
34544 | if (PyErr_Occurred()) SWIG_fail; | |
34545 | } | |
34546 | resultobj = SWIG_Py_Void(); | |
34547 | return resultobj; | |
34548 | fail: | |
34549 | return NULL; | |
34550 | } | |
34551 | ||
34552 | ||
34553 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34554 | PyObject *resultobj = 0; | |
34555 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34556 | wxColour *arg2 = (wxColour *) 0 ; | |
34557 | void *argp1 = 0 ; | |
34558 | int res1 = 0 ; | |
34559 | wxColour temp2 ; | |
34560 | PyObject *swig_obj[2] ; | |
34561 | ||
34562 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_arrowColour_set",2,2,swig_obj)) SWIG_fail; | |
34563 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34564 | if (!SWIG_IsOK(res1)) { | |
34565 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34566 | } | |
34567 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34568 | { | |
34569 | arg2 = &temp2; | |
34570 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
34571 | } | |
34572 | if (arg1) (arg1)->m_arrowColour = *arg2; | |
34573 | ||
34574 | resultobj = SWIG_Py_Void(); | |
34575 | return resultobj; | |
34576 | fail: | |
34577 | return NULL; | |
34578 | } | |
34579 | ||
34580 | ||
34581 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_arrowColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34582 | PyObject *resultobj = 0; | |
34583 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34584 | wxColour *result = 0 ; | |
34585 | void *argp1 = 0 ; | |
34586 | int res1 = 0 ; | |
34587 | PyObject *swig_obj[1] ; | |
34588 | ||
34589 | if (!args) SWIG_fail; | |
34590 | swig_obj[0] = args; | |
34591 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34592 | if (!SWIG_IsOK(res1)) { | |
34593 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_arrowColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34594 | } | |
34595 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34596 | result = (wxColour *)& ((arg1)->m_arrowColour); | |
34597 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
34598 | return resultobj; | |
34599 | fail: | |
34600 | return NULL; | |
34601 | } | |
34602 | ||
34603 | ||
34604 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34605 | PyObject *resultobj = 0; | |
34606 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34607 | wxColour *arg2 = (wxColour *) 0 ; | |
34608 | void *argp1 = 0 ; | |
34609 | int res1 = 0 ; | |
34610 | wxColour temp2 ; | |
34611 | PyObject *swig_obj[2] ; | |
34612 | ||
34613 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_selectionColour_set",2,2,swig_obj)) SWIG_fail; | |
34614 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34615 | if (!SWIG_IsOK(res1)) { | |
34616 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34617 | } | |
34618 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34619 | { | |
34620 | arg2 = &temp2; | |
34621 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
34622 | } | |
34623 | if (arg1) (arg1)->m_selectionColour = *arg2; | |
34624 | ||
34625 | resultobj = SWIG_Py_Void(); | |
34626 | return resultobj; | |
34627 | fail: | |
34628 | return NULL; | |
34629 | } | |
34630 | ||
34631 | ||
34632 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_selectionColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34633 | PyObject *resultobj = 0; | |
34634 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34635 | wxColour *result = 0 ; | |
34636 | void *argp1 = 0 ; | |
34637 | int res1 = 0 ; | |
34638 | PyObject *swig_obj[1] ; | |
34639 | ||
34640 | if (!args) SWIG_fail; | |
34641 | swig_obj[0] = args; | |
34642 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34643 | if (!SWIG_IsOK(res1)) { | |
34644 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_selectionColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34645 | } | |
34646 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34647 | result = (wxColour *)& ((arg1)->m_selectionColour); | |
34648 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
34649 | return resultobj; | |
34650 | fail: | |
34651 | return NULL; | |
34652 | } | |
34653 | ||
34654 | ||
34655 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34656 | PyObject *resultobj = 0; | |
34657 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34658 | wxString *arg2 = (wxString *) 0 ; | |
34659 | void *argp1 = 0 ; | |
34660 | int res1 = 0 ; | |
34661 | bool temp2 = false ; | |
34662 | PyObject *swig_obj[2] ; | |
34663 | ||
34664 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelText_set",2,2,swig_obj)) SWIG_fail; | |
34665 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34666 | if (!SWIG_IsOK(res1)) { | |
34667 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34668 | } | |
34669 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34670 | { | |
34671 | arg2 = wxString_in_helper(swig_obj[1]); | |
34672 | if (arg2 == NULL) SWIG_fail; | |
34673 | temp2 = true; | |
34674 | } | |
34675 | if (arg1) (arg1)->m_labelText = *arg2; | |
34676 | ||
34677 | resultobj = SWIG_Py_Void(); | |
34678 | { | |
34679 | if (temp2) | |
34680 | delete arg2; | |
34681 | } | |
34682 | return resultobj; | |
34683 | fail: | |
34684 | { | |
34685 | if (temp2) | |
34686 | delete arg2; | |
34687 | } | |
34688 | return NULL; | |
34689 | } | |
34690 | ||
34691 | ||
34692 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelText_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34693 | PyObject *resultobj = 0; | |
34694 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34695 | wxString *result = 0 ; | |
34696 | void *argp1 = 0 ; | |
34697 | int res1 = 0 ; | |
34698 | PyObject *swig_obj[1] ; | |
34699 | ||
34700 | if (!args) SWIG_fail; | |
34701 | swig_obj[0] = args; | |
34702 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34703 | if (!SWIG_IsOK(res1)) { | |
34704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelText_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34705 | } | |
34706 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34707 | result = (wxString *)& ((arg1)->m_labelText); | |
34708 | { | |
34709 | #if wxUSE_UNICODE | |
34710 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
34711 | #else | |
34712 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
34713 | #endif | |
34714 | } | |
34715 | return resultobj; | |
34716 | fail: | |
34717 | return NULL; | |
34718 | } | |
34719 | ||
34720 | ||
34721 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34722 | PyObject *resultobj = 0; | |
34723 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34724 | wxFont *arg2 = (wxFont *) 0 ; | |
34725 | void *argp1 = 0 ; | |
34726 | int res1 = 0 ; | |
34727 | void *argp2 = 0 ; | |
34728 | int res2 = 0 ; | |
34729 | PyObject *swig_obj[2] ; | |
34730 | ||
34731 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelFont_set",2,2,swig_obj)) SWIG_fail; | |
34732 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34733 | if (!SWIG_IsOK(res1)) { | |
34734 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34735 | } | |
34736 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34737 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxFont, 0 | 0 ); | |
34738 | if (!SWIG_IsOK(res2)) { | |
34739 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelFont_set" "', expected argument " "2"" of type '" "wxFont *""'"); | |
34740 | } | |
34741 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
34742 | if (arg1) (arg1)->m_labelFont = *arg2; | |
34743 | ||
34744 | resultobj = SWIG_Py_Void(); | |
34745 | return resultobj; | |
34746 | fail: | |
34747 | return NULL; | |
34748 | } | |
34749 | ||
34750 | ||
34751 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelFont_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34752 | PyObject *resultobj = 0; | |
34753 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34754 | wxFont *result = 0 ; | |
34755 | void *argp1 = 0 ; | |
34756 | int res1 = 0 ; | |
34757 | PyObject *swig_obj[1] ; | |
34758 | ||
34759 | if (!args) SWIG_fail; | |
34760 | swig_obj[0] = args; | |
34761 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34762 | if (!SWIG_IsOK(res1)) { | |
34763 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelFont_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34764 | } | |
34765 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34766 | result = (wxFont *)& ((arg1)->m_labelFont); | |
34767 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 ); | |
34768 | return resultobj; | |
34769 | fail: | |
34770 | return NULL; | |
34771 | } | |
34772 | ||
34773 | ||
34774 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34775 | PyObject *resultobj = 0; | |
34776 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34777 | wxColour *arg2 = (wxColour *) 0 ; | |
34778 | void *argp1 = 0 ; | |
34779 | int res1 = 0 ; | |
34780 | wxColour temp2 ; | |
34781 | PyObject *swig_obj[2] ; | |
34782 | ||
34783 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelColour_set",2,2,swig_obj)) SWIG_fail; | |
34784 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34785 | if (!SWIG_IsOK(res1)) { | |
34786 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34787 | } | |
34788 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34789 | { | |
34790 | arg2 = &temp2; | |
34791 | if ( ! wxColour_helper(swig_obj[1], &arg2)) SWIG_fail; | |
34792 | } | |
34793 | if (arg1) (arg1)->m_labelColour = *arg2; | |
34794 | ||
34795 | resultobj = SWIG_Py_Void(); | |
34796 | return resultobj; | |
34797 | fail: | |
34798 | return NULL; | |
34799 | } | |
34800 | ||
34801 | ||
34802 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelColour_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34803 | PyObject *resultobj = 0; | |
34804 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34805 | wxColour *result = 0 ; | |
34806 | void *argp1 = 0 ; | |
34807 | int res1 = 0 ; | |
34808 | PyObject *swig_obj[1] ; | |
34809 | ||
34810 | if (!args) SWIG_fail; | |
34811 | swig_obj[0] = args; | |
34812 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34813 | if (!SWIG_IsOK(res1)) { | |
34814 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelColour_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34815 | } | |
34816 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34817 | result = (wxColour *)& ((arg1)->m_labelColour); | |
34818 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 ); | |
34819 | return resultobj; | |
34820 | fail: | |
34821 | return NULL; | |
34822 | } | |
34823 | ||
34824 | ||
34825 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34826 | PyObject *resultobj = 0; | |
34827 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34828 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
34829 | void *argp1 = 0 ; | |
34830 | int res1 = 0 ; | |
34831 | void *argp2 = 0 ; | |
34832 | int res2 = 0 ; | |
34833 | PyObject *swig_obj[2] ; | |
34834 | ||
34835 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelBitmap_set",2,2,swig_obj)) SWIG_fail; | |
34836 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34837 | if (!SWIG_IsOK(res1)) { | |
34838 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34839 | } | |
34840 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34841 | res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
34842 | if (!SWIG_IsOK(res2)) { | |
34843 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HeaderButtonParams_m_labelBitmap_set" "', expected argument " "2"" of type '" "wxBitmap *""'"); | |
34844 | } | |
34845 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
34846 | if (arg1) (arg1)->m_labelBitmap = *arg2; | |
34847 | ||
34848 | resultobj = SWIG_Py_Void(); | |
34849 | return resultobj; | |
34850 | fail: | |
34851 | return NULL; | |
34852 | } | |
34853 | ||
34854 | ||
34855 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelBitmap_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34856 | PyObject *resultobj = 0; | |
34857 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34858 | wxBitmap *result = 0 ; | |
34859 | void *argp1 = 0 ; | |
34860 | int res1 = 0 ; | |
34861 | PyObject *swig_obj[1] ; | |
34862 | ||
34863 | if (!args) SWIG_fail; | |
34864 | swig_obj[0] = args; | |
34865 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34866 | if (!SWIG_IsOK(res1)) { | |
34867 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelBitmap_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34868 | } | |
34869 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34870 | result = (wxBitmap *)& ((arg1)->m_labelBitmap); | |
34871 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 ); | |
34872 | return resultobj; | |
34873 | fail: | |
34874 | return NULL; | |
34875 | } | |
34876 | ||
34877 | ||
34878 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34879 | PyObject *resultobj = 0; | |
34880 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34881 | int arg2 ; | |
34882 | void *argp1 = 0 ; | |
34883 | int res1 = 0 ; | |
34884 | int val2 ; | |
34885 | int ecode2 = 0 ; | |
34886 | PyObject *swig_obj[2] ; | |
34887 | ||
34888 | if (!SWIG_Python_UnpackTuple(args,"HeaderButtonParams_m_labelAlignment_set",2,2,swig_obj)) SWIG_fail; | |
34889 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34890 | if (!SWIG_IsOK(res1)) { | |
34891 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34892 | } | |
34893 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34894 | ecode2 = SWIG_AsVal_int(swig_obj[1], &val2); | |
34895 | if (!SWIG_IsOK(ecode2)) { | |
34896 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HeaderButtonParams_m_labelAlignment_set" "', expected argument " "2"" of type '" "int""'"); | |
34897 | } | |
34898 | arg2 = static_cast< int >(val2); | |
34899 | if (arg1) (arg1)->m_labelAlignment = arg2; | |
34900 | ||
34901 | resultobj = SWIG_Py_Void(); | |
34902 | return resultobj; | |
34903 | fail: | |
34904 | return NULL; | |
34905 | } | |
34906 | ||
34907 | ||
34908 | SWIGINTERN PyObject *_wrap_HeaderButtonParams_m_labelAlignment_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34909 | PyObject *resultobj = 0; | |
34910 | wxHeaderButtonParams *arg1 = (wxHeaderButtonParams *) 0 ; | |
34911 | int result; | |
34912 | void *argp1 = 0 ; | |
34913 | int res1 = 0 ; | |
34914 | PyObject *swig_obj[1] ; | |
34915 | ||
34916 | if (!args) SWIG_fail; | |
34917 | swig_obj[0] = args; | |
34918 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
34919 | if (!SWIG_IsOK(res1)) { | |
34920 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HeaderButtonParams_m_labelAlignment_get" "', expected argument " "1"" of type '" "wxHeaderButtonParams *""'"); | |
34921 | } | |
34922 | arg1 = reinterpret_cast< wxHeaderButtonParams * >(argp1); | |
34923 | result = (int) ((arg1)->m_labelAlignment); | |
34924 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
34925 | return resultobj; | |
34926 | fail: | |
34927 | return NULL; | |
34928 | } | |
34929 | ||
34930 | ||
34931 | SWIGINTERN PyObject *HeaderButtonParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34932 | PyObject *obj; | |
34933 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
34934 | SWIG_TypeNewClientData(SWIGTYPE_p_wxHeaderButtonParams, SWIG_NewClientData(obj)); | |
34935 | return SWIG_Py_Void(); | |
34936 | } | |
34937 | ||
34938 | SWIGINTERN PyObject *HeaderButtonParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34939 | return SWIG_Python_InitShadowInstance(args); | |
34940 | } | |
34941 | ||
554f62e9 RD |
34942 | SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
34943 | PyObject *resultobj = 0; | |
34944 | int arg1 ; | |
34945 | int arg2 ; | |
34946 | wxRendererVersion *result = 0 ; | |
34947 | int val1 ; | |
34948 | int ecode1 = 0 ; | |
34949 | int val2 ; | |
34950 | int ecode2 = 0 ; | |
34951 | PyObject * obj0 = 0 ; | |
34952 | PyObject * obj1 = 0 ; | |
34953 | char * kwnames[] = { | |
34954 | (char *) "version_",(char *) "age_", NULL | |
34955 | }; | |
34956 | ||
34957 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail; | |
34958 | ecode1 = SWIG_AsVal_int(obj0, &val1); | |
34959 | if (!SWIG_IsOK(ecode1)) { | |
34960 | SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'"); | |
34961 | } | |
34962 | arg1 = static_cast< int >(val1); | |
34963 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
34964 | if (!SWIG_IsOK(ecode2)) { | |
34965 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'"); | |
34966 | } | |
34967 | arg2 = static_cast< int >(val2); | |
34968 | { | |
34969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34970 | result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2); | |
34971 | wxPyEndAllowThreads(__tstate); | |
34972 | if (PyErr_Occurred()) SWIG_fail; | |
34973 | } | |
34974 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 ); | |
34975 | return resultobj; | |
34976 | fail: | |
34977 | return NULL; | |
34978 | } | |
34979 | ||
34980 | ||
34981 | SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
34982 | PyObject *resultobj = 0; | |
34983 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
34984 | void *argp1 = 0 ; | |
34985 | int res1 = 0 ; | |
34986 | PyObject *swig_obj[1] ; | |
34987 | ||
34988 | if (!args) SWIG_fail; | |
34989 | swig_obj[0] = args; | |
34990 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 ); | |
34991 | if (!SWIG_IsOK(res1)) { | |
34992 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
34993 | } | |
34994 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
34995 | { | |
34996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
34997 | delete arg1; | |
34998 | ||
34999 | wxPyEndAllowThreads(__tstate); | |
35000 | if (PyErr_Occurred()) SWIG_fail; | |
35001 | } | |
35002 | resultobj = SWIG_Py_Void(); | |
35003 | return resultobj; | |
35004 | fail: | |
35005 | return NULL; | |
35006 | } | |
35007 | ||
35008 | ||
35009 | SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35010 | PyObject *resultobj = 0; | |
35011 | wxRendererVersion *arg1 = 0 ; | |
35012 | bool result; | |
35013 | void *argp1 = 0 ; | |
35014 | int res1 = 0 ; | |
35015 | PyObject * obj0 = 0 ; | |
35016 | char * kwnames[] = { | |
35017 | (char *) "ver", NULL | |
35018 | }; | |
35019 | ||
35020 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail; | |
35021 | res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0); | |
35022 | if (!SWIG_IsOK(res1)) { | |
35023 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
35024 | } | |
35025 | if (!argp1) { | |
35026 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'"); | |
35027 | } | |
35028 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
35029 | { | |
35030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35031 | result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1); | |
35032 | wxPyEndAllowThreads(__tstate); | |
35033 | if (PyErr_Occurred()) SWIG_fail; | |
35034 | } | |
35035 | { | |
35036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
35037 | } | |
35038 | return resultobj; | |
35039 | fail: | |
35040 | return NULL; | |
35041 | } | |
35042 | ||
35043 | ||
35044 | SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35045 | PyObject *resultobj = 0; | |
35046 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
35047 | int result; | |
35048 | void *argp1 = 0 ; | |
35049 | int res1 = 0 ; | |
35050 | PyObject *swig_obj[1] ; | |
35051 | ||
35052 | if (!args) SWIG_fail; | |
35053 | swig_obj[0] = args; | |
35054 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
35055 | if (!SWIG_IsOK(res1)) { | |
35056 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
35057 | } | |
35058 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
35059 | result = (int)(int) ((arg1)->version); | |
35060 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
35061 | return resultobj; | |
35062 | fail: | |
35063 | return NULL; | |
35064 | } | |
35065 | ||
35066 | ||
35067 | SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35068 | PyObject *resultobj = 0; | |
35069 | wxRendererVersion *arg1 = (wxRendererVersion *) 0 ; | |
35070 | int result; | |
35071 | void *argp1 = 0 ; | |
35072 | int res1 = 0 ; | |
35073 | PyObject *swig_obj[1] ; | |
35074 | ||
35075 | if (!args) SWIG_fail; | |
35076 | swig_obj[0] = args; | |
35077 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 ); | |
35078 | if (!SWIG_IsOK(res1)) { | |
35079 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'"); | |
35080 | } | |
35081 | arg1 = reinterpret_cast< wxRendererVersion * >(argp1); | |
35082 | result = (int)(int) ((arg1)->age); | |
35083 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
35084 | return resultobj; | |
35085 | fail: | |
35086 | return NULL; | |
35087 | } | |
35088 | ||
35089 | ||
35090 | SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35091 | PyObject *obj; | |
35092 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
35093 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj)); | |
35094 | return SWIG_Py_Void(); | |
35095 | } | |
35096 | ||
35097 | SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35098 | return SWIG_Python_InitShadowInstance(args); | |
35099 | } | |
35100 | ||
35101 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35102 | PyObject *resultobj = 0; | |
35103 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35104 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35105 | wxDC *arg3 = 0 ; | |
35106 | wxRect *arg4 = 0 ; | |
35107 | int arg5 = (int) 0 ; | |
33d6fd3b RD |
35108 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; |
35109 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
723282b6 | 35110 | int result; |
554f62e9 RD |
35111 | void *argp1 = 0 ; |
35112 | int res1 = 0 ; | |
35113 | void *argp2 = 0 ; | |
35114 | int res2 = 0 ; | |
35115 | void *argp3 = 0 ; | |
35116 | int res3 = 0 ; | |
35117 | wxRect temp4 ; | |
35118 | int val5 ; | |
35119 | int ecode5 = 0 ; | |
33d6fd3b RD |
35120 | int val6 ; |
35121 | int ecode6 = 0 ; | |
35122 | void *argp7 = 0 ; | |
35123 | int res7 = 0 ; | |
554f62e9 RD |
35124 | PyObject * obj0 = 0 ; |
35125 | PyObject * obj1 = 0 ; | |
35126 | PyObject * obj2 = 0 ; | |
35127 | PyObject * obj3 = 0 ; | |
35128 | PyObject * obj4 = 0 ; | |
33d6fd3b RD |
35129 | PyObject * obj5 = 0 ; |
35130 | PyObject * obj6 = 0 ; | |
554f62e9 | 35131 | char * kwnames[] = { |
33d6fd3b | 35132 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL |
554f62e9 RD |
35133 | }; |
35134 | ||
33d6fd3b | 35135 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; |
554f62e9 RD |
35136 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
35137 | if (!SWIG_IsOK(res1)) { | |
35138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35139 | } | |
35140 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35141 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35142 | if (!SWIG_IsOK(res2)) { | |
35143 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35144 | } | |
35145 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35146 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35147 | if (!SWIG_IsOK(res3)) { | |
35148 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35149 | } | |
35150 | if (!argp3) { | |
35151 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35152 | } | |
35153 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35154 | { | |
35155 | arg4 = &temp4; | |
35156 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35157 | } | |
35158 | if (obj4) { | |
35159 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35160 | if (!SWIG_IsOK(ecode5)) { | |
35161 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'"); | |
35162 | } | |
35163 | arg5 = static_cast< int >(val5); | |
35164 | } | |
33d6fd3b RD |
35165 | if (obj5) { |
35166 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35167 | if (!SWIG_IsOK(ecode6)) { | |
35168 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
35169 | } | |
35170 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
35171 | } | |
35172 | if (obj6) { | |
35173 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
35174 | if (!SWIG_IsOK(res7)) { | |
35175 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
35176 | } | |
35177 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
35178 | } | |
35179 | { | |
35180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
723282b6 | 35181 | result = (int)(arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
33d6fd3b RD |
35182 | wxPyEndAllowThreads(__tstate); |
35183 | if (PyErr_Occurred()) SWIG_fail; | |
35184 | } | |
723282b6 | 35185 | resultobj = SWIG_From_int(static_cast< int >(result)); |
33d6fd3b RD |
35186 | return resultobj; |
35187 | fail: | |
35188 | return NULL; | |
35189 | } | |
35190 | ||
35191 | ||
35192 | SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButtonContents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35193 | PyObject *resultobj = 0; | |
35194 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35195 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35196 | wxDC *arg3 = 0 ; | |
35197 | wxRect *arg4 = 0 ; | |
35198 | int arg5 = (int) 0 ; | |
35199 | wxHeaderSortIconType arg6 = (wxHeaderSortIconType) wxHDR_SORT_ICON_NONE ; | |
35200 | wxHeaderButtonParams *arg7 = (wxHeaderButtonParams *) NULL ; | |
723282b6 | 35201 | int result; |
33d6fd3b RD |
35202 | void *argp1 = 0 ; |
35203 | int res1 = 0 ; | |
35204 | void *argp2 = 0 ; | |
35205 | int res2 = 0 ; | |
35206 | void *argp3 = 0 ; | |
35207 | int res3 = 0 ; | |
35208 | wxRect temp4 ; | |
35209 | int val5 ; | |
35210 | int ecode5 = 0 ; | |
35211 | int val6 ; | |
35212 | int ecode6 = 0 ; | |
35213 | void *argp7 = 0 ; | |
35214 | int res7 = 0 ; | |
35215 | PyObject * obj0 = 0 ; | |
35216 | PyObject * obj1 = 0 ; | |
35217 | PyObject * obj2 = 0 ; | |
35218 | PyObject * obj3 = 0 ; | |
35219 | PyObject * obj4 = 0 ; | |
35220 | PyObject * obj5 = 0 ; | |
35221 | PyObject * obj6 = 0 ; | |
35222 | char * kwnames[] = { | |
35223 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags",(char *) "sortArrow",(char *) "params", NULL | |
35224 | }; | |
35225 | ||
35226 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:RendererNative_DrawHeaderButtonContents",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35227 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35228 | if (!SWIG_IsOK(res1)) { | |
35229 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35230 | } | |
35231 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35232 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35233 | if (!SWIG_IsOK(res2)) { | |
35234 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35235 | } | |
35236 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35237 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35238 | if (!SWIG_IsOK(res3)) { | |
35239 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35240 | } | |
35241 | if (!argp3) { | |
35242 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35243 | } | |
35244 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35245 | { | |
35246 | arg4 = &temp4; | |
35247 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35248 | } | |
35249 | if (obj4) { | |
35250 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35251 | if (!SWIG_IsOK(ecode5)) { | |
35252 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "5"" of type '" "int""'"); | |
35253 | } | |
35254 | arg5 = static_cast< int >(val5); | |
35255 | } | |
35256 | if (obj5) { | |
35257 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35258 | if (!SWIG_IsOK(ecode6)) { | |
35259 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "6"" of type '" "wxHeaderSortIconType""'"); | |
35260 | } | |
35261 | arg6 = static_cast< wxHeaderSortIconType >(val6); | |
35262 | } | |
35263 | if (obj6) { | |
35264 | res7 = SWIG_ConvertPtr(obj6, &argp7,SWIGTYPE_p_wxHeaderButtonParams, 0 | 0 ); | |
35265 | if (!SWIG_IsOK(res7)) { | |
35266 | SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "RendererNative_DrawHeaderButtonContents" "', expected argument " "7"" of type '" "wxHeaderButtonParams *""'"); | |
35267 | } | |
35268 | arg7 = reinterpret_cast< wxHeaderButtonParams * >(argp7); | |
35269 | } | |
554f62e9 RD |
35270 | { |
35271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
723282b6 | 35272 | result = (int)(arg1)->DrawHeaderButtonContents(arg2,*arg3,(wxRect const &)*arg4,arg5,arg6,arg7); |
554f62e9 RD |
35273 | wxPyEndAllowThreads(__tstate); |
35274 | if (PyErr_Occurred()) SWIG_fail; | |
35275 | } | |
723282b6 | 35276 | resultobj = SWIG_From_int(static_cast< int >(result)); |
554f62e9 RD |
35277 | return resultobj; |
35278 | fail: | |
35279 | return NULL; | |
35280 | } | |
35281 | ||
35282 | ||
33d6fd3b RD |
35283 | SWIGINTERN PyObject *_wrap_RendererNative_GetHeaderButtonHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35284 | PyObject *resultobj = 0; | |
35285 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35286 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35287 | int result; | |
35288 | void *argp1 = 0 ; | |
35289 | int res1 = 0 ; | |
35290 | void *argp2 = 0 ; | |
35291 | int res2 = 0 ; | |
35292 | PyObject * obj0 = 0 ; | |
35293 | PyObject * obj1 = 0 ; | |
35294 | char * kwnames[] = { | |
35295 | (char *) "self",(char *) "win", NULL | |
35296 | }; | |
35297 | ||
35298 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetHeaderButtonHeight",kwnames,&obj0,&obj1)) SWIG_fail; | |
35299 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35300 | if (!SWIG_IsOK(res1)) { | |
35301 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35302 | } | |
35303 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35304 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35305 | if (!SWIG_IsOK(res2)) { | |
35306 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetHeaderButtonHeight" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35307 | } | |
35308 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35309 | { | |
35310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35311 | result = (int)(arg1)->GetHeaderButtonHeight(arg2); | |
35312 | wxPyEndAllowThreads(__tstate); | |
35313 | if (PyErr_Occurred()) SWIG_fail; | |
35314 | } | |
35315 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
35316 | return resultobj; | |
35317 | fail: | |
35318 | return NULL; | |
35319 | } | |
35320 | ||
35321 | ||
554f62e9 RD |
35322 | SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35323 | PyObject *resultobj = 0; | |
35324 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35325 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35326 | wxDC *arg3 = 0 ; | |
35327 | wxRect *arg4 = 0 ; | |
35328 | int arg5 = (int) 0 ; | |
35329 | void *argp1 = 0 ; | |
35330 | int res1 = 0 ; | |
35331 | void *argp2 = 0 ; | |
35332 | int res2 = 0 ; | |
35333 | void *argp3 = 0 ; | |
35334 | int res3 = 0 ; | |
35335 | wxRect temp4 ; | |
35336 | int val5 ; | |
35337 | int ecode5 = 0 ; | |
35338 | PyObject * obj0 = 0 ; | |
35339 | PyObject * obj1 = 0 ; | |
35340 | PyObject * obj2 = 0 ; | |
35341 | PyObject * obj3 = 0 ; | |
35342 | PyObject * obj4 = 0 ; | |
35343 | char * kwnames[] = { | |
35344 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35345 | }; | |
35346 | ||
35347 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35348 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35349 | if (!SWIG_IsOK(res1)) { | |
35350 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35351 | } | |
35352 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35353 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35354 | if (!SWIG_IsOK(res2)) { | |
35355 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35356 | } | |
35357 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35358 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35359 | if (!SWIG_IsOK(res3)) { | |
35360 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35361 | } | |
35362 | if (!argp3) { | |
35363 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35364 | } | |
35365 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35366 | { | |
35367 | arg4 = &temp4; | |
35368 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35369 | } | |
35370 | if (obj4) { | |
35371 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35372 | if (!SWIG_IsOK(ecode5)) { | |
35373 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'"); | |
35374 | } | |
35375 | arg5 = static_cast< int >(val5); | |
35376 | } | |
35377 | { | |
35378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35379 | (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35380 | wxPyEndAllowThreads(__tstate); | |
35381 | if (PyErr_Occurred()) SWIG_fail; | |
35382 | } | |
35383 | resultobj = SWIG_Py_Void(); | |
35384 | return resultobj; | |
35385 | fail: | |
35386 | return NULL; | |
35387 | } | |
35388 | ||
35389 | ||
35390 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35391 | PyObject *resultobj = 0; | |
35392 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35393 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35394 | wxDC *arg3 = 0 ; | |
35395 | wxRect *arg4 = 0 ; | |
35396 | int arg5 = (int) 0 ; | |
35397 | void *argp1 = 0 ; | |
35398 | int res1 = 0 ; | |
35399 | void *argp2 = 0 ; | |
35400 | int res2 = 0 ; | |
35401 | void *argp3 = 0 ; | |
35402 | int res3 = 0 ; | |
35403 | wxRect temp4 ; | |
35404 | int val5 ; | |
35405 | int ecode5 = 0 ; | |
35406 | PyObject * obj0 = 0 ; | |
35407 | PyObject * obj1 = 0 ; | |
35408 | PyObject * obj2 = 0 ; | |
35409 | PyObject * obj3 = 0 ; | |
35410 | PyObject * obj4 = 0 ; | |
35411 | char * kwnames[] = { | |
35412 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35413 | }; | |
35414 | ||
35415 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35416 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35417 | if (!SWIG_IsOK(res1)) { | |
35418 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35419 | } | |
35420 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35421 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35422 | if (!SWIG_IsOK(res2)) { | |
35423 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35424 | } | |
35425 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35426 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35427 | if (!SWIG_IsOK(res3)) { | |
35428 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35429 | } | |
35430 | if (!argp3) { | |
35431 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35432 | } | |
35433 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35434 | { | |
35435 | arg4 = &temp4; | |
35436 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35437 | } | |
35438 | if (obj4) { | |
35439 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35440 | if (!SWIG_IsOK(ecode5)) { | |
35441 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'"); | |
35442 | } | |
35443 | arg5 = static_cast< int >(val5); | |
35444 | } | |
35445 | { | |
35446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35447 | (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35448 | wxPyEndAllowThreads(__tstate); | |
35449 | if (PyErr_Occurred()) SWIG_fail; | |
35450 | } | |
35451 | resultobj = SWIG_Py_Void(); | |
35452 | return resultobj; | |
35453 | fail: | |
35454 | return NULL; | |
35455 | } | |
35456 | ||
35457 | ||
35458 | SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35459 | PyObject *resultobj = 0; | |
35460 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35461 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35462 | wxDC *arg3 = 0 ; | |
35463 | wxSize *arg4 = 0 ; | |
35464 | int arg5 ; | |
35465 | wxOrientation arg6 ; | |
35466 | int arg7 = (int) 0 ; | |
35467 | void *argp1 = 0 ; | |
35468 | int res1 = 0 ; | |
35469 | void *argp2 = 0 ; | |
35470 | int res2 = 0 ; | |
35471 | void *argp3 = 0 ; | |
35472 | int res3 = 0 ; | |
35473 | wxSize temp4 ; | |
35474 | int val5 ; | |
35475 | int ecode5 = 0 ; | |
35476 | int val6 ; | |
35477 | int ecode6 = 0 ; | |
35478 | int val7 ; | |
35479 | int ecode7 = 0 ; | |
35480 | PyObject * obj0 = 0 ; | |
35481 | PyObject * obj1 = 0 ; | |
35482 | PyObject * obj2 = 0 ; | |
35483 | PyObject * obj3 = 0 ; | |
35484 | PyObject * obj4 = 0 ; | |
35485 | PyObject * obj5 = 0 ; | |
35486 | PyObject * obj6 = 0 ; | |
35487 | char * kwnames[] = { | |
35488 | (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL | |
35489 | }; | |
35490 | ||
35491 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
35492 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35493 | if (!SWIG_IsOK(res1)) { | |
35494 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35495 | } | |
35496 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35497 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35498 | if (!SWIG_IsOK(res2)) { | |
35499 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35500 | } | |
35501 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35502 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35503 | if (!SWIG_IsOK(res3)) { | |
35504 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35505 | } | |
35506 | if (!argp3) { | |
35507 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35508 | } | |
35509 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35510 | { | |
35511 | arg4 = &temp4; | |
35512 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
35513 | } | |
35514 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35515 | if (!SWIG_IsOK(ecode5)) { | |
35516 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'"); | |
35517 | } | |
35518 | arg5 = static_cast< int >(val5); | |
35519 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
35520 | if (!SWIG_IsOK(ecode6)) { | |
35521 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'"); | |
35522 | } | |
35523 | arg6 = static_cast< wxOrientation >(val6); | |
35524 | if (obj6) { | |
35525 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
35526 | if (!SWIG_IsOK(ecode7)) { | |
35527 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'"); | |
35528 | } | |
35529 | arg7 = static_cast< int >(val7); | |
35530 | } | |
35531 | { | |
35532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35533 | (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7); | |
35534 | wxPyEndAllowThreads(__tstate); | |
35535 | if (PyErr_Occurred()) SWIG_fail; | |
35536 | } | |
35537 | resultobj = SWIG_Py_Void(); | |
35538 | return resultobj; | |
35539 | fail: | |
35540 | return NULL; | |
35541 | } | |
35542 | ||
35543 | ||
35544 | SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35545 | PyObject *resultobj = 0; | |
35546 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35547 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35548 | wxDC *arg3 = 0 ; | |
35549 | wxRect *arg4 = 0 ; | |
35550 | int arg5 = (int) 0 ; | |
35551 | void *argp1 = 0 ; | |
35552 | int res1 = 0 ; | |
35553 | void *argp2 = 0 ; | |
35554 | int res2 = 0 ; | |
35555 | void *argp3 = 0 ; | |
35556 | int res3 = 0 ; | |
35557 | wxRect temp4 ; | |
35558 | int val5 ; | |
35559 | int ecode5 = 0 ; | |
35560 | PyObject * obj0 = 0 ; | |
35561 | PyObject * obj1 = 0 ; | |
35562 | PyObject * obj2 = 0 ; | |
35563 | PyObject * obj3 = 0 ; | |
35564 | PyObject * obj4 = 0 ; | |
35565 | char * kwnames[] = { | |
35566 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35567 | }; | |
35568 | ||
35569 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35570 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35571 | if (!SWIG_IsOK(res1)) { | |
35572 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35573 | } | |
35574 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35575 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35576 | if (!SWIG_IsOK(res2)) { | |
35577 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35578 | } | |
35579 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35580 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35581 | if (!SWIG_IsOK(res3)) { | |
35582 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35583 | } | |
35584 | if (!argp3) { | |
35585 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35586 | } | |
35587 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35588 | { | |
35589 | arg4 = &temp4; | |
35590 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35591 | } | |
35592 | if (obj4) { | |
35593 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35594 | if (!SWIG_IsOK(ecode5)) { | |
35595 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'"); | |
35596 | } | |
35597 | arg5 = static_cast< int >(val5); | |
35598 | } | |
35599 | { | |
35600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35601 | (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35602 | wxPyEndAllowThreads(__tstate); | |
35603 | if (PyErr_Occurred()) SWIG_fail; | |
35604 | } | |
35605 | resultobj = SWIG_Py_Void(); | |
35606 | return resultobj; | |
35607 | fail: | |
35608 | return NULL; | |
35609 | } | |
35610 | ||
35611 | ||
35612 | SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35613 | PyObject *resultobj = 0; | |
35614 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35615 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35616 | wxDC *arg3 = 0 ; | |
35617 | wxRect *arg4 = 0 ; | |
35618 | int arg5 = (int) 0 ; | |
35619 | void *argp1 = 0 ; | |
35620 | int res1 = 0 ; | |
35621 | void *argp2 = 0 ; | |
35622 | int res2 = 0 ; | |
35623 | void *argp3 = 0 ; | |
35624 | int res3 = 0 ; | |
35625 | wxRect temp4 ; | |
35626 | int val5 ; | |
35627 | int ecode5 = 0 ; | |
35628 | PyObject * obj0 = 0 ; | |
35629 | PyObject * obj1 = 0 ; | |
35630 | PyObject * obj2 = 0 ; | |
35631 | PyObject * obj3 = 0 ; | |
35632 | PyObject * obj4 = 0 ; | |
35633 | char * kwnames[] = { | |
35634 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35635 | }; | |
35636 | ||
35637 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35638 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35639 | if (!SWIG_IsOK(res1)) { | |
35640 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35641 | } | |
35642 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35643 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35644 | if (!SWIG_IsOK(res2)) { | |
35645 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35646 | } | |
35647 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35648 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35649 | if (!SWIG_IsOK(res3)) { | |
35650 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35651 | } | |
35652 | if (!argp3) { | |
35653 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35654 | } | |
35655 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35656 | { | |
35657 | arg4 = &temp4; | |
35658 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35659 | } | |
35660 | if (obj4) { | |
35661 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35662 | if (!SWIG_IsOK(ecode5)) { | |
35663 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'"); | |
35664 | } | |
35665 | arg5 = static_cast< int >(val5); | |
35666 | } | |
35667 | { | |
35668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35669 | (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35670 | wxPyEndAllowThreads(__tstate); | |
35671 | if (PyErr_Occurred()) SWIG_fail; | |
35672 | } | |
35673 | resultobj = SWIG_Py_Void(); | |
35674 | return resultobj; | |
35675 | fail: | |
35676 | return NULL; | |
35677 | } | |
35678 | ||
35679 | ||
f460c29d RD |
35680 | SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35681 | PyObject *resultobj = 0; | |
35682 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35683 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35684 | wxDC *arg3 = 0 ; | |
35685 | wxRect *arg4 = 0 ; | |
35686 | int arg5 = (int) 0 ; | |
35687 | void *argp1 = 0 ; | |
35688 | int res1 = 0 ; | |
35689 | void *argp2 = 0 ; | |
35690 | int res2 = 0 ; | |
35691 | void *argp3 = 0 ; | |
35692 | int res3 = 0 ; | |
35693 | wxRect temp4 ; | |
35694 | int val5 ; | |
35695 | int ecode5 = 0 ; | |
35696 | PyObject * obj0 = 0 ; | |
35697 | PyObject * obj1 = 0 ; | |
35698 | PyObject * obj2 = 0 ; | |
35699 | PyObject * obj3 = 0 ; | |
35700 | PyObject * obj4 = 0 ; | |
35701 | char * kwnames[] = { | |
35702 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35703 | }; | |
35704 | ||
35705 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35706 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35707 | if (!SWIG_IsOK(res1)) { | |
35708 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35709 | } | |
35710 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35711 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35712 | if (!SWIG_IsOK(res2)) { | |
35713 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35714 | } | |
35715 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35716 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35717 | if (!SWIG_IsOK(res3)) { | |
35718 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35719 | } | |
35720 | if (!argp3) { | |
35721 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35722 | } | |
35723 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35724 | { | |
35725 | arg4 = &temp4; | |
35726 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35727 | } | |
35728 | if (obj4) { | |
35729 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35730 | if (!SWIG_IsOK(ecode5)) { | |
35731 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'"); | |
35732 | } | |
35733 | arg5 = static_cast< int >(val5); | |
35734 | } | |
35735 | { | |
35736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35737 | (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35738 | wxPyEndAllowThreads(__tstate); | |
35739 | if (PyErr_Occurred()) SWIG_fail; | |
35740 | } | |
35741 | resultobj = SWIG_Py_Void(); | |
35742 | return resultobj; | |
35743 | fail: | |
35744 | return NULL; | |
35745 | } | |
35746 | ||
35747 | ||
35748 | SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35749 | PyObject *resultobj = 0; | |
35750 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35751 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35752 | wxDC *arg3 = 0 ; | |
35753 | wxRect *arg4 = 0 ; | |
35754 | int arg5 = (int) 0 ; | |
35755 | void *argp1 = 0 ; | |
35756 | int res1 = 0 ; | |
35757 | void *argp2 = 0 ; | |
35758 | int res2 = 0 ; | |
35759 | void *argp3 = 0 ; | |
35760 | int res3 = 0 ; | |
35761 | wxRect temp4 ; | |
35762 | int val5 ; | |
35763 | int ecode5 = 0 ; | |
35764 | PyObject * obj0 = 0 ; | |
35765 | PyObject * obj1 = 0 ; | |
35766 | PyObject * obj2 = 0 ; | |
35767 | PyObject * obj3 = 0 ; | |
35768 | PyObject * obj4 = 0 ; | |
35769 | char * kwnames[] = { | |
35770 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35771 | }; | |
35772 | ||
35773 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
35774 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35775 | if (!SWIG_IsOK(res1)) { | |
35776 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35777 | } | |
35778 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35779 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35780 | if (!SWIG_IsOK(res2)) { | |
35781 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'"); | |
35782 | } | |
35783 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35784 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35785 | if (!SWIG_IsOK(res3)) { | |
35786 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35787 | } | |
35788 | if (!argp3) { | |
35789 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'"); | |
35790 | } | |
35791 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35792 | { | |
35793 | arg4 = &temp4; | |
35794 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35795 | } | |
35796 | if (obj4) { | |
35797 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35798 | if (!SWIG_IsOK(ecode5)) { | |
35799 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'"); | |
35800 | } | |
35801 | arg5 = static_cast< int >(val5); | |
35802 | } | |
35803 | { | |
35804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35805 | (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5); | |
35806 | wxPyEndAllowThreads(__tstate); | |
35807 | if (PyErr_Occurred()) SWIG_fail; | |
35808 | } | |
35809 | resultobj = SWIG_Py_Void(); | |
35810 | return resultobj; | |
35811 | fail: | |
35812 | return NULL; | |
35813 | } | |
35814 | ||
35815 | ||
35816 | SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
50efceee RD |
35817 | PyObject *resultobj = 0; |
35818 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35819 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35820 | wxDC *arg3 = 0 ; | |
35821 | wxRect *arg4 = 0 ; | |
35822 | int arg5 = (int) 0 ; | |
35823 | void *argp1 = 0 ; | |
35824 | int res1 = 0 ; | |
35825 | void *argp2 = 0 ; | |
35826 | int res2 = 0 ; | |
35827 | void *argp3 = 0 ; | |
35828 | int res3 = 0 ; | |
35829 | wxRect temp4 ; | |
35830 | int val5 ; | |
35831 | int ecode5 = 0 ; | |
35832 | PyObject * obj0 = 0 ; | |
35833 | PyObject * obj1 = 0 ; | |
35834 | PyObject * obj2 = 0 ; | |
35835 | PyObject * obj3 = 0 ; | |
35836 | PyObject * obj4 = 0 ; | |
35837 | char * kwnames[] = { | |
35838 | (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL | |
35839 | }; | |
35840 | ||
f460c29d | 35841 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; |
50efceee RD |
35842 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); |
35843 | if (!SWIG_IsOK(res1)) { | |
f460c29d | 35844 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'"); |
50efceee RD |
35845 | } |
35846 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35847 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35848 | if (!SWIG_IsOK(res2)) { | |
f460c29d | 35849 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'"); |
50efceee RD |
35850 | } |
35851 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35852 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 ); | |
35853 | if (!SWIG_IsOK(res3)) { | |
f460c29d | 35854 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
35855 | } |
35856 | if (!argp3) { | |
f460c29d | 35857 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'"); |
50efceee RD |
35858 | } |
35859 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
35860 | { | |
35861 | arg4 = &temp4; | |
35862 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
35863 | } | |
35864 | if (obj4) { | |
35865 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
35866 | if (!SWIG_IsOK(ecode5)) { | |
f460c29d | 35867 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'"); |
50efceee RD |
35868 | } |
35869 | arg5 = static_cast< int >(val5); | |
35870 | } | |
35871 | { | |
35872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
f460c29d | 35873 | (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5); |
50efceee RD |
35874 | wxPyEndAllowThreads(__tstate); |
35875 | if (PyErr_Occurred()) SWIG_fail; | |
35876 | } | |
35877 | resultobj = SWIG_Py_Void(); | |
35878 | return resultobj; | |
35879 | fail: | |
35880 | return NULL; | |
35881 | } | |
35882 | ||
35883 | ||
554f62e9 RD |
35884 | SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
35885 | PyObject *resultobj = 0; | |
35886 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35887 | wxWindow *arg2 = (wxWindow *) 0 ; | |
35888 | SwigValueWrapper<wxSplitterRenderParams > result; | |
35889 | void *argp1 = 0 ; | |
35890 | int res1 = 0 ; | |
35891 | void *argp2 = 0 ; | |
35892 | int res2 = 0 ; | |
35893 | PyObject * obj0 = 0 ; | |
35894 | PyObject * obj1 = 0 ; | |
35895 | char * kwnames[] = { | |
35896 | (char *) "self",(char *) "win", NULL | |
35897 | }; | |
35898 | ||
35899 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail; | |
35900 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35901 | if (!SWIG_IsOK(res1)) { | |
35902 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
35903 | } | |
35904 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
35905 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 ); | |
35906 | if (!SWIG_IsOK(res2)) { | |
35907 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'"); | |
35908 | } | |
35909 | arg2 = reinterpret_cast< wxWindow * >(argp2); | |
35910 | { | |
35911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
35912 | result = (arg1)->GetSplitterParams((wxWindow const *)arg2); | |
35913 | wxPyEndAllowThreads(__tstate); | |
35914 | if (PyErr_Occurred()) SWIG_fail; | |
35915 | } | |
35916 | resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 ); | |
35917 | return resultobj; | |
35918 | fail: | |
35919 | return NULL; | |
35920 | } | |
35921 | ||
35922 | ||
35923 | SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35924 | PyObject *resultobj = 0; | |
35925 | wxRendererNative *result = 0 ; | |
35926 | ||
35927 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail; | |
35928 | { | |
704eda0c | 35929 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 35930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
093d3ff1 | 35931 | { |
554f62e9 RD |
35932 | wxRendererNative &_result_ref = wxRendererNative::Get(); |
35933 | result = (wxRendererNative *) &_result_ref; | |
093d3ff1 | 35934 | } |
554f62e9 RD |
35935 | wxPyEndAllowThreads(__tstate); |
35936 | if (PyErr_Occurred()) SWIG_fail; | |
35937 | } | |
35938 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35939 | return resultobj; | |
35940 | fail: | |
35941 | return NULL; | |
35942 | } | |
35943 | ||
35944 | ||
35945 | SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35946 | PyObject *resultobj = 0; | |
35947 | wxRendererNative *result = 0 ; | |
35948 | ||
35949 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail; | |
35950 | { | |
704eda0c | 35951 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 35952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be9b1dca | 35953 | { |
554f62e9 RD |
35954 | wxRendererNative &_result_ref = wxRendererNative::GetGeneric(); |
35955 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 35956 | } |
554f62e9 RD |
35957 | wxPyEndAllowThreads(__tstate); |
35958 | if (PyErr_Occurred()) SWIG_fail; | |
35959 | } | |
35960 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35961 | return resultobj; | |
35962 | fail: | |
35963 | return NULL; | |
35964 | } | |
35965 | ||
35966 | ||
35967 | SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
35968 | PyObject *resultobj = 0; | |
35969 | wxRendererNative *result = 0 ; | |
35970 | ||
35971 | if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail; | |
35972 | { | |
704eda0c | 35973 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 | 35974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
be9b1dca | 35975 | { |
554f62e9 RD |
35976 | wxRendererNative &_result_ref = wxRendererNative::GetDefault(); |
35977 | result = (wxRendererNative *) &_result_ref; | |
be9b1dca | 35978 | } |
554f62e9 RD |
35979 | wxPyEndAllowThreads(__tstate); |
35980 | if (PyErr_Occurred()) SWIG_fail; | |
35981 | } | |
35982 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
35983 | return resultobj; | |
35984 | fail: | |
35985 | return NULL; | |
35986 | } | |
35987 | ||
35988 | ||
35989 | SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
35990 | PyObject *resultobj = 0; | |
35991 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
35992 | wxRendererNative *result = 0 ; | |
35993 | void *argp1 = 0 ; | |
35994 | int res1 = 0 ; | |
35995 | PyObject * obj0 = 0 ; | |
35996 | char * kwnames[] = { | |
35997 | (char *) "renderer", NULL | |
35998 | }; | |
35999 | ||
36000 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail; | |
36001 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
36002 | if (!SWIG_IsOK(res1)) { | |
36003 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'"); | |
36004 | } | |
36005 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
36006 | { | |
704eda0c | 36007 | if (!wxPyCheckForApp()) SWIG_fail; |
554f62e9 RD |
36008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
36009 | result = (wxRendererNative *)wxRendererNative::Set(arg1); | |
36010 | wxPyEndAllowThreads(__tstate); | |
36011 | if (PyErr_Occurred()) SWIG_fail; | |
36012 | } | |
36013 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
36014 | return resultobj; | |
36015 | fail: | |
36016 | return NULL; | |
36017 | } | |
36018 | ||
36019 | ||
36020 | SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36021 | PyObject *resultobj = 0; | |
36022 | wxRendererNative *arg1 = (wxRendererNative *) 0 ; | |
36023 | SwigValueWrapper<wxRendererVersion > result; | |
36024 | void *argp1 = 0 ; | |
36025 | int res1 = 0 ; | |
36026 | PyObject *swig_obj[1] ; | |
36027 | ||
36028 | if (!args) SWIG_fail; | |
36029 | swig_obj[0] = args; | |
36030 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 ); | |
36031 | if (!SWIG_IsOK(res1)) { | |
36032 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'"); | |
36033 | } | |
36034 | arg1 = reinterpret_cast< wxRendererNative * >(argp1); | |
36035 | { | |
36036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36037 | result = ((wxRendererNative const *)arg1)->GetVersion(); | |
36038 | wxPyEndAllowThreads(__tstate); | |
36039 | if (PyErr_Occurred()) SWIG_fail; | |
36040 | } | |
36041 | resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 ); | |
36042 | return resultobj; | |
36043 | fail: | |
36044 | return NULL; | |
36045 | } | |
36046 | ||
36047 | ||
36048 | SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36049 | PyObject *obj; | |
36050 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
36051 | SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj)); | |
36052 | return SWIG_Py_Void(); | |
36053 | } | |
36054 | ||
27e45892 RD |
36055 | SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { |
36056 | PyObject *resultobj = 0; | |
36057 | wxPseudoDC *result = 0 ; | |
36058 | ||
36059 | if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail; | |
36060 | { | |
36061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36062 | result = (wxPseudoDC *)new wxPseudoDC(); | |
36063 | wxPyEndAllowThreads(__tstate); | |
36064 | if (PyErr_Occurred()) SWIG_fail; | |
36065 | } | |
36066 | resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 ); | |
36067 | return resultobj; | |
36068 | fail: | |
36069 | return NULL; | |
36070 | } | |
36071 | ||
36072 | ||
36073 | SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36074 | PyObject *resultobj = 0; | |
36075 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36076 | void *argp1 = 0 ; | |
36077 | int res1 = 0 ; | |
36078 | PyObject *swig_obj[1] ; | |
36079 | ||
36080 | if (!args) SWIG_fail; | |
36081 | swig_obj[0] = args; | |
36082 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36083 | if (!SWIG_IsOK(res1)) { | |
36084 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36085 | } | |
36086 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36087 | { | |
36088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36089 | (arg1)->BeginDrawing(); | |
36090 | wxPyEndAllowThreads(__tstate); | |
36091 | if (PyErr_Occurred()) SWIG_fail; | |
36092 | } | |
36093 | resultobj = SWIG_Py_Void(); | |
36094 | return resultobj; | |
36095 | fail: | |
36096 | return NULL; | |
36097 | } | |
36098 | ||
36099 | ||
36100 | SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36101 | PyObject *resultobj = 0; | |
36102 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36103 | void *argp1 = 0 ; | |
36104 | int res1 = 0 ; | |
36105 | PyObject *swig_obj[1] ; | |
36106 | ||
36107 | if (!args) SWIG_fail; | |
36108 | swig_obj[0] = args; | |
36109 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36110 | if (!SWIG_IsOK(res1)) { | |
36111 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36112 | } | |
36113 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36114 | { | |
36115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36116 | (arg1)->EndDrawing(); | |
36117 | wxPyEndAllowThreads(__tstate); | |
36118 | if (PyErr_Occurred()) SWIG_fail; | |
36119 | } | |
36120 | resultobj = SWIG_Py_Void(); | |
36121 | return resultobj; | |
36122 | fail: | |
36123 | return NULL; | |
36124 | } | |
36125 | ||
36126 | ||
36127 | SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36128 | PyObject *resultobj = 0; | |
36129 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36130 | void *argp1 = 0 ; | |
36131 | int res1 = 0 ; | |
36132 | PyObject *swig_obj[1] ; | |
36133 | ||
36134 | if (!args) SWIG_fail; | |
36135 | swig_obj[0] = args; | |
36136 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 ); | |
36137 | if (!SWIG_IsOK(res1)) { | |
36138 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36139 | } | |
36140 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36141 | { | |
36142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36143 | delete arg1; | |
36144 | ||
36145 | wxPyEndAllowThreads(__tstate); | |
36146 | if (PyErr_Occurred()) SWIG_fail; | |
36147 | } | |
36148 | resultobj = SWIG_Py_Void(); | |
36149 | return resultobj; | |
36150 | fail: | |
36151 | return NULL; | |
36152 | } | |
36153 | ||
36154 | ||
36155 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36156 | PyObject *resultobj = 0; | |
36157 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36158 | void *argp1 = 0 ; | |
36159 | int res1 = 0 ; | |
36160 | PyObject *swig_obj[1] ; | |
36161 | ||
36162 | if (!args) SWIG_fail; | |
36163 | swig_obj[0] = args; | |
36164 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36165 | if (!SWIG_IsOK(res1)) { | |
36166 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36167 | } | |
36168 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36169 | { | |
36170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36171 | (arg1)->RemoveAll(); | |
36172 | wxPyEndAllowThreads(__tstate); | |
36173 | if (PyErr_Occurred()) SWIG_fail; | |
36174 | } | |
36175 | resultobj = SWIG_Py_Void(); | |
36176 | return resultobj; | |
36177 | fail: | |
36178 | return NULL; | |
36179 | } | |
36180 | ||
36181 | ||
36182 | SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
36183 | PyObject *resultobj = 0; | |
36184 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36185 | int result; | |
36186 | void *argp1 = 0 ; | |
36187 | int res1 = 0 ; | |
36188 | PyObject *swig_obj[1] ; | |
36189 | ||
36190 | if (!args) SWIG_fail; | |
36191 | swig_obj[0] = args; | |
36192 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36193 | if (!SWIG_IsOK(res1)) { | |
36194 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36195 | } | |
36196 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36197 | { | |
36198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36199 | result = (int)(arg1)->GetLen(); | |
36200 | wxPyEndAllowThreads(__tstate); | |
36201 | if (PyErr_Occurred()) SWIG_fail; | |
36202 | } | |
36203 | resultobj = SWIG_From_int(static_cast< int >(result)); | |
36204 | return resultobj; | |
36205 | fail: | |
36206 | return NULL; | |
36207 | } | |
36208 | ||
36209 | ||
36210 | SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36211 | PyObject *resultobj = 0; | |
36212 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36213 | int arg2 ; | |
36214 | void *argp1 = 0 ; | |
36215 | int res1 = 0 ; | |
36216 | int val2 ; | |
36217 | int ecode2 = 0 ; | |
36218 | PyObject * obj0 = 0 ; | |
36219 | PyObject * obj1 = 0 ; | |
36220 | char * kwnames[] = { | |
36221 | (char *) "self",(char *) "id", NULL | |
36222 | }; | |
36223 | ||
36224 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail; | |
36225 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36226 | if (!SWIG_IsOK(res1)) { | |
36227 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36228 | } | |
36229 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36230 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36231 | if (!SWIG_IsOK(ecode2)) { | |
36232 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'"); | |
36233 | } | |
36234 | arg2 = static_cast< int >(val2); | |
36235 | { | |
36236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36237 | (arg1)->SetId(arg2); | |
36238 | wxPyEndAllowThreads(__tstate); | |
36239 | if (PyErr_Occurred()) SWIG_fail; | |
36240 | } | |
36241 | resultobj = SWIG_Py_Void(); | |
36242 | return resultobj; | |
36243 | fail: | |
36244 | return NULL; | |
36245 | } | |
36246 | ||
36247 | ||
36248 | SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36249 | PyObject *resultobj = 0; | |
36250 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36251 | int arg2 ; | |
36252 | void *argp1 = 0 ; | |
36253 | int res1 = 0 ; | |
36254 | int val2 ; | |
36255 | int ecode2 = 0 ; | |
36256 | PyObject * obj0 = 0 ; | |
36257 | PyObject * obj1 = 0 ; | |
36258 | char * kwnames[] = { | |
36259 | (char *) "self",(char *) "id", NULL | |
36260 | }; | |
36261 | ||
36262 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail; | |
36263 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36264 | if (!SWIG_IsOK(res1)) { | |
36265 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36266 | } | |
36267 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36268 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36269 | if (!SWIG_IsOK(ecode2)) { | |
36270 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'"); | |
36271 | } | |
36272 | arg2 = static_cast< int >(val2); | |
36273 | { | |
36274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36275 | (arg1)->ClearId(arg2); | |
36276 | wxPyEndAllowThreads(__tstate); | |
36277 | if (PyErr_Occurred()) SWIG_fail; | |
36278 | } | |
36279 | resultobj = SWIG_Py_Void(); | |
36280 | return resultobj; | |
36281 | fail: | |
36282 | return NULL; | |
36283 | } | |
36284 | ||
36285 | ||
36286 | SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36287 | PyObject *resultobj = 0; | |
36288 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36289 | int arg2 ; | |
36290 | void *argp1 = 0 ; | |
36291 | int res1 = 0 ; | |
36292 | int val2 ; | |
36293 | int ecode2 = 0 ; | |
36294 | PyObject * obj0 = 0 ; | |
36295 | PyObject * obj1 = 0 ; | |
36296 | char * kwnames[] = { | |
36297 | (char *) "self",(char *) "id", NULL | |
36298 | }; | |
36299 | ||
36300 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail; | |
36301 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36302 | if (!SWIG_IsOK(res1)) { | |
36303 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36304 | } | |
36305 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36306 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36307 | if (!SWIG_IsOK(ecode2)) { | |
36308 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'"); | |
36309 | } | |
36310 | arg2 = static_cast< int >(val2); | |
36311 | { | |
36312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36313 | (arg1)->RemoveId(arg2); | |
36314 | wxPyEndAllowThreads(__tstate); | |
36315 | if (PyErr_Occurred()) SWIG_fail; | |
36316 | } | |
36317 | resultobj = SWIG_Py_Void(); | |
36318 | return resultobj; | |
36319 | fail: | |
36320 | return NULL; | |
36321 | } | |
36322 | ||
36323 | ||
36324 | SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36325 | PyObject *resultobj = 0; | |
36326 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36327 | int arg2 ; | |
36328 | int arg3 ; | |
36329 | int arg4 ; | |
36330 | void *argp1 = 0 ; | |
36331 | int res1 = 0 ; | |
36332 | int val2 ; | |
36333 | int ecode2 = 0 ; | |
36334 | int val3 ; | |
36335 | int ecode3 = 0 ; | |
36336 | int val4 ; | |
36337 | int ecode4 = 0 ; | |
36338 | PyObject * obj0 = 0 ; | |
36339 | PyObject * obj1 = 0 ; | |
36340 | PyObject * obj2 = 0 ; | |
36341 | PyObject * obj3 = 0 ; | |
36342 | char * kwnames[] = { | |
36343 | (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL | |
36344 | }; | |
36345 | ||
36346 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36347 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36348 | if (!SWIG_IsOK(res1)) { | |
36349 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36350 | } | |
36351 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36352 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36353 | if (!SWIG_IsOK(ecode2)) { | |
36354 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'"); | |
36355 | } | |
36356 | arg2 = static_cast< int >(val2); | |
36357 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36358 | if (!SWIG_IsOK(ecode3)) { | |
36359 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'"); | |
36360 | } | |
36361 | arg3 = static_cast< int >(val3); | |
36362 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36363 | if (!SWIG_IsOK(ecode4)) { | |
36364 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'"); | |
36365 | } | |
36366 | arg4 = static_cast< int >(val4); | |
36367 | { | |
36368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36369 | (arg1)->TranslateId(arg2,arg3,arg4); | |
36370 | wxPyEndAllowThreads(__tstate); | |
36371 | if (PyErr_Occurred()) SWIG_fail; | |
36372 | } | |
36373 | resultobj = SWIG_Py_Void(); | |
36374 | return resultobj; | |
36375 | fail: | |
36376 | return NULL; | |
36377 | } | |
36378 | ||
36379 | ||
72ef6efb RD |
36380 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36381 | PyObject *resultobj = 0; | |
36382 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36383 | int arg2 ; | |
36384 | bool arg3 = (bool) true ; | |
36385 | void *argp1 = 0 ; | |
36386 | int res1 = 0 ; | |
36387 | int val2 ; | |
36388 | int ecode2 = 0 ; | |
36389 | bool val3 ; | |
36390 | int ecode3 = 0 ; | |
36391 | PyObject * obj0 = 0 ; | |
36392 | PyObject * obj1 = 0 ; | |
36393 | PyObject * obj2 = 0 ; | |
36394 | char * kwnames[] = { | |
36395 | (char *) "self",(char *) "id",(char *) "greyout", NULL | |
36396 | }; | |
36397 | ||
36398 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:PseudoDC_SetIdGreyedOut",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36399 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36400 | if (!SWIG_IsOK(res1)) { | |
36401 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36402 | } | |
36403 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36404 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36405 | if (!SWIG_IsOK(ecode2)) { | |
36406 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
36407 | } | |
36408 | arg2 = static_cast< int >(val2); | |
36409 | if (obj2) { | |
36410 | ecode3 = SWIG_AsVal_bool(obj2, &val3); | |
36411 | if (!SWIG_IsOK(ecode3)) { | |
36412 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_SetIdGreyedOut" "', expected argument " "3"" of type '" "bool""'"); | |
36413 | } | |
36414 | arg3 = static_cast< bool >(val3); | |
36415 | } | |
36416 | { | |
36417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36418 | (arg1)->SetIdGreyedOut(arg2,arg3); | |
36419 | wxPyEndAllowThreads(__tstate); | |
36420 | if (PyErr_Occurred()) SWIG_fail; | |
36421 | } | |
36422 | resultobj = SWIG_Py_Void(); | |
36423 | return resultobj; | |
36424 | fail: | |
36425 | return NULL; | |
36426 | } | |
36427 | ||
36428 | ||
36429 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdGreyedOut(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36430 | PyObject *resultobj = 0; | |
36431 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36432 | int arg2 ; | |
36433 | bool result; | |
36434 | void *argp1 = 0 ; | |
36435 | int res1 = 0 ; | |
36436 | int val2 ; | |
36437 | int ecode2 = 0 ; | |
36438 | PyObject * obj0 = 0 ; | |
36439 | PyObject * obj1 = 0 ; | |
36440 | char * kwnames[] = { | |
36441 | (char *) "self",(char *) "id", NULL | |
36442 | }; | |
36443 | ||
36444 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdGreyedOut",kwnames,&obj0,&obj1)) SWIG_fail; | |
36445 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36446 | if (!SWIG_IsOK(res1)) { | |
36447 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36448 | } | |
36449 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36450 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36451 | if (!SWIG_IsOK(ecode2)) { | |
36452 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdGreyedOut" "', expected argument " "2"" of type '" "int""'"); | |
36453 | } | |
36454 | arg2 = static_cast< int >(val2); | |
36455 | { | |
36456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36457 | result = (bool)(arg1)->GetIdGreyedOut(arg2); | |
36458 | wxPyEndAllowThreads(__tstate); | |
36459 | if (PyErr_Occurred()) SWIG_fail; | |
36460 | } | |
36461 | { | |
36462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
36463 | } | |
36464 | return resultobj; | |
36465 | fail: | |
36466 | return NULL; | |
36467 | } | |
36468 | ||
36469 | ||
36470 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjects(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36471 | PyObject *resultobj = 0; | |
36472 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36473 | int arg2 ; | |
36474 | int arg3 ; | |
36475 | int arg4 = (int) 1 ; | |
36476 | wxColor const &arg5_defvalue = *wxWHITE ; | |
36477 | wxColor *arg5 = (wxColor *) &arg5_defvalue ; | |
36478 | PyObject *result = 0 ; | |
36479 | void *argp1 = 0 ; | |
36480 | int res1 = 0 ; | |
36481 | int val2 ; | |
36482 | int ecode2 = 0 ; | |
36483 | int val3 ; | |
36484 | int ecode3 = 0 ; | |
36485 | int val4 ; | |
36486 | int ecode4 = 0 ; | |
36487 | void *argp5 = 0 ; | |
36488 | int res5 = 0 ; | |
36489 | PyObject * obj0 = 0 ; | |
36490 | PyObject * obj1 = 0 ; | |
36491 | PyObject * obj2 = 0 ; | |
36492 | PyObject * obj3 = 0 ; | |
36493 | PyObject * obj4 = 0 ; | |
36494 | char * kwnames[] = { | |
36495 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius",(char *) "bg", NULL | |
36496 | }; | |
36497 | ||
36498 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_FindObjects",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36499 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36500 | if (!SWIG_IsOK(res1)) { | |
36501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjects" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36502 | } | |
36503 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36504 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36505 | if (!SWIG_IsOK(ecode2)) { | |
36506 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjects" "', expected argument " "2"" of type '" "int""'"); | |
36507 | } | |
36508 | arg2 = static_cast< int >(val2); | |
36509 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36510 | if (!SWIG_IsOK(ecode3)) { | |
36511 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjects" "', expected argument " "3"" of type '" "int""'"); | |
36512 | } | |
36513 | arg3 = static_cast< int >(val3); | |
36514 | if (obj3) { | |
36515 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36516 | if (!SWIG_IsOK(ecode4)) { | |
36517 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FindObjects" "', expected argument " "4"" of type '" "int""'"); | |
36518 | } | |
36519 | arg4 = static_cast< int >(val4); | |
36520 | } | |
36521 | if (obj4) { | |
36522 | res5 = SWIG_ConvertPtr(obj4, &argp5, SWIGTYPE_p_wxColor, 0 | 0); | |
36523 | if (!SWIG_IsOK(res5)) { | |
36524 | SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
36525 | } | |
36526 | if (!argp5) { | |
36527 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_FindObjects" "', expected argument " "5"" of type '" "wxColor const &""'"); | |
36528 | } | |
36529 | arg5 = reinterpret_cast< wxColor * >(argp5); | |
36530 | } | |
36531 | { | |
36532 | result = (PyObject *)(arg1)->FindObjects(arg2,arg3,arg4,(wxColor const &)*arg5); | |
36533 | if (PyErr_Occurred()) SWIG_fail; | |
36534 | } | |
36535 | resultobj = result; | |
36536 | return resultobj; | |
36537 | fail: | |
36538 | return NULL; | |
36539 | } | |
36540 | ||
36541 | ||
36542 | SWIGINTERN PyObject *_wrap_PseudoDC_FindObjectsByBBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36543 | PyObject *resultobj = 0; | |
36544 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36545 | int arg2 ; | |
36546 | int arg3 ; | |
36547 | PyObject *result = 0 ; | |
36548 | void *argp1 = 0 ; | |
36549 | int res1 = 0 ; | |
36550 | int val2 ; | |
36551 | int ecode2 = 0 ; | |
36552 | int val3 ; | |
36553 | int ecode3 = 0 ; | |
36554 | PyObject * obj0 = 0 ; | |
36555 | PyObject * obj1 = 0 ; | |
36556 | PyObject * obj2 = 0 ; | |
36557 | char * kwnames[] = { | |
36558 | (char *) "self",(char *) "x",(char *) "y", NULL | |
36559 | }; | |
36560 | ||
36561 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_FindObjectsByBBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36562 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36563 | if (!SWIG_IsOK(res1)) { | |
36564 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36565 | } | |
36566 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36567 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36568 | if (!SWIG_IsOK(ecode2)) { | |
36569 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "2"" of type '" "int""'"); | |
36570 | } | |
36571 | arg2 = static_cast< int >(val2); | |
36572 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36573 | if (!SWIG_IsOK(ecode3)) { | |
36574 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FindObjectsByBBox" "', expected argument " "3"" of type '" "int""'"); | |
36575 | } | |
36576 | arg3 = static_cast< int >(val3); | |
36577 | { | |
36578 | result = (PyObject *)(arg1)->FindObjectsByBBox(arg2,arg3); | |
36579 | if (PyErr_Occurred()) SWIG_fail; | |
36580 | } | |
36581 | resultobj = result; | |
36582 | return resultobj; | |
36583 | fail: | |
36584 | return NULL; | |
36585 | } | |
36586 | ||
36587 | ||
27e45892 RD |
36588 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { |
36589 | PyObject *resultobj = 0; | |
36590 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36591 | int arg2 ; | |
36592 | wxDC *arg3 = (wxDC *) 0 ; | |
36593 | void *argp1 = 0 ; | |
36594 | int res1 = 0 ; | |
36595 | int val2 ; | |
36596 | int ecode2 = 0 ; | |
36597 | void *argp3 = 0 ; | |
36598 | int res3 = 0 ; | |
36599 | PyObject * obj0 = 0 ; | |
36600 | PyObject * obj1 = 0 ; | |
36601 | PyObject * obj2 = 0 ; | |
36602 | char * kwnames[] = { | |
36603 | (char *) "self",(char *) "id",(char *) "dc", NULL | |
36604 | }; | |
36605 | ||
36606 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36607 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36608 | if (!SWIG_IsOK(res1)) { | |
36609 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36610 | } | |
36611 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36612 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36613 | if (!SWIG_IsOK(ecode2)) { | |
36614 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'"); | |
36615 | } | |
36616 | arg2 = static_cast< int >(val2); | |
36617 | res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36618 | if (!SWIG_IsOK(res3)) { | |
36619 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'"); | |
36620 | } | |
36621 | arg3 = reinterpret_cast< wxDC * >(argp3); | |
36622 | { | |
36623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36624 | (arg1)->DrawIdToDC(arg2,arg3); | |
36625 | wxPyEndAllowThreads(__tstate); | |
36626 | if (PyErr_Occurred()) SWIG_fail; | |
36627 | } | |
36628 | resultobj = SWIG_Py_Void(); | |
36629 | return resultobj; | |
36630 | fail: | |
36631 | return NULL; | |
36632 | } | |
36633 | ||
36634 | ||
36635 | SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36636 | PyObject *resultobj = 0; | |
36637 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36638 | int arg2 ; | |
36639 | wxRect *arg3 = 0 ; | |
36640 | void *argp1 = 0 ; | |
36641 | int res1 = 0 ; | |
36642 | int val2 ; | |
36643 | int ecode2 = 0 ; | |
36644 | wxRect temp3 ; | |
36645 | PyObject * obj0 = 0 ; | |
36646 | PyObject * obj1 = 0 ; | |
36647 | PyObject * obj2 = 0 ; | |
36648 | char * kwnames[] = { | |
36649 | (char *) "self",(char *) "id",(char *) "rect", NULL | |
36650 | }; | |
36651 | ||
36652 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36653 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36654 | if (!SWIG_IsOK(res1)) { | |
36655 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36656 | } | |
36657 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36658 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36659 | if (!SWIG_IsOK(ecode2)) { | |
36660 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
36661 | } | |
36662 | arg2 = static_cast< int >(val2); | |
36663 | { | |
36664 | arg3 = &temp3; | |
36665 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
36666 | } | |
36667 | { | |
36668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36669 | (arg1)->SetIdBounds(arg2,*arg3); | |
36670 | wxPyEndAllowThreads(__tstate); | |
36671 | if (PyErr_Occurred()) SWIG_fail; | |
36672 | } | |
36673 | resultobj = SWIG_Py_Void(); | |
36674 | return resultobj; | |
36675 | fail: | |
36676 | return NULL; | |
36677 | } | |
36678 | ||
36679 | ||
36680 | SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36681 | PyObject *resultobj = 0; | |
36682 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36683 | int arg2 ; | |
36684 | wxRect result; | |
36685 | void *argp1 = 0 ; | |
36686 | int res1 = 0 ; | |
36687 | int val2 ; | |
36688 | int ecode2 = 0 ; | |
36689 | PyObject * obj0 = 0 ; | |
36690 | PyObject * obj1 = 0 ; | |
36691 | char * kwnames[] = { | |
36692 | (char *) "self",(char *) "id", NULL | |
36693 | }; | |
36694 | ||
36695 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail; | |
36696 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36697 | if (!SWIG_IsOK(res1)) { | |
36698 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36699 | } | |
36700 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36701 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36702 | if (!SWIG_IsOK(ecode2)) { | |
36703 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'"); | |
36704 | } | |
36705 | arg2 = static_cast< int >(val2); | |
36706 | { | |
36707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36708 | result = wxPseudoDC_GetIdBounds(arg1,arg2); | |
36709 | wxPyEndAllowThreads(__tstate); | |
36710 | if (PyErr_Occurred()) SWIG_fail; | |
36711 | } | |
36712 | resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 ); | |
36713 | return resultobj; | |
36714 | fail: | |
36715 | return NULL; | |
36716 | } | |
36717 | ||
36718 | ||
36719 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36720 | PyObject *resultobj = 0; | |
36721 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36722 | wxDC *arg2 = (wxDC *) 0 ; | |
36723 | wxRect *arg3 = 0 ; | |
36724 | void *argp1 = 0 ; | |
36725 | int res1 = 0 ; | |
36726 | void *argp2 = 0 ; | |
36727 | int res2 = 0 ; | |
36728 | wxRect temp3 ; | |
36729 | PyObject * obj0 = 0 ; | |
36730 | PyObject * obj1 = 0 ; | |
36731 | PyObject * obj2 = 0 ; | |
36732 | char * kwnames[] = { | |
36733 | (char *) "self",(char *) "dc",(char *) "rect", NULL | |
36734 | }; | |
36735 | ||
36736 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36737 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36738 | if (!SWIG_IsOK(res1)) { | |
36739 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36740 | } | |
36741 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36742 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36743 | if (!SWIG_IsOK(res2)) { | |
36744 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36745 | } | |
36746 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36747 | { | |
36748 | arg3 = &temp3; | |
36749 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
36750 | } | |
36751 | { | |
36752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36753 | (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3); | |
36754 | wxPyEndAllowThreads(__tstate); | |
36755 | if (PyErr_Occurred()) SWIG_fail; | |
36756 | } | |
36757 | resultobj = SWIG_Py_Void(); | |
36758 | return resultobj; | |
36759 | fail: | |
36760 | return NULL; | |
36761 | } | |
36762 | ||
36763 | ||
36764 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36765 | PyObject *resultobj = 0; | |
36766 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36767 | wxDC *arg2 = (wxDC *) 0 ; | |
36768 | wxRegion *arg3 = 0 ; | |
36769 | void *argp1 = 0 ; | |
36770 | int res1 = 0 ; | |
36771 | void *argp2 = 0 ; | |
36772 | int res2 = 0 ; | |
36773 | void *argp3 = 0 ; | |
36774 | int res3 = 0 ; | |
36775 | PyObject * obj0 = 0 ; | |
36776 | PyObject * obj1 = 0 ; | |
36777 | PyObject * obj2 = 0 ; | |
36778 | char * kwnames[] = { | |
36779 | (char *) "self",(char *) "dc",(char *) "region", NULL | |
36780 | }; | |
36781 | ||
36782 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
36783 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36784 | if (!SWIG_IsOK(res1)) { | |
36785 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36786 | } | |
36787 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36788 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36789 | if (!SWIG_IsOK(res2)) { | |
36790 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36791 | } | |
36792 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36793 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0); | |
36794 | if (!SWIG_IsOK(res3)) { | |
36795 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
36796 | } | |
36797 | if (!argp3) { | |
36798 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'"); | |
36799 | } | |
36800 | arg3 = reinterpret_cast< wxRegion * >(argp3); | |
36801 | { | |
36802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36803 | (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3); | |
36804 | wxPyEndAllowThreads(__tstate); | |
36805 | if (PyErr_Occurred()) SWIG_fail; | |
36806 | } | |
36807 | resultobj = SWIG_Py_Void(); | |
36808 | return resultobj; | |
36809 | fail: | |
36810 | return NULL; | |
36811 | } | |
36812 | ||
36813 | ||
36814 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36815 | PyObject *resultobj = 0; | |
36816 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36817 | wxDC *arg2 = (wxDC *) 0 ; | |
36818 | void *argp1 = 0 ; | |
36819 | int res1 = 0 ; | |
36820 | void *argp2 = 0 ; | |
36821 | int res2 = 0 ; | |
36822 | PyObject * obj0 = 0 ; | |
36823 | PyObject * obj1 = 0 ; | |
36824 | char * kwnames[] = { | |
36825 | (char *) "self",(char *) "dc", NULL | |
36826 | }; | |
36827 | ||
36828 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail; | |
36829 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36830 | if (!SWIG_IsOK(res1)) { | |
36831 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36832 | } | |
36833 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36834 | res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 ); | |
36835 | if (!SWIG_IsOK(res2)) { | |
36836 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'"); | |
36837 | } | |
36838 | arg2 = reinterpret_cast< wxDC * >(argp2); | |
36839 | { | |
36840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36841 | (arg1)->DrawToDC(arg2); | |
36842 | wxPyEndAllowThreads(__tstate); | |
36843 | if (PyErr_Occurred()) SWIG_fail; | |
36844 | } | |
36845 | resultobj = SWIG_Py_Void(); | |
36846 | return resultobj; | |
36847 | fail: | |
36848 | return NULL; | |
36849 | } | |
36850 | ||
36851 | ||
36852 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36853 | PyObject *resultobj = 0; | |
36854 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36855 | int arg2 ; | |
36856 | int arg3 ; | |
36857 | wxColour *arg4 = 0 ; | |
36858 | int arg5 = (int) wxFLOOD_SURFACE ; | |
36859 | void *argp1 = 0 ; | |
36860 | int res1 = 0 ; | |
36861 | int val2 ; | |
36862 | int ecode2 = 0 ; | |
36863 | int val3 ; | |
36864 | int ecode3 = 0 ; | |
36865 | wxColour temp4 ; | |
36866 | int val5 ; | |
36867 | int ecode5 = 0 ; | |
36868 | PyObject * obj0 = 0 ; | |
36869 | PyObject * obj1 = 0 ; | |
36870 | PyObject * obj2 = 0 ; | |
36871 | PyObject * obj3 = 0 ; | |
36872 | PyObject * obj4 = 0 ; | |
36873 | char * kwnames[] = { | |
36874 | (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL | |
36875 | }; | |
36876 | ||
36877 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36878 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36879 | if (!SWIG_IsOK(res1)) { | |
36880 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36881 | } | |
36882 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36883 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
36884 | if (!SWIG_IsOK(ecode2)) { | |
36885 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'"); | |
36886 | } | |
36887 | arg2 = static_cast< int >(val2); | |
36888 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
36889 | if (!SWIG_IsOK(ecode3)) { | |
36890 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'"); | |
36891 | } | |
36892 | arg3 = static_cast< int >(val3); | |
36893 | { | |
36894 | arg4 = &temp4; | |
36895 | if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail; | |
36896 | } | |
36897 | if (obj4) { | |
36898 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
36899 | if (!SWIG_IsOK(ecode5)) { | |
36900 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'"); | |
36901 | } | |
36902 | arg5 = static_cast< int >(val5); | |
36903 | } | |
36904 | { | |
36905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36906 | (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5); | |
36907 | wxPyEndAllowThreads(__tstate); | |
36908 | if (PyErr_Occurred()) SWIG_fail; | |
36909 | } | |
36910 | resultobj = SWIG_Py_Void(); | |
36911 | return resultobj; | |
36912 | fail: | |
36913 | return NULL; | |
36914 | } | |
36915 | ||
36916 | ||
36917 | SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36918 | PyObject *resultobj = 0; | |
36919 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36920 | wxPoint *arg2 = 0 ; | |
36921 | wxColour *arg3 = 0 ; | |
36922 | int arg4 = (int) wxFLOOD_SURFACE ; | |
36923 | void *argp1 = 0 ; | |
36924 | int res1 = 0 ; | |
36925 | wxPoint temp2 ; | |
36926 | wxColour temp3 ; | |
36927 | int val4 ; | |
36928 | int ecode4 = 0 ; | |
36929 | PyObject * obj0 = 0 ; | |
36930 | PyObject * obj1 = 0 ; | |
36931 | PyObject * obj2 = 0 ; | |
36932 | PyObject * obj3 = 0 ; | |
36933 | char * kwnames[] = { | |
36934 | (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL | |
36935 | }; | |
36936 | ||
36937 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
36938 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36939 | if (!SWIG_IsOK(res1)) { | |
36940 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
36941 | } | |
36942 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
36943 | { | |
36944 | arg2 = &temp2; | |
36945 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
36946 | } | |
36947 | { | |
36948 | arg3 = &temp3; | |
36949 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
36950 | } | |
36951 | if (obj3) { | |
36952 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
36953 | if (!SWIG_IsOK(ecode4)) { | |
36954 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'"); | |
36955 | } | |
36956 | arg4 = static_cast< int >(val4); | |
36957 | } | |
36958 | { | |
36959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
36960 | (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4); | |
36961 | wxPyEndAllowThreads(__tstate); | |
36962 | if (PyErr_Occurred()) SWIG_fail; | |
36963 | } | |
36964 | resultobj = SWIG_Py_Void(); | |
36965 | return resultobj; | |
36966 | fail: | |
36967 | return NULL; | |
36968 | } | |
36969 | ||
36970 | ||
36971 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
36972 | PyObject *resultobj = 0; | |
36973 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
36974 | int arg2 ; | |
36975 | int arg3 ; | |
36976 | int arg4 ; | |
36977 | int arg5 ; | |
36978 | void *argp1 = 0 ; | |
36979 | int res1 = 0 ; | |
36980 | int val2 ; | |
36981 | int ecode2 = 0 ; | |
36982 | int val3 ; | |
36983 | int ecode3 = 0 ; | |
36984 | int val4 ; | |
36985 | int ecode4 = 0 ; | |
36986 | int val5 ; | |
36987 | int ecode5 = 0 ; | |
36988 | PyObject * obj0 = 0 ; | |
36989 | PyObject * obj1 = 0 ; | |
36990 | PyObject * obj2 = 0 ; | |
36991 | PyObject * obj3 = 0 ; | |
36992 | PyObject * obj4 = 0 ; | |
36993 | char * kwnames[] = { | |
36994 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL | |
36995 | }; | |
36996 | ||
36997 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
36998 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
36999 | if (!SWIG_IsOK(res1)) { | |
37000 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37001 | } | |
37002 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37003 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37004 | if (!SWIG_IsOK(ecode2)) { | |
37005 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'"); | |
37006 | } | |
37007 | arg2 = static_cast< int >(val2); | |
37008 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37009 | if (!SWIG_IsOK(ecode3)) { | |
37010 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'"); | |
37011 | } | |
37012 | arg3 = static_cast< int >(val3); | |
37013 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37014 | if (!SWIG_IsOK(ecode4)) { | |
37015 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'"); | |
37016 | } | |
37017 | arg4 = static_cast< int >(val4); | |
37018 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37019 | if (!SWIG_IsOK(ecode5)) { | |
37020 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'"); | |
37021 | } | |
37022 | arg5 = static_cast< int >(val5); | |
37023 | { | |
37024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37025 | (arg1)->DrawLine(arg2,arg3,arg4,arg5); | |
37026 | wxPyEndAllowThreads(__tstate); | |
37027 | if (PyErr_Occurred()) SWIG_fail; | |
37028 | } | |
37029 | resultobj = SWIG_Py_Void(); | |
37030 | return resultobj; | |
37031 | fail: | |
37032 | return NULL; | |
37033 | } | |
37034 | ||
37035 | ||
37036 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37037 | PyObject *resultobj = 0; | |
37038 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37039 | wxPoint *arg2 = 0 ; | |
37040 | wxPoint *arg3 = 0 ; | |
37041 | void *argp1 = 0 ; | |
37042 | int res1 = 0 ; | |
37043 | wxPoint temp2 ; | |
37044 | wxPoint temp3 ; | |
37045 | PyObject * obj0 = 0 ; | |
37046 | PyObject * obj1 = 0 ; | |
37047 | PyObject * obj2 = 0 ; | |
37048 | char * kwnames[] = { | |
37049 | (char *) "self",(char *) "pt1",(char *) "pt2", NULL | |
37050 | }; | |
37051 | ||
37052 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37053 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37054 | if (!SWIG_IsOK(res1)) { | |
37055 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37056 | } | |
37057 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37058 | { | |
37059 | arg2 = &temp2; | |
37060 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37061 | } | |
37062 | { | |
37063 | arg3 = &temp3; | |
37064 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37065 | } | |
37066 | { | |
37067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37068 | (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3); | |
37069 | wxPyEndAllowThreads(__tstate); | |
37070 | if (PyErr_Occurred()) SWIG_fail; | |
37071 | } | |
37072 | resultobj = SWIG_Py_Void(); | |
37073 | return resultobj; | |
37074 | fail: | |
37075 | return NULL; | |
37076 | } | |
37077 | ||
37078 | ||
37079 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37080 | PyObject *resultobj = 0; | |
37081 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37082 | int arg2 ; | |
37083 | int arg3 ; | |
37084 | void *argp1 = 0 ; | |
37085 | int res1 = 0 ; | |
37086 | int val2 ; | |
37087 | int ecode2 = 0 ; | |
37088 | int val3 ; | |
37089 | int ecode3 = 0 ; | |
37090 | PyObject * obj0 = 0 ; | |
37091 | PyObject * obj1 = 0 ; | |
37092 | PyObject * obj2 = 0 ; | |
37093 | char * kwnames[] = { | |
37094 | (char *) "self",(char *) "x",(char *) "y", NULL | |
37095 | }; | |
37096 | ||
37097 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37098 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37099 | if (!SWIG_IsOK(res1)) { | |
37100 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37101 | } | |
37102 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37103 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37104 | if (!SWIG_IsOK(ecode2)) { | |
37105 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'"); | |
37106 | } | |
37107 | arg2 = static_cast< int >(val2); | |
37108 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37109 | if (!SWIG_IsOK(ecode3)) { | |
37110 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'"); | |
37111 | } | |
37112 | arg3 = static_cast< int >(val3); | |
37113 | { | |
37114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37115 | (arg1)->CrossHair(arg2,arg3); | |
37116 | wxPyEndAllowThreads(__tstate); | |
37117 | if (PyErr_Occurred()) SWIG_fail; | |
37118 | } | |
37119 | resultobj = SWIG_Py_Void(); | |
37120 | return resultobj; | |
37121 | fail: | |
37122 | return NULL; | |
37123 | } | |
37124 | ||
37125 | ||
37126 | SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37127 | PyObject *resultobj = 0; | |
37128 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37129 | wxPoint *arg2 = 0 ; | |
37130 | void *argp1 = 0 ; | |
37131 | int res1 = 0 ; | |
37132 | wxPoint temp2 ; | |
37133 | PyObject * obj0 = 0 ; | |
37134 | PyObject * obj1 = 0 ; | |
37135 | char * kwnames[] = { | |
37136 | (char *) "self",(char *) "pt", NULL | |
37137 | }; | |
37138 | ||
37139 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
37140 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37141 | if (!SWIG_IsOK(res1)) { | |
37142 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37143 | } | |
37144 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37145 | { | |
37146 | arg2 = &temp2; | |
37147 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37148 | } | |
37149 | { | |
37150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37151 | (arg1)->CrossHair((wxPoint const &)*arg2); | |
37152 | wxPyEndAllowThreads(__tstate); | |
37153 | if (PyErr_Occurred()) SWIG_fail; | |
37154 | } | |
37155 | resultobj = SWIG_Py_Void(); | |
37156 | return resultobj; | |
37157 | fail: | |
37158 | return NULL; | |
37159 | } | |
37160 | ||
37161 | ||
37162 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37163 | PyObject *resultobj = 0; | |
37164 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37165 | int arg2 ; | |
37166 | int arg3 ; | |
37167 | int arg4 ; | |
37168 | int arg5 ; | |
37169 | int arg6 ; | |
37170 | int arg7 ; | |
37171 | void *argp1 = 0 ; | |
37172 | int res1 = 0 ; | |
37173 | int val2 ; | |
37174 | int ecode2 = 0 ; | |
37175 | int val3 ; | |
37176 | int ecode3 = 0 ; | |
37177 | int val4 ; | |
37178 | int ecode4 = 0 ; | |
37179 | int val5 ; | |
37180 | int ecode5 = 0 ; | |
37181 | int val6 ; | |
37182 | int ecode6 = 0 ; | |
37183 | int val7 ; | |
37184 | int ecode7 = 0 ; | |
37185 | PyObject * obj0 = 0 ; | |
37186 | PyObject * obj1 = 0 ; | |
37187 | PyObject * obj2 = 0 ; | |
37188 | PyObject * obj3 = 0 ; | |
37189 | PyObject * obj4 = 0 ; | |
37190 | PyObject * obj5 = 0 ; | |
37191 | PyObject * obj6 = 0 ; | |
37192 | char * kwnames[] = { | |
37193 | (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL | |
37194 | }; | |
37195 | ||
37196 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
37197 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37198 | if (!SWIG_IsOK(res1)) { | |
37199 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37200 | } | |
37201 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37202 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37203 | if (!SWIG_IsOK(ecode2)) { | |
37204 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'"); | |
37205 | } | |
37206 | arg2 = static_cast< int >(val2); | |
37207 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37208 | if (!SWIG_IsOK(ecode3)) { | |
37209 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'"); | |
37210 | } | |
37211 | arg3 = static_cast< int >(val3); | |
37212 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37213 | if (!SWIG_IsOK(ecode4)) { | |
37214 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'"); | |
37215 | } | |
37216 | arg4 = static_cast< int >(val4); | |
37217 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37218 | if (!SWIG_IsOK(ecode5)) { | |
37219 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'"); | |
37220 | } | |
37221 | arg5 = static_cast< int >(val5); | |
37222 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
37223 | if (!SWIG_IsOK(ecode6)) { | |
37224 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'"); | |
37225 | } | |
37226 | arg6 = static_cast< int >(val6); | |
37227 | ecode7 = SWIG_AsVal_int(obj6, &val7); | |
37228 | if (!SWIG_IsOK(ecode7)) { | |
37229 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'"); | |
37230 | } | |
37231 | arg7 = static_cast< int >(val7); | |
37232 | { | |
37233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37234 | (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
37235 | wxPyEndAllowThreads(__tstate); | |
37236 | if (PyErr_Occurred()) SWIG_fail; | |
37237 | } | |
37238 | resultobj = SWIG_Py_Void(); | |
37239 | return resultobj; | |
37240 | fail: | |
37241 | return NULL; | |
37242 | } | |
37243 | ||
37244 | ||
37245 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37246 | PyObject *resultobj = 0; | |
37247 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37248 | wxPoint *arg2 = 0 ; | |
37249 | wxPoint *arg3 = 0 ; | |
37250 | wxPoint *arg4 = 0 ; | |
37251 | void *argp1 = 0 ; | |
37252 | int res1 = 0 ; | |
37253 | wxPoint temp2 ; | |
37254 | wxPoint temp3 ; | |
37255 | wxPoint temp4 ; | |
37256 | PyObject * obj0 = 0 ; | |
37257 | PyObject * obj1 = 0 ; | |
37258 | PyObject * obj2 = 0 ; | |
37259 | PyObject * obj3 = 0 ; | |
37260 | char * kwnames[] = { | |
37261 | (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL | |
37262 | }; | |
37263 | ||
37264 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37265 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37266 | if (!SWIG_IsOK(res1)) { | |
37267 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37268 | } | |
37269 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37270 | { | |
37271 | arg2 = &temp2; | |
37272 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37273 | } | |
37274 | { | |
37275 | arg3 = &temp3; | |
37276 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
37277 | } | |
37278 | { | |
37279 | arg4 = &temp4; | |
37280 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
37281 | } | |
37282 | { | |
37283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37284 | (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4); | |
37285 | wxPyEndAllowThreads(__tstate); | |
37286 | if (PyErr_Occurred()) SWIG_fail; | |
37287 | } | |
37288 | resultobj = SWIG_Py_Void(); | |
37289 | return resultobj; | |
37290 | fail: | |
37291 | return NULL; | |
37292 | } | |
37293 | ||
37294 | ||
37295 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37296 | PyObject *resultobj = 0; | |
37297 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37298 | int arg2 ; | |
37299 | int arg3 ; | |
37300 | int arg4 ; | |
37301 | int arg5 ; | |
37302 | void *argp1 = 0 ; | |
37303 | int res1 = 0 ; | |
37304 | int val2 ; | |
37305 | int ecode2 = 0 ; | |
37306 | int val3 ; | |
37307 | int ecode3 = 0 ; | |
37308 | int val4 ; | |
37309 | int ecode4 = 0 ; | |
37310 | int val5 ; | |
37311 | int ecode5 = 0 ; | |
37312 | PyObject * obj0 = 0 ; | |
37313 | PyObject * obj1 = 0 ; | |
37314 | PyObject * obj2 = 0 ; | |
37315 | PyObject * obj3 = 0 ; | |
37316 | PyObject * obj4 = 0 ; | |
37317 | char * kwnames[] = { | |
37318 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37319 | }; | |
37320 | ||
37321 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37322 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37323 | if (!SWIG_IsOK(res1)) { | |
37324 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37325 | } | |
37326 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37327 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37328 | if (!SWIG_IsOK(ecode2)) { | |
37329 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'"); | |
37330 | } | |
37331 | arg2 = static_cast< int >(val2); | |
37332 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37333 | if (!SWIG_IsOK(ecode3)) { | |
37334 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'"); | |
37335 | } | |
37336 | arg3 = static_cast< int >(val3); | |
37337 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37338 | if (!SWIG_IsOK(ecode4)) { | |
37339 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'"); | |
37340 | } | |
37341 | arg4 = static_cast< int >(val4); | |
37342 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37343 | if (!SWIG_IsOK(ecode5)) { | |
37344 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'"); | |
37345 | } | |
37346 | arg5 = static_cast< int >(val5); | |
37347 | { | |
37348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37349 | (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5); | |
37350 | wxPyEndAllowThreads(__tstate); | |
37351 | if (PyErr_Occurred()) SWIG_fail; | |
37352 | } | |
37353 | resultobj = SWIG_Py_Void(); | |
37354 | return resultobj; | |
37355 | fail: | |
37356 | return NULL; | |
37357 | } | |
37358 | ||
37359 | ||
37360 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37361 | PyObject *resultobj = 0; | |
37362 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37363 | wxRect *arg2 = 0 ; | |
37364 | void *argp1 = 0 ; | |
37365 | int res1 = 0 ; | |
37366 | wxRect temp2 ; | |
37367 | PyObject * obj0 = 0 ; | |
37368 | PyObject * obj1 = 0 ; | |
37369 | char * kwnames[] = { | |
37370 | (char *) "self",(char *) "rect", NULL | |
37371 | }; | |
37372 | ||
37373 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
37374 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37375 | if (!SWIG_IsOK(res1)) { | |
37376 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37377 | } | |
37378 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37379 | { | |
37380 | arg2 = &temp2; | |
37381 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37382 | } | |
37383 | { | |
37384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37385 | (arg1)->DrawCheckMark((wxRect const &)*arg2); | |
37386 | wxPyEndAllowThreads(__tstate); | |
37387 | if (PyErr_Occurred()) SWIG_fail; | |
37388 | } | |
37389 | resultobj = SWIG_Py_Void(); | |
37390 | return resultobj; | |
37391 | fail: | |
37392 | return NULL; | |
37393 | } | |
37394 | ||
37395 | ||
37396 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37397 | PyObject *resultobj = 0; | |
37398 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37399 | int arg2 ; | |
37400 | int arg3 ; | |
37401 | int arg4 ; | |
37402 | int arg5 ; | |
37403 | double arg6 ; | |
37404 | double arg7 ; | |
37405 | void *argp1 = 0 ; | |
37406 | int res1 = 0 ; | |
37407 | int val2 ; | |
37408 | int ecode2 = 0 ; | |
37409 | int val3 ; | |
37410 | int ecode3 = 0 ; | |
37411 | int val4 ; | |
37412 | int ecode4 = 0 ; | |
37413 | int val5 ; | |
37414 | int ecode5 = 0 ; | |
37415 | double val6 ; | |
37416 | int ecode6 = 0 ; | |
37417 | double val7 ; | |
37418 | int ecode7 = 0 ; | |
37419 | PyObject * obj0 = 0 ; | |
37420 | PyObject * obj1 = 0 ; | |
37421 | PyObject * obj2 = 0 ; | |
37422 | PyObject * obj3 = 0 ; | |
37423 | PyObject * obj4 = 0 ; | |
37424 | PyObject * obj5 = 0 ; | |
37425 | PyObject * obj6 = 0 ; | |
37426 | char * kwnames[] = { | |
37427 | (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL | |
37428 | }; | |
37429 | ||
37430 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail; | |
37431 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37432 | if (!SWIG_IsOK(res1)) { | |
37433 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37434 | } | |
37435 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37436 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37437 | if (!SWIG_IsOK(ecode2)) { | |
37438 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'"); | |
37439 | } | |
37440 | arg2 = static_cast< int >(val2); | |
37441 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37442 | if (!SWIG_IsOK(ecode3)) { | |
37443 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'"); | |
37444 | } | |
37445 | arg3 = static_cast< int >(val3); | |
37446 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37447 | if (!SWIG_IsOK(ecode4)) { | |
37448 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'"); | |
37449 | } | |
37450 | arg4 = static_cast< int >(val4); | |
37451 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37452 | if (!SWIG_IsOK(ecode5)) { | |
37453 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'"); | |
37454 | } | |
37455 | arg5 = static_cast< int >(val5); | |
37456 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
37457 | if (!SWIG_IsOK(ecode6)) { | |
37458 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'"); | |
37459 | } | |
37460 | arg6 = static_cast< double >(val6); | |
37461 | ecode7 = SWIG_AsVal_double(obj6, &val7); | |
37462 | if (!SWIG_IsOK(ecode7)) { | |
37463 | SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'"); | |
37464 | } | |
37465 | arg7 = static_cast< double >(val7); | |
37466 | { | |
37467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37468 | (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7); | |
37469 | wxPyEndAllowThreads(__tstate); | |
37470 | if (PyErr_Occurred()) SWIG_fail; | |
37471 | } | |
37472 | resultobj = SWIG_Py_Void(); | |
37473 | return resultobj; | |
37474 | fail: | |
37475 | return NULL; | |
37476 | } | |
37477 | ||
37478 | ||
37479 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37480 | PyObject *resultobj = 0; | |
37481 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37482 | wxPoint *arg2 = 0 ; | |
37483 | wxSize *arg3 = 0 ; | |
37484 | double arg4 ; | |
37485 | double arg5 ; | |
37486 | void *argp1 = 0 ; | |
37487 | int res1 = 0 ; | |
37488 | wxPoint temp2 ; | |
37489 | wxSize temp3 ; | |
37490 | double val4 ; | |
37491 | int ecode4 = 0 ; | |
37492 | double val5 ; | |
37493 | int ecode5 = 0 ; | |
37494 | PyObject * obj0 = 0 ; | |
37495 | PyObject * obj1 = 0 ; | |
37496 | PyObject * obj2 = 0 ; | |
37497 | PyObject * obj3 = 0 ; | |
37498 | PyObject * obj4 = 0 ; | |
37499 | char * kwnames[] = { | |
37500 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL | |
37501 | }; | |
37502 | ||
37503 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37504 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37505 | if (!SWIG_IsOK(res1)) { | |
37506 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37507 | } | |
37508 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37509 | { | |
37510 | arg2 = &temp2; | |
37511 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37512 | } | |
37513 | { | |
37514 | arg3 = &temp3; | |
37515 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37516 | } | |
37517 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37518 | if (!SWIG_IsOK(ecode4)) { | |
37519 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'"); | |
37520 | } | |
37521 | arg4 = static_cast< double >(val4); | |
37522 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
37523 | if (!SWIG_IsOK(ecode5)) { | |
37524 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'"); | |
37525 | } | |
37526 | arg5 = static_cast< double >(val5); | |
37527 | { | |
37528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37529 | (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5); | |
37530 | wxPyEndAllowThreads(__tstate); | |
37531 | if (PyErr_Occurred()) SWIG_fail; | |
37532 | } | |
37533 | resultobj = SWIG_Py_Void(); | |
37534 | return resultobj; | |
37535 | fail: | |
37536 | return NULL; | |
37537 | } | |
37538 | ||
37539 | ||
37540 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37541 | PyObject *resultobj = 0; | |
37542 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37543 | int arg2 ; | |
37544 | int arg3 ; | |
37545 | void *argp1 = 0 ; | |
37546 | int res1 = 0 ; | |
37547 | int val2 ; | |
37548 | int ecode2 = 0 ; | |
37549 | int val3 ; | |
37550 | int ecode3 = 0 ; | |
37551 | PyObject * obj0 = 0 ; | |
37552 | PyObject * obj1 = 0 ; | |
37553 | PyObject * obj2 = 0 ; | |
37554 | char * kwnames[] = { | |
37555 | (char *) "self",(char *) "x",(char *) "y", NULL | |
37556 | }; | |
37557 | ||
37558 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37559 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37560 | if (!SWIG_IsOK(res1)) { | |
37561 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37562 | } | |
37563 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37564 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37565 | if (!SWIG_IsOK(ecode2)) { | |
37566 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'"); | |
37567 | } | |
37568 | arg2 = static_cast< int >(val2); | |
37569 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37570 | if (!SWIG_IsOK(ecode3)) { | |
37571 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'"); | |
37572 | } | |
37573 | arg3 = static_cast< int >(val3); | |
37574 | { | |
37575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37576 | (arg1)->DrawPoint(arg2,arg3); | |
37577 | wxPyEndAllowThreads(__tstate); | |
37578 | if (PyErr_Occurred()) SWIG_fail; | |
37579 | } | |
37580 | resultobj = SWIG_Py_Void(); | |
37581 | return resultobj; | |
37582 | fail: | |
37583 | return NULL; | |
37584 | } | |
37585 | ||
37586 | ||
37587 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37588 | PyObject *resultobj = 0; | |
37589 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37590 | wxPoint *arg2 = 0 ; | |
37591 | void *argp1 = 0 ; | |
37592 | int res1 = 0 ; | |
37593 | wxPoint temp2 ; | |
37594 | PyObject * obj0 = 0 ; | |
37595 | PyObject * obj1 = 0 ; | |
37596 | char * kwnames[] = { | |
37597 | (char *) "self",(char *) "pt", NULL | |
37598 | }; | |
37599 | ||
37600 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail; | |
37601 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37602 | if (!SWIG_IsOK(res1)) { | |
37603 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37604 | } | |
37605 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37606 | { | |
37607 | arg2 = &temp2; | |
37608 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37609 | } | |
37610 | { | |
37611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37612 | (arg1)->DrawPoint((wxPoint const &)*arg2); | |
37613 | wxPyEndAllowThreads(__tstate); | |
37614 | if (PyErr_Occurred()) SWIG_fail; | |
37615 | } | |
37616 | resultobj = SWIG_Py_Void(); | |
37617 | return resultobj; | |
37618 | fail: | |
37619 | return NULL; | |
37620 | } | |
37621 | ||
37622 | ||
37623 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37624 | PyObject *resultobj = 0; | |
37625 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37626 | int arg2 ; | |
37627 | int arg3 ; | |
37628 | int arg4 ; | |
37629 | int arg5 ; | |
37630 | void *argp1 = 0 ; | |
37631 | int res1 = 0 ; | |
37632 | int val2 ; | |
37633 | int ecode2 = 0 ; | |
37634 | int val3 ; | |
37635 | int ecode3 = 0 ; | |
37636 | int val4 ; | |
37637 | int ecode4 = 0 ; | |
37638 | int val5 ; | |
37639 | int ecode5 = 0 ; | |
37640 | PyObject * obj0 = 0 ; | |
37641 | PyObject * obj1 = 0 ; | |
37642 | PyObject * obj2 = 0 ; | |
37643 | PyObject * obj3 = 0 ; | |
37644 | PyObject * obj4 = 0 ; | |
37645 | char * kwnames[] = { | |
37646 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
37647 | }; | |
37648 | ||
37649 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
37650 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37651 | if (!SWIG_IsOK(res1)) { | |
37652 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37653 | } | |
37654 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37655 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37656 | if (!SWIG_IsOK(ecode2)) { | |
37657 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'"); | |
37658 | } | |
37659 | arg2 = static_cast< int >(val2); | |
37660 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37661 | if (!SWIG_IsOK(ecode3)) { | |
37662 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'"); | |
37663 | } | |
37664 | arg3 = static_cast< int >(val3); | |
37665 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37666 | if (!SWIG_IsOK(ecode4)) { | |
37667 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'"); | |
37668 | } | |
37669 | arg4 = static_cast< int >(val4); | |
37670 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37671 | if (!SWIG_IsOK(ecode5)) { | |
37672 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'"); | |
37673 | } | |
37674 | arg5 = static_cast< int >(val5); | |
37675 | { | |
37676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37677 | (arg1)->DrawRectangle(arg2,arg3,arg4,arg5); | |
37678 | wxPyEndAllowThreads(__tstate); | |
37679 | if (PyErr_Occurred()) SWIG_fail; | |
37680 | } | |
37681 | resultobj = SWIG_Py_Void(); | |
37682 | return resultobj; | |
37683 | fail: | |
37684 | return NULL; | |
37685 | } | |
37686 | ||
37687 | ||
37688 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37689 | PyObject *resultobj = 0; | |
37690 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37691 | wxRect *arg2 = 0 ; | |
37692 | void *argp1 = 0 ; | |
37693 | int res1 = 0 ; | |
37694 | wxRect temp2 ; | |
37695 | PyObject * obj0 = 0 ; | |
37696 | PyObject * obj1 = 0 ; | |
37697 | char * kwnames[] = { | |
37698 | (char *) "self",(char *) "rect", NULL | |
37699 | }; | |
37700 | ||
37701 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
37702 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37703 | if (!SWIG_IsOK(res1)) { | |
37704 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37705 | } | |
37706 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37707 | { | |
37708 | arg2 = &temp2; | |
37709 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37710 | } | |
37711 | { | |
37712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37713 | (arg1)->DrawRectangle((wxRect const &)*arg2); | |
37714 | wxPyEndAllowThreads(__tstate); | |
37715 | if (PyErr_Occurred()) SWIG_fail; | |
37716 | } | |
37717 | resultobj = SWIG_Py_Void(); | |
37718 | return resultobj; | |
37719 | fail: | |
37720 | return NULL; | |
37721 | } | |
37722 | ||
37723 | ||
37724 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37725 | PyObject *resultobj = 0; | |
37726 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37727 | wxPoint *arg2 = 0 ; | |
37728 | wxSize *arg3 = 0 ; | |
37729 | void *argp1 = 0 ; | |
37730 | int res1 = 0 ; | |
37731 | wxPoint temp2 ; | |
37732 | wxSize temp3 ; | |
37733 | PyObject * obj0 = 0 ; | |
37734 | PyObject * obj1 = 0 ; | |
37735 | PyObject * obj2 = 0 ; | |
37736 | char * kwnames[] = { | |
37737 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
37738 | }; | |
37739 | ||
37740 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37741 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37742 | if (!SWIG_IsOK(res1)) { | |
37743 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37744 | } | |
37745 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37746 | { | |
37747 | arg2 = &temp2; | |
37748 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37749 | } | |
37750 | { | |
37751 | arg3 = &temp3; | |
37752 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37753 | } | |
37754 | { | |
37755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37756 | (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
37757 | wxPyEndAllowThreads(__tstate); | |
37758 | if (PyErr_Occurred()) SWIG_fail; | |
37759 | } | |
37760 | resultobj = SWIG_Py_Void(); | |
37761 | return resultobj; | |
37762 | fail: | |
37763 | return NULL; | |
37764 | } | |
37765 | ||
37766 | ||
37767 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37768 | PyObject *resultobj = 0; | |
37769 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37770 | int arg2 ; | |
37771 | int arg3 ; | |
37772 | int arg4 ; | |
37773 | int arg5 ; | |
37774 | double arg6 ; | |
37775 | void *argp1 = 0 ; | |
37776 | int res1 = 0 ; | |
37777 | int val2 ; | |
37778 | int ecode2 = 0 ; | |
37779 | int val3 ; | |
37780 | int ecode3 = 0 ; | |
37781 | int val4 ; | |
37782 | int ecode4 = 0 ; | |
37783 | int val5 ; | |
37784 | int ecode5 = 0 ; | |
37785 | double val6 ; | |
37786 | int ecode6 = 0 ; | |
37787 | PyObject * obj0 = 0 ; | |
37788 | PyObject * obj1 = 0 ; | |
37789 | PyObject * obj2 = 0 ; | |
37790 | PyObject * obj3 = 0 ; | |
37791 | PyObject * obj4 = 0 ; | |
37792 | PyObject * obj5 = 0 ; | |
37793 | char * kwnames[] = { | |
37794 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL | |
37795 | }; | |
37796 | ||
37797 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
37798 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37799 | if (!SWIG_IsOK(res1)) { | |
37800 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37801 | } | |
37802 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37803 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37804 | if (!SWIG_IsOK(ecode2)) { | |
37805 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'"); | |
37806 | } | |
37807 | arg2 = static_cast< int >(val2); | |
37808 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37809 | if (!SWIG_IsOK(ecode3)) { | |
37810 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'"); | |
37811 | } | |
37812 | arg3 = static_cast< int >(val3); | |
37813 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37814 | if (!SWIG_IsOK(ecode4)) { | |
37815 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'"); | |
37816 | } | |
37817 | arg4 = static_cast< int >(val4); | |
37818 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
37819 | if (!SWIG_IsOK(ecode5)) { | |
37820 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'"); | |
37821 | } | |
37822 | arg5 = static_cast< int >(val5); | |
37823 | ecode6 = SWIG_AsVal_double(obj5, &val6); | |
37824 | if (!SWIG_IsOK(ecode6)) { | |
37825 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'"); | |
37826 | } | |
37827 | arg6 = static_cast< double >(val6); | |
37828 | { | |
37829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37830 | (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6); | |
37831 | wxPyEndAllowThreads(__tstate); | |
37832 | if (PyErr_Occurred()) SWIG_fail; | |
37833 | } | |
37834 | resultobj = SWIG_Py_Void(); | |
37835 | return resultobj; | |
37836 | fail: | |
37837 | return NULL; | |
37838 | } | |
37839 | ||
37840 | ||
37841 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37842 | PyObject *resultobj = 0; | |
37843 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37844 | wxRect *arg2 = 0 ; | |
37845 | double arg3 ; | |
37846 | void *argp1 = 0 ; | |
37847 | int res1 = 0 ; | |
37848 | wxRect temp2 ; | |
37849 | double val3 ; | |
37850 | int ecode3 = 0 ; | |
37851 | PyObject * obj0 = 0 ; | |
37852 | PyObject * obj1 = 0 ; | |
37853 | PyObject * obj2 = 0 ; | |
37854 | char * kwnames[] = { | |
37855 | (char *) "self",(char *) "r",(char *) "radius", NULL | |
37856 | }; | |
37857 | ||
37858 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
37859 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37860 | if (!SWIG_IsOK(res1)) { | |
37861 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37862 | } | |
37863 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37864 | { | |
37865 | arg2 = &temp2; | |
37866 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
37867 | } | |
37868 | ecode3 = SWIG_AsVal_double(obj2, &val3); | |
37869 | if (!SWIG_IsOK(ecode3)) { | |
37870 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'"); | |
37871 | } | |
37872 | arg3 = static_cast< double >(val3); | |
37873 | { | |
37874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37875 | (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3); | |
37876 | wxPyEndAllowThreads(__tstate); | |
37877 | if (PyErr_Occurred()) SWIG_fail; | |
37878 | } | |
37879 | resultobj = SWIG_Py_Void(); | |
37880 | return resultobj; | |
37881 | fail: | |
37882 | return NULL; | |
37883 | } | |
37884 | ||
37885 | ||
37886 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37887 | PyObject *resultobj = 0; | |
37888 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37889 | wxPoint *arg2 = 0 ; | |
37890 | wxSize *arg3 = 0 ; | |
37891 | double arg4 ; | |
37892 | void *argp1 = 0 ; | |
37893 | int res1 = 0 ; | |
37894 | wxPoint temp2 ; | |
37895 | wxSize temp3 ; | |
37896 | double val4 ; | |
37897 | int ecode4 = 0 ; | |
37898 | PyObject * obj0 = 0 ; | |
37899 | PyObject * obj1 = 0 ; | |
37900 | PyObject * obj2 = 0 ; | |
37901 | PyObject * obj3 = 0 ; | |
37902 | char * kwnames[] = { | |
37903 | (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL | |
37904 | }; | |
37905 | ||
37906 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37907 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37908 | if (!SWIG_IsOK(res1)) { | |
37909 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37910 | } | |
37911 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37912 | { | |
37913 | arg2 = &temp2; | |
37914 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
37915 | } | |
37916 | { | |
37917 | arg3 = &temp3; | |
37918 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
37919 | } | |
37920 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
37921 | if (!SWIG_IsOK(ecode4)) { | |
37922 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'"); | |
37923 | } | |
37924 | arg4 = static_cast< double >(val4); | |
37925 | { | |
37926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37927 | (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4); | |
37928 | wxPyEndAllowThreads(__tstate); | |
37929 | if (PyErr_Occurred()) SWIG_fail; | |
37930 | } | |
37931 | resultobj = SWIG_Py_Void(); | |
37932 | return resultobj; | |
37933 | fail: | |
37934 | return NULL; | |
37935 | } | |
37936 | ||
37937 | ||
37938 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37939 | PyObject *resultobj = 0; | |
37940 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37941 | int arg2 ; | |
37942 | int arg3 ; | |
37943 | int arg4 ; | |
37944 | void *argp1 = 0 ; | |
37945 | int res1 = 0 ; | |
37946 | int val2 ; | |
37947 | int ecode2 = 0 ; | |
37948 | int val3 ; | |
37949 | int ecode3 = 0 ; | |
37950 | int val4 ; | |
37951 | int ecode4 = 0 ; | |
37952 | PyObject * obj0 = 0 ; | |
37953 | PyObject * obj1 = 0 ; | |
37954 | PyObject * obj2 = 0 ; | |
37955 | PyObject * obj3 = 0 ; | |
37956 | char * kwnames[] = { | |
37957 | (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL | |
37958 | }; | |
37959 | ||
37960 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
37961 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
37962 | if (!SWIG_IsOK(res1)) { | |
37963 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
37964 | } | |
37965 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
37966 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
37967 | if (!SWIG_IsOK(ecode2)) { | |
37968 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'"); | |
37969 | } | |
37970 | arg2 = static_cast< int >(val2); | |
37971 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
37972 | if (!SWIG_IsOK(ecode3)) { | |
37973 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'"); | |
37974 | } | |
37975 | arg3 = static_cast< int >(val3); | |
37976 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
37977 | if (!SWIG_IsOK(ecode4)) { | |
37978 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'"); | |
37979 | } | |
37980 | arg4 = static_cast< int >(val4); | |
37981 | { | |
37982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
37983 | (arg1)->DrawCircle(arg2,arg3,arg4); | |
37984 | wxPyEndAllowThreads(__tstate); | |
37985 | if (PyErr_Occurred()) SWIG_fail; | |
37986 | } | |
37987 | resultobj = SWIG_Py_Void(); | |
37988 | return resultobj; | |
37989 | fail: | |
37990 | return NULL; | |
37991 | } | |
37992 | ||
37993 | ||
37994 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
37995 | PyObject *resultobj = 0; | |
37996 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
37997 | wxPoint *arg2 = 0 ; | |
37998 | int arg3 ; | |
37999 | void *argp1 = 0 ; | |
38000 | int res1 = 0 ; | |
38001 | wxPoint temp2 ; | |
38002 | int val3 ; | |
38003 | int ecode3 = 0 ; | |
38004 | PyObject * obj0 = 0 ; | |
38005 | PyObject * obj1 = 0 ; | |
38006 | PyObject * obj2 = 0 ; | |
38007 | char * kwnames[] = { | |
38008 | (char *) "self",(char *) "pt",(char *) "radius", NULL | |
38009 | }; | |
38010 | ||
38011 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38012 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38013 | if (!SWIG_IsOK(res1)) { | |
38014 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38015 | } | |
38016 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38017 | { | |
38018 | arg2 = &temp2; | |
38019 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
38020 | } | |
38021 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38022 | if (!SWIG_IsOK(ecode3)) { | |
38023 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'"); | |
38024 | } | |
38025 | arg3 = static_cast< int >(val3); | |
38026 | { | |
38027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38028 | (arg1)->DrawCircle((wxPoint const &)*arg2,arg3); | |
38029 | wxPyEndAllowThreads(__tstate); | |
38030 | if (PyErr_Occurred()) SWIG_fail; | |
38031 | } | |
38032 | resultobj = SWIG_Py_Void(); | |
38033 | return resultobj; | |
38034 | fail: | |
38035 | return NULL; | |
38036 | } | |
38037 | ||
38038 | ||
38039 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38040 | PyObject *resultobj = 0; | |
38041 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38042 | int arg2 ; | |
38043 | int arg3 ; | |
38044 | int arg4 ; | |
38045 | int arg5 ; | |
38046 | void *argp1 = 0 ; | |
38047 | int res1 = 0 ; | |
38048 | int val2 ; | |
38049 | int ecode2 = 0 ; | |
38050 | int val3 ; | |
38051 | int ecode3 = 0 ; | |
38052 | int val4 ; | |
38053 | int ecode4 = 0 ; | |
38054 | int val5 ; | |
38055 | int ecode5 = 0 ; | |
38056 | PyObject * obj0 = 0 ; | |
38057 | PyObject * obj1 = 0 ; | |
38058 | PyObject * obj2 = 0 ; | |
38059 | PyObject * obj3 = 0 ; | |
38060 | PyObject * obj4 = 0 ; | |
38061 | char * kwnames[] = { | |
38062 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
38063 | }; | |
38064 | ||
38065 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38066 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38067 | if (!SWIG_IsOK(res1)) { | |
38068 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38069 | } | |
38070 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38071 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
38072 | if (!SWIG_IsOK(ecode2)) { | |
38073 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'"); | |
38074 | } | |
38075 | arg2 = static_cast< int >(val2); | |
38076 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38077 | if (!SWIG_IsOK(ecode3)) { | |
38078 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'"); | |
38079 | } | |
38080 | arg3 = static_cast< int >(val3); | |
38081 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38082 | if (!SWIG_IsOK(ecode4)) { | |
38083 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'"); | |
38084 | } | |
38085 | arg4 = static_cast< int >(val4); | |
38086 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38087 | if (!SWIG_IsOK(ecode5)) { | |
38088 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'"); | |
38089 | } | |
38090 | arg5 = static_cast< int >(val5); | |
38091 | { | |
38092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38093 | (arg1)->DrawEllipse(arg2,arg3,arg4,arg5); | |
38094 | wxPyEndAllowThreads(__tstate); | |
38095 | if (PyErr_Occurred()) SWIG_fail; | |
38096 | } | |
38097 | resultobj = SWIG_Py_Void(); | |
38098 | return resultobj; | |
38099 | fail: | |
38100 | return NULL; | |
38101 | } | |
38102 | ||
38103 | ||
38104 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38105 | PyObject *resultobj = 0; | |
38106 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38107 | wxRect *arg2 = 0 ; | |
38108 | void *argp1 = 0 ; | |
38109 | int res1 = 0 ; | |
38110 | wxRect temp2 ; | |
38111 | PyObject * obj0 = 0 ; | |
38112 | PyObject * obj1 = 0 ; | |
38113 | char * kwnames[] = { | |
38114 | (char *) "self",(char *) "rect", NULL | |
38115 | }; | |
38116 | ||
38117 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail; | |
38118 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38119 | if (!SWIG_IsOK(res1)) { | |
38120 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38121 | } | |
38122 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38123 | { | |
38124 | arg2 = &temp2; | |
38125 | if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail; | |
38126 | } | |
38127 | { | |
38128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38129 | (arg1)->DrawEllipse((wxRect const &)*arg2); | |
38130 | wxPyEndAllowThreads(__tstate); | |
38131 | if (PyErr_Occurred()) SWIG_fail; | |
38132 | } | |
38133 | resultobj = SWIG_Py_Void(); | |
38134 | return resultobj; | |
38135 | fail: | |
38136 | return NULL; | |
38137 | } | |
38138 | ||
38139 | ||
38140 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38141 | PyObject *resultobj = 0; | |
38142 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38143 | wxPoint *arg2 = 0 ; | |
38144 | wxSize *arg3 = 0 ; | |
38145 | void *argp1 = 0 ; | |
38146 | int res1 = 0 ; | |
38147 | wxPoint temp2 ; | |
38148 | wxSize temp3 ; | |
38149 | PyObject * obj0 = 0 ; | |
38150 | PyObject * obj1 = 0 ; | |
38151 | PyObject * obj2 = 0 ; | |
38152 | char * kwnames[] = { | |
38153 | (char *) "self",(char *) "pt",(char *) "sz", NULL | |
38154 | }; | |
38155 | ||
38156 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38157 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38158 | if (!SWIG_IsOK(res1)) { | |
38159 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38160 | } | |
38161 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38162 | { | |
38163 | arg2 = &temp2; | |
38164 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
38165 | } | |
38166 | { | |
38167 | arg3 = &temp3; | |
38168 | if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail; | |
38169 | } | |
38170 | { | |
38171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38172 | (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3); | |
38173 | wxPyEndAllowThreads(__tstate); | |
38174 | if (PyErr_Occurred()) SWIG_fail; | |
38175 | } | |
38176 | resultobj = SWIG_Py_Void(); | |
38177 | return resultobj; | |
38178 | fail: | |
38179 | return NULL; | |
38180 | } | |
38181 | ||
38182 | ||
38183 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38184 | PyObject *resultobj = 0; | |
38185 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38186 | wxIcon *arg2 = 0 ; | |
38187 | int arg3 ; | |
38188 | int arg4 ; | |
38189 | void *argp1 = 0 ; | |
38190 | int res1 = 0 ; | |
38191 | void *argp2 = 0 ; | |
38192 | int res2 = 0 ; | |
38193 | int val3 ; | |
38194 | int ecode3 = 0 ; | |
38195 | int val4 ; | |
38196 | int ecode4 = 0 ; | |
38197 | PyObject * obj0 = 0 ; | |
38198 | PyObject * obj1 = 0 ; | |
38199 | PyObject * obj2 = 0 ; | |
38200 | PyObject * obj3 = 0 ; | |
38201 | char * kwnames[] = { | |
38202 | (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL | |
38203 | }; | |
38204 | ||
38205 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38206 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38207 | if (!SWIG_IsOK(res1)) { | |
38208 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38209 | } | |
38210 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38211 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
38212 | if (!SWIG_IsOK(res2)) { | |
38213 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38214 | } | |
38215 | if (!argp2) { | |
38216 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38217 | } | |
38218 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
38219 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38220 | if (!SWIG_IsOK(ecode3)) { | |
38221 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'"); | |
38222 | } | |
38223 | arg3 = static_cast< int >(val3); | |
38224 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38225 | if (!SWIG_IsOK(ecode4)) { | |
38226 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'"); | |
38227 | } | |
38228 | arg4 = static_cast< int >(val4); | |
38229 | { | |
38230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38231 | (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4); | |
38232 | wxPyEndAllowThreads(__tstate); | |
38233 | if (PyErr_Occurred()) SWIG_fail; | |
38234 | } | |
38235 | resultobj = SWIG_Py_Void(); | |
38236 | return resultobj; | |
38237 | fail: | |
38238 | return NULL; | |
38239 | } | |
38240 | ||
38241 | ||
38242 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38243 | PyObject *resultobj = 0; | |
38244 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38245 | wxIcon *arg2 = 0 ; | |
38246 | wxPoint *arg3 = 0 ; | |
38247 | void *argp1 = 0 ; | |
38248 | int res1 = 0 ; | |
38249 | void *argp2 = 0 ; | |
38250 | int res2 = 0 ; | |
38251 | wxPoint temp3 ; | |
38252 | PyObject * obj0 = 0 ; | |
38253 | PyObject * obj1 = 0 ; | |
38254 | PyObject * obj2 = 0 ; | |
38255 | char * kwnames[] = { | |
38256 | (char *) "self",(char *) "icon",(char *) "pt", NULL | |
38257 | }; | |
38258 | ||
38259 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38260 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38261 | if (!SWIG_IsOK(res1)) { | |
38262 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38263 | } | |
38264 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38265 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0); | |
38266 | if (!SWIG_IsOK(res2)) { | |
38267 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38268 | } | |
38269 | if (!argp2) { | |
38270 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'"); | |
38271 | } | |
38272 | arg2 = reinterpret_cast< wxIcon * >(argp2); | |
38273 | { | |
38274 | arg3 = &temp3; | |
38275 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38276 | } | |
38277 | { | |
38278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38279 | (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3); | |
38280 | wxPyEndAllowThreads(__tstate); | |
38281 | if (PyErr_Occurred()) SWIG_fail; | |
38282 | } | |
38283 | resultobj = SWIG_Py_Void(); | |
38284 | return resultobj; | |
38285 | fail: | |
38286 | return NULL; | |
38287 | } | |
38288 | ||
38289 | ||
38290 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38291 | PyObject *resultobj = 0; | |
38292 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38293 | wxBitmap *arg2 = 0 ; | |
38294 | int arg3 ; | |
38295 | int arg4 ; | |
38296 | bool arg5 = (bool) false ; | |
38297 | void *argp1 = 0 ; | |
38298 | int res1 = 0 ; | |
38299 | void *argp2 = 0 ; | |
38300 | int res2 = 0 ; | |
38301 | int val3 ; | |
38302 | int ecode3 = 0 ; | |
38303 | int val4 ; | |
38304 | int ecode4 = 0 ; | |
38305 | bool val5 ; | |
38306 | int ecode5 = 0 ; | |
38307 | PyObject * obj0 = 0 ; | |
38308 | PyObject * obj1 = 0 ; | |
38309 | PyObject * obj2 = 0 ; | |
38310 | PyObject * obj3 = 0 ; | |
38311 | PyObject * obj4 = 0 ; | |
38312 | char * kwnames[] = { | |
38313 | (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL | |
38314 | }; | |
38315 | ||
38316 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38317 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38318 | if (!SWIG_IsOK(res1)) { | |
38319 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38320 | } | |
38321 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38322 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
38323 | if (!SWIG_IsOK(res2)) { | |
38324 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38325 | } | |
38326 | if (!argp2) { | |
38327 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38328 | } | |
38329 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
38330 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38331 | if (!SWIG_IsOK(ecode3)) { | |
38332 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'"); | |
38333 | } | |
38334 | arg3 = static_cast< int >(val3); | |
38335 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38336 | if (!SWIG_IsOK(ecode4)) { | |
38337 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'"); | |
38338 | } | |
38339 | arg4 = static_cast< int >(val4); | |
38340 | if (obj4) { | |
38341 | ecode5 = SWIG_AsVal_bool(obj4, &val5); | |
38342 | if (!SWIG_IsOK(ecode5)) { | |
38343 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'"); | |
38344 | } | |
38345 | arg5 = static_cast< bool >(val5); | |
38346 | } | |
38347 | { | |
38348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38349 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5); | |
38350 | wxPyEndAllowThreads(__tstate); | |
38351 | if (PyErr_Occurred()) SWIG_fail; | |
38352 | } | |
38353 | resultobj = SWIG_Py_Void(); | |
38354 | return resultobj; | |
38355 | fail: | |
38356 | return NULL; | |
38357 | } | |
38358 | ||
38359 | ||
38360 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38361 | PyObject *resultobj = 0; | |
38362 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38363 | wxBitmap *arg2 = 0 ; | |
38364 | wxPoint *arg3 = 0 ; | |
38365 | bool arg4 = (bool) false ; | |
38366 | void *argp1 = 0 ; | |
38367 | int res1 = 0 ; | |
38368 | void *argp2 = 0 ; | |
38369 | int res2 = 0 ; | |
38370 | wxPoint temp3 ; | |
38371 | bool val4 ; | |
38372 | int ecode4 = 0 ; | |
38373 | PyObject * obj0 = 0 ; | |
38374 | PyObject * obj1 = 0 ; | |
38375 | PyObject * obj2 = 0 ; | |
38376 | PyObject * obj3 = 0 ; | |
38377 | char * kwnames[] = { | |
38378 | (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL | |
38379 | }; | |
38380 | ||
38381 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38382 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38383 | if (!SWIG_IsOK(res1)) { | |
38384 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38385 | } | |
38386 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38387 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0); | |
38388 | if (!SWIG_IsOK(res2)) { | |
38389 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38390 | } | |
38391 | if (!argp2) { | |
38392 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'"); | |
38393 | } | |
38394 | arg2 = reinterpret_cast< wxBitmap * >(argp2); | |
38395 | { | |
38396 | arg3 = &temp3; | |
38397 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38398 | } | |
38399 | if (obj3) { | |
38400 | ecode4 = SWIG_AsVal_bool(obj3, &val4); | |
38401 | if (!SWIG_IsOK(ecode4)) { | |
38402 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'"); | |
38403 | } | |
38404 | arg4 = static_cast< bool >(val4); | |
38405 | } | |
38406 | { | |
38407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38408 | (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4); | |
38409 | wxPyEndAllowThreads(__tstate); | |
38410 | if (PyErr_Occurred()) SWIG_fail; | |
38411 | } | |
38412 | resultobj = SWIG_Py_Void(); | |
38413 | return resultobj; | |
38414 | fail: | |
38415 | return NULL; | |
38416 | } | |
38417 | ||
38418 | ||
38419 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38420 | PyObject *resultobj = 0; | |
38421 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38422 | wxString *arg2 = 0 ; | |
38423 | int arg3 ; | |
38424 | int arg4 ; | |
38425 | void *argp1 = 0 ; | |
38426 | int res1 = 0 ; | |
38427 | bool temp2 = false ; | |
38428 | int val3 ; | |
38429 | int ecode3 = 0 ; | |
38430 | int val4 ; | |
38431 | int ecode4 = 0 ; | |
38432 | PyObject * obj0 = 0 ; | |
38433 | PyObject * obj1 = 0 ; | |
38434 | PyObject * obj2 = 0 ; | |
38435 | PyObject * obj3 = 0 ; | |
38436 | char * kwnames[] = { | |
38437 | (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL | |
38438 | }; | |
38439 | ||
38440 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38441 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38442 | if (!SWIG_IsOK(res1)) { | |
38443 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38444 | } | |
38445 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38446 | { | |
38447 | arg2 = wxString_in_helper(obj1); | |
38448 | if (arg2 == NULL) SWIG_fail; | |
38449 | temp2 = true; | |
38450 | } | |
38451 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38452 | if (!SWIG_IsOK(ecode3)) { | |
38453 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'"); | |
38454 | } | |
38455 | arg3 = static_cast< int >(val3); | |
38456 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38457 | if (!SWIG_IsOK(ecode4)) { | |
38458 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'"); | |
38459 | } | |
38460 | arg4 = static_cast< int >(val4); | |
38461 | { | |
38462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38463 | (arg1)->DrawText((wxString const &)*arg2,arg3,arg4); | |
38464 | wxPyEndAllowThreads(__tstate); | |
38465 | if (PyErr_Occurred()) SWIG_fail; | |
38466 | } | |
38467 | resultobj = SWIG_Py_Void(); | |
38468 | { | |
38469 | if (temp2) | |
38470 | delete arg2; | |
38471 | } | |
38472 | return resultobj; | |
38473 | fail: | |
38474 | { | |
38475 | if (temp2) | |
38476 | delete arg2; | |
38477 | } | |
38478 | return NULL; | |
38479 | } | |
38480 | ||
38481 | ||
38482 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38483 | PyObject *resultobj = 0; | |
38484 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38485 | wxString *arg2 = 0 ; | |
38486 | wxPoint *arg3 = 0 ; | |
38487 | void *argp1 = 0 ; | |
38488 | int res1 = 0 ; | |
38489 | bool temp2 = false ; | |
38490 | wxPoint temp3 ; | |
38491 | PyObject * obj0 = 0 ; | |
38492 | PyObject * obj1 = 0 ; | |
38493 | PyObject * obj2 = 0 ; | |
38494 | char * kwnames[] = { | |
38495 | (char *) "self",(char *) "text",(char *) "pt", NULL | |
38496 | }; | |
38497 | ||
38498 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail; | |
38499 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38500 | if (!SWIG_IsOK(res1)) { | |
38501 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38502 | } | |
38503 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38504 | { | |
38505 | arg2 = wxString_in_helper(obj1); | |
38506 | if (arg2 == NULL) SWIG_fail; | |
38507 | temp2 = true; | |
38508 | } | |
38509 | { | |
38510 | arg3 = &temp3; | |
38511 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38512 | } | |
38513 | { | |
38514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38515 | (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3); | |
38516 | wxPyEndAllowThreads(__tstate); | |
38517 | if (PyErr_Occurred()) SWIG_fail; | |
38518 | } | |
38519 | resultobj = SWIG_Py_Void(); | |
38520 | { | |
38521 | if (temp2) | |
38522 | delete arg2; | |
38523 | } | |
38524 | return resultobj; | |
38525 | fail: | |
38526 | { | |
38527 | if (temp2) | |
38528 | delete arg2; | |
38529 | } | |
38530 | return NULL; | |
38531 | } | |
38532 | ||
38533 | ||
38534 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38535 | PyObject *resultobj = 0; | |
38536 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38537 | wxString *arg2 = 0 ; | |
38538 | int arg3 ; | |
38539 | int arg4 ; | |
38540 | double arg5 ; | |
38541 | void *argp1 = 0 ; | |
38542 | int res1 = 0 ; | |
38543 | bool temp2 = false ; | |
38544 | int val3 ; | |
38545 | int ecode3 = 0 ; | |
38546 | int val4 ; | |
38547 | int ecode4 = 0 ; | |
38548 | double val5 ; | |
38549 | int ecode5 = 0 ; | |
38550 | PyObject * obj0 = 0 ; | |
38551 | PyObject * obj1 = 0 ; | |
38552 | PyObject * obj2 = 0 ; | |
38553 | PyObject * obj3 = 0 ; | |
38554 | PyObject * obj4 = 0 ; | |
38555 | char * kwnames[] = { | |
38556 | (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL | |
38557 | }; | |
38558 | ||
38559 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38560 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38561 | if (!SWIG_IsOK(res1)) { | |
38562 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38563 | } | |
38564 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38565 | { | |
38566 | arg2 = wxString_in_helper(obj1); | |
38567 | if (arg2 == NULL) SWIG_fail; | |
38568 | temp2 = true; | |
38569 | } | |
38570 | ecode3 = SWIG_AsVal_int(obj2, &val3); | |
38571 | if (!SWIG_IsOK(ecode3)) { | |
38572 | SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'"); | |
38573 | } | |
38574 | arg3 = static_cast< int >(val3); | |
38575 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38576 | if (!SWIG_IsOK(ecode4)) { | |
38577 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'"); | |
38578 | } | |
38579 | arg4 = static_cast< int >(val4); | |
38580 | ecode5 = SWIG_AsVal_double(obj4, &val5); | |
38581 | if (!SWIG_IsOK(ecode5)) { | |
38582 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'"); | |
38583 | } | |
38584 | arg5 = static_cast< double >(val5); | |
38585 | { | |
38586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38587 | (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5); | |
38588 | wxPyEndAllowThreads(__tstate); | |
38589 | if (PyErr_Occurred()) SWIG_fail; | |
38590 | } | |
38591 | resultobj = SWIG_Py_Void(); | |
38592 | { | |
38593 | if (temp2) | |
38594 | delete arg2; | |
38595 | } | |
38596 | return resultobj; | |
38597 | fail: | |
38598 | { | |
38599 | if (temp2) | |
38600 | delete arg2; | |
38601 | } | |
38602 | return NULL; | |
38603 | } | |
38604 | ||
38605 | ||
38606 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38607 | PyObject *resultobj = 0; | |
38608 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38609 | wxString *arg2 = 0 ; | |
38610 | wxPoint *arg3 = 0 ; | |
38611 | double arg4 ; | |
38612 | void *argp1 = 0 ; | |
38613 | int res1 = 0 ; | |
38614 | bool temp2 = false ; | |
38615 | wxPoint temp3 ; | |
38616 | double val4 ; | |
38617 | int ecode4 = 0 ; | |
38618 | PyObject * obj0 = 0 ; | |
38619 | PyObject * obj1 = 0 ; | |
38620 | PyObject * obj2 = 0 ; | |
38621 | PyObject * obj3 = 0 ; | |
38622 | char * kwnames[] = { | |
38623 | (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL | |
38624 | }; | |
38625 | ||
38626 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38627 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38628 | if (!SWIG_IsOK(res1)) { | |
38629 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38630 | } | |
38631 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38632 | { | |
38633 | arg2 = wxString_in_helper(obj1); | |
38634 | if (arg2 == NULL) SWIG_fail; | |
38635 | temp2 = true; | |
38636 | } | |
38637 | { | |
38638 | arg3 = &temp3; | |
38639 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
38640 | } | |
38641 | ecode4 = SWIG_AsVal_double(obj3, &val4); | |
38642 | if (!SWIG_IsOK(ecode4)) { | |
38643 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'"); | |
38644 | } | |
38645 | arg4 = static_cast< double >(val4); | |
38646 | { | |
38647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38648 | (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4); | |
38649 | wxPyEndAllowThreads(__tstate); | |
38650 | if (PyErr_Occurred()) SWIG_fail; | |
38651 | } | |
38652 | resultobj = SWIG_Py_Void(); | |
38653 | { | |
38654 | if (temp2) | |
38655 | delete arg2; | |
38656 | } | |
38657 | return resultobj; | |
38658 | fail: | |
38659 | { | |
38660 | if (temp2) | |
38661 | delete arg2; | |
38662 | } | |
38663 | return NULL; | |
38664 | } | |
38665 | ||
38666 | ||
38667 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38668 | PyObject *resultobj = 0; | |
38669 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38670 | int arg2 ; | |
38671 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38672 | int arg4 = (int) 0 ; | |
38673 | int arg5 = (int) 0 ; | |
38674 | void *argp1 = 0 ; | |
38675 | int res1 = 0 ; | |
38676 | int val4 ; | |
38677 | int ecode4 = 0 ; | |
38678 | int val5 ; | |
38679 | int ecode5 = 0 ; | |
38680 | PyObject * obj0 = 0 ; | |
38681 | PyObject * obj1 = 0 ; | |
38682 | PyObject * obj2 = 0 ; | |
38683 | PyObject * obj3 = 0 ; | |
38684 | char * kwnames[] = { | |
38685 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL | |
38686 | }; | |
38687 | ||
38688 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail; | |
38689 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38690 | if (!SWIG_IsOK(res1)) { | |
38691 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38692 | } | |
38693 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38694 | { | |
38695 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38696 | if (arg3 == NULL) SWIG_fail; | |
38697 | } | |
38698 | if (obj2) { | |
38699 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
38700 | if (!SWIG_IsOK(ecode4)) { | |
38701 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'"); | |
38702 | } | |
38703 | arg4 = static_cast< int >(val4); | |
38704 | } | |
38705 | if (obj3) { | |
38706 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
38707 | if (!SWIG_IsOK(ecode5)) { | |
38708 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'"); | |
38709 | } | |
38710 | arg5 = static_cast< int >(val5); | |
38711 | } | |
38712 | { | |
38713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38714 | (arg1)->DrawLines(arg2,arg3,arg4,arg5); | |
38715 | wxPyEndAllowThreads(__tstate); | |
38716 | if (PyErr_Occurred()) SWIG_fail; | |
38717 | } | |
38718 | resultobj = SWIG_Py_Void(); | |
38719 | { | |
38720 | if (arg3) delete [] arg3; | |
38721 | } | |
38722 | return resultobj; | |
38723 | fail: | |
38724 | { | |
38725 | if (arg3) delete [] arg3; | |
38726 | } | |
38727 | return NULL; | |
38728 | } | |
38729 | ||
38730 | ||
38731 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38732 | PyObject *resultobj = 0; | |
38733 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38734 | int arg2 ; | |
38735 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38736 | int arg4 = (int) 0 ; | |
38737 | int arg5 = (int) 0 ; | |
38738 | int arg6 = (int) wxODDEVEN_RULE ; | |
38739 | void *argp1 = 0 ; | |
38740 | int res1 = 0 ; | |
38741 | int val4 ; | |
38742 | int ecode4 = 0 ; | |
38743 | int val5 ; | |
38744 | int ecode5 = 0 ; | |
38745 | int val6 ; | |
38746 | int ecode6 = 0 ; | |
38747 | PyObject * obj0 = 0 ; | |
38748 | PyObject * obj1 = 0 ; | |
38749 | PyObject * obj2 = 0 ; | |
38750 | PyObject * obj3 = 0 ; | |
38751 | PyObject * obj4 = 0 ; | |
38752 | char * kwnames[] = { | |
38753 | (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL | |
38754 | }; | |
38755 | ||
38756 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38757 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38758 | if (!SWIG_IsOK(res1)) { | |
38759 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38760 | } | |
38761 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38762 | { | |
38763 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38764 | if (arg3 == NULL) SWIG_fail; | |
38765 | } | |
38766 | if (obj2) { | |
38767 | ecode4 = SWIG_AsVal_int(obj2, &val4); | |
38768 | if (!SWIG_IsOK(ecode4)) { | |
38769 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'"); | |
38770 | } | |
38771 | arg4 = static_cast< int >(val4); | |
38772 | } | |
38773 | if (obj3) { | |
38774 | ecode5 = SWIG_AsVal_int(obj3, &val5); | |
38775 | if (!SWIG_IsOK(ecode5)) { | |
38776 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'"); | |
38777 | } | |
38778 | arg5 = static_cast< int >(val5); | |
38779 | } | |
38780 | if (obj4) { | |
38781 | ecode6 = SWIG_AsVal_int(obj4, &val6); | |
38782 | if (!SWIG_IsOK(ecode6)) { | |
38783 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'"); | |
38784 | } | |
38785 | arg6 = static_cast< int >(val6); | |
38786 | } | |
38787 | { | |
38788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38789 | (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6); | |
38790 | wxPyEndAllowThreads(__tstate); | |
38791 | if (PyErr_Occurred()) SWIG_fail; | |
38792 | } | |
38793 | resultobj = SWIG_Py_Void(); | |
38794 | { | |
38795 | if (arg3) delete [] arg3; | |
38796 | } | |
38797 | return resultobj; | |
38798 | fail: | |
38799 | { | |
38800 | if (arg3) delete [] arg3; | |
38801 | } | |
38802 | return NULL; | |
38803 | } | |
38804 | ||
38805 | ||
38806 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38807 | PyObject *resultobj = 0; | |
38808 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38809 | wxString *arg2 = 0 ; | |
38810 | wxRect *arg3 = 0 ; | |
38811 | int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
38812 | int arg5 = (int) -1 ; | |
38813 | void *argp1 = 0 ; | |
38814 | int res1 = 0 ; | |
38815 | bool temp2 = false ; | |
38816 | wxRect temp3 ; | |
38817 | int val4 ; | |
38818 | int ecode4 = 0 ; | |
38819 | int val5 ; | |
38820 | int ecode5 = 0 ; | |
38821 | PyObject * obj0 = 0 ; | |
38822 | PyObject * obj1 = 0 ; | |
38823 | PyObject * obj2 = 0 ; | |
38824 | PyObject * obj3 = 0 ; | |
38825 | PyObject * obj4 = 0 ; | |
38826 | char * kwnames[] = { | |
38827 | (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
38828 | }; | |
38829 | ||
38830 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail; | |
38831 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38832 | if (!SWIG_IsOK(res1)) { | |
38833 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38834 | } | |
38835 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38836 | { | |
38837 | arg2 = wxString_in_helper(obj1); | |
38838 | if (arg2 == NULL) SWIG_fail; | |
38839 | temp2 = true; | |
38840 | } | |
38841 | { | |
38842 | arg3 = &temp3; | |
38843 | if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail; | |
38844 | } | |
38845 | if (obj3) { | |
38846 | ecode4 = SWIG_AsVal_int(obj3, &val4); | |
38847 | if (!SWIG_IsOK(ecode4)) { | |
38848 | SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'"); | |
38849 | } | |
38850 | arg4 = static_cast< int >(val4); | |
38851 | } | |
38852 | if (obj4) { | |
38853 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38854 | if (!SWIG_IsOK(ecode5)) { | |
38855 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'"); | |
38856 | } | |
38857 | arg5 = static_cast< int >(val5); | |
38858 | } | |
38859 | { | |
38860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38861 | (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5); | |
38862 | wxPyEndAllowThreads(__tstate); | |
38863 | if (PyErr_Occurred()) SWIG_fail; | |
38864 | } | |
38865 | resultobj = SWIG_Py_Void(); | |
38866 | { | |
38867 | if (temp2) | |
38868 | delete arg2; | |
38869 | } | |
38870 | return resultobj; | |
38871 | fail: | |
38872 | { | |
38873 | if (temp2) | |
38874 | delete arg2; | |
38875 | } | |
38876 | return NULL; | |
38877 | } | |
38878 | ||
38879 | ||
38880 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38881 | PyObject *resultobj = 0; | |
38882 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38883 | wxString *arg2 = 0 ; | |
38884 | wxBitmap *arg3 = 0 ; | |
38885 | wxRect *arg4 = 0 ; | |
38886 | int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ; | |
38887 | int arg6 = (int) -1 ; | |
38888 | void *argp1 = 0 ; | |
38889 | int res1 = 0 ; | |
38890 | bool temp2 = false ; | |
38891 | void *argp3 = 0 ; | |
38892 | int res3 = 0 ; | |
38893 | wxRect temp4 ; | |
38894 | int val5 ; | |
38895 | int ecode5 = 0 ; | |
38896 | int val6 ; | |
38897 | int ecode6 = 0 ; | |
38898 | PyObject * obj0 = 0 ; | |
38899 | PyObject * obj1 = 0 ; | |
38900 | PyObject * obj2 = 0 ; | |
38901 | PyObject * obj3 = 0 ; | |
38902 | PyObject * obj4 = 0 ; | |
38903 | PyObject * obj5 = 0 ; | |
38904 | char * kwnames[] = { | |
38905 | (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL | |
38906 | }; | |
38907 | ||
38908 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail; | |
38909 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38910 | if (!SWIG_IsOK(res1)) { | |
38911 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38912 | } | |
38913 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38914 | { | |
38915 | arg2 = wxString_in_helper(obj1); | |
38916 | if (arg2 == NULL) SWIG_fail; | |
38917 | temp2 = true; | |
38918 | } | |
38919 | res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0); | |
38920 | if (!SWIG_IsOK(res3)) { | |
38921 | SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
38922 | } | |
38923 | if (!argp3) { | |
38924 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'"); | |
38925 | } | |
38926 | arg3 = reinterpret_cast< wxBitmap * >(argp3); | |
38927 | { | |
38928 | arg4 = &temp4; | |
38929 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
38930 | } | |
38931 | if (obj4) { | |
38932 | ecode5 = SWIG_AsVal_int(obj4, &val5); | |
38933 | if (!SWIG_IsOK(ecode5)) { | |
38934 | SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'"); | |
38935 | } | |
38936 | arg5 = static_cast< int >(val5); | |
38937 | } | |
38938 | if (obj5) { | |
38939 | ecode6 = SWIG_AsVal_int(obj5, &val6); | |
38940 | if (!SWIG_IsOK(ecode6)) { | |
38941 | SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'"); | |
38942 | } | |
38943 | arg6 = static_cast< int >(val6); | |
38944 | } | |
38945 | { | |
38946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38947 | (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6); | |
38948 | wxPyEndAllowThreads(__tstate); | |
38949 | if (PyErr_Occurred()) SWIG_fail; | |
38950 | } | |
38951 | resultobj = SWIG_Py_Void(); | |
38952 | { | |
38953 | if (temp2) | |
38954 | delete arg2; | |
38955 | } | |
38956 | return resultobj; | |
38957 | fail: | |
38958 | { | |
38959 | if (temp2) | |
38960 | delete arg2; | |
38961 | } | |
38962 | return NULL; | |
38963 | } | |
38964 | ||
38965 | ||
38966 | SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
38967 | PyObject *resultobj = 0; | |
38968 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
38969 | int arg2 ; | |
38970 | wxPoint *arg3 = (wxPoint *) 0 ; | |
38971 | void *argp1 = 0 ; | |
38972 | int res1 = 0 ; | |
38973 | PyObject * obj0 = 0 ; | |
38974 | PyObject * obj1 = 0 ; | |
38975 | char * kwnames[] = { | |
38976 | (char *) "self",(char *) "points", NULL | |
38977 | }; | |
38978 | ||
38979 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail; | |
38980 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
38981 | if (!SWIG_IsOK(res1)) { | |
38982 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
38983 | } | |
38984 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
38985 | { | |
38986 | arg3 = wxPoint_LIST_helper(obj1, &arg2); | |
38987 | if (arg3 == NULL) SWIG_fail; | |
38988 | } | |
38989 | { | |
38990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
38991 | (arg1)->DrawSpline(arg2,arg3); | |
38992 | wxPyEndAllowThreads(__tstate); | |
38993 | if (PyErr_Occurred()) SWIG_fail; | |
38994 | } | |
38995 | resultobj = SWIG_Py_Void(); | |
38996 | { | |
38997 | if (arg3) delete [] arg3; | |
38998 | } | |
38999 | return resultobj; | |
39000 | fail: | |
39001 | { | |
39002 | if (arg3) delete [] arg3; | |
39003 | } | |
39004 | return NULL; | |
39005 | } | |
39006 | ||
39007 | ||
39008 | SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39009 | PyObject *resultobj = 0; | |
39010 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39011 | void *argp1 = 0 ; | |
39012 | int res1 = 0 ; | |
39013 | PyObject *swig_obj[1] ; | |
39014 | ||
39015 | if (!args) SWIG_fail; | |
39016 | swig_obj[0] = args; | |
39017 | res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39018 | if (!SWIG_IsOK(res1)) { | |
39019 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39020 | } | |
39021 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39022 | { | |
39023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39024 | (arg1)->Clear(); | |
39025 | wxPyEndAllowThreads(__tstate); | |
39026 | if (PyErr_Occurred()) SWIG_fail; | |
39027 | } | |
39028 | resultobj = SWIG_Py_Void(); | |
39029 | return resultobj; | |
39030 | fail: | |
39031 | return NULL; | |
39032 | } | |
39033 | ||
39034 | ||
39035 | SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39036 | PyObject *resultobj = 0; | |
39037 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39038 | wxFont *arg2 = 0 ; | |
39039 | void *argp1 = 0 ; | |
39040 | int res1 = 0 ; | |
39041 | void *argp2 = 0 ; | |
39042 | int res2 = 0 ; | |
39043 | PyObject * obj0 = 0 ; | |
39044 | PyObject * obj1 = 0 ; | |
39045 | char * kwnames[] = { | |
39046 | (char *) "self",(char *) "font", NULL | |
39047 | }; | |
39048 | ||
39049 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail; | |
39050 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39051 | if (!SWIG_IsOK(res1)) { | |
39052 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39053 | } | |
39054 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39055 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0); | |
39056 | if (!SWIG_IsOK(res2)) { | |
39057 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
39058 | } | |
39059 | if (!argp2) { | |
39060 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'"); | |
39061 | } | |
39062 | arg2 = reinterpret_cast< wxFont * >(argp2); | |
39063 | { | |
39064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39065 | (arg1)->SetFont((wxFont const &)*arg2); | |
39066 | wxPyEndAllowThreads(__tstate); | |
39067 | if (PyErr_Occurred()) SWIG_fail; | |
39068 | } | |
39069 | resultobj = SWIG_Py_Void(); | |
39070 | return resultobj; | |
39071 | fail: | |
39072 | return NULL; | |
39073 | } | |
39074 | ||
39075 | ||
39076 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39077 | PyObject *resultobj = 0; | |
39078 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39079 | wxPen *arg2 = 0 ; | |
39080 | void *argp1 = 0 ; | |
39081 | int res1 = 0 ; | |
39082 | void *argp2 = 0 ; | |
39083 | int res2 = 0 ; | |
39084 | PyObject * obj0 = 0 ; | |
39085 | PyObject * obj1 = 0 ; | |
39086 | char * kwnames[] = { | |
39087 | (char *) "self",(char *) "pen", NULL | |
39088 | }; | |
39089 | ||
39090 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail; | |
39091 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39092 | if (!SWIG_IsOK(res1)) { | |
39093 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39094 | } | |
39095 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39096 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0); | |
39097 | if (!SWIG_IsOK(res2)) { | |
39098 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
39099 | } | |
39100 | if (!argp2) { | |
39101 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'"); | |
39102 | } | |
39103 | arg2 = reinterpret_cast< wxPen * >(argp2); | |
39104 | { | |
39105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39106 | (arg1)->SetPen((wxPen const &)*arg2); | |
39107 | wxPyEndAllowThreads(__tstate); | |
39108 | if (PyErr_Occurred()) SWIG_fail; | |
39109 | } | |
39110 | resultobj = SWIG_Py_Void(); | |
39111 | return resultobj; | |
39112 | fail: | |
39113 | return NULL; | |
39114 | } | |
39115 | ||
39116 | ||
39117 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39118 | PyObject *resultobj = 0; | |
39119 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39120 | wxBrush *arg2 = 0 ; | |
39121 | void *argp1 = 0 ; | |
39122 | int res1 = 0 ; | |
39123 | void *argp2 = 0 ; | |
39124 | int res2 = 0 ; | |
39125 | PyObject * obj0 = 0 ; | |
39126 | PyObject * obj1 = 0 ; | |
39127 | char * kwnames[] = { | |
39128 | (char *) "self",(char *) "brush", NULL | |
39129 | }; | |
39130 | ||
39131 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail; | |
39132 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39133 | if (!SWIG_IsOK(res1)) { | |
39134 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39135 | } | |
39136 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39137 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
39138 | if (!SWIG_IsOK(res2)) { | |
39139 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
39140 | } | |
39141 | if (!argp2) { | |
39142 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
39143 | } | |
39144 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
39145 | { | |
39146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39147 | (arg1)->SetBrush((wxBrush const &)*arg2); | |
39148 | wxPyEndAllowThreads(__tstate); | |
39149 | if (PyErr_Occurred()) SWIG_fail; | |
39150 | } | |
39151 | resultobj = SWIG_Py_Void(); | |
39152 | return resultobj; | |
39153 | fail: | |
39154 | return NULL; | |
39155 | } | |
39156 | ||
39157 | ||
39158 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39159 | PyObject *resultobj = 0; | |
39160 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39161 | wxBrush *arg2 = 0 ; | |
39162 | void *argp1 = 0 ; | |
39163 | int res1 = 0 ; | |
39164 | void *argp2 = 0 ; | |
39165 | int res2 = 0 ; | |
39166 | PyObject * obj0 = 0 ; | |
39167 | PyObject * obj1 = 0 ; | |
39168 | char * kwnames[] = { | |
39169 | (char *) "self",(char *) "brush", NULL | |
39170 | }; | |
39171 | ||
39172 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
39173 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39174 | if (!SWIG_IsOK(res1)) { | |
39175 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39176 | } | |
39177 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39178 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0); | |
39179 | if (!SWIG_IsOK(res2)) { | |
39180 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
39181 | } | |
39182 | if (!argp2) { | |
39183 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'"); | |
39184 | } | |
39185 | arg2 = reinterpret_cast< wxBrush * >(argp2); | |
39186 | { | |
39187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39188 | (arg1)->SetBackground((wxBrush const &)*arg2); | |
39189 | wxPyEndAllowThreads(__tstate); | |
39190 | if (PyErr_Occurred()) SWIG_fail; | |
39191 | } | |
39192 | resultobj = SWIG_Py_Void(); | |
39193 | return resultobj; | |
39194 | fail: | |
39195 | return NULL; | |
39196 | } | |
39197 | ||
39198 | ||
39199 | SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39200 | PyObject *resultobj = 0; | |
39201 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39202 | int arg2 ; | |
39203 | void *argp1 = 0 ; | |
39204 | int res1 = 0 ; | |
39205 | int val2 ; | |
39206 | int ecode2 = 0 ; | |
39207 | PyObject * obj0 = 0 ; | |
39208 | PyObject * obj1 = 0 ; | |
39209 | char * kwnames[] = { | |
39210 | (char *) "self",(char *) "mode", NULL | |
39211 | }; | |
39212 | ||
39213 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail; | |
39214 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39215 | if (!SWIG_IsOK(res1)) { | |
39216 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39217 | } | |
39218 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39219 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39220 | if (!SWIG_IsOK(ecode2)) { | |
39221 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'"); | |
39222 | } | |
39223 | arg2 = static_cast< int >(val2); | |
39224 | { | |
39225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39226 | (arg1)->SetBackgroundMode(arg2); | |
39227 | wxPyEndAllowThreads(__tstate); | |
39228 | if (PyErr_Occurred()) SWIG_fail; | |
39229 | } | |
39230 | resultobj = SWIG_Py_Void(); | |
39231 | return resultobj; | |
39232 | fail: | |
39233 | return NULL; | |
39234 | } | |
39235 | ||
39236 | ||
39237 | SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39238 | PyObject *resultobj = 0; | |
39239 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39240 | wxPalette *arg2 = 0 ; | |
39241 | void *argp1 = 0 ; | |
39242 | int res1 = 0 ; | |
39243 | void *argp2 = 0 ; | |
39244 | int res2 = 0 ; | |
39245 | PyObject * obj0 = 0 ; | |
39246 | PyObject * obj1 = 0 ; | |
39247 | char * kwnames[] = { | |
39248 | (char *) "self",(char *) "palette", NULL | |
39249 | }; | |
39250 | ||
39251 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail; | |
39252 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39253 | if (!SWIG_IsOK(res1)) { | |
39254 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39255 | } | |
39256 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39257 | res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0); | |
39258 | if (!SWIG_IsOK(res2)) { | |
39259 | SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
39260 | } | |
39261 | if (!argp2) { | |
39262 | SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'"); | |
39263 | } | |
39264 | arg2 = reinterpret_cast< wxPalette * >(argp2); | |
39265 | { | |
39266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39267 | (arg1)->SetPalette((wxPalette const &)*arg2); | |
39268 | wxPyEndAllowThreads(__tstate); | |
39269 | if (PyErr_Occurred()) SWIG_fail; | |
39270 | } | |
39271 | resultobj = SWIG_Py_Void(); | |
39272 | return resultobj; | |
39273 | fail: | |
39274 | return NULL; | |
39275 | } | |
39276 | ||
39277 | ||
39278 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39279 | PyObject *resultobj = 0; | |
39280 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39281 | wxColour *arg2 = 0 ; | |
39282 | void *argp1 = 0 ; | |
39283 | int res1 = 0 ; | |
39284 | wxColour temp2 ; | |
39285 | PyObject * obj0 = 0 ; | |
39286 | PyObject * obj1 = 0 ; | |
39287 | char * kwnames[] = { | |
39288 | (char *) "self",(char *) "colour", NULL | |
39289 | }; | |
39290 | ||
39291 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail; | |
39292 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39293 | if (!SWIG_IsOK(res1)) { | |
39294 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39295 | } | |
39296 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39297 | { | |
39298 | arg2 = &temp2; | |
39299 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
39300 | } | |
39301 | { | |
39302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39303 | (arg1)->SetTextForeground((wxColour const &)*arg2); | |
39304 | wxPyEndAllowThreads(__tstate); | |
39305 | if (PyErr_Occurred()) SWIG_fail; | |
39306 | } | |
39307 | resultobj = SWIG_Py_Void(); | |
39308 | return resultobj; | |
39309 | fail: | |
39310 | return NULL; | |
39311 | } | |
39312 | ||
39313 | ||
39314 | SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39315 | PyObject *resultobj = 0; | |
39316 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39317 | wxColour *arg2 = 0 ; | |
39318 | void *argp1 = 0 ; | |
39319 | int res1 = 0 ; | |
39320 | wxColour temp2 ; | |
39321 | PyObject * obj0 = 0 ; | |
39322 | PyObject * obj1 = 0 ; | |
39323 | char * kwnames[] = { | |
39324 | (char *) "self",(char *) "colour", NULL | |
39325 | }; | |
39326 | ||
39327 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail; | |
39328 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39329 | if (!SWIG_IsOK(res1)) { | |
39330 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39331 | } | |
39332 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39333 | { | |
39334 | arg2 = &temp2; | |
39335 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
39336 | } | |
39337 | { | |
39338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39339 | (arg1)->SetTextBackground((wxColour const &)*arg2); | |
39340 | wxPyEndAllowThreads(__tstate); | |
39341 | if (PyErr_Occurred()) SWIG_fail; | |
39342 | } | |
39343 | resultobj = SWIG_Py_Void(); | |
39344 | return resultobj; | |
39345 | fail: | |
39346 | return NULL; | |
39347 | } | |
39348 | ||
39349 | ||
39350 | SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) { | |
39351 | PyObject *resultobj = 0; | |
39352 | wxPseudoDC *arg1 = (wxPseudoDC *) 0 ; | |
39353 | int arg2 ; | |
39354 | void *argp1 = 0 ; | |
39355 | int res1 = 0 ; | |
39356 | int val2 ; | |
39357 | int ecode2 = 0 ; | |
39358 | PyObject * obj0 = 0 ; | |
39359 | PyObject * obj1 = 0 ; | |
39360 | char * kwnames[] = { | |
39361 | (char *) "self",(char *) "function", NULL | |
39362 | }; | |
39363 | ||
39364 | if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail; | |
39365 | res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 ); | |
39366 | if (!SWIG_IsOK(res1)) { | |
39367 | SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'"); | |
39368 | } | |
39369 | arg1 = reinterpret_cast< wxPseudoDC * >(argp1); | |
39370 | ecode2 = SWIG_AsVal_int(obj1, &val2); | |
39371 | if (!SWIG_IsOK(ecode2)) { | |
39372 | SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'"); | |
39373 | } | |
39374 | arg2 = static_cast< int >(val2); | |
39375 | { | |
39376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
39377 | (arg1)->SetLogicalFunction(arg2); | |
39378 | wxPyEndAllowThreads(__tstate); | |
39379 | if (PyErr_Occurred()) SWIG_fail; | |
39380 | } | |
39381 | resultobj = SWIG_Py_Void(); | |
39382 | return resultobj; | |
39383 | fail: | |
39384 | return NULL; | |
39385 | } | |
39386 | ||
39387 | ||
39388 | SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39389 | PyObject *obj; | |
39390 | if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL; | |
39391 | SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj)); | |
39392 | return SWIG_Py_Void(); | |
39393 | } | |
39394 | ||
39395 | SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { | |
39396 | return SWIG_Python_InitShadowInstance(args); | |
39397 | } | |
39398 | ||
39399 | static PyMethodDef SwigMethods[] = { | |
39400 | { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL}, | |
39401 | { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL}, | |
39402 | { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL}, | |
39403 | { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL}, | |
39404 | { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL}, | |
39405 | { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39406 | { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39407 | { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39408 | { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL}, | |
39409 | { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL}, | |
39410 | { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL}, | |
39411 | { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL}, | |
fc46b7f3 | 39412 | { (char *)"Colour_Alpha", (PyCFunction)_wrap_Colour_Alpha, METH_O, NULL}, |
b39fe951 | 39413 | { (char *)"Colour_IsOk", (PyCFunction)_wrap_Colour_IsOk, METH_O, NULL}, |
27e45892 RD |
39414 | { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
39415 | { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39416 | { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39417 | { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39418 | { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL}, | |
39419 | { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39420 | { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
fc46b7f3 | 39421 | { (char *)"Colour_Get", (PyCFunction) _wrap_Colour_Get, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
39422 | { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL}, |
39423 | { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL}, | |
39424 | { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL}, | |
39425 | { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39426 | { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL}, | |
39427 | { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39428 | { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39429 | { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL}, | |
b39fe951 | 39430 | { (char *)"Palette_IsOk", (PyCFunction)_wrap_Palette_IsOk, METH_O, NULL}, |
27e45892 RD |
39431 | { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL}, |
39432 | { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL}, | |
39433 | { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39434 | { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL}, | |
39435 | { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL}, | |
39436 | { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL}, | |
39437 | { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL}, | |
39438 | { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL}, | |
39439 | { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL}, | |
b39fe951 | 39440 | { (char *)"Pen_IsOk", (PyCFunction)_wrap_Pen_IsOk, METH_O, NULL}, |
27e45892 RD |
39441 | { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL}, |
39442 | { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39443 | { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39444 | { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39445 | { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39446 | { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39447 | { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL}, | |
39448 | { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39449 | { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL}, | |
39450 | { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL}, | |
39451 | { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39452 | { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39453 | { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39454 | { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL}, | |
39455 | { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL}, | |
39456 | { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39457 | { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39458 | { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL}, | |
39459 | { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39460 | { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39461 | { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39462 | { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL}, | |
39463 | { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL}, | |
39464 | { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL}, | |
39465 | { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL}, | |
b39fe951 | 39466 | { (char *)"Brush_IsOk", (PyCFunction)_wrap_Brush_IsOk, METH_O, NULL}, |
27e45892 RD |
39467 | { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL}, |
39468 | { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL}, | |
39469 | { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39470 | { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL}, | |
39471 | { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39472 | { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39473 | { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39474 | { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39475 | { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39476 | { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL}, | |
39477 | { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39478 | { (char *)"Bitmap_IsOk", (PyCFunction)_wrap_Bitmap_IsOk, METH_O, NULL}, |
27e45892 RD |
39479 | { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL}, |
39480 | { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL}, | |
39481 | { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL}, | |
39482 | { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL}, | |
39483 | { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL}, | |
39484 | { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL}, | |
39485 | { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39486 | { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39487 | { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39488 | { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39489 | { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39490 | { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL}, | |
39491 | { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39492 | { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39493 | { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39494 | { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39495 | { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39496 | { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39497 | { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 RD |
39498 | { (char *)"Bitmap_CopyFromBuffer", (PyCFunction) _wrap_Bitmap_CopyFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, |
39499 | { (char *)"Bitmap_CopyFromBufferRGBA", (PyCFunction) _wrap_Bitmap_CopyFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
39500 | { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
39501 | { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39502 | { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL}, | |
39503 | { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
39504 | { (char *)"_BitmapFromBufferAlpha", (PyCFunction) _wrap__BitmapFromBufferAlpha, METH_VARARGS | METH_KEYWORDS, NULL}, |
39505 | { (char *)"_BitmapFromBuffer", (PyCFunction) _wrap__BitmapFromBuffer, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39506 | { (char *)"_BitmapFromBufferRGBA", (PyCFunction) _wrap__BitmapFromBufferRGBA, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39507 | { (char *)"PixelDataBase_GetOrigin", (PyCFunction)_wrap_PixelDataBase_GetOrigin, METH_O, NULL}, | |
39508 | { (char *)"PixelDataBase_GetWidth", (PyCFunction)_wrap_PixelDataBase_GetWidth, METH_O, NULL}, | |
39509 | { (char *)"PixelDataBase_GetHeight", (PyCFunction)_wrap_PixelDataBase_GetHeight, METH_O, NULL}, | |
39510 | { (char *)"PixelDataBase_GetSize", (PyCFunction)_wrap_PixelDataBase_GetSize, METH_O, NULL}, | |
39511 | { (char *)"PixelDataBase_GetRowStride", (PyCFunction)_wrap_PixelDataBase_GetRowStride, METH_O, NULL}, | |
39512 | { (char *)"PixelDataBase_swigregister", PixelDataBase_swigregister, METH_VARARGS, NULL}, | |
39513 | { (char *)"new_NativePixelData", _wrap_new_NativePixelData, METH_VARARGS, NULL}, | |
39514 | { (char *)"delete_NativePixelData", (PyCFunction)_wrap_delete_NativePixelData, METH_O, NULL}, | |
39515 | { (char *)"NativePixelData_GetPixels", (PyCFunction)_wrap_NativePixelData_GetPixels, METH_O, NULL}, | |
39516 | { (char *)"NativePixelData_UseAlpha", (PyCFunction)_wrap_NativePixelData_UseAlpha, METH_O, NULL}, | |
39517 | { (char *)"NativePixelData___nonzero__", (PyCFunction)_wrap_NativePixelData___nonzero__, METH_O, NULL}, | |
39518 | { (char *)"NativePixelData_swigregister", NativePixelData_swigregister, METH_VARARGS, NULL}, | |
39519 | { (char *)"NativePixelData_swiginit", NativePixelData_swiginit, METH_VARARGS, NULL}, | |
39520 | { (char *)"new_NativePixelData_Accessor", _wrap_new_NativePixelData_Accessor, METH_VARARGS, NULL}, | |
39521 | { (char *)"delete_NativePixelData_Accessor", (PyCFunction)_wrap_delete_NativePixelData_Accessor, METH_O, NULL}, | |
39522 | { (char *)"NativePixelData_Accessor_Reset", (PyCFunction) _wrap_NativePixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39523 | { (char *)"NativePixelData_Accessor_IsOk", (PyCFunction)_wrap_NativePixelData_Accessor_IsOk, METH_O, NULL}, | |
39524 | { (char *)"NativePixelData_Accessor_nextPixel", (PyCFunction)_wrap_NativePixelData_Accessor_nextPixel, METH_O, NULL}, | |
39525 | { (char *)"NativePixelData_Accessor_Offset", (PyCFunction) _wrap_NativePixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39526 | { (char *)"NativePixelData_Accessor_OffsetX", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39527 | { (char *)"NativePixelData_Accessor_OffsetY", (PyCFunction) _wrap_NativePixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39528 | { (char *)"NativePixelData_Accessor_MoveTo", (PyCFunction) _wrap_NativePixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39529 | { (char *)"NativePixelData_Accessor_Set", (PyCFunction) _wrap_NativePixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39530 | { (char *)"NativePixelData_Accessor_Get", (PyCFunction)_wrap_NativePixelData_Accessor_Get, METH_O, NULL}, | |
39531 | { (char *)"NativePixelData_Accessor_swigregister", NativePixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
39532 | { (char *)"NativePixelData_Accessor_swiginit", NativePixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
39533 | { (char *)"new_AlphaPixelData", _wrap_new_AlphaPixelData, METH_VARARGS, NULL}, | |
39534 | { (char *)"delete_AlphaPixelData", (PyCFunction)_wrap_delete_AlphaPixelData, METH_O, NULL}, | |
39535 | { (char *)"AlphaPixelData_GetPixels", (PyCFunction)_wrap_AlphaPixelData_GetPixels, METH_O, NULL}, | |
39536 | { (char *)"AlphaPixelData_UseAlpha", (PyCFunction)_wrap_AlphaPixelData_UseAlpha, METH_O, NULL}, | |
39537 | { (char *)"AlphaPixelData___nonzero__", (PyCFunction)_wrap_AlphaPixelData___nonzero__, METH_O, NULL}, | |
39538 | { (char *)"AlphaPixelData_swigregister", AlphaPixelData_swigregister, METH_VARARGS, NULL}, | |
39539 | { (char *)"AlphaPixelData_swiginit", AlphaPixelData_swiginit, METH_VARARGS, NULL}, | |
39540 | { (char *)"new_AlphaPixelData_Accessor", _wrap_new_AlphaPixelData_Accessor, METH_VARARGS, NULL}, | |
39541 | { (char *)"delete_AlphaPixelData_Accessor", (PyCFunction)_wrap_delete_AlphaPixelData_Accessor, METH_O, NULL}, | |
39542 | { (char *)"AlphaPixelData_Accessor_Reset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Reset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39543 | { (char *)"AlphaPixelData_Accessor_IsOk", (PyCFunction)_wrap_AlphaPixelData_Accessor_IsOk, METH_O, NULL}, | |
39544 | { (char *)"AlphaPixelData_Accessor_nextPixel", (PyCFunction)_wrap_AlphaPixelData_Accessor_nextPixel, METH_O, NULL}, | |
39545 | { (char *)"AlphaPixelData_Accessor_Offset", (PyCFunction) _wrap_AlphaPixelData_Accessor_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39546 | { (char *)"AlphaPixelData_Accessor_OffsetX", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39547 | { (char *)"AlphaPixelData_Accessor_OffsetY", (PyCFunction) _wrap_AlphaPixelData_Accessor_OffsetY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39548 | { (char *)"AlphaPixelData_Accessor_MoveTo", (PyCFunction) _wrap_AlphaPixelData_Accessor_MoveTo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39549 | { (char *)"AlphaPixelData_Accessor_Set", (PyCFunction) _wrap_AlphaPixelData_Accessor_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39550 | { (char *)"AlphaPixelData_Accessor_Get", (PyCFunction)_wrap_AlphaPixelData_Accessor_Get, METH_O, NULL}, | |
39551 | { (char *)"AlphaPixelData_Accessor_swigregister", AlphaPixelData_Accessor_swigregister, METH_VARARGS, NULL}, | |
39552 | { (char *)"AlphaPixelData_Accessor_swiginit", AlphaPixelData_Accessor_swiginit, METH_VARARGS, NULL}, | |
27e45892 RD |
39553 | { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL}, |
39554 | { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL}, | |
39555 | { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL}, | |
39556 | { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL}, | |
39557 | { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39558 | { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL}, | |
39559 | { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL}, | |
39560 | { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39561 | { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39562 | { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39563 | { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39564 | { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL}, | |
39565 | { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39566 | { (char *)"Icon_IsOk", (PyCFunction)_wrap_Icon_IsOk, METH_O, NULL}, |
27e45892 RD |
39567 | { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL}, |
39568 | { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL}, | |
39569 | { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL}, | |
39570 | { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39571 | { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39572 | { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39573 | { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39574 | { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39575 | { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL}, | |
39576 | { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL}, | |
39577 | { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39578 | { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL}, | |
39579 | { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL}, | |
39580 | { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39581 | { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL}, | |
39582 | { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39583 | { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL}, | |
39584 | { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL}, | |
39585 | { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL}, | |
39586 | { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL}, | |
39587 | { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39588 | { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39589 | { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL}, | |
39590 | { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39591 | { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39592 | { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39593 | { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL}, | |
39594 | { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL}, | |
39595 | { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39596 | { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL}, | |
39597 | { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39598 | { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39599 | { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL}, | |
39600 | { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39601 | { (char *)"Cursor_IsOk", (PyCFunction)_wrap_Cursor_IsOk, METH_O, NULL}, |
27e45892 RD |
39602 | { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL}, |
39603 | { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL}, | |
39604 | { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL}, | |
39605 | { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39606 | { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39607 | { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39608 | { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39609 | { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL}, | |
39610 | { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL}, | |
39611 | { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39612 | { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39613 | { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39614 | { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39615 | { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL}, | |
39616 | { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL}, | |
39617 | { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39618 | { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39619 | { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39620 | { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39621 | { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39622 | { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL}, | |
39623 | { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39624 | { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39625 | { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39626 | { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL}, | |
f5263701 | 39627 | { (char *)"Region_IsEqual", (PyCFunction) _wrap_Region_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, |
27e45892 RD |
39628 | { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL}, |
39629 | { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39630 | { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39631 | { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39632 | { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39633 | { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39634 | { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39635 | { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39636 | { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39637 | { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL}, | |
39638 | { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39639 | { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39640 | { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL}, | |
39641 | { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL}, | |
39642 | { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39643 | { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL}, | |
39644 | { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL}, | |
39645 | { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL}, | |
39646 | { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL}, | |
39647 | { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL}, | |
39648 | { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL}, | |
39649 | { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL}, | |
39650 | { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL}, | |
39651 | { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL}, | |
39652 | { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL}, | |
39653 | { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL}, | |
39654 | { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL}, | |
39655 | { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL}, | |
39656 | { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL}, | |
39657 | { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL}, | |
39658 | { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL}, | |
39659 | { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL}, | |
39660 | { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39661 | { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL}, | |
39662 | { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL}, | |
39663 | { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL}, | |
39664 | { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL}, | |
39665 | { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL}, | |
39666 | { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL}, | |
39667 | { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL}, | |
39668 | { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL}, | |
39669 | { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39670 | { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39671 | { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39672 | { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39673 | { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39674 | { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39675 | { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39676 | { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39677 | { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39678 | { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL}, | |
39679 | { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL}, | |
39680 | { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39681 | { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL}, | |
39682 | { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL}, | |
39683 | { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL}, | |
39684 | { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL}, | |
39685 | { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL}, | |
39686 | { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL}, | |
39687 | { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL}, | |
39688 | { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL}, | |
39689 | { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL}, | |
39690 | { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39691 | { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL}, | |
39692 | { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL}, | |
39693 | { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL}, | |
39694 | { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39695 | { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39696 | { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL}, | |
39697 | { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL}, | |
39698 | { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL}, | |
39699 | { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39700 | { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39701 | { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL}, | |
39702 | { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
39703 | { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL}, |
39704 | { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39705 | { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39706 | { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39707 | { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL}, | |
39708 | { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39709 | { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39710 | { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39711 | { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39712 | { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL}, | |
39713 | { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL}, | |
39714 | { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39715 | { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL}, | |
39716 | { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39717 | { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39718 | { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39719 | { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39720 | { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 39721 | { (char *)"Font_IsOk", (PyCFunction)_wrap_Font_IsOk, METH_O, NULL}, |
554f62e9 RD |
39722 | { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL}, |
39723 | { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39724 | { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL}, | |
39725 | { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL}, | |
39726 | { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL}, | |
39727 | { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL}, | |
39728 | { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL}, | |
39729 | { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL}, | |
39730 | { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL}, | |
39731 | { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL}, | |
39732 | { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL}, | |
39733 | { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL}, | |
39734 | { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL}, | |
39735 | { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL}, | |
39736 | { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL}, | |
39737 | { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39738 | { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39739 | { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39740 | { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39741 | { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39742 | { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39743 | { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39744 | { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39745 | { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39746 | { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39747 | { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39748 | { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL}, | |
39749 | { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL}, | |
39750 | { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL}, | |
39751 | { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39752 | { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL}, | |
39753 | { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL}, | |
39754 | { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39755 | { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL}, | |
39756 | { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL}, | |
39757 | { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL}, | |
39758 | { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL}, | |
39759 | { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39760 | { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39761 | { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL}, | |
704eda0c RD |
39762 | { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL}, |
39763 | { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL}, | |
39764 | { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
39765 | { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL}, |
39766 | { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL}, | |
39767 | { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL}, | |
39768 | { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL}, | |
39769 | { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL}, | |
39770 | { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL}, | |
39771 | { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL}, | |
39772 | { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL}, | |
39773 | { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL}, | |
39774 | { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39775 | { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL}, | |
39776 | { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39777 | { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39778 | { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL}, | |
39779 | { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL}, | |
39780 | { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL}, | |
39781 | { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL}, | |
39782 | { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL}, | |
39783 | { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL}, | |
39784 | { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL}, | |
39785 | { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL}, | |
39786 | { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39787 | { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b | 39788 | { (char *)"Locale_IsAvailable", (PyCFunction) _wrap_Locale_IsAvailable, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
39789 | { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL}, |
39790 | { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39791 | { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39792 | { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39793 | { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39794 | { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39795 | { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL}, | |
39796 | { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL}, | |
39797 | { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL}, | |
fc46b7f3 RD |
39798 | { (char *)"new_PyLocale", (PyCFunction) _wrap_new_PyLocale, METH_VARARGS | METH_KEYWORDS, NULL}, |
39799 | { (char *)"delete_PyLocale", (PyCFunction)_wrap_delete_PyLocale, METH_O, NULL}, | |
39800 | { (char *)"PyLocale__setCallbackInfo", (PyCFunction) _wrap_PyLocale__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39801 | { (char *)"PyLocale_GetSingularString", (PyCFunction) _wrap_PyLocale_GetSingularString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39802 | { (char *)"PyLocale_GetPluralString", (PyCFunction) _wrap_PyLocale_GetPluralString, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39803 | { (char *)"PyLocale_swigregister", PyLocale_swigregister, METH_VARARGS, NULL}, | |
39804 | { (char *)"PyLocale_swiginit", PyLocale_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39805 | { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL}, |
39806 | { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL}, | |
39807 | { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL}, | |
39808 | { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL}, | |
39809 | { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39810 | { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39811 | { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39812 | { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39813 | { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39814 | { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL}, | |
39815 | { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL}, | |
39816 | { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL}, | |
39817 | { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39818 | { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39819 | { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39820 | { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39821 | { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39822 | { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39823 | { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39824 | { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39825 | { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39826 | { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39827 | { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39828 | { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39829 | { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39830 | { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39831 | { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39832 | { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39833 | { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39834 | { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39835 | { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39836 | { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39837 | { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39838 | { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39839 | { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39840 | { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39841 | { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39842 | { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39843 | { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39844 | { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39845 | { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39846 | { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39847 | { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39848 | { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39849 | { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39850 | { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39851 | { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39852 | { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39853 | { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39854 | { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39855 | { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
8f514ab4 | 39856 | { (char *)"DC_GetAsBitmap", (PyCFunction) _wrap_DC_GetAsBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
39857 | { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
39858 | { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39859 | { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39860 | { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39861 | { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39862 | { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39863 | { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39864 | { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39865 | { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39866 | { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL}, | |
39867 | { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39868 | { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL}, | |
39869 | { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL}, | |
39870 | { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL}, | |
39871 | { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39872 | { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39873 | { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39874 | { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39875 | { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39876 | { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39877 | { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL}, | |
39878 | { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL}, | |
39879 | { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL}, | |
39880 | { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL}, | |
39881 | { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL}, | |
39882 | { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39883 | { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39884 | { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39885 | { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39886 | { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL}, | |
39887 | { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL}, | |
39888 | { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL}, | |
39889 | { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL}, | |
39890 | { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39891 | { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39892 | { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39893 | { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39894 | { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39895 | { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39896 | { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39897 | { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39898 | { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL}, | |
39899 | { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL}, | |
39900 | { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL}, | |
39901 | { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL}, | |
b39fe951 | 39902 | { (char *)"DC_IsOk", (PyCFunction)_wrap_DC_IsOk, METH_O, NULL}, |
554f62e9 RD |
39903 | { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL}, |
39904 | { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL}, | |
39905 | { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL}, | |
39906 | { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL}, | |
39907 | { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL}, | |
39908 | { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL}, | |
39909 | { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL}, | |
39910 | { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39911 | { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39912 | { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL}, | |
39913 | { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39914 | { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL}, | |
39915 | { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39916 | { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL}, | |
39917 | { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39918 | { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL}, | |
39919 | { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL}, | |
39920 | { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39921 | { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39922 | { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL}, | |
39923 | { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL}, | |
39924 | { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39925 | { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39926 | { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39927 | { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL}, | |
39928 | { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39929 | { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL}, | |
39930 | { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39931 | { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39932 | { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL}, | |
39933 | { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL}, | |
39934 | { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL}, | |
39935 | { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL}, | |
39936 | { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL}, | |
39937 | { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL}, | |
b39fe951 RD |
39938 | { (char *)"DC_GetLayoutDirection", (PyCFunction)_wrap_DC_GetLayoutDirection, METH_O, NULL}, |
39939 | { (char *)"DC_SetLayoutDirection", (PyCFunction) _wrap_DC_SetLayoutDirection, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
39940 | { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL}, |
39941 | { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39942 | { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39943 | { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39944 | { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39945 | { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39946 | { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39947 | { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL}, | |
70d7cb34 RD |
39948 | { (char *)"new_DCTextColourChanger", (PyCFunction) _wrap_new_DCTextColourChanger, METH_VARARGS | METH_KEYWORDS, NULL}, |
39949 | { (char *)"delete_DCTextColourChanger", (PyCFunction)_wrap_delete_DCTextColourChanger, METH_O, NULL}, | |
39950 | { (char *)"DCTextColourChanger_swigregister", DCTextColourChanger_swigregister, METH_VARARGS, NULL}, | |
39951 | { (char *)"DCTextColourChanger_swiginit", DCTextColourChanger_swiginit, METH_VARARGS, NULL}, | |
39952 | { (char *)"new_DCPenChanger", (PyCFunction) _wrap_new_DCPenChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39953 | { (char *)"delete_DCPenChanger", (PyCFunction)_wrap_delete_DCPenChanger, METH_O, NULL}, | |
39954 | { (char *)"DCPenChanger_swigregister", DCPenChanger_swigregister, METH_VARARGS, NULL}, | |
39955 | { (char *)"DCPenChanger_swiginit", DCPenChanger_swiginit, METH_VARARGS, NULL}, | |
39956 | { (char *)"new_DCBrushChanger", (PyCFunction) _wrap_new_DCBrushChanger, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39957 | { (char *)"delete_DCBrushChanger", (PyCFunction)_wrap_delete_DCBrushChanger, METH_O, NULL}, | |
39958 | { (char *)"DCBrushChanger_swigregister", DCBrushChanger_swigregister, METH_VARARGS, NULL}, | |
39959 | { (char *)"DCBrushChanger_swiginit", DCBrushChanger_swiginit, METH_VARARGS, NULL}, | |
39960 | { (char *)"new_DCClipper", _wrap_new_DCClipper, METH_VARARGS, NULL}, | |
39961 | { (char *)"delete_DCClipper", (PyCFunction)_wrap_delete_DCClipper, METH_O, NULL}, | |
39962 | { (char *)"DCClipper_swigregister", DCClipper_swigregister, METH_VARARGS, NULL}, | |
39963 | { (char *)"DCClipper_swiginit", DCClipper_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39964 | { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL}, |
39965 | { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39966 | { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39967 | { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL}, | |
39968 | { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL}, | |
39969 | { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL}, | |
72ef6efb RD |
39970 | { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39971 | { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL}, | |
39972 | { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
39973 | { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39974 | { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL}, | |
39975 | { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL}, | |
39976 | { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39977 | { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL}, | |
39978 | { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL}, | |
26c4d26f RD |
39979 | { (char *)"new_MemoryDC", (PyCFunction) _wrap_new_MemoryDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
39980 | { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39981 | { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39982 | { (char *)"MemoryDC_SelectObjectAsSource", (PyCFunction) _wrap_MemoryDC_SelectObjectAsSource, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39983 | { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL}, | |
39984 | { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL}, | |
24f6c4e8 RD |
39985 | { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL}, |
39986 | { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL}, | |
39987 | { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL}, | |
b6df5cf9 RD |
39988 | { (char *)"BufferedDC_SetStyle", (PyCFunction) _wrap_BufferedDC_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL}, |
39989 | { (char *)"BufferedDC_GetStyle", (PyCFunction)_wrap_BufferedDC_GetStyle, METH_O, NULL}, | |
24f6c4e8 RD |
39990 | { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL}, |
39991 | { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL}, | |
39992 | { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39993 | { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39994 | { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
39995 | { (char *)"new_AutoBufferedPaintDC", (PyCFunction) _wrap_new_AutoBufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
39996 | { (char *)"AutoBufferedPaintDC_swigregister", AutoBufferedPaintDC_swigregister, METH_VARARGS, NULL}, | |
39997 | { (char *)"AutoBufferedPaintDC_swiginit", AutoBufferedPaintDC_swiginit, METH_VARARGS, NULL}, | |
8e99bda9 | 39998 | { (char *)"AutoBufferedPaintDCFactory", (PyCFunction) _wrap_AutoBufferedPaintDCFactory, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 RD |
39999 | { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
40000 | { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL}, | |
40001 | { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL}, | |
40002 | { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40003 | { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL}, | |
40004 | { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40005 | { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40006 | { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL}, | |
40007 | { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL}, | |
40008 | { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL}, | |
40009 | { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40010 | { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL}, | |
b39fe951 | 40011 | { (char *)"MetaFile_IsOk", (PyCFunction)_wrap_MetaFile_IsOk, METH_O, NULL}, |
554f62e9 RD |
40012 | { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL}, |
40013 | { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL}, | |
40014 | { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL}, | |
40015 | { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL}, | |
40016 | { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL}, | |
40017 | { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL}, | |
40018 | { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL}, | |
40019 | { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40020 | { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL}, | |
40021 | { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL}, | |
40022 | { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL}, | |
40023 | { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40024 | { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL}, | |
40025 | { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL}, | |
70d7cb34 RD |
40026 | { (char *)"new_GraphicsObject", (PyCFunction) _wrap_new_GraphicsObject, METH_VARARGS | METH_KEYWORDS, NULL}, |
40027 | { (char *)"delete_GraphicsObject", (PyCFunction)_wrap_delete_GraphicsObject, METH_O, NULL}, | |
40028 | { (char *)"GraphicsObject_IsNull", (PyCFunction)_wrap_GraphicsObject_IsNull, METH_O, NULL}, | |
40029 | { (char *)"GraphicsObject_GetRenderer", (PyCFunction)_wrap_GraphicsObject_GetRenderer, METH_O, NULL}, | |
40030 | { (char *)"GraphicsObject_swigregister", GraphicsObject_swigregister, METH_VARARGS, NULL}, | |
40031 | { (char *)"GraphicsObject_swiginit", GraphicsObject_swiginit, METH_VARARGS, NULL}, | |
40032 | { (char *)"new_GraphicsPen", (PyCFunction)_wrap_new_GraphicsPen, METH_NOARGS, NULL}, | |
40033 | { (char *)"delete_GraphicsPen", (PyCFunction)_wrap_delete_GraphicsPen, METH_O, NULL}, | |
40034 | { (char *)"GraphicsPen_swigregister", GraphicsPen_swigregister, METH_VARARGS, NULL}, | |
40035 | { (char *)"GraphicsPen_swiginit", GraphicsPen_swiginit, METH_VARARGS, NULL}, | |
40036 | { (char *)"new_GraphicsBrush", (PyCFunction)_wrap_new_GraphicsBrush, METH_NOARGS, NULL}, | |
40037 | { (char *)"delete_GraphicsBrush", (PyCFunction)_wrap_delete_GraphicsBrush, METH_O, NULL}, | |
40038 | { (char *)"GraphicsBrush_swigregister", GraphicsBrush_swigregister, METH_VARARGS, NULL}, | |
40039 | { (char *)"GraphicsBrush_swiginit", GraphicsBrush_swiginit, METH_VARARGS, NULL}, | |
40040 | { (char *)"new_GraphicsFont", (PyCFunction)_wrap_new_GraphicsFont, METH_NOARGS, NULL}, | |
40041 | { (char *)"delete_GraphicsFont", (PyCFunction)_wrap_delete_GraphicsFont, METH_O, NULL}, | |
40042 | { (char *)"GraphicsFont_swigregister", GraphicsFont_swigregister, METH_VARARGS, NULL}, | |
40043 | { (char *)"GraphicsFont_swiginit", GraphicsFont_swiginit, METH_VARARGS, NULL}, | |
8f514ab4 | 40044 | { (char *)"new_GraphicsMatrix", (PyCFunction)_wrap_new_GraphicsMatrix, METH_NOARGS, NULL}, |
5c8c7dd3 RD |
40045 | { (char *)"delete_GraphicsMatrix", (PyCFunction)_wrap_delete_GraphicsMatrix, METH_O, NULL}, |
40046 | { (char *)"GraphicsMatrix_Concat", (PyCFunction) _wrap_GraphicsMatrix_Concat, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 | 40047 | { (char *)"GraphicsMatrix_Set", (PyCFunction) _wrap_GraphicsMatrix_Set, METH_VARARGS | METH_KEYWORDS, NULL}, |
248802d0 | 40048 | { (char *)"GraphicsMatrix_Get", (PyCFunction)_wrap_GraphicsMatrix_Get, METH_O, NULL}, |
5c8c7dd3 RD |
40049 | { (char *)"GraphicsMatrix_Invert", (PyCFunction)_wrap_GraphicsMatrix_Invert, METH_O, NULL}, |
40050 | { (char *)"GraphicsMatrix_IsEqual", (PyCFunction) _wrap_GraphicsMatrix_IsEqual, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40051 | { (char *)"GraphicsMatrix_IsIdentity", (PyCFunction)_wrap_GraphicsMatrix_IsIdentity, METH_O, NULL}, | |
40052 | { (char *)"GraphicsMatrix_Translate", (PyCFunction) _wrap_GraphicsMatrix_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40053 | { (char *)"GraphicsMatrix_Scale", (PyCFunction) _wrap_GraphicsMatrix_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40054 | { (char *)"GraphicsMatrix_Rotate", (PyCFunction) _wrap_GraphicsMatrix_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40055 | { (char *)"GraphicsMatrix_TransformPoint", (PyCFunction) _wrap_GraphicsMatrix_TransformPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40056 | { (char *)"GraphicsMatrix_TransformDistance", (PyCFunction) _wrap_GraphicsMatrix_TransformDistance, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40057 | { (char *)"GraphicsMatrix_GetNativeMatrix", (PyCFunction)_wrap_GraphicsMatrix_GetNativeMatrix, METH_O, NULL}, | |
40058 | { (char *)"GraphicsMatrix_swigregister", GraphicsMatrix_swigregister, METH_VARARGS, NULL}, | |
8f514ab4 RD |
40059 | { (char *)"GraphicsMatrix_swiginit", GraphicsMatrix_swiginit, METH_VARARGS, NULL}, |
40060 | { (char *)"new_GraphicsPath", (PyCFunction)_wrap_new_GraphicsPath, METH_NOARGS, NULL}, | |
72ef6efb | 40061 | { (char *)"delete_GraphicsPath", (PyCFunction)_wrap_delete_GraphicsPath, METH_O, NULL}, |
70d7cb34 RD |
40062 | { (char *)"GraphicsPath_MoveToPoint", _wrap_GraphicsPath_MoveToPoint, METH_VARARGS, NULL}, |
40063 | { (char *)"GraphicsPath_AddLineToPoint", _wrap_GraphicsPath_AddLineToPoint, METH_VARARGS, NULL}, | |
40064 | { (char *)"GraphicsPath_AddCurveToPoint", _wrap_GraphicsPath_AddCurveToPoint, METH_VARARGS, NULL}, | |
40065 | { (char *)"GraphicsPath_AddPath", (PyCFunction) _wrap_GraphicsPath_AddPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
40066 | { (char *)"GraphicsPath_CloseSubpath", (PyCFunction)_wrap_GraphicsPath_CloseSubpath, METH_O, NULL}, |
40067 | { (char *)"GraphicsPath_GetCurrentPoint", (PyCFunction)_wrap_GraphicsPath_GetCurrentPoint, METH_O, NULL}, | |
70d7cb34 | 40068 | { (char *)"GraphicsPath_AddArc", _wrap_GraphicsPath_AddArc, METH_VARARGS, NULL}, |
72ef6efb RD |
40069 | { (char *)"GraphicsPath_AddQuadCurveToPoint", (PyCFunction) _wrap_GraphicsPath_AddQuadCurveToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, |
40070 | { (char *)"GraphicsPath_AddRectangle", (PyCFunction) _wrap_GraphicsPath_AddRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40071 | { (char *)"GraphicsPath_AddCircle", (PyCFunction) _wrap_GraphicsPath_AddCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40072 | { (char *)"GraphicsPath_AddArcToPoint", (PyCFunction) _wrap_GraphicsPath_AddArcToPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 RD |
40073 | { (char *)"GraphicsPath_AddEllipse", (PyCFunction) _wrap_GraphicsPath_AddEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, |
40074 | { (char *)"GraphicsPath_AddRoundedRectangle", (PyCFunction) _wrap_GraphicsPath_AddRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40075 | { (char *)"GraphicsPath_GetNativePath", (PyCFunction)_wrap_GraphicsPath_GetNativePath, METH_O, NULL}, | |
40076 | { (char *)"GraphicsPath_UnGetNativePath", (PyCFunction) _wrap_GraphicsPath_UnGetNativePath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40077 | { (char *)"GraphicsPath_Transform", (PyCFunction) _wrap_GraphicsPath_Transform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40078 | { (char *)"GraphicsPath_GetBox", (PyCFunction)_wrap_GraphicsPath_GetBox, METH_O, NULL}, | |
40079 | { (char *)"GraphicsPath_Contains", _wrap_GraphicsPath_Contains, METH_VARARGS, NULL}, | |
72ef6efb | 40080 | { (char *)"GraphicsPath_swigregister", GraphicsPath_swigregister, METH_VARARGS, NULL}, |
8f514ab4 | 40081 | { (char *)"GraphicsPath_swiginit", GraphicsPath_swiginit, METH_VARARGS, NULL}, |
72ef6efb | 40082 | { (char *)"delete_GraphicsContext", (PyCFunction)_wrap_delete_GraphicsContext, METH_O, NULL}, |
0a27f394 | 40083 | { (char *)"GraphicsContext_Create", _wrap_GraphicsContext_Create, METH_VARARGS, NULL}, |
f89238b9 | 40084 | { (char *)"GraphicsContext_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsContext_CreateMeasuringContext, METH_NOARGS, NULL}, |
0a27f394 | 40085 | { (char *)"GraphicsContext_CreateFromNative", (PyCFunction) _wrap_GraphicsContext_CreateFromNative, METH_VARARGS | METH_KEYWORDS, NULL}, |
70d7cb34 | 40086 | { (char *)"GraphicsContext_CreateFromNativeWindow", (PyCFunction) _wrap_GraphicsContext_CreateFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 40087 | { (char *)"GraphicsContext_CreatePath", (PyCFunction)_wrap_GraphicsContext_CreatePath, METH_O, NULL}, |
70d7cb34 RD |
40088 | { (char *)"GraphicsContext_CreatePen", (PyCFunction) _wrap_GraphicsContext_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
40089 | { (char *)"GraphicsContext_CreateBrush", (PyCFunction) _wrap_GraphicsContext_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40090 | { (char *)"GraphicsContext_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40091 | { (char *)"GraphicsContext_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsContext_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40092 | { (char *)"GraphicsContext_CreateFont", (PyCFunction) _wrap_GraphicsContext_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40093 | { (char *)"GraphicsContext_CreateMatrix", (PyCFunction) _wrap_GraphicsContext_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
40094 | { (char *)"GraphicsContext_PushState", (PyCFunction)_wrap_GraphicsContext_PushState, METH_O, NULL}, |
40095 | { (char *)"GraphicsContext_PopState", (PyCFunction)_wrap_GraphicsContext_PopState, METH_O, NULL}, | |
0a27f394 | 40096 | { (char *)"GraphicsContext_ClipRegion", (PyCFunction) _wrap_GraphicsContext_ClipRegion, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb | 40097 | { (char *)"GraphicsContext_Clip", (PyCFunction) _wrap_GraphicsContext_Clip, METH_VARARGS | METH_KEYWORDS, NULL}, |
0a27f394 RD |
40098 | { (char *)"GraphicsContext_ResetClip", (PyCFunction)_wrap_GraphicsContext_ResetClip, METH_O, NULL}, |
40099 | { (char *)"GraphicsContext_GetNativeContext", (PyCFunction)_wrap_GraphicsContext_GetNativeContext, METH_O, NULL}, | |
c8aaaf9e RD |
40100 | { (char *)"GraphicsContext_GetLogicalFunction", (PyCFunction)_wrap_GraphicsContext_GetLogicalFunction, METH_O, NULL}, |
40101 | { (char *)"GraphicsContext_SetLogicalFunction", (PyCFunction) _wrap_GraphicsContext_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
40102 | { (char *)"GraphicsContext_Translate", (PyCFunction) _wrap_GraphicsContext_Translate, METH_VARARGS | METH_KEYWORDS, NULL}, |
40103 | { (char *)"GraphicsContext_Scale", (PyCFunction) _wrap_GraphicsContext_Scale, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40104 | { (char *)"GraphicsContext_Rotate", (PyCFunction) _wrap_GraphicsContext_Rotate, METH_VARARGS | METH_KEYWORDS, NULL}, | |
5c8c7dd3 RD |
40105 | { (char *)"GraphicsContext_ConcatTransform", (PyCFunction) _wrap_GraphicsContext_ConcatTransform, METH_VARARGS | METH_KEYWORDS, NULL}, |
40106 | { (char *)"GraphicsContext_SetTransform", (PyCFunction) _wrap_GraphicsContext_SetTransform, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40107 | { (char *)"GraphicsContext_GetTransform", (PyCFunction)_wrap_GraphicsContext_GetTransform, METH_O, NULL}, | |
70d7cb34 RD |
40108 | { (char *)"GraphicsContext_SetPen", _wrap_GraphicsContext_SetPen, METH_VARARGS, NULL}, |
40109 | { (char *)"GraphicsContext_SetBrush", _wrap_GraphicsContext_SetBrush, METH_VARARGS, NULL}, | |
40110 | { (char *)"GraphicsContext_SetFont", _wrap_GraphicsContext_SetFont, METH_VARARGS, NULL}, | |
72ef6efb RD |
40111 | { (char *)"GraphicsContext_StrokePath", (PyCFunction) _wrap_GraphicsContext_StrokePath, METH_VARARGS | METH_KEYWORDS, NULL}, |
40112 | { (char *)"GraphicsContext_FillPath", (PyCFunction) _wrap_GraphicsContext_FillPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40113 | { (char *)"GraphicsContext_DrawPath", (PyCFunction) _wrap_GraphicsContext_DrawPath, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 RD |
40114 | { (char *)"GraphicsContext_DrawText", (PyCFunction) _wrap_GraphicsContext_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, |
40115 | { (char *)"GraphicsContext_DrawRotatedText", (PyCFunction) _wrap_GraphicsContext_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
be68621e | 40116 | { (char *)"GraphicsContext_GetFullTextExtent", (PyCFunction) _wrap_GraphicsContext_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
40117 | { (char *)"GraphicsContext_GetTextExtent", (PyCFunction) _wrap_GraphicsContext_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL}, |
40118 | { (char *)"GraphicsContext_GetPartialTextExtents", (PyCFunction) _wrap_GraphicsContext_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40119 | { (char *)"GraphicsContext_DrawBitmap", (PyCFunction) _wrap_GraphicsContext_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40120 | { (char *)"GraphicsContext_DrawIcon", (PyCFunction) _wrap_GraphicsContext_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40121 | { (char *)"GraphicsContext_StrokeLine", (PyCFunction) _wrap_GraphicsContext_StrokeLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
b39fe951 | 40122 | { (char *)"GraphicsContext_StrokeLines", (PyCFunction) _wrap_GraphicsContext_StrokeLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
f8eb59b9 | 40123 | { (char *)"GraphicsContext_StrokeLineSegements", (PyCFunction) _wrap_GraphicsContext_StrokeLineSegements, METH_VARARGS | METH_KEYWORDS, NULL}, |
72ef6efb RD |
40124 | { (char *)"GraphicsContext_DrawLines", (PyCFunction) _wrap_GraphicsContext_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, |
40125 | { (char *)"GraphicsContext_DrawRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40126 | { (char *)"GraphicsContext_DrawEllipse", (PyCFunction) _wrap_GraphicsContext_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40127 | { (char *)"GraphicsContext_DrawRoundedRectangle", (PyCFunction) _wrap_GraphicsContext_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
70d7cb34 | 40128 | { (char *)"GraphicsContext_ShouldOffset", (PyCFunction)_wrap_GraphicsContext_ShouldOffset, METH_O, NULL}, |
72ef6efb | 40129 | { (char *)"GraphicsContext_swigregister", GraphicsContext_swigregister, METH_VARARGS, NULL}, |
70d7cb34 RD |
40130 | { (char *)"delete_GraphicsRenderer", (PyCFunction)_wrap_delete_GraphicsRenderer, METH_O, NULL}, |
40131 | { (char *)"GraphicsRenderer_GetDefaultRenderer", (PyCFunction)_wrap_GraphicsRenderer_GetDefaultRenderer, METH_NOARGS, NULL}, | |
40132 | { (char *)"GraphicsRenderer_CreateContext", _wrap_GraphicsRenderer_CreateContext, METH_VARARGS, NULL}, | |
f89238b9 | 40133 | { (char *)"GraphicsRenderer_CreateMeasuringContext", (PyCFunction)_wrap_GraphicsRenderer_CreateMeasuringContext, METH_O, NULL}, |
70d7cb34 RD |
40134 | { (char *)"GraphicsRenderer_CreateContextFromNativeContext", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeContext, METH_VARARGS | METH_KEYWORDS, NULL}, |
40135 | { (char *)"GraphicsRenderer_CreateContextFromNativeWindow", (PyCFunction) _wrap_GraphicsRenderer_CreateContextFromNativeWindow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40136 | { (char *)"GraphicsRenderer_CreatePath", (PyCFunction)_wrap_GraphicsRenderer_CreatePath, METH_O, NULL}, | |
40137 | { (char *)"GraphicsRenderer_CreateMatrix", (PyCFunction) _wrap_GraphicsRenderer_CreateMatrix, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40138 | { (char *)"GraphicsRenderer_CreatePen", (PyCFunction) _wrap_GraphicsRenderer_CreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40139 | { (char *)"GraphicsRenderer_CreateBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40140 | { (char *)"GraphicsRenderer_CreateLinearGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateLinearGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40141 | { (char *)"GraphicsRenderer_CreateRadialGradientBrush", (PyCFunction) _wrap_GraphicsRenderer_CreateRadialGradientBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40142 | { (char *)"GraphicsRenderer_CreateFont", (PyCFunction) _wrap_GraphicsRenderer_CreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40143 | { (char *)"GraphicsRenderer_swigregister", GraphicsRenderer_swigregister, METH_VARARGS, NULL}, | |
48a0c021 | 40144 | { (char *)"new_GCDC", _wrap_new_GCDC, METH_VARARGS, NULL}, |
72ef6efb | 40145 | { (char *)"delete_GCDC", (PyCFunction)_wrap_delete_GCDC, METH_O, NULL}, |
0a27f394 RD |
40146 | { (char *)"GCDC_GetGraphicsContext", (PyCFunction)_wrap_GCDC_GetGraphicsContext, METH_O, NULL}, |
40147 | { (char *)"GCDC_SetGraphicsContext", (PyCFunction) _wrap_GCDC_SetGraphicsContext, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
40148 | { (char *)"GCDC_swigregister", GCDC_swigregister, METH_VARARGS, NULL}, |
40149 | { (char *)"GCDC_swiginit", GCDC_swiginit, METH_VARARGS, NULL}, | |
b39fe951 RD |
40150 | { (char *)"new_Overlay", (PyCFunction)_wrap_new_Overlay, METH_NOARGS, NULL}, |
40151 | { (char *)"delete_Overlay", (PyCFunction)_wrap_delete_Overlay, METH_O, NULL}, | |
40152 | { (char *)"Overlay_Reset", (PyCFunction)_wrap_Overlay_Reset, METH_O, NULL}, | |
40153 | { (char *)"Overlay_swigregister", Overlay_swigregister, METH_VARARGS, NULL}, | |
40154 | { (char *)"Overlay_swiginit", Overlay_swiginit, METH_VARARGS, NULL}, | |
40155 | { (char *)"new_DCOverlay", _wrap_new_DCOverlay, METH_VARARGS, NULL}, | |
40156 | { (char *)"delete_DCOverlay", (PyCFunction)_wrap_delete_DCOverlay, METH_O, NULL}, | |
40157 | { (char *)"DCOverlay_Clear", (PyCFunction)_wrap_DCOverlay_Clear, METH_O, NULL}, | |
40158 | { (char *)"DCOverlay_swigregister", DCOverlay_swigregister, METH_VARARGS, NULL}, | |
40159 | { (char *)"DCOverlay_swiginit", DCOverlay_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
40160 | { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL}, |
40161 | { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL}, | |
40162 | { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40163 | { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40164 | { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40165 | { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40166 | { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40167 | { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40168 | { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40169 | { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL}, | |
40170 | { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40171 | { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL}, | |
40172 | { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40173 | { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL}, | |
40174 | { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
40175 | { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL}, |
40176 | { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL}, | |
40177 | { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL}, | |
40178 | { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL}, | |
40179 | { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40180 | { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40181 | { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40182 | { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40183 | { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40184 | { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL}, | |
40185 | { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL}, | |
40186 | { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL}, | |
40187 | { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL}, | |
40188 | { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL}, | |
40189 | { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL}, | |
554f62e9 | 40190 | { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 40191 | { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 40192 | { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 40193 | { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL}, |
554f62e9 | 40194 | { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
50efceee | 40195 | { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 40196 | { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL}, |
554f62e9 | 40197 | { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL}, |
50efceee RD |
40198 | { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL}, |
40199 | { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40200 | { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40201 | { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL}, | |
554f62e9 RD |
40202 | { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL}, |
40203 | { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL}, | |
40204 | { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40205 | { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40206 | { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40207 | { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40208 | { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL}, | |
40209 | { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL}, | |
50efceee RD |
40210 | { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL}, |
40211 | { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL}, | |
40212 | { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL}, | |
40213 | { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL}, | |
554f62e9 RD |
40214 | { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL}, |
40215 | { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL}, | |
40216 | { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL}, | |
40217 | { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL}, | |
40218 | { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL}, | |
40219 | { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL}, | |
40220 | { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40221 | { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40222 | { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40223 | { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40224 | { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40225 | { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40226 | { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40227 | { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40228 | { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL}, | |
40229 | { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL}, | |
40230 | { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40231 | { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL}, | |
40232 | { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL}, | |
40233 | { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL}, | |
40234 | { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL}, | |
40235 | { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL}, | |
40236 | { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL}, | |
33d6fd3b RD |
40237 | { (char *)"new_HeaderButtonParams", (PyCFunction)_wrap_new_HeaderButtonParams, METH_NOARGS, NULL}, |
40238 | { (char *)"delete_HeaderButtonParams", (PyCFunction)_wrap_delete_HeaderButtonParams, METH_O, NULL}, | |
40239 | { (char *)"HeaderButtonParams_m_arrowColour_set", _wrap_HeaderButtonParams_m_arrowColour_set, METH_VARARGS, NULL}, | |
40240 | { (char *)"HeaderButtonParams_m_arrowColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_arrowColour_get, METH_O, NULL}, | |
40241 | { (char *)"HeaderButtonParams_m_selectionColour_set", _wrap_HeaderButtonParams_m_selectionColour_set, METH_VARARGS, NULL}, | |
40242 | { (char *)"HeaderButtonParams_m_selectionColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_selectionColour_get, METH_O, NULL}, | |
40243 | { (char *)"HeaderButtonParams_m_labelText_set", _wrap_HeaderButtonParams_m_labelText_set, METH_VARARGS, NULL}, | |
40244 | { (char *)"HeaderButtonParams_m_labelText_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelText_get, METH_O, NULL}, | |
40245 | { (char *)"HeaderButtonParams_m_labelFont_set", _wrap_HeaderButtonParams_m_labelFont_set, METH_VARARGS, NULL}, | |
40246 | { (char *)"HeaderButtonParams_m_labelFont_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelFont_get, METH_O, NULL}, | |
40247 | { (char *)"HeaderButtonParams_m_labelColour_set", _wrap_HeaderButtonParams_m_labelColour_set, METH_VARARGS, NULL}, | |
40248 | { (char *)"HeaderButtonParams_m_labelColour_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelColour_get, METH_O, NULL}, | |
40249 | { (char *)"HeaderButtonParams_m_labelBitmap_set", _wrap_HeaderButtonParams_m_labelBitmap_set, METH_VARARGS, NULL}, | |
40250 | { (char *)"HeaderButtonParams_m_labelBitmap_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelBitmap_get, METH_O, NULL}, | |
40251 | { (char *)"HeaderButtonParams_m_labelAlignment_set", _wrap_HeaderButtonParams_m_labelAlignment_set, METH_VARARGS, NULL}, | |
40252 | { (char *)"HeaderButtonParams_m_labelAlignment_get", (PyCFunction)_wrap_HeaderButtonParams_m_labelAlignment_get, METH_O, NULL}, | |
40253 | { (char *)"HeaderButtonParams_swigregister", HeaderButtonParams_swigregister, METH_VARARGS, NULL}, | |
40254 | { (char *)"HeaderButtonParams_swiginit", HeaderButtonParams_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
40255 | { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL}, |
40256 | { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL}, | |
40257 | { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40258 | { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL}, | |
40259 | { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL}, | |
40260 | { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL}, | |
40261 | { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL}, | |
40262 | { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
33d6fd3b RD |
40263 | { (char *)"RendererNative_DrawHeaderButtonContents", (PyCFunction) _wrap_RendererNative_DrawHeaderButtonContents, METH_VARARGS | METH_KEYWORDS, NULL}, |
40264 | { (char *)"RendererNative_GetHeaderButtonHeight", (PyCFunction) _wrap_RendererNative_GetHeaderButtonHeight, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
40265 | { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL}, |
40266 | { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40267 | { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40268 | { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40269 | { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL}, | |
f460c29d RD |
40270 | { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL}, |
40271 | { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40272 | { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
554f62e9 RD |
40273 | { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL}, |
40274 | { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL}, | |
40275 | { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL}, | |
40276 | { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL}, | |
40277 | { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40278 | { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL}, | |
40279 | { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL}, | |
27e45892 RD |
40280 | { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL}, |
40281 | { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL}, | |
40282 | { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL}, | |
40283 | { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL}, | |
40284 | { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL}, | |
40285 | { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL}, | |
40286 | { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40287 | { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40288 | { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40289 | { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL}, | |
72ef6efb RD |
40290 | { (char *)"PseudoDC_SetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_SetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, |
40291 | { (char *)"PseudoDC_GetIdGreyedOut", (PyCFunction) _wrap_PseudoDC_GetIdGreyedOut, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40292 | { (char *)"PseudoDC_FindObjects", (PyCFunction) _wrap_PseudoDC_FindObjects, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40293 | { (char *)"PseudoDC_FindObjectsByBBox", (PyCFunction) _wrap_PseudoDC_FindObjectsByBBox, METH_VARARGS | METH_KEYWORDS, NULL}, | |
27e45892 RD |
40294 | { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL}, |
40295 | { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40296 | { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40297 | { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40298 | { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40299 | { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40300 | { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40301 | { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40302 | { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40303 | { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40304 | { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40305 | { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40306 | { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40307 | { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40308 | { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40309 | { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40310 | { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40311 | { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40312 | { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40313 | { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40314 | { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40315 | { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40316 | { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40317 | { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40318 | { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40319 | { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40320 | { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40321 | { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40322 | { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40323 | { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40324 | { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40325 | { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40326 | { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40327 | { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40328 | { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40329 | { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40330 | { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40331 | { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40332 | { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40333 | { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40334 | { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40335 | { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40336 | { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40337 | { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40338 | { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL}, | |
40339 | { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40340 | { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40341 | { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40342 | { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40343 | { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40344 | { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40345 | { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40346 | { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40347 | { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL}, | |
40348 | { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL}, | |
40349 | { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL}, | |
554f62e9 RD |
40350 | { NULL, NULL, 0, NULL } |
40351 | }; | |
40352 | ||
40353 | ||
40354 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
40355 | ||
72ef6efb RD |
40356 | static void *_p_wxPaintDCTo_p_wxClientDC(void *x) { |
40357 | return (void *)((wxClientDC *) ((wxPaintDC *) x)); | |
40358 | } | |
8e99bda9 RD |
40359 | static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) { |
40360 | return (void *)((wxMemoryDC *) ((wxBufferedDC *) x)); | |
40361 | } | |
40362 | static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) { | |
40363 | return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
40364 | } | |
26c4d26f RD |
40365 | static void *_p_wxBufferedDCTo_p_wxWindowDC(void *x) { |
40366 | return (void *)((wxWindowDC *) (wxMemoryDC *) ((wxBufferedDC *) x)); | |
40367 | } | |
40368 | static void *_p_wxMemoryDCTo_p_wxWindowDC(void *x) { | |
40369 | return (void *)((wxWindowDC *) ((wxMemoryDC *) x)); | |
40370 | } | |
72ef6efb RD |
40371 | static void *_p_wxClientDCTo_p_wxWindowDC(void *x) { |
40372 | return (void *)((wxWindowDC *) ((wxClientDC *) x)); | |
40373 | } | |
40374 | static void *_p_wxPaintDCTo_p_wxWindowDC(void *x) { | |
40375 | return (void *)((wxWindowDC *) (wxClientDC *) ((wxPaintDC *) x)); | |
40376 | } | |
26c4d26f RD |
40377 | static void *_p_wxBufferedPaintDCTo_p_wxWindowDC(void *x) { |
40378 | return (void *)((wxWindowDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
40379 | } | |
fc46b7f3 RD |
40380 | static void *_p_wxPyLocaleTo_p_wxLocale(void *x) { |
40381 | return (void *)((wxLocale *) ((wxPyLocale *) x)); | |
40382 | } | |
70d7cb34 RD |
40383 | static void *_p_wxGraphicsPenTo_p_wxGraphicsObject(void *x) { |
40384 | return (void *)((wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
40385 | } | |
40386 | static void *_p_wxGraphicsBrushTo_p_wxGraphicsObject(void *x) { | |
40387 | return (void *)((wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
40388 | } | |
40389 | static void *_p_wxGraphicsMatrixTo_p_wxGraphicsObject(void *x) { | |
40390 | return (void *)((wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
40391 | } | |
40392 | static void *_p_wxGraphicsFontTo_p_wxGraphicsObject(void *x) { | |
40393 | return (void *)((wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
40394 | } | |
40395 | static void *_p_wxGraphicsContextTo_p_wxGraphicsObject(void *x) { | |
40396 | return (void *)((wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
40397 | } | |
40398 | static void *_p_wxGraphicsPathTo_p_wxGraphicsObject(void *x) { | |
40399 | return (void *)((wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
40400 | } | |
554f62e9 RD |
40401 | static void *_p_wxIconTo_p_wxGDIObject(void *x) { |
40402 | return (void *)((wxGDIObject *) ((wxIcon *) x)); | |
40403 | } | |
40404 | static void *_p_wxPaletteTo_p_wxGDIObject(void *x) { | |
40405 | return (void *)((wxGDIObject *) ((wxPalette *) x)); | |
40406 | } | |
40407 | static void *_p_wxPenTo_p_wxGDIObject(void *x) { | |
40408 | return (void *)((wxGDIObject *) ((wxPen *) x)); | |
40409 | } | |
40410 | static void *_p_wxFontTo_p_wxGDIObject(void *x) { | |
40411 | return (void *)((wxGDIObject *) ((wxFont *) x)); | |
40412 | } | |
40413 | static void *_p_wxCursorTo_p_wxGDIObject(void *x) { | |
40414 | return (void *)((wxGDIObject *) ((wxCursor *) x)); | |
40415 | } | |
40416 | static void *_p_wxBitmapTo_p_wxGDIObject(void *x) { | |
40417 | return (void *)((wxGDIObject *) ((wxBitmap *) x)); | |
40418 | } | |
40419 | static void *_p_wxRegionTo_p_wxGDIObject(void *x) { | |
40420 | return (void *)((wxGDIObject *) ((wxRegion *) x)); | |
40421 | } | |
40422 | static void *_p_wxBrushTo_p_wxGDIObject(void *x) { | |
40423 | return (void *)((wxGDIObject *) ((wxBrush *) x)); | |
40424 | } | |
72ef6efb RD |
40425 | static void *_p_wxGCDCTo_p_wxDC(void *x) { |
40426 | return (void *)((wxDC *) ((wxGCDC *) x)); | |
40427 | } | |
554f62e9 RD |
40428 | static void *_p_wxScreenDCTo_p_wxDC(void *x) { |
40429 | return (void *)((wxDC *) ((wxScreenDC *) x)); | |
40430 | } | |
24f6c4e8 | 40431 | static void *_p_wxBufferedDCTo_p_wxDC(void *x) { |
26c4d26f | 40432 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
24f6c4e8 | 40433 | } |
554f62e9 RD |
40434 | static void *_p_wxMirrorDCTo_p_wxDC(void *x) { |
40435 | return (void *)((wxDC *) ((wxMirrorDC *) x)); | |
40436 | } | |
554f62e9 RD |
40437 | static void *_p_wxWindowDCTo_p_wxDC(void *x) { |
40438 | return (void *)((wxDC *) ((wxWindowDC *) x)); | |
40439 | } | |
26c4d26f RD |
40440 | static void *_p_wxMemoryDCTo_p_wxDC(void *x) { |
40441 | return (void *)((wxDC *) (wxWindowDC *) ((wxMemoryDC *) x)); | |
40442 | } | |
554f62e9 RD |
40443 | static void *_p_wxMetaFileDCTo_p_wxDC(void *x) { |
40444 | return (void *)((wxDC *) ((wxMetaFileDC *) x)); | |
40445 | } | |
554f62e9 | 40446 | static void *_p_wxClientDCTo_p_wxDC(void *x) { |
72ef6efb | 40447 | return (void *)((wxDC *) (wxWindowDC *) ((wxClientDC *) x)); |
554f62e9 RD |
40448 | } |
40449 | static void *_p_wxPaintDCTo_p_wxDC(void *x) { | |
72ef6efb | 40450 | return (void *)((wxDC *) (wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); |
554f62e9 | 40451 | } |
24f6c4e8 | 40452 | static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) { |
26c4d26f | 40453 | return (void *)((wxDC *) (wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
24f6c4e8 RD |
40454 | } |
40455 | static void *_p_wxAutoBufferedPaintDCTo_p_wxDC(void *x) { | |
40456 | return (void *)((wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
40457 | } | |
554f62e9 RD |
40458 | static void *_p_wxPostScriptDCTo_p_wxDC(void *x) { |
40459 | return (void *)((wxDC *) ((wxPostScriptDC *) x)); | |
40460 | } | |
40461 | static void *_p_wxPrinterDCTo_p_wxDC(void *x) { | |
40462 | return (void *)((wxDC *) ((wxPrinterDC *) x)); | |
40463 | } | |
50efceee RD |
40464 | static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) { |
40465 | return (void *)((wxGDIObjListBase *) ((wxBrushList *) x)); | |
40466 | } | |
40467 | static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) { | |
40468 | return (void *)((wxGDIObjListBase *) ((wxFontList *) x)); | |
40469 | } | |
40470 | static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) { | |
40471 | return (void *)((wxGDIObjListBase *) ((wxPenList *) x)); | |
40472 | } | |
554f62e9 RD |
40473 | static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) { |
40474 | return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x)); | |
40475 | } | |
40476 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
40477 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
40478 | } | |
40479 | static void *_p_wxPenTo_p_wxObject(void *x) { | |
40480 | return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x)); | |
40481 | } | |
40482 | static void *_p_wxRegionIteratorTo_p_wxObject(void *x) { | |
40483 | return (void *)((wxObject *) ((wxRegionIterator *) x)); | |
40484 | } | |
554f62e9 RD |
40485 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { |
40486 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
40487 | } | |
0f83f5da RD |
40488 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { |
40489 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
40490 | } | |
554f62e9 RD |
40491 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { |
40492 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
40493 | } | |
40494 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
40495 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
40496 | } | |
40497 | static void *_p_wxIconTo_p_wxObject(void *x) { | |
40498 | return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x)); | |
40499 | } | |
40500 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
40501 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
40502 | } | |
40503 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
40504 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
40505 | } | |
40506 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
40507 | return (void *)((wxObject *) ((wxSizer *) x)); | |
40508 | } | |
40509 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
40510 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
40511 | } | |
40512 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
40513 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
40514 | } | |
554f62e9 RD |
40515 | static void *_p_wxEventTo_p_wxObject(void *x) { |
40516 | return (void *)((wxObject *) ((wxEvent *) x)); | |
40517 | } | |
40518 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
40519 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
40520 | } | |
40521 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
40522 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
40523 | } | |
40524 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
40525 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
40526 | } | |
27e45892 RD |
40527 | static void *_p_wxPseudoDCTo_p_wxObject(void *x) { |
40528 | return (void *)((wxObject *) ((wxPseudoDC *) x)); | |
40529 | } | |
2131d850 RD |
40530 | static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) { |
40531 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x)); | |
40532 | } | |
554f62e9 RD |
40533 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { |
40534 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
40535 | } | |
40536 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
40537 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
40538 | } | |
40539 | static void *_p_wxDCTo_p_wxObject(void *x) { | |
40540 | return (void *)((wxObject *) ((wxDC *) x)); | |
40541 | } | |
40542 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
40543 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
40544 | } | |
40545 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
40546 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
40547 | } | |
40548 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
40549 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
40550 | } | |
40551 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
40552 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
40553 | } | |
40554 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
40555 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
40556 | } | |
70d7cb34 RD |
40557 | static void *_p_wxGraphicsPenTo_p_wxObject(void *x) { |
40558 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPen *) x)); | |
40559 | } | |
554f62e9 RD |
40560 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { |
40561 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
40562 | } | |
40563 | static void *_p_wxClientDCTo_p_wxObject(void *x) { | |
72ef6efb | 40564 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxClientDC *) x)); |
554f62e9 RD |
40565 | } |
40566 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
40567 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
40568 | } | |
40569 | static void *_p_wxMemoryDCTo_p_wxObject(void *x) { | |
26c4d26f | 40570 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *) ((wxMemoryDC *) x)); |
554f62e9 RD |
40571 | } |
40572 | static void *_p_wxRegionTo_p_wxObject(void *x) { | |
40573 | return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x)); | |
40574 | } | |
40575 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
40576 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
40577 | } | |
40578 | static void *_p_wxWindowDCTo_p_wxObject(void *x) { | |
40579 | return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x)); | |
40580 | } | |
40581 | static void *_p_wxGDIObjectTo_p_wxObject(void *x) { | |
40582 | return (void *)((wxObject *) ((wxGDIObject *) x)); | |
40583 | } | |
70d7cb34 RD |
40584 | static void *_p_wxGraphicsObjectTo_p_wxObject(void *x) { |
40585 | return (void *)((wxObject *) ((wxGraphicsObject *) x)); | |
40586 | } | |
40587 | static void *_p_wxGraphicsPathTo_p_wxObject(void *x) { | |
40588 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsPath *) x)); | |
40589 | } | |
554f62e9 RD |
40590 | static void *_p_wxEffectsTo_p_wxObject(void *x) { |
40591 | return (void *)((wxObject *) ((wxEffects *) x)); | |
40592 | } | |
40593 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
40594 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
40595 | } | |
40596 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
40597 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
40598 | } | |
40599 | static void *_p_wxPostScriptDCTo_p_wxObject(void *x) { | |
40600 | return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x)); | |
40601 | } | |
70d7cb34 RD |
40602 | static void *_p_wxGraphicsContextTo_p_wxObject(void *x) { |
40603 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsContext *) x)); | |
40604 | } | |
554f62e9 RD |
40605 | static void *_p_wxShowEventTo_p_wxObject(void *x) { |
40606 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
40607 | } | |
40608 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
40609 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
40610 | } | |
40611 | static void *_p_wxDateEventTo_p_wxObject(void *x) { | |
40612 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x)); | |
40613 | } | |
40614 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
40615 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
40616 | } | |
40617 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
40618 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
40619 | } | |
40620 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
40621 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
40622 | } | |
40623 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
40624 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
40625 | } | |
40626 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
40627 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
40628 | } | |
40629 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
40630 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
40631 | } | |
40632 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
40633 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
40634 | } | |
40635 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
40636 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
40637 | } | |
40638 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
40639 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
40640 | } | |
40641 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
40642 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
40643 | } | |
40644 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
40645 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
40646 | } | |
40647 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
40648 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
40649 | } | |
40650 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
40651 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
40652 | } | |
40653 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
40654 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
40655 | } | |
40656 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
40657 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
40658 | } | |
40659 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
40660 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
40661 | } | |
40662 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
40663 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
40664 | } | |
40665 | static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) { | |
40666 | return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x)); | |
40667 | } | |
40668 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
40669 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
40670 | } | |
40671 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
40672 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
40673 | } | |
40674 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
40675 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
40676 | } | |
580080c5 RD |
40677 | static void *_p_wxTGAHandlerTo_p_wxObject(void *x) { |
40678 | return (void *)((wxObject *) (wxImageHandler *) ((wxTGAHandler *) x)); | |
40679 | } | |
554f62e9 RD |
40680 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { |
40681 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
40682 | } | |
0f83f5da RD |
40683 | static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) { |
40684 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x)); | |
40685 | } | |
24f6c4e8 RD |
40686 | static void *_p_wxPaintDCTo_p_wxObject(void *x) { |
40687 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxClientDC *) ((wxPaintDC *) x)); | |
40688 | } | |
554f62e9 | 40689 | static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) { |
26c4d26f | 40690 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x)); |
554f62e9 | 40691 | } |
24f6c4e8 RD |
40692 | static void *_p_wxAutoBufferedPaintDCTo_p_wxObject(void *x) { |
40693 | return (void *)((wxObject *) (wxDC *) ((wxAutoBufferedPaintDC *) x)); | |
554f62e9 RD |
40694 | } |
40695 | static void *_p_wxPrinterDCTo_p_wxObject(void *x) { | |
40696 | return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x)); | |
40697 | } | |
40698 | static void *_p_wxScreenDCTo_p_wxObject(void *x) { | |
40699 | return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x)); | |
40700 | } | |
554f62e9 RD |
40701 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
40702 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
40703 | } | |
580080c5 RD |
40704 | static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) { |
40705 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x)); | |
40706 | } | |
554f62e9 RD |
40707 | static void *_p_wxImageTo_p_wxObject(void *x) { |
40708 | return (void *)((wxObject *) ((wxImage *) x)); | |
40709 | } | |
40710 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
40711 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
40712 | } | |
70d7cb34 RD |
40713 | static void *_p_wxGraphicsBrushTo_p_wxObject(void *x) { |
40714 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsBrush *) x)); | |
40715 | } | |
40716 | static void *_p_wxGraphicsRendererTo_p_wxObject(void *x) { | |
40717 | return (void *)((wxObject *) ((wxGraphicsRenderer *) x)); | |
40718 | } | |
554f62e9 RD |
40719 | static void *_p_wxPaletteTo_p_wxObject(void *x) { |
40720 | return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x)); | |
40721 | } | |
40722 | static void *_p_wxBufferedDCTo_p_wxObject(void *x) { | |
26c4d26f | 40723 | return (void *)((wxObject *) (wxDC *)(wxWindowDC *)(wxMemoryDC *) ((wxBufferedDC *) x)); |
554f62e9 RD |
40724 | } |
40725 | static void *_p_wxImageListTo_p_wxObject(void *x) { | |
40726 | return (void *)((wxObject *) ((wxImageList *) x)); | |
40727 | } | |
72ef6efb RD |
40728 | static void *_p_wxGCDCTo_p_wxObject(void *x) { |
40729 | return (void *)((wxObject *) (wxDC *) ((wxGCDC *) x)); | |
40730 | } | |
554f62e9 RD |
40731 | static void *_p_wxCursorTo_p_wxObject(void *x) { |
40732 | return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x)); | |
40733 | } | |
40734 | static void *_p_wxEncodingConverterTo_p_wxObject(void *x) { | |
40735 | return (void *)((wxObject *) ((wxEncodingConverter *) x)); | |
40736 | } | |
40737 | static void *_p_wxMirrorDCTo_p_wxObject(void *x) { | |
40738 | return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x)); | |
40739 | } | |
70d7cb34 RD |
40740 | static void *_p_wxGraphicsFontTo_p_wxObject(void *x) { |
40741 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsFont *) x)); | |
40742 | } | |
554f62e9 RD |
40743 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { |
40744 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
40745 | } | |
40746 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
40747 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
40748 | } | |
40749 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
40750 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
40751 | } | |
40752 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
40753 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
40754 | } | |
40755 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
40756 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
40757 | } | |
40758 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
40759 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
40760 | } | |
40761 | static void *_p_wxMetaFileDCTo_p_wxObject(void *x) { | |
40762 | return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x)); | |
40763 | } | |
554f62e9 RD |
40764 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { |
40765 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
40766 | } | |
40767 | static void *_p_wxBitmapTo_p_wxObject(void *x) { | |
40768 | return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x)); | |
40769 | } | |
40770 | static void *_p_wxMaskTo_p_wxObject(void *x) { | |
40771 | return (void *)((wxObject *) ((wxMask *) x)); | |
40772 | } | |
70d7cb34 RD |
40773 | static void *_p_wxGraphicsMatrixTo_p_wxObject(void *x) { |
40774 | return (void *)((wxObject *) (wxGraphicsObject *) ((wxGraphicsMatrix *) x)); | |
40775 | } | |
554f62e9 RD |
40776 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { |
40777 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
40778 | } | |
40779 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
40780 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
40781 | } | |
40782 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
40783 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
40784 | } | |
40785 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
40786 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
40787 | } | |
40788 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
40789 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
40790 | } | |
40791 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
40792 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
40793 | } | |
40794 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
40795 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
40796 | } | |
40797 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
40798 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
40799 | } | |
40800 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
40801 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
40802 | } | |
40803 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
40804 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
40805 | } | |
40806 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
40807 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
40808 | } | |
40809 | static void *_p_wxFontTo_p_wxObject(void *x) { | |
40810 | return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x)); | |
40811 | } | |
40812 | static void *_p_wxBrushTo_p_wxObject(void *x) { | |
40813 | return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x)); | |
40814 | } | |
40815 | static void *_p_wxMetaFileTo_p_wxObject(void *x) { | |
40816 | return (void *)((wxObject *) ((wxMetaFile *) x)); | |
40817 | } | |
40818 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
40819 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
40820 | } | |
40821 | static void *_p_wxColourTo_p_wxObject(void *x) { | |
40822 | return (void *)((wxObject *) ((wxColour *) x)); | |
40823 | } | |
554f62e9 RD |
40824 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { |
40825 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
40826 | } | |
40827 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
40828 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
40829 | } | |
40830 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
40831 | return (void *)((wxWindow *) ((wxControl *) x)); | |
40832 | } | |
40833 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
40834 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
40835 | } | |
40836 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
40837 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
40838 | } | |
fc46b7f3 RD |
40839 | static void *_p_wxNativePixelDataTo_p_wxPixelDataBase(void *x) { |
40840 | return (void *)((wxPixelDataBase *) ((wxNativePixelData *) x)); | |
40841 | } | |
40842 | static void *_p_wxAlphaPixelDataTo_p_wxPixelDataBase(void *x) { | |
40843 | return (void *)((wxPixelDataBase *) ((wxAlphaPixelData *) x)); | |
40844 | } | |
40845 | static swig_type_info _swigt__p_buffer = {"_p_buffer", "buffer *", 0, 0, (void*)0, 0}; | |
554f62e9 | 40846 | static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0}; |
72ef6efb | 40847 | static swig_type_info _swigt__p_double = {"_p_double", "double *|wxDouble *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40848 | 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}; |
40849 | static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0}; | |
40850 | static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0}; | |
40851 | static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0}; | |
40852 | static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0}; | |
0a27f394 | 40853 | static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0}; |
fc46b7f3 RD |
40854 | static swig_type_info _swigt__p_wxAlphaPixelData = {"_p_wxAlphaPixelData", "wxAlphaPixelData *", 0, 0, (void*)0, 0}; |
40855 | static swig_type_info _swigt__p_wxAlphaPixelData_Accessor = {"_p_wxAlphaPixelData_Accessor", "wxAlphaPixelData_Accessor *", 0, 0, (void*)0, 0}; | |
24f6c4e8 | 40856 | static swig_type_info _swigt__p_wxAutoBufferedPaintDC = {"_p_wxAutoBufferedPaintDC", "wxAutoBufferedPaintDC *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40857 | static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0}; |
40858 | static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0}; | |
40859 | static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0}; | |
40860 | static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0}; | |
40861 | static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 40862 | static swig_type_info _swigt__p_wxChar = {"_p_wxChar", "wxChar *", 0, 0, (void*)0, 0}; |
554f62e9 | 40863 | static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0}; |
72ef6efb | 40864 | static swig_type_info _swigt__p_wxColor = {"_p_wxColor", "wxColor *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40865 | static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0}; |
40866 | static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0}; | |
40867 | static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0}; | |
40868 | static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0}; | |
70d7cb34 RD |
40869 | static swig_type_info _swigt__p_wxDCBrushChanger = {"_p_wxDCBrushChanger", "wxDCBrushChanger *", 0, 0, (void*)0, 0}; |
40870 | static swig_type_info _swigt__p_wxDCClipper = {"_p_wxDCClipper", "wxDCClipper *", 0, 0, (void*)0, 0}; | |
b39fe951 | 40871 | static swig_type_info _swigt__p_wxDCOverlay = {"_p_wxDCOverlay", "wxDCOverlay *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40872 | static swig_type_info _swigt__p_wxDCPenChanger = {"_p_wxDCPenChanger", "wxDCPenChanger *", 0, 0, (void*)0, 0}; |
40873 | static swig_type_info _swigt__p_wxDCTextColourChanger = {"_p_wxDCTextColourChanger", "wxDCTextColourChanger *", 0, 0, (void*)0, 0}; | |
554f62e9 RD |
40874 | static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0}; |
40875 | static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0}; | |
40876 | static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0}; | |
40877 | static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0}; | |
40878 | static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0}; | |
40879 | static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0}; | |
40880 | static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0}; | |
72ef6efb | 40881 | static swig_type_info _swigt__p_wxGCDC = {"_p_wxGCDC", "wxGCDC *", 0, 0, (void*)0, 0}; |
50efceee | 40882 | static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0}; |
554f62e9 | 40883 | static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0}; |
70d7cb34 | 40884 | static swig_type_info _swigt__p_wxGraphicsBrush = {"_p_wxGraphicsBrush", "wxGraphicsBrush *", 0, 0, (void*)0, 0}; |
72ef6efb | 40885 | static swig_type_info _swigt__p_wxGraphicsContext = {"_p_wxGraphicsContext", "wxGraphicsContext *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40886 | static swig_type_info _swigt__p_wxGraphicsFont = {"_p_wxGraphicsFont", "wxGraphicsFont *", 0, 0, (void*)0, 0}; |
40887 | static swig_type_info _swigt__p_wxGraphicsMatrix = {"_p_wxGraphicsMatrix", "wxGraphicsMatrix *", 0, 0, (void*)0, 0}; | |
40888 | static swig_type_info _swigt__p_wxGraphicsObject = {"_p_wxGraphicsObject", "wxGraphicsObject *", 0, 0, (void*)0, 0}; | |
72ef6efb | 40889 | static swig_type_info _swigt__p_wxGraphicsPath = {"_p_wxGraphicsPath", "wxGraphicsPath *", 0, 0, (void*)0, 0}; |
70d7cb34 RD |
40890 | static swig_type_info _swigt__p_wxGraphicsPen = {"_p_wxGraphicsPen", "wxGraphicsPen *", 0, 0, (void*)0, 0}; |
40891 | static swig_type_info _swigt__p_wxGraphicsRenderer = {"_p_wxGraphicsRenderer", "wxGraphicsRenderer *", 0, 0, (void*)0, 0}; | |
33d6fd3b | 40892 | static swig_type_info _swigt__p_wxHeaderButtonParams = {"_p_wxHeaderButtonParams", "wxHeaderButtonParams *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40893 | static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0}; |
40894 | static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0}; | |
40895 | static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0}; | |
40896 | static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0}; | |
40897 | static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0}; | |
40898 | static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0}; | |
40899 | static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0}; | |
40900 | static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0}; | |
40901 | static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0}; | |
40902 | static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0}; | |
40903 | static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0}; | |
40904 | static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0}; | |
40905 | static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0}; | |
40906 | static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0}; | |
fc46b7f3 RD |
40907 | static swig_type_info _swigt__p_wxNativePixelData = {"_p_wxNativePixelData", "wxNativePixelData *", 0, 0, (void*)0, 0}; |
40908 | static swig_type_info _swigt__p_wxNativePixelData_Accessor = {"_p_wxNativePixelData_Accessor", "wxNativePixelData_Accessor *", 0, 0, (void*)0, 0}; | |
554f62e9 RD |
40909 | static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0}; |
40910 | static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0}; | |
554f62e9 | 40911 | static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0}; |
0f83f5da | 40912 | static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40913 | static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0}; |
40914 | static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0}; | |
40915 | static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0}; | |
40916 | static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0}; | |
40917 | static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0}; | |
40918 | static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0}; | |
40919 | static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0}; | |
40920 | static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0}; | |
40921 | static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0}; | |
40922 | static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0}; | |
40923 | static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0}; | |
40924 | static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0}; | |
2131d850 | 40925 | static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40926 | static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0}; |
40927 | static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0}; | |
40928 | static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0}; | |
40929 | static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0}; | |
40930 | static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0}; | |
40931 | static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0}; | |
40932 | static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0}; | |
40933 | static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0}; | |
40934 | static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0}; | |
40935 | static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0}; | |
40936 | static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0}; | |
40937 | static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0}; | |
40938 | static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0}; | |
40939 | static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0}; | |
40940 | static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0}; | |
40941 | static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0}; | |
40942 | static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0}; | |
40943 | static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0}; | |
40944 | static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0}; | |
40945 | static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0}; | |
40946 | static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0}; | |
40947 | static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0}; | |
40948 | static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0}; | |
554f62e9 | 40949 | static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0}; |
580080c5 | 40950 | static swig_type_info _swigt__p_wxTGAHandler = {"_p_wxTGAHandler", 0, 0, 0, 0, 0}; |
70d7cb34 RD |
40951 | static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0}; |
40952 | static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0}; | |
40953 | static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0}; | |
40954 | static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0}; | |
40955 | static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0}; | |
40956 | static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0}; | |
24f6c4e8 | 40957 | static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0}; |
72ef6efb | 40958 | static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0}; |
27e45892 | 40959 | static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0}; |
2131d850 | 40960 | static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40961 | static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0}; |
40962 | static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0}; | |
40963 | static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0}; | |
0f83f5da | 40964 | static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0}; |
554f62e9 | 40965 | static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0}; |
580080c5 | 40966 | static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0}; |
554f62e9 RD |
40967 | static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0}; |
40968 | static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0}; | |
40969 | static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0}; | |
40970 | static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0}; | |
40971 | static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0}; | |
40972 | static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0}; | |
40973 | static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0}; | |
40974 | static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0}; | |
40975 | static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0}; | |
40976 | static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0}; | |
40977 | static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0}; | |
40978 | static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0}; | |
40979 | static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0}; | |
40980 | static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0}; | |
40981 | static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0}; | |
40982 | static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0}; | |
40983 | static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0}; | |
40984 | static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0}; | |
40985 | static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0}; | |
40986 | static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0}; | |
b39fe951 | 40987 | static swig_type_info _swigt__p_wxOverlay = {"_p_wxOverlay", "wxOverlay *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40988 | static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0}; |
40989 | static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0}; | |
40990 | static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0}; | |
40991 | static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0}; | |
40992 | static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0}; | |
fc46b7f3 | 40993 | static swig_type_info _swigt__p_wxPixelDataBase = {"_p_wxPixelDataBase", "wxPixelDataBase *", 0, 0, (void*)0, 0}; |
554f62e9 | 40994 | static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0}; |
72ef6efb | 40995 | static swig_type_info _swigt__p_wxPoint2D = {"_p_wxPoint2D", "wxPoint2D *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
40996 | static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0}; |
40997 | static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0}; | |
40998 | static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0}; | |
27e45892 | 40999 | static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0}; |
554f62e9 | 41000 | static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0}; |
fc46b7f3 | 41001 | static swig_type_info _swigt__p_wxPyLocale = {"_p_wxPyLocale", "wxPyLocale *", 0, 0, (void*)0, 0}; |
554f62e9 | 41002 | static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0}; |
4fe9ce47 | 41003 | static swig_type_info _swigt__p_wxRect2D = {"_p_wxRect2D", "wxRect2D *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
41004 | static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0}; |
41005 | static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0}; | |
41006 | static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0}; | |
41007 | static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0}; | |
41008 | static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0}; | |
41009 | static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0}; | |
41010 | static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0}; | |
50efceee | 41011 | static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0}; |
554f62e9 RD |
41012 | static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0}; |
41013 | static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0}; | |
41014 | static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0}; | |
41015 | ||
41016 | static swig_type_info *swig_type_initial[] = { | |
fc46b7f3 | 41017 | &_swigt__p_buffer, |
554f62e9 RD |
41018 | &_swigt__p_char, |
41019 | &_swigt__p_double, | |
41020 | &_swigt__p_form_ops_t, | |
41021 | &_swigt__p_int, | |
41022 | &_swigt__p_unsigned_char, | |
41023 | &_swigt__p_unsigned_int, | |
41024 | &_swigt__p_unsigned_long, | |
0a27f394 | 41025 | &_swigt__p_void, |
554f62e9 RD |
41026 | &_swigt__p_wxANIHandler, |
41027 | &_swigt__p_wxAcceleratorTable, | |
41028 | &_swigt__p_wxActivateEvent, | |
fc46b7f3 RD |
41029 | &_swigt__p_wxAlphaPixelData, |
41030 | &_swigt__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 41031 | &_swigt__p_wxAutoBufferedPaintDC, |
554f62e9 RD |
41032 | &_swigt__p_wxBMPHandler, |
41033 | &_swigt__p_wxBitmap, | |
41034 | &_swigt__p_wxBoxSizer, | |
41035 | &_swigt__p_wxBrush, | |
41036 | &_swigt__p_wxBrushList, | |
41037 | &_swigt__p_wxBufferedDC, | |
41038 | &_swigt__p_wxBufferedPaintDC, | |
41039 | &_swigt__p_wxCURHandler, | |
fc46b7f3 | 41040 | &_swigt__p_wxChar, |
554f62e9 RD |
41041 | &_swigt__p_wxChildFocusEvent, |
41042 | &_swigt__p_wxClientDC, | |
2131d850 | 41043 | &_swigt__p_wxClipboardTextEvent, |
554f62e9 | 41044 | &_swigt__p_wxCloseEvent, |
72ef6efb | 41045 | &_swigt__p_wxColor, |
554f62e9 RD |
41046 | &_swigt__p_wxColour, |
41047 | &_swigt__p_wxColourDatabase, | |
41048 | &_swigt__p_wxCommandEvent, | |
41049 | &_swigt__p_wxContextMenuEvent, | |
41050 | &_swigt__p_wxControl, | |
41051 | &_swigt__p_wxControlWithItems, | |
41052 | &_swigt__p_wxCursor, | |
41053 | &_swigt__p_wxDC, | |
70d7cb34 RD |
41054 | &_swigt__p_wxDCBrushChanger, |
41055 | &_swigt__p_wxDCClipper, | |
b39fe951 | 41056 | &_swigt__p_wxDCOverlay, |
70d7cb34 RD |
41057 | &_swigt__p_wxDCPenChanger, |
41058 | &_swigt__p_wxDCTextColourChanger, | |
554f62e9 RD |
41059 | &_swigt__p_wxDash, |
41060 | &_swigt__p_wxDateEvent, | |
41061 | &_swigt__p_wxDisplayChangedEvent, | |
41062 | &_swigt__p_wxDropFilesEvent, | |
41063 | &_swigt__p_wxDuplexMode, | |
41064 | &_swigt__p_wxEffects, | |
41065 | &_swigt__p_wxEncodingConverter, | |
41066 | &_swigt__p_wxEraseEvent, | |
41067 | &_swigt__p_wxEvent, | |
41068 | &_swigt__p_wxEvtHandler, | |
41069 | &_swigt__p_wxFSFile, | |
41070 | &_swigt__p_wxFileSystem, | |
41071 | &_swigt__p_wxFlexGridSizer, | |
41072 | &_swigt__p_wxFocusEvent, | |
41073 | &_swigt__p_wxFont, | |
41074 | &_swigt__p_wxFontList, | |
41075 | &_swigt__p_wxFontMapper, | |
41076 | &_swigt__p_wxGBSizerItem, | |
72ef6efb | 41077 | &_swigt__p_wxGCDC, |
50efceee | 41078 | &_swigt__p_wxGDIObjListBase, |
554f62e9 RD |
41079 | &_swigt__p_wxGDIObject, |
41080 | &_swigt__p_wxGIFHandler, | |
70d7cb34 | 41081 | &_swigt__p_wxGraphicsBrush, |
72ef6efb | 41082 | &_swigt__p_wxGraphicsContext, |
70d7cb34 RD |
41083 | &_swigt__p_wxGraphicsFont, |
41084 | &_swigt__p_wxGraphicsMatrix, | |
41085 | &_swigt__p_wxGraphicsObject, | |
72ef6efb | 41086 | &_swigt__p_wxGraphicsPath, |
70d7cb34 RD |
41087 | &_swigt__p_wxGraphicsPen, |
41088 | &_swigt__p_wxGraphicsRenderer, | |
554f62e9 RD |
41089 | &_swigt__p_wxGridBagSizer, |
41090 | &_swigt__p_wxGridSizer, | |
33d6fd3b | 41091 | &_swigt__p_wxHeaderButtonParams, |
554f62e9 RD |
41092 | &_swigt__p_wxICOHandler, |
41093 | &_swigt__p_wxIcon, | |
41094 | &_swigt__p_wxIconBundle, | |
41095 | &_swigt__p_wxIconLocation, | |
41096 | &_swigt__p_wxIconizeEvent, | |
41097 | &_swigt__p_wxIdleEvent, | |
41098 | &_swigt__p_wxImage, | |
41099 | &_swigt__p_wxImageHandler, | |
41100 | &_swigt__p_wxImageList, | |
41101 | &_swigt__p_wxIndividualLayoutConstraint, | |
41102 | &_swigt__p_wxInitDialogEvent, | |
41103 | &_swigt__p_wxJPEGHandler, | |
41104 | &_swigt__p_wxKeyEvent, | |
41105 | &_swigt__p_wxLanguageInfo, | |
41106 | &_swigt__p_wxLayoutConstraints, | |
41107 | &_swigt__p_wxLocale, | |
41108 | &_swigt__p_wxMask, | |
41109 | &_swigt__p_wxMaximizeEvent, | |
41110 | &_swigt__p_wxMemoryDC, | |
41111 | &_swigt__p_wxMenu, | |
41112 | &_swigt__p_wxMenuBar, | |
41113 | &_swigt__p_wxMenuEvent, | |
41114 | &_swigt__p_wxMenuItem, | |
41115 | &_swigt__p_wxMetaFile, | |
41116 | &_swigt__p_wxMetaFileDC, | |
41117 | &_swigt__p_wxMirrorDC, | |
41118 | &_swigt__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 41119 | &_swigt__p_wxMouseCaptureLostEvent, |
554f62e9 RD |
41120 | &_swigt__p_wxMouseEvent, |
41121 | &_swigt__p_wxMoveEvent, | |
41122 | &_swigt__p_wxNativeEncodingInfo, | |
41123 | &_swigt__p_wxNativeFontInfo, | |
fc46b7f3 RD |
41124 | &_swigt__p_wxNativePixelData, |
41125 | &_swigt__p_wxNativePixelData_Accessor, | |
554f62e9 RD |
41126 | &_swigt__p_wxNavigationKeyEvent, |
41127 | &_swigt__p_wxNcPaintEvent, | |
41128 | &_swigt__p_wxNotifyEvent, | |
41129 | &_swigt__p_wxObject, | |
b39fe951 | 41130 | &_swigt__p_wxOverlay, |
554f62e9 RD |
41131 | &_swigt__p_wxPCXHandler, |
41132 | &_swigt__p_wxPNGHandler, | |
41133 | &_swigt__p_wxPNMHandler, | |
41134 | &_swigt__p_wxPaintDC, | |
41135 | &_swigt__p_wxPaintEvent, | |
41136 | &_swigt__p_wxPalette, | |
41137 | &_swigt__p_wxPaletteChangedEvent, | |
41138 | &_swigt__p_wxPaperSize, | |
41139 | &_swigt__p_wxPen, | |
41140 | &_swigt__p_wxPenList, | |
fc46b7f3 | 41141 | &_swigt__p_wxPixelDataBase, |
554f62e9 | 41142 | &_swigt__p_wxPoint, |
72ef6efb | 41143 | &_swigt__p_wxPoint2D, |
554f62e9 RD |
41144 | &_swigt__p_wxPostScriptDC, |
41145 | &_swigt__p_wxPrintData, | |
41146 | &_swigt__p_wxPrinterDC, | |
27e45892 | 41147 | &_swigt__p_wxPseudoDC, |
554f62e9 RD |
41148 | &_swigt__p_wxPyApp, |
41149 | &_swigt__p_wxPyCommandEvent, | |
41150 | &_swigt__p_wxPyEvent, | |
41151 | &_swigt__p_wxPyFontEnumerator, | |
41152 | &_swigt__p_wxPyImageHandler, | |
fc46b7f3 | 41153 | &_swigt__p_wxPyLocale, |
554f62e9 RD |
41154 | &_swigt__p_wxPySizer, |
41155 | &_swigt__p_wxPyValidator, | |
41156 | &_swigt__p_wxQueryNewPaletteEvent, | |
41157 | &_swigt__p_wxRect, | |
4fe9ce47 | 41158 | &_swigt__p_wxRect2D, |
554f62e9 RD |
41159 | &_swigt__p_wxRegion, |
41160 | &_swigt__p_wxRegionIterator, | |
41161 | &_swigt__p_wxRendererNative, | |
41162 | &_swigt__p_wxRendererVersion, | |
41163 | &_swigt__p_wxScreenDC, | |
41164 | &_swigt__p_wxScrollEvent, | |
41165 | &_swigt__p_wxScrollWinEvent, | |
41166 | &_swigt__p_wxSetCursorEvent, | |
41167 | &_swigt__p_wxShowEvent, | |
41168 | &_swigt__p_wxSize, | |
41169 | &_swigt__p_wxSizeEvent, | |
41170 | &_swigt__p_wxSizer, | |
41171 | &_swigt__p_wxSizerItem, | |
41172 | &_swigt__p_wxSplitterRenderParams, | |
41173 | &_swigt__p_wxStaticBoxSizer, | |
41174 | &_swigt__p_wxStdDialogButtonSizer, | |
50efceee | 41175 | &_swigt__p_wxStockGDI, |
554f62e9 RD |
41176 | &_swigt__p_wxString, |
41177 | &_swigt__p_wxSysColourChangedEvent, | |
580080c5 | 41178 | &_swigt__p_wxTGAHandler, |
554f62e9 RD |
41179 | &_swigt__p_wxTIFFHandler, |
41180 | &_swigt__p_wxUpdateUIEvent, | |
41181 | &_swigt__p_wxValidator, | |
41182 | &_swigt__p_wxWindow, | |
41183 | &_swigt__p_wxWindowCreateEvent, | |
41184 | &_swigt__p_wxWindowDC, | |
41185 | &_swigt__p_wxWindowDestroyEvent, | |
41186 | &_swigt__p_wxXPMHandler, | |
41187 | }; | |
41188 | ||
fc46b7f3 | 41189 | static swig_cast_info _swigc__p_buffer[] = { {&_swigt__p_buffer, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41190 | static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}}; |
41191 | static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}}; | |
41192 | static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}}; | |
41193 | static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}}; | |
41194 | static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}}; | |
41195 | static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}}; | |
41196 | static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}}; | |
0a27f394 | 41197 | static swig_cast_info _swigc__p_void[] = { {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 RD |
41198 | static swig_cast_info _swigc__p_wxAlphaPixelData[] = { {&_swigt__p_wxAlphaPixelData, 0, 0, 0},{0, 0, 0, 0}}; |
41199 | static swig_cast_info _swigc__p_wxAlphaPixelData_Accessor[] = { {&_swigt__p_wxAlphaPixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 41200 | static swig_cast_info _swigc__p_wxAutoBufferedPaintDC[] = { {&_swigt__p_wxAutoBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41201 | static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}}; |
41202 | static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}}; | |
41203 | static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}}; | |
41204 | 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}}; | |
41205 | static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 41206 | static swig_cast_info _swigc__p_wxChar[] = { {&_swigt__p_wxChar, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb RD |
41207 | 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}}; |
41208 | static swig_cast_info _swigc__p_wxColor[] = { {&_swigt__p_wxColor, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 RD |
41209 | static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}}; |
41210 | static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}}; | |
41211 | static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 41212 | 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}}; |
70d7cb34 RD |
41213 | static swig_cast_info _swigc__p_wxDCBrushChanger[] = { {&_swigt__p_wxDCBrushChanger, 0, 0, 0},{0, 0, 0, 0}}; |
41214 | static swig_cast_info _swigc__p_wxDCClipper[] = { {&_swigt__p_wxDCClipper, 0, 0, 0},{0, 0, 0, 0}}; | |
b39fe951 | 41215 | static swig_cast_info _swigc__p_wxDCOverlay[] = { {&_swigt__p_wxDCOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
41216 | static swig_cast_info _swigc__p_wxDCPenChanger[] = { {&_swigt__p_wxDCPenChanger, 0, 0, 0},{0, 0, 0, 0}}; |
41217 | static swig_cast_info _swigc__p_wxDCTextColourChanger[] = { {&_swigt__p_wxDCTextColourChanger, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 RD |
41218 | static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}}; |
41219 | static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}}; | |
41220 | static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}}; | |
41221 | static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}}; | |
41222 | static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}}; | |
41223 | static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}}; | |
41224 | static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 41225 | static swig_cast_info _swigc__p_wxGCDC[] = { {&_swigt__p_wxGCDC, 0, 0, 0},{0, 0, 0, 0}}; |
50efceee | 41226 | 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 | 41227 | 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}}; |
70d7cb34 | 41228 | static swig_cast_info _swigc__p_wxGraphicsBrush[] = { {&_swigt__p_wxGraphicsBrush, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 41229 | static swig_cast_info _swigc__p_wxGraphicsContext[] = { {&_swigt__p_wxGraphicsContext, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
41230 | static swig_cast_info _swigc__p_wxGraphicsFont[] = { {&_swigt__p_wxGraphicsFont, 0, 0, 0},{0, 0, 0, 0}}; |
41231 | static swig_cast_info _swigc__p_wxGraphicsMatrix[] = { {&_swigt__p_wxGraphicsMatrix, 0, 0, 0},{0, 0, 0, 0}}; | |
41232 | static swig_cast_info _swigc__p_wxGraphicsObject[] = { {&_swigt__p_wxGraphicsPen, _p_wxGraphicsPenTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsObject, 0, 0, 0}, {&_swigt__p_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsContext, _p_wxGraphicsContextTo_p_wxGraphicsObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_p_wxGraphicsObject, 0, 0},{0, 0, 0, 0}}; | |
72ef6efb | 41233 | static swig_cast_info _swigc__p_wxGraphicsPath[] = { {&_swigt__p_wxGraphicsPath, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
41234 | static swig_cast_info _swigc__p_wxGraphicsPen[] = { {&_swigt__p_wxGraphicsPen, 0, 0, 0},{0, 0, 0, 0}}; |
41235 | static swig_cast_info _swigc__p_wxGraphicsRenderer[] = { {&_swigt__p_wxGraphicsRenderer, 0, 0, 0},{0, 0, 0, 0}}; | |
33d6fd3b | 41236 | static swig_cast_info _swigc__p_wxHeaderButtonParams[] = { {&_swigt__p_wxHeaderButtonParams, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41237 | static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}}; |
41238 | static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}}; | |
41239 | static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}}; | |
41240 | static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}}; | |
41241 | static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}}; | |
41242 | static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 41243 | 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 | 41244 | static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}}; |
8e99bda9 | 41245 | 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 |
41246 | static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}}; |
41247 | static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}}; | |
41248 | static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}}; | |
41249 | static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
41250 | static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 RD |
41251 | static swig_cast_info _swigc__p_wxNativePixelData[] = { {&_swigt__p_wxNativePixelData, 0, 0, 0},{0, 0, 0, 0}}; |
41252 | static swig_cast_info _swigc__p_wxNativePixelData_Accessor[] = { {&_swigt__p_wxNativePixelData_Accessor, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 | 41253 | static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41254 | static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
0f83f5da | 41255 | static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41256 | static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}}; |
41257 | static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}}; | |
41258 | static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41259 | static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41260 | static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41261 | static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41262 | static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41263 | static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}}; | |
41264 | static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41265 | static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41266 | static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41267 | static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
2131d850 | 41268 | static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41269 | static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; |
41270 | static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41271 | static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41272 | static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41273 | static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41274 | static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41275 | static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}}; | |
41276 | static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41277 | static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}}; | |
41278 | static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}}; | |
41279 | static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41280 | static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41281 | static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41282 | static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}}; | |
41283 | static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41284 | static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41285 | static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41286 | static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41287 | static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41288 | static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41289 | static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41290 | static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41291 | static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
554f62e9 | 41292 | static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 41293 | static swig_cast_info _swigc__p_wxTGAHandler[] = {{&_swigt__p_wxTGAHandler, 0, 0, 0},{0, 0, 0, 0}}; |
70d7cb34 RD |
41294 | static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
41295 | static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41296 | static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41297 | static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41298 | static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41299 | static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
24f6c4e8 | 41300 | static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 41301 | static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}}; |
27e45892 | 41302 | static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}}; |
2131d850 | 41303 | static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41304 | static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}}; |
41305 | static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
41306 | static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}}; | |
0f83f5da | 41307 | static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41308 | static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}}; |
580080c5 | 41309 | static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41310 | static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}}; |
41311 | static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41312 | static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41313 | static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41314 | static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}}; | |
41315 | static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}}; | |
41316 | static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41317 | static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41318 | static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}}; | |
41319 | static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41320 | static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41321 | static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41322 | static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41323 | static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41324 | static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41325 | static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41326 | static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}}; | |
41327 | static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}}; | |
41328 | static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
41329 | static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}}; | |
580080c5 | 41330 | 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_wxGraphicsPen, _p_wxGraphicsPenTo_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_wxGraphicsObject, _p_wxGraphicsObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsPath, _p_wxGraphicsPathTo_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_wxGraphicsContext, _p_wxGraphicsContextTo_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_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTGAHandler, _p_wxTGAHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_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_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsBrush, _p_wxGraphicsBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxGraphicsRenderer, _p_wxGraphicsRendererTo_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_wxGraphicsFont, _p_wxGraphicsFontTo_p_wxObject, 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_wxGraphicsMatrix, _p_wxGraphicsMatrixTo_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 | 41331 | static swig_cast_info _swigc__p_wxOverlay[] = { {&_swigt__p_wxOverlay, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41332 | static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}}; |
41333 | static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}}; | |
41334 | static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}}; | |
41335 | static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}}; | |
41336 | static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}}; | |
fc46b7f3 | 41337 | 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 | 41338 | static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}}; |
72ef6efb | 41339 | static swig_cast_info _swigc__p_wxPoint2D[] = { {&_swigt__p_wxPoint2D, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41340 | static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}}; |
41341 | static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}}; | |
41342 | static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}}; | |
27e45892 | 41343 | static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41344 | static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}}; |
fc46b7f3 | 41345 | static swig_cast_info _swigc__p_wxPyLocale[] = { {&_swigt__p_wxPyLocale, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 | 41346 | static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}}; |
4fe9ce47 | 41347 | static swig_cast_info _swigc__p_wxRect2D[] = { {&_swigt__p_wxRect2D, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41348 | static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}}; |
41349 | static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}}; | |
41350 | static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}}; | |
41351 | static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}}; | |
41352 | static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}}; | |
41353 | static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}}; | |
41354 | static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}}; | |
50efceee | 41355 | static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}}; |
554f62e9 RD |
41356 | static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}}; |
41357 | 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}}; | |
26c4d26f | 41358 | static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxWindowDC, 0, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxWindowDC, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxWindowDC, 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 |
41359 | |
41360 | static swig_cast_info *swig_cast_initial[] = { | |
fc46b7f3 | 41361 | _swigc__p_buffer, |
554f62e9 RD |
41362 | _swigc__p_char, |
41363 | _swigc__p_double, | |
41364 | _swigc__p_form_ops_t, | |
41365 | _swigc__p_int, | |
41366 | _swigc__p_unsigned_char, | |
41367 | _swigc__p_unsigned_int, | |
41368 | _swigc__p_unsigned_long, | |
0a27f394 | 41369 | _swigc__p_void, |
554f62e9 RD |
41370 | _swigc__p_wxANIHandler, |
41371 | _swigc__p_wxAcceleratorTable, | |
41372 | _swigc__p_wxActivateEvent, | |
fc46b7f3 RD |
41373 | _swigc__p_wxAlphaPixelData, |
41374 | _swigc__p_wxAlphaPixelData_Accessor, | |
24f6c4e8 | 41375 | _swigc__p_wxAutoBufferedPaintDC, |
554f62e9 RD |
41376 | _swigc__p_wxBMPHandler, |
41377 | _swigc__p_wxBitmap, | |
41378 | _swigc__p_wxBoxSizer, | |
41379 | _swigc__p_wxBrush, | |
41380 | _swigc__p_wxBrushList, | |
41381 | _swigc__p_wxBufferedDC, | |
41382 | _swigc__p_wxBufferedPaintDC, | |
41383 | _swigc__p_wxCURHandler, | |
fc46b7f3 | 41384 | _swigc__p_wxChar, |
554f62e9 RD |
41385 | _swigc__p_wxChildFocusEvent, |
41386 | _swigc__p_wxClientDC, | |
2131d850 | 41387 | _swigc__p_wxClipboardTextEvent, |
554f62e9 | 41388 | _swigc__p_wxCloseEvent, |
72ef6efb | 41389 | _swigc__p_wxColor, |
554f62e9 RD |
41390 | _swigc__p_wxColour, |
41391 | _swigc__p_wxColourDatabase, | |
41392 | _swigc__p_wxCommandEvent, | |
41393 | _swigc__p_wxContextMenuEvent, | |
41394 | _swigc__p_wxControl, | |
41395 | _swigc__p_wxControlWithItems, | |
41396 | _swigc__p_wxCursor, | |
41397 | _swigc__p_wxDC, | |
70d7cb34 RD |
41398 | _swigc__p_wxDCBrushChanger, |
41399 | _swigc__p_wxDCClipper, | |
b39fe951 | 41400 | _swigc__p_wxDCOverlay, |
70d7cb34 RD |
41401 | _swigc__p_wxDCPenChanger, |
41402 | _swigc__p_wxDCTextColourChanger, | |
554f62e9 RD |
41403 | _swigc__p_wxDash, |
41404 | _swigc__p_wxDateEvent, | |
41405 | _swigc__p_wxDisplayChangedEvent, | |
41406 | _swigc__p_wxDropFilesEvent, | |
41407 | _swigc__p_wxDuplexMode, | |
41408 | _swigc__p_wxEffects, | |
41409 | _swigc__p_wxEncodingConverter, | |
41410 | _swigc__p_wxEraseEvent, | |
41411 | _swigc__p_wxEvent, | |
41412 | _swigc__p_wxEvtHandler, | |
41413 | _swigc__p_wxFSFile, | |
41414 | _swigc__p_wxFileSystem, | |
41415 | _swigc__p_wxFlexGridSizer, | |
41416 | _swigc__p_wxFocusEvent, | |
41417 | _swigc__p_wxFont, | |
41418 | _swigc__p_wxFontList, | |
41419 | _swigc__p_wxFontMapper, | |
41420 | _swigc__p_wxGBSizerItem, | |
72ef6efb | 41421 | _swigc__p_wxGCDC, |
50efceee | 41422 | _swigc__p_wxGDIObjListBase, |
554f62e9 RD |
41423 | _swigc__p_wxGDIObject, |
41424 | _swigc__p_wxGIFHandler, | |
70d7cb34 | 41425 | _swigc__p_wxGraphicsBrush, |
72ef6efb | 41426 | _swigc__p_wxGraphicsContext, |
70d7cb34 RD |
41427 | _swigc__p_wxGraphicsFont, |
41428 | _swigc__p_wxGraphicsMatrix, | |
41429 | _swigc__p_wxGraphicsObject, | |
72ef6efb | 41430 | _swigc__p_wxGraphicsPath, |
70d7cb34 RD |
41431 | _swigc__p_wxGraphicsPen, |
41432 | _swigc__p_wxGraphicsRenderer, | |
554f62e9 RD |
41433 | _swigc__p_wxGridBagSizer, |
41434 | _swigc__p_wxGridSizer, | |
33d6fd3b | 41435 | _swigc__p_wxHeaderButtonParams, |
554f62e9 RD |
41436 | _swigc__p_wxICOHandler, |
41437 | _swigc__p_wxIcon, | |
41438 | _swigc__p_wxIconBundle, | |
41439 | _swigc__p_wxIconLocation, | |
41440 | _swigc__p_wxIconizeEvent, | |
41441 | _swigc__p_wxIdleEvent, | |
41442 | _swigc__p_wxImage, | |
41443 | _swigc__p_wxImageHandler, | |
41444 | _swigc__p_wxImageList, | |
41445 | _swigc__p_wxIndividualLayoutConstraint, | |
41446 | _swigc__p_wxInitDialogEvent, | |
41447 | _swigc__p_wxJPEGHandler, | |
41448 | _swigc__p_wxKeyEvent, | |
41449 | _swigc__p_wxLanguageInfo, | |
41450 | _swigc__p_wxLayoutConstraints, | |
41451 | _swigc__p_wxLocale, | |
41452 | _swigc__p_wxMask, | |
41453 | _swigc__p_wxMaximizeEvent, | |
41454 | _swigc__p_wxMemoryDC, | |
41455 | _swigc__p_wxMenu, | |
41456 | _swigc__p_wxMenuBar, | |
41457 | _swigc__p_wxMenuEvent, | |
41458 | _swigc__p_wxMenuItem, | |
41459 | _swigc__p_wxMetaFile, | |
41460 | _swigc__p_wxMetaFileDC, | |
41461 | _swigc__p_wxMirrorDC, | |
41462 | _swigc__p_wxMouseCaptureChangedEvent, | |
0f83f5da | 41463 | _swigc__p_wxMouseCaptureLostEvent, |
554f62e9 RD |
41464 | _swigc__p_wxMouseEvent, |
41465 | _swigc__p_wxMoveEvent, | |
41466 | _swigc__p_wxNativeEncodingInfo, | |
41467 | _swigc__p_wxNativeFontInfo, | |
fc46b7f3 RD |
41468 | _swigc__p_wxNativePixelData, |
41469 | _swigc__p_wxNativePixelData_Accessor, | |
554f62e9 RD |
41470 | _swigc__p_wxNavigationKeyEvent, |
41471 | _swigc__p_wxNcPaintEvent, | |
41472 | _swigc__p_wxNotifyEvent, | |
41473 | _swigc__p_wxObject, | |
b39fe951 | 41474 | _swigc__p_wxOverlay, |
554f62e9 RD |
41475 | _swigc__p_wxPCXHandler, |
41476 | _swigc__p_wxPNGHandler, | |
41477 | _swigc__p_wxPNMHandler, | |
41478 | _swigc__p_wxPaintDC, | |
41479 | _swigc__p_wxPaintEvent, | |
41480 | _swigc__p_wxPalette, | |
41481 | _swigc__p_wxPaletteChangedEvent, | |
41482 | _swigc__p_wxPaperSize, | |
41483 | _swigc__p_wxPen, | |
41484 | _swigc__p_wxPenList, | |
fc46b7f3 | 41485 | _swigc__p_wxPixelDataBase, |
554f62e9 | 41486 | _swigc__p_wxPoint, |
72ef6efb | 41487 | _swigc__p_wxPoint2D, |
554f62e9 RD |
41488 | _swigc__p_wxPostScriptDC, |
41489 | _swigc__p_wxPrintData, | |
41490 | _swigc__p_wxPrinterDC, | |
27e45892 | 41491 | _swigc__p_wxPseudoDC, |
554f62e9 RD |
41492 | _swigc__p_wxPyApp, |
41493 | _swigc__p_wxPyCommandEvent, | |
41494 | _swigc__p_wxPyEvent, | |
41495 | _swigc__p_wxPyFontEnumerator, | |
41496 | _swigc__p_wxPyImageHandler, | |
fc46b7f3 | 41497 | _swigc__p_wxPyLocale, |
554f62e9 RD |
41498 | _swigc__p_wxPySizer, |
41499 | _swigc__p_wxPyValidator, | |
41500 | _swigc__p_wxQueryNewPaletteEvent, | |
41501 | _swigc__p_wxRect, | |
4fe9ce47 | 41502 | _swigc__p_wxRect2D, |
554f62e9 RD |
41503 | _swigc__p_wxRegion, |
41504 | _swigc__p_wxRegionIterator, | |
41505 | _swigc__p_wxRendererNative, | |
41506 | _swigc__p_wxRendererVersion, | |
41507 | _swigc__p_wxScreenDC, | |
41508 | _swigc__p_wxScrollEvent, | |
41509 | _swigc__p_wxScrollWinEvent, | |
41510 | _swigc__p_wxSetCursorEvent, | |
41511 | _swigc__p_wxShowEvent, | |
41512 | _swigc__p_wxSize, | |
41513 | _swigc__p_wxSizeEvent, | |
41514 | _swigc__p_wxSizer, | |
41515 | _swigc__p_wxSizerItem, | |
41516 | _swigc__p_wxSplitterRenderParams, | |
41517 | _swigc__p_wxStaticBoxSizer, | |
41518 | _swigc__p_wxStdDialogButtonSizer, | |
50efceee | 41519 | _swigc__p_wxStockGDI, |
554f62e9 RD |
41520 | _swigc__p_wxString, |
41521 | _swigc__p_wxSysColourChangedEvent, | |
580080c5 | 41522 | _swigc__p_wxTGAHandler, |
554f62e9 RD |
41523 | _swigc__p_wxTIFFHandler, |
41524 | _swigc__p_wxUpdateUIEvent, | |
41525 | _swigc__p_wxValidator, | |
41526 | _swigc__p_wxWindow, | |
41527 | _swigc__p_wxWindowCreateEvent, | |
41528 | _swigc__p_wxWindowDC, | |
41529 | _swigc__p_wxWindowDestroyEvent, | |
41530 | _swigc__p_wxXPMHandler, | |
41531 | }; | |
41532 | ||
41533 | ||
41534 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
41535 | ||
41536 | static swig_const_info swig_const_table[] = { | |
41537 | {0, 0, 0, 0.0, 0, 0}}; | |
41538 | ||
41539 | #ifdef __cplusplus | |
41540 | } | |
41541 | #endif | |
41542 | /* ----------------------------------------------------------------------------- | |
41543 | * Type initialization: | |
41544 | * This problem is tough by the requirement that no dynamic | |
41545 | * memory is used. Also, since swig_type_info structures store pointers to | |
41546 | * swig_cast_info structures and swig_cast_info structures store pointers back | |
41547 | * to swig_type_info structures, we need some lookup code at initialization. | |
41548 | * The idea is that swig generates all the structures that are needed. | |
41549 | * The runtime then collects these partially filled structures. | |
41550 | * The SWIG_InitializeModule function takes these initial arrays out of | |
41551 | * swig_module, and does all the lookup, filling in the swig_module.types | |
41552 | * array with the correct data and linking the correct swig_cast_info | |
41553 | * structures together. | |
41554 | * | |
41555 | * The generated swig_type_info structures are assigned staticly to an initial | |
41556 | * array. We just loop though that array, and handle each type individually. | |
41557 | * First we lookup if this type has been already loaded, and if so, use the | |
41558 | * loaded structure instead of the generated one. Then we have to fill in the | |
41559 | * cast linked list. The cast data is initially stored in something like a | |
41560 | * two-dimensional array. Each row corresponds to a type (there are the same | |
41561 | * number of rows as there are in the swig_type_initial array). Each entry in | |
41562 | * a column is one of the swig_cast_info structures for that type. | |
41563 | * The cast_initial array is actually an array of arrays, because each row has | |
41564 | * a variable number of columns. So to actually build the cast linked list, | |
41565 | * we find the array of casts associated with the type, and loop through it | |
41566 | * adding the casts to the list. The one last trick we need to do is making | |
41567 | * sure the type pointer in the swig_cast_info struct is correct. | |
41568 | * | |
41569 | * First off, we lookup the cast->type name to see if it is already loaded. | |
41570 | * There are three cases to handle: | |
41571 | * 1) If the cast->type has already been loaded AND the type we are adding | |
41572 | * casting info to has not been loaded (it is in this module), THEN we | |
41573 | * replace the cast->type pointer with the type pointer that has already | |
41574 | * been loaded. | |
41575 | * 2) If BOTH types (the one we are adding casting info to, and the | |
41576 | * cast->type) are loaded, THEN the cast info has already been loaded by | |
41577 | * the previous module so we just ignore it. | |
41578 | * 3) Finally, if cast->type has not already been loaded, then we add that | |
41579 | * swig_cast_info to the linked list (because the cast->type) pointer will | |
41580 | * be correct. | |
41581 | * ----------------------------------------------------------------------------- */ | |
41582 | ||
41583 | #ifdef __cplusplus | |
41584 | extern "C" { | |
41585 | #if 0 | |
41586 | } /* c-mode */ | |
41587 | #endif | |
41588 | #endif | |
41589 | ||
41590 | #if 0 | |
41591 | #define SWIGRUNTIME_DEBUG | |
41592 | #endif | |
41593 | ||
41594 | SWIGRUNTIME void | |
41595 | SWIG_InitializeModule(void *clientdata) { | |
41596 | size_t i; | |
41597 | swig_module_info *module_head; | |
41598 | static int init_run = 0; | |
41599 | ||
41600 | clientdata = clientdata; | |
41601 | ||
41602 | if (init_run) return; | |
41603 | init_run = 1; | |
41604 | ||
41605 | /* Initialize the swig_module */ | |
41606 | swig_module.type_initial = swig_type_initial; | |
41607 | swig_module.cast_initial = swig_cast_initial; | |
41608 | ||
41609 | /* Try and load any already created modules */ | |
41610 | module_head = SWIG_GetModule(clientdata); | |
41611 | if (module_head) { | |
41612 | swig_module.next = module_head->next; | |
41613 | module_head->next = &swig_module; | |
41614 | } else { | |
41615 | /* This is the first module loaded */ | |
41616 | swig_module.next = &swig_module; | |
41617 | SWIG_SetModule(clientdata, &swig_module); | |
41618 | } | |
41619 | ||
41620 | /* Now work on filling in swig_module.types */ | |
41621 | #ifdef SWIGRUNTIME_DEBUG | |
41622 | printf("SWIG_InitializeModule: size %d\n", swig_module.size); | |
41623 | #endif | |
41624 | for (i = 0; i < swig_module.size; ++i) { | |
41625 | swig_type_info *type = 0; | |
41626 | swig_type_info *ret; | |
41627 | swig_cast_info *cast; | |
41628 | ||
41629 | #ifdef SWIGRUNTIME_DEBUG | |
41630 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
41631 | #endif | |
41632 | ||
41633 | /* if there is another module already loaded */ | |
41634 | if (swig_module.next != &swig_module) { | |
41635 | type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name); | |
be9b1dca | 41636 | } |
554f62e9 RD |
41637 | if (type) { |
41638 | /* Overwrite clientdata field */ | |
41639 | #ifdef SWIGRUNTIME_DEBUG | |
41640 | printf("SWIG_InitializeModule: found type %s\n", type->name); | |
41641 | #endif | |
41642 | if (swig_module.type_initial[i]->clientdata) { | |
41643 | type->clientdata = swig_module.type_initial[i]->clientdata; | |
41644 | #ifdef SWIGRUNTIME_DEBUG | |
41645 | printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name); | |
41646 | #endif | |
41647 | } | |
41648 | } else { | |
41649 | type = swig_module.type_initial[i]; | |
be9b1dca | 41650 | } |
554f62e9 RD |
41651 | |
41652 | /* Insert casting types */ | |
41653 | cast = swig_module.cast_initial[i]; | |
41654 | while (cast->type) { | |
41655 | /* Don't need to add information already in the list */ | |
41656 | ret = 0; | |
41657 | #ifdef SWIGRUNTIME_DEBUG | |
41658 | printf("SWIG_InitializeModule: look cast %s\n", cast->type->name); | |
41659 | #endif | |
41660 | if (swig_module.next != &swig_module) { | |
41661 | ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name); | |
41662 | #ifdef SWIGRUNTIME_DEBUG | |
41663 | if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name); | |
41664 | #endif | |
41665 | } | |
41666 | if (ret) { | |
41667 | if (type == swig_module.type_initial[i]) { | |
41668 | #ifdef SWIGRUNTIME_DEBUG | |
41669 | printf("SWIG_InitializeModule: skip old type %s\n", ret->name); | |
41670 | #endif | |
41671 | cast->type = ret; | |
41672 | ret = 0; | |
41673 | } else { | |
41674 | /* Check for casting already in the list */ | |
41675 | swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type); | |
41676 | #ifdef SWIGRUNTIME_DEBUG | |
41677 | if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name); | |
41678 | #endif | |
41679 | if (!ocast) ret = 0; | |
41680 | } | |
41681 | } | |
41682 | ||
41683 | if (!ret) { | |
41684 | #ifdef SWIGRUNTIME_DEBUG | |
41685 | printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name); | |
41686 | #endif | |
41687 | if (type->cast) { | |
41688 | type->cast->prev = cast; | |
41689 | cast->next = type->cast; | |
41690 | } | |
41691 | type->cast = cast; | |
41692 | } | |
41693 | cast++; | |
be9b1dca | 41694 | } |
554f62e9 RD |
41695 | /* Set entry in modules->types array equal to the type */ |
41696 | swig_module.types[i] = type; | |
41697 | } | |
41698 | swig_module.types[i] = 0; | |
41699 | ||
41700 | #ifdef SWIGRUNTIME_DEBUG | |
41701 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
41702 | for (i = 0; i < swig_module.size; ++i) { | |
41703 | int j = 0; | |
41704 | swig_cast_info *cast = swig_module.cast_initial[i]; | |
41705 | printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name); | |
41706 | while (cast->type) { | |
41707 | printf("SWIG_InitializeModule: cast type %s\n", cast->type->name); | |
41708 | cast++; | |
41709 | ++j; | |
41710 | } | |
41711 | printf("---- Total casts: %d\n",j); | |
41712 | } | |
41713 | printf("**** SWIG_InitializeModule: Cast List ******\n"); | |
41714 | #endif | |
41715 | } | |
41716 | ||
41717 | /* This function will propagate the clientdata field of type to | |
41718 | * any new swig_type_info structures that have been added into the list | |
41719 | * of equivalent types. It is like calling | |
41720 | * SWIG_TypeClientData(type, clientdata) a second time. | |
41721 | */ | |
41722 | SWIGRUNTIME void | |
41723 | SWIG_PropagateClientData(void) { | |
41724 | size_t i; | |
41725 | swig_cast_info *equiv; | |
41726 | static int init_run = 0; | |
41727 | ||
41728 | if (init_run) return; | |
41729 | init_run = 1; | |
41730 | ||
41731 | for (i = 0; i < swig_module.size; i++) { | |
41732 | if (swig_module.types[i]->clientdata) { | |
41733 | equiv = swig_module.types[i]->cast; | |
41734 | while (equiv) { | |
41735 | if (!equiv->converter) { | |
41736 | if (equiv->type && !equiv->type->clientdata) | |
41737 | SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata); | |
41738 | } | |
41739 | equiv = equiv->next; | |
41740 | } | |
be9b1dca | 41741 | } |
554f62e9 RD |
41742 | } |
41743 | } | |
41744 | ||
41745 | #ifdef __cplusplus | |
41746 | #if 0 | |
41747 | { | |
41748 | /* c-mode */ | |
41749 | #endif | |
41750 | } | |
41751 | #endif | |
41752 | ||
41753 | ||
41754 | ||
41755 | #ifdef __cplusplus | |
41756 | extern "C" { | |
41757 | #endif | |
41758 | ||
41759 | /* Python-specific SWIG API */ | |
41760 | #define SWIG_newvarlink() SWIG_Python_newvarlink() | |
41761 | #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
41762 | #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants) | |
41763 | ||
41764 | /* ----------------------------------------------------------------------------- | |
41765 | * global variable support code. | |
41766 | * ----------------------------------------------------------------------------- */ | |
41767 | ||
41768 | typedef struct swig_globalvar { | |
41769 | char *name; /* Name of global variable */ | |
41770 | PyObject *(*get_attr)(void); /* Return the current value */ | |
41771 | int (*set_attr)(PyObject *); /* Set the value */ | |
41772 | struct swig_globalvar *next; | |
41773 | } swig_globalvar; | |
41774 | ||
41775 | typedef struct swig_varlinkobject { | |
41776 | PyObject_HEAD | |
41777 | swig_globalvar *vars; | |
41778 | } swig_varlinkobject; | |
41779 | ||
41780 | SWIGINTERN PyObject * | |
41781 | swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) { | |
41782 | return PyString_FromString("<Swig global variables>"); | |
41783 | } | |
41784 | ||
41785 | SWIGINTERN PyObject * | |
41786 | swig_varlink_str(swig_varlinkobject *v) { | |
41787 | PyObject *str = PyString_FromString("("); | |
41788 | swig_globalvar *var; | |
41789 | for (var = v->vars; var; var=var->next) { | |
41790 | PyString_ConcatAndDel(&str,PyString_FromString(var->name)); | |
41791 | if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", ")); | |
41792 | } | |
41793 | PyString_ConcatAndDel(&str,PyString_FromString(")")); | |
41794 | return str; | |
41795 | } | |
41796 | ||
41797 | SWIGINTERN int | |
41798 | swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) { | |
41799 | PyObject *str = swig_varlink_str(v); | |
41800 | fprintf(fp,"Swig global variables "); | |
41801 | fprintf(fp,"%s\n", PyString_AsString(str)); | |
41802 | Py_DECREF(str); | |
41803 | return 0; | |
41804 | } | |
41805 | ||
41806 | SWIGINTERN void | |
41807 | swig_varlink_dealloc(swig_varlinkobject *v) { | |
41808 | swig_globalvar *var = v->vars; | |
41809 | while (var) { | |
41810 | swig_globalvar *n = var->next; | |
41811 | free(var->name); | |
41812 | free(var); | |
41813 | var = n; | |
be9b1dca | 41814 | } |
554f62e9 RD |
41815 | } |
41816 | ||
41817 | SWIGINTERN PyObject * | |
41818 | swig_varlink_getattr(swig_varlinkobject *v, char *n) { | |
41819 | PyObject *res = NULL; | |
41820 | swig_globalvar *var = v->vars; | |
41821 | while (var) { | |
41822 | if (strcmp(var->name,n) == 0) { | |
41823 | res = (*var->get_attr)(); | |
41824 | break; | |
41825 | } | |
41826 | var = var->next; | |
be9b1dca | 41827 | } |
554f62e9 RD |
41828 | if (res == NULL && !PyErr_Occurred()) { |
41829 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 41830 | } |
554f62e9 RD |
41831 | return res; |
41832 | } | |
41833 | ||
41834 | SWIGINTERN int | |
41835 | swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) { | |
41836 | int res = 1; | |
41837 | swig_globalvar *var = v->vars; | |
41838 | while (var) { | |
41839 | if (strcmp(var->name,n) == 0) { | |
41840 | res = (*var->set_attr)(p); | |
41841 | break; | |
41842 | } | |
41843 | var = var->next; | |
be9b1dca | 41844 | } |
554f62e9 RD |
41845 | if (res == 1 && !PyErr_Occurred()) { |
41846 | PyErr_SetString(PyExc_NameError,"Unknown C global variable"); | |
be9b1dca | 41847 | } |
554f62e9 RD |
41848 | return res; |
41849 | } | |
41850 | ||
41851 | SWIGINTERN PyTypeObject* | |
41852 | swig_varlink_type(void) { | |
41853 | static char varlink__doc__[] = "Swig var link object"; | |
41854 | static PyTypeObject varlink_type; | |
41855 | static int type_init = 0; | |
41856 | if (!type_init) { | |
41857 | const PyTypeObject tmp | |
41858 | = { | |
41859 | PyObject_HEAD_INIT(NULL) | |
41860 | 0, /* Number of items in variable part (ob_size) */ | |
41861 | (char *)"swigvarlink", /* Type name (tp_name) */ | |
41862 | sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */ | |
41863 | 0, /* Itemsize (tp_itemsize) */ | |
41864 | (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */ | |
41865 | (printfunc) swig_varlink_print, /* Print (tp_print) */ | |
41866 | (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */ | |
41867 | (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */ | |
41868 | 0, /* tp_compare */ | |
41869 | (reprfunc) swig_varlink_repr, /* tp_repr */ | |
41870 | 0, /* tp_as_number */ | |
41871 | 0, /* tp_as_sequence */ | |
41872 | 0, /* tp_as_mapping */ | |
41873 | 0, /* tp_hash */ | |
41874 | 0, /* tp_call */ | |
41875 | (reprfunc)swig_varlink_str, /* tp_str */ | |
41876 | 0, /* tp_getattro */ | |
41877 | 0, /* tp_setattro */ | |
41878 | 0, /* tp_as_buffer */ | |
41879 | 0, /* tp_flags */ | |
41880 | varlink__doc__, /* tp_doc */ | |
41881 | 0, /* tp_traverse */ | |
41882 | 0, /* tp_clear */ | |
41883 | 0, /* tp_richcompare */ | |
41884 | 0, /* tp_weaklistoffset */ | |
41885 | #if PY_VERSION_HEX >= 0x02020000 | |
41886 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */ | |
41887 | #endif | |
41888 | #if PY_VERSION_HEX >= 0x02030000 | |
41889 | 0, /* tp_del */ | |
41890 | #endif | |
41891 | #ifdef COUNT_ALLOCS | |
41892 | 0,0,0,0 /* tp_alloc -> tp_next */ | |
41893 | #endif | |
41894 | }; | |
41895 | varlink_type = tmp; | |
41896 | varlink_type.ob_type = &PyType_Type; | |
41897 | type_init = 1; | |
be9b1dca | 41898 | } |
554f62e9 RD |
41899 | return &varlink_type; |
41900 | } | |
41901 | ||
41902 | /* Create a variable linking object for use later */ | |
41903 | SWIGINTERN PyObject * | |
41904 | SWIG_Python_newvarlink(void) { | |
41905 | swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type()); | |
41906 | if (result) { | |
41907 | result->vars = 0; | |
41908 | } | |
41909 | return ((PyObject*) result); | |
41910 | } | |
41911 | ||
41912 | SWIGINTERN void | |
41913 | SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) { | |
41914 | swig_varlinkobject *v = (swig_varlinkobject *) p; | |
41915 | swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar)); | |
41916 | if (gv) { | |
41917 | size_t size = strlen(name)+1; | |
41918 | gv->name = (char *)malloc(size); | |
41919 | if (gv->name) { | |
41920 | strncpy(gv->name,name,size); | |
41921 | gv->get_attr = get_attr; | |
41922 | gv->set_attr = set_attr; | |
41923 | gv->next = v->vars; | |
41924 | } | |
be9b1dca | 41925 | } |
554f62e9 RD |
41926 | v->vars = gv; |
41927 | } | |
41928 | ||
41929 | SWIGINTERN PyObject * | |
41930 | SWIG_globals() { | |
41931 | static PyObject *_SWIG_globals = 0; | |
41932 | if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink(); | |
41933 | return _SWIG_globals; | |
41934 | } | |
41935 | ||
41936 | /* ----------------------------------------------------------------------------- | |
41937 | * constants/methods manipulation | |
41938 | * ----------------------------------------------------------------------------- */ | |
41939 | ||
41940 | /* Install Constants */ | |
41941 | SWIGINTERN void | |
41942 | SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) { | |
41943 | PyObject *obj = 0; | |
41944 | size_t i; | |
41945 | for (i = 0; constants[i].type; ++i) { | |
41946 | switch(constants[i].type) { | |
41947 | case SWIG_PY_POINTER: | |
41948 | obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0); | |
41949 | break; | |
41950 | case SWIG_PY_BINARY: | |
41951 | obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype)); | |
41952 | break; | |
41953 | default: | |
41954 | obj = 0; | |
41955 | break; | |
41956 | } | |
41957 | if (obj) { | |
41958 | PyDict_SetItemString(d, constants[i].name, obj); | |
41959 | Py_DECREF(obj); | |
41960 | } | |
be9b1dca | 41961 | } |
554f62e9 RD |
41962 | } |
41963 | ||
41964 | /* -----------------------------------------------------------------------------*/ | |
41965 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
41966 | /* -----------------------------------------------------------------------------*/ | |
41967 | ||
41968 | SWIGINTERN void | |
41969 | SWIG_Python_FixMethods(PyMethodDef *methods, | |
41970 | swig_const_info *const_table, | |
41971 | swig_type_info **types, | |
41972 | swig_type_info **types_initial) { | |
41973 | size_t i; | |
41974 | for (i = 0; methods[i].ml_name; ++i) { | |
453fb36b | 41975 | const char *c = methods[i].ml_doc; |
554f62e9 RD |
41976 | if (c && (c = strstr(c, "swig_ptr: "))) { |
41977 | int j; | |
41978 | swig_const_info *ci = 0; | |
453fb36b | 41979 | const char *name = c + 10; |
554f62e9 RD |
41980 | for (j = 0; const_table[j].type; ++j) { |
41981 | if (strncmp(const_table[j].name, name, | |
41982 | strlen(const_table[j].name)) == 0) { | |
41983 | ci = &(const_table[j]); | |
41984 | break; | |
41985 | } | |
41986 | } | |
41987 | if (ci) { | |
41988 | size_t shift = (ci->ptype) - types; | |
41989 | swig_type_info *ty = types_initial[shift]; | |
41990 | size_t ldoc = (c - methods[i].ml_doc); | |
41991 | size_t lptr = strlen(ty->name)+2*sizeof(void*)+2; | |
41992 | char *ndoc = (char*)malloc(ldoc + lptr + 10); | |
41993 | if (ndoc) { | |
41994 | char *buff = ndoc; | |
41995 | void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0; | |
41996 | if (ptr) { | |
41997 | strncpy(buff, methods[i].ml_doc, ldoc); | |
41998 | buff += ldoc; | |
41999 | strncpy(buff, "swig_ptr: ", 10); | |
42000 | buff += 10; | |
42001 | SWIG_PackVoidPtr(buff, ptr, ty->name, lptr); | |
42002 | methods[i].ml_doc = ndoc; | |
42003 | } | |
42004 | } | |
42005 | } | |
42006 | } | |
be9b1dca | 42007 | } |
554f62e9 RD |
42008 | } |
42009 | ||
42010 | #ifdef __cplusplus | |
42011 | } | |
42012 | #endif | |
42013 | ||
42014 | /* -----------------------------------------------------------------------------* | |
42015 | * Partial Init method | |
42016 | * -----------------------------------------------------------------------------*/ | |
42017 | ||
42018 | #ifdef __cplusplus | |
42019 | extern "C" | |
42020 | #endif | |
42021 | SWIGEXPORT void SWIG_init(void) { | |
42022 | PyObject *m, *d; | |
42023 | ||
42024 | /* Fix SwigMethods to carry the callback ptrs when needed */ | |
42025 | SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial); | |
42026 | ||
42027 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
42028 | d = PyModule_GetDict(m); | |
42029 | ||
42030 | SWIG_InitializeModule(0); | |
42031 | SWIG_InstallConstants(d,swig_const_table); | |
42032 | ||
42033 | ||
f460c29d RD |
42034 | SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME))); |
42035 | SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX))); | |
42036 | SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX))); | |
fc46b7f3 RD |
42037 | SWIG_Python_SetConstant(d, "ALPHA_TRANSPARENT",SWIG_From_int(static_cast< int >(wxALPHA_TRANSPARENT))); |
42038 | SWIG_Python_SetConstant(d, "ALPHA_OPAQUE",SWIG_From_int(static_cast< int >(wxALPHA_OPAQUE))); | |
554f62e9 RD |
42039 | SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion))); |
42040 | SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion))); | |
42041 | SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion))); | |
42042 | SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT))); | |
42043 | SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE))); | |
42044 | SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN))); | |
42045 | SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT))); | |
42046 | SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS))); | |
42047 | SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN))); | |
42048 | SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE))); | |
42049 | SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX))); | |
42050 | SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN))); | |
42051 | SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL))); | |
42052 | SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC))); | |
42053 | SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT))); | |
42054 | SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX))); | |
42055 | SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL))); | |
42056 | SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT))); | |
42057 | SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD))); | |
42058 | SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX))); | |
42059 | SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT))); | |
42060 | SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC))); | |
42061 | SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT))); | |
42062 | SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT))); | |
42063 | SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD))); | |
42064 | SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED))); | |
42065 | SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED))); | |
42066 | SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED))); | |
42067 | SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH))); | |
42068 | SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK))); | |
42069 | SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM))); | |
42070 | SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT))); | |
42071 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1))); | |
42072 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2))); | |
42073 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3))); | |
42074 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4))); | |
42075 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5))); | |
42076 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6))); | |
42077 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7))); | |
42078 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8))); | |
42079 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9))); | |
42080 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10))); | |
42081 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11))); | |
42082 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12))); | |
42083 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13))); | |
42084 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14))); | |
42085 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15))); | |
42086 | SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX))); | |
42087 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8))); | |
42088 | SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U))); | |
42089 | SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE))); | |
42090 | SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN))); | |
42091 | SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437))); | |
42092 | SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850))); | |
42093 | SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852))); | |
42094 | SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855))); | |
42095 | SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866))); | |
42096 | SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874))); | |
42097 | SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932))); | |
42098 | SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936))); | |
42099 | SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949))); | |
42100 | SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950))); | |
42101 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250))); | |
42102 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251))); | |
42103 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252))); | |
42104 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253))); | |
42105 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254))); | |
42106 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255))); | |
42107 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256))); | |
42108 | SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257))); | |
42109 | SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX))); | |
42110 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7))); | |
42111 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8))); | |
42112 | SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP))); | |
42113 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE))); | |
42114 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE))); | |
42115 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE))); | |
42116 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE))); | |
42117 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN))); | |
42118 | SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE))); | |
42119 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD))); | |
42120 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN))); | |
42121 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC))); | |
42122 | SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW))); | |
42123 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK))); | |
42124 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC))); | |
42125 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI))); | |
42126 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI))); | |
42127 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI))); | |
42128 | SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA))); | |
42129 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI))); | |
42130 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL))); | |
42131 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU))); | |
42132 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA))); | |
42133 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM))); | |
42134 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE))); | |
42135 | SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE))); | |
42136 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER))); | |
42137 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI))); | |
42138 | SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN))); | |
42139 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN))); | |
42140 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN))); | |
42141 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP))); | |
42142 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN))); | |
42143 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN))); | |
42144 | SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC))); | |
42145 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR))); | |
42146 | SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE))); | |
42147 | SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT))); | |
42148 | SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL))); | |
42149 | SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS))); | |
42150 | SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH))); | |
42151 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN))); | |
42152 | SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC))); | |
42153 | SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN))); | |
42154 | SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC))); | |
42155 | SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC))); | |
42156 | SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD))); | |
42157 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN))); | |
42158 | SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX))); | |
42159 | SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX))); | |
42160 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16))); | |
42161 | SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32))); | |
42162 | SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE))); | |
42163 | SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312))); | |
42164 | SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5))); | |
42165 | SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS))); | |
42166 | ||
42167 | wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator"); | |
42168 | ||
42169 | SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT))); | |
42170 | SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN))); | |
42171 | SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN))); | |
42172 | SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR))); | |
42173 | SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS))); | |
42174 | SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN))); | |
42175 | SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC))); | |
42176 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC))); | |
42177 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA))); | |
42178 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN))); | |
42179 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT))); | |
42180 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ))); | |
42181 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN))); | |
42182 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT))); | |
42183 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON))); | |
42184 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA))); | |
42185 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO))); | |
42186 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN))); | |
42187 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR))); | |
42188 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA))); | |
42189 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN))); | |
42190 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA))); | |
42191 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA))); | |
42192 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE))); | |
42193 | SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN))); | |
42194 | SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN))); | |
42195 | SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE))); | |
42196 | SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA))); | |
42197 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI))); | |
42198 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC))); | |
42199 | SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN))); | |
42200 | SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR))); | |
42201 | SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE))); | |
42202 | SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN))); | |
42203 | SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI))); | |
42204 | SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI))); | |
42205 | SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI))); | |
42206 | SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA))); | |
42207 | SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON))); | |
42208 | SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN))); | |
42209 | SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE))); | |
42210 | SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN))); | |
42211 | SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN))); | |
42212 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE))); | |
42213 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED))); | |
42214 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL))); | |
42215 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG))); | |
42216 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU))); | |
42217 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE))); | |
42218 | SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN))); | |
42219 | SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN))); | |
42220 | SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN))); | |
42221 | SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH))); | |
42222 | SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH))); | |
42223 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH))); | |
42224 | SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN))); | |
42225 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH))); | |
42226 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK))); | |
42227 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US))); | |
42228 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA))); | |
42229 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE))); | |
42230 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA))); | |
42231 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA))); | |
42232 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN))); | |
42233 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK))); | |
42234 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE))); | |
42235 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA))); | |
42236 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND))); | |
42237 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES))); | |
42238 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA))); | |
42239 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD))); | |
42240 | SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE))); | |
42241 | SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO))); | |
42242 | SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN))); | |
42243 | SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE))); | |
42244 | SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI))); | |
42245 | SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI))); | |
42246 | SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH))); | |
42247 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH))); | |
42248 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN))); | |
42249 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN))); | |
42250 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG))); | |
42251 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO))); | |
42252 | SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS))); | |
42253 | SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN))); | |
42254 | SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN))); | |
42255 | SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN))); | |
42256 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN))); | |
42257 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN))); | |
42258 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM))); | |
42259 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN))); | |
42260 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG))); | |
42261 | SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS))); | |
42262 | SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK))); | |
42263 | SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC))); | |
42264 | SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI))); | |
42265 | SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI))); | |
42266 | SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA))); | |
42267 | SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW))); | |
42268 | SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI))); | |
42269 | SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN))); | |
42270 | SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC))); | |
42271 | SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN))); | |
42272 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA))); | |
42273 | SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE))); | |
42274 | SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT))); | |
42275 | SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK))); | |
42276 | SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH))); | |
42277 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN))); | |
42278 | SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS))); | |
42279 | SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE))); | |
42280 | SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE))); | |
42281 | SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA))); | |
42282 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI))); | |
42283 | SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA))); | |
42284 | SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH))); | |
42285 | SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK))); | |
42286 | SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA))); | |
42287 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ))); | |
42288 | SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI))); | |
42289 | SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI))); | |
42290 | SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN))); | |
42291 | SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH))); | |
42292 | SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN))); | |
42293 | SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN))); | |
42294 | SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN))); | |
42295 | SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA))); | |
42296 | SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN))); | |
42297 | SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN))); | |
42298 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY))); | |
42299 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY))); | |
42300 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM))); | |
42301 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM))); | |
42302 | SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA))); | |
42303 | SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE))); | |
42304 | SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI))); | |
42305 | SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI))); | |
42306 | SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI))); | |
42307 | SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN))); | |
42308 | SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN))); | |
42309 | SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU))); | |
42310 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI))); | |
42311 | SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA))); | |
42312 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL))); | |
42313 | SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK))); | |
42314 | SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN))); | |
42315 | SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA))); | |
42316 | SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO))); | |
42317 | SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO))); | |
42318 | SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH))); | |
42319 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE))); | |
42320 | SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN))); | |
42321 | SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI))); | |
42322 | SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA))); | |
42323 | SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE))); | |
42324 | SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN))); | |
42325 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN))); | |
42326 | SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE))); | |
42327 | SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN))); | |
42328 | SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO))); | |
42329 | SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT))); | |
42330 | SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC))); | |
42331 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN))); | |
42332 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC))); | |
42333 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN))); | |
42334 | SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN))); | |
42335 | SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO))); | |
42336 | SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA))); | |
42337 | SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA))); | |
42338 | SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI))); | |
42339 | SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE))); | |
42340 | SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI))); | |
42341 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK))); | |
42342 | SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN))); | |
42343 | SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI))); | |
42344 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH))); | |
42345 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA))); | |
42346 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA))); | |
42347 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE))); | |
42348 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA))); | |
42349 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA))); | |
42350 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC))); | |
42351 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR))); | |
42352 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR))); | |
42353 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA))); | |
42354 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS))); | |
42355 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN))); | |
42356 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN))); | |
42357 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA))); | |
42358 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA))); | |
42359 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY))); | |
42360 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU))); | |
42361 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO))); | |
42362 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY))); | |
42363 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US))); | |
42364 | SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA))); | |
42365 | SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE))); | |
42366 | SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI))); | |
42367 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH))); | |
42368 | SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND))); | |
42369 | SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG))); | |
42370 | SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK))); | |
42371 | SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL))); | |
42372 | SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR))); | |
42373 | SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU))); | |
42374 | SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI))); | |
42375 | SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN))); | |
42376 | SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA))); | |
42377 | SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA))); | |
42378 | SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA))); | |
42379 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH))); | |
42380 | SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN))); | |
42381 | SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI))); | |
42382 | SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR))); | |
42383 | SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN))); | |
42384 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU))); | |
42385 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA))); | |
42386 | SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN))); | |
42387 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK))); | |
42388 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC))); | |
42389 | SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN))); | |
42390 | SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE))); | |
42391 | SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK))); | |
42392 | SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH))); | |
42393 | SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF))); | |
42394 | SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA))); | |
42395 | SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH))); | |
42396 | SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA))); | |
42397 | SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG))); | |
42398 | SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU))); | |
42399 | SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED))); | |
42400 | SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER))); | |
42401 | SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE))); | |
42402 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY))); | |
42403 | SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX))); | |
42404 | SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP))); | |
42405 | SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT))); | |
42406 | SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT))); | |
42407 | SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING))); | |
42408 | SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT))); | |
42409 | SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE))); | |
42410 | SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT))); | |
42411 | SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX))); | |
42412 | SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS))); | |
42413 | SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2))); | |
42414 | SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC))); | |
42415 | SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA))); | |
42416 | SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA))); | |
70d7cb34 RD |
42417 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals()); |
42418 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPen",NullGraphicsPen_get, NullGraphicsPen_set); | |
42419 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsBrush",NullGraphicsBrush_get, NullGraphicsBrush_set); | |
42420 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsFont",NullGraphicsFont_get, NullGraphicsFont_set); | |
5c8c7dd3 RD |
42421 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsMatrix",NullGraphicsMatrix_get, NullGraphicsMatrix_set); |
42422 | SWIG_addvarlink(SWIG_globals(),(char*)"NullGraphicsPath",NullGraphicsPath_get, NullGraphicsPath_set); | |
554f62e9 RD |
42423 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL))); |
42424 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT))); | |
42425 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED))); | |
42426 | SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED))); | |
42427 | SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL))); | |
42428 | SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL))); | |
42429 | SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE))); | |
50efceee RD |
42430 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK))); |
42431 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE))); | |
42432 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN))); | |
42433 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN))); | |
42434 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY))); | |
42435 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY))); | |
42436 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY))); | |
42437 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED))); | |
42438 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT))); | |
42439 | SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE))); | |
42440 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK))); | |
42441 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE))); | |
42442 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN))); | |
42443 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN))); | |
42444 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY))); | |
42445 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED))); | |
42446 | SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE))); | |
42447 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS))); | |
42448 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS))); | |
42449 | SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD))); | |
42450 | SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC))); | |
42451 | SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL))); | |
42452 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL))); | |
42453 | SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS))); | |
42454 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK))); | |
42455 | SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED))); | |
42456 | SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN))); | |
42457 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN))); | |
42458 | SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY))); | |
42459 | SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY))); | |
42460 | SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY))); | |
42461 | SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED))); | |
42462 | SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT))); | |
42463 | SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE))); | |
42464 | SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT))); | |
554f62e9 RD |
42465 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set); |
42466 | SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set); | |
42467 | SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set); | |
42468 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set); | |
42469 | SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set); | |
42470 | SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set); | |
42471 | SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set); | |
42472 | SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set); | |
554f62e9 RD |
42473 | SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED))); |
42474 | SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED))); | |
42475 | SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED))); | |
79df624a | 42476 | SWIG_Python_SetConstant(d, "CONTROL_SPECIAL",SWIG_From_int(static_cast< int >(wxCONTROL_SPECIAL))); |
554f62e9 RD |
42477 | SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT))); |
42478 | SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU))); | |
42479 | SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED))); | |
79df624a | 42480 | SWIG_Python_SetConstant(d, "CONTROL_SIZEGRIP",SWIG_From_int(static_cast< int >(wxCONTROL_SIZEGRIP))); |
554f62e9 RD |
42481 | SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT))); |
42482 | SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED))); | |
42483 | SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED))); | |
42484 | SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE))); | |
42485 | SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED))); | |
42486 | SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK))); | |
42487 | SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY))); | |
33d6fd3b RD |
42488 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_NONE",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_NONE))); |
42489 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_UP",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_UP))); | |
42490 | SWIG_Python_SetConstant(d, "HDR_SORT_ICON_DOWN",SWIG_From_int(static_cast< int >(wxHDR_SORT_ICON_DOWN))); | |
554f62e9 RD |
42491 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version))); |
42492 | SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age))); | |
42493 | ||
42494 | // Work around a chicken/egg problem in drawlist.cpp | |
42495 | wxPyDrawList_SetAPIPtr(); | |
42496 | ||
d55e5bfc RD |
42497 | } |
42498 |